package com.google.android.gms.internal.ads; import android.graphics.Color; import androidx.annotation.ColorInt; import androidx.annotation.Nullable; /* loaded from: classes3.dex */ final class zzaky { public final String zza; public final int zzb; @Nullable @ColorInt public final Integer zzc; @Nullable @ColorInt public final Integer zzd; public final float zze; public final boolean zzf; public final boolean zzg; public final boolean zzh; public final boolean zzi; public final int zzj; private zzaky(String str, int i, @Nullable @ColorInt Integer num, @Nullable @ColorInt Integer num2, float f, boolean z, boolean z2, boolean z3, boolean z4, int i2) { this.zza = str; this.zzb = i; this.zzc = num; this.zzd = num2; this.zze = f; this.zzf = z; this.zzg = z2; this.zzh = z3; this.zzi = z4; this.zzj = i2; } /* JADX WARN: Code restructure failed: missing block: B:50:0x010b, code lost: if (r4 != 3) goto L61; */ /* JADX WARN: Removed duplicated region for block: B:44:0x00f9 A[Catch: RuntimeException -> 0x0055, TRY_LEAVE, TryCatch #0 {RuntimeException -> 0x0055, blocks: (B:7:0x003a, B:9:0x0049, B:10:0x0059, B:12:0x005d, B:13:0x006a, B:15:0x006e, B:16:0x007b, B:18:0x007f, B:20:0x0085, B:22:0x00a7, B:24:0x00ab, B:27:0x00ba, B:29:0x00be, B:32:0x00cd, B:34:0x00d1, B:37:0x00e0, B:39:0x00e4, B:42:0x00f5, B:44:0x00f9, B:46:0x00ff, B:52:0x011b, B:51:0x010d, B:65:0x008d), top: B:6:0x003a, inners: #2 }] */ @androidx.annotation.Nullable /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static com.google.android.gms.internal.ads.zzaky zzb(java.lang.String r19, com.google.android.gms.internal.ads.zzakw r20) { /* Method dump skipped, instructions count: 320 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzaky.zzb(java.lang.String, com.google.android.gms.internal.ads.zzakw):com.google.android.gms.internal.ads.zzaky"); } @Nullable @ColorInt public static Integer zzc(String str) { try { long parseLong = str.startsWith("&H") ? Long.parseLong(str.substring(2), 16) : Long.parseLong(str); zzcw.zzd(parseLong <= 4294967295L); return Integer.valueOf(Color.argb(zzgaq.zzb(((parseLong >> 24) & 255) ^ 255), zzgaq.zzb(parseLong & 255), zzgaq.zzb((parseLong >> 8) & 255), zzgaq.zzb((parseLong >> 16) & 255))); } catch (IllegalArgumentException e) { zzdo.zzg("SsaStyle", "Failed to parse color expression: '" + str + "'", e); return null; } } /* JADX INFO: Access modifiers changed from: private */ public static int zzd(String str) { int parseInt; try { parseInt = Integer.parseInt(str.trim()); } catch (NumberFormatException unused) { } switch (parseInt) { case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: return parseInt; default: zzdo.zzf("SsaStyle", "Ignoring unknown alignment: ".concat(String.valueOf(str))); return -1; } } private static boolean zze(String str) { try { int parseInt = Integer.parseInt(str); return parseInt == 1 || parseInt == -1; } catch (NumberFormatException e) { zzdo.zzg("SsaStyle", "Failed to parse boolean value: '" + str + "'", e); return false; } } }