package com.google.android.gms.internal.measurement;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public final class zzs extends zzai {
    final boolean zza;
    final boolean zzb;
    final /* synthetic */ zzt zzc;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public zzs(zzt zztVar, boolean z3, boolean z4) {
        super("log");
        this.zzc = zztVar;
        this.zza = z3;
        this.zzb = z4;
    }

    /* JADX WARN: Removed duplicated region for block: B:16:0x006e  */
    /* JADX WARN: Removed duplicated region for block: B:18:0x0080  */
    @Override // com.google.android.gms.internal.measurement.zzai
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final com.google.android.gms.internal.measurement.zzap zza(com.google.android.gms.internal.measurement.zzg r12, java.util.List r13) {
        /*
            r11 = this;
            java.lang.String r0 = "log"
            r1 = 1
            com.google.android.gms.internal.measurement.zzh.zzi(r0, r1, r13)
            int r0 = r13.size()
            r2 = 0
            if (r0 != r1) goto L2e
            com.google.android.gms.internal.measurement.zzt r0 = r11.zzc
            com.google.android.gms.internal.measurement.zzr r3 = com.google.android.gms.internal.measurement.zzt.zzb(r0)
            java.lang.Object r13 = r13.get(r2)
            com.google.android.gms.internal.measurement.zzap r13 = (com.google.android.gms.internal.measurement.zzap) r13
            com.google.android.gms.internal.measurement.zzap r12 = r12.zzb(r13)
            java.lang.String r5 = r12.zzi()
            java.util.List r6 = java.util.Collections.EMPTY_LIST
            boolean r7 = r11.zza
            boolean r8 = r11.zzb
            r4 = 3
            r3.zza(r4, r5, r6, r7, r8)
            com.google.android.gms.internal.measurement.zzap r11 = com.google.android.gms.internal.measurement.zzap.zzf
            return r11
        L2e:
            java.lang.Object r0 = r13.get(r2)
            com.google.android.gms.internal.measurement.zzap r0 = (com.google.android.gms.internal.measurement.zzap) r0
            com.google.android.gms.internal.measurement.zzap r0 = r12.zzb(r0)
            java.lang.Double r0 = r0.zzh()
            double r2 = r0.doubleValue()
            int r0 = com.google.android.gms.internal.measurement.zzh.zzb(r2)
            r2 = 5
            r3 = 2
            if (r0 == r3) goto L58
            r4 = 3
            if (r0 == r4) goto L56
            if (r0 == r2) goto L54
            r5 = 6
            if (r0 == r5) goto L52
        L50:
            r6 = r4
            goto L5a
        L52:
            r6 = r3
            goto L5a
        L54:
            r6 = r2
            goto L5a
        L56:
            r6 = r1
            goto L5a
        L58:
            r4 = 4
            goto L50
        L5a:
            java.lang.Object r0 = r13.get(r1)
            com.google.android.gms.internal.measurement.zzap r0 = (com.google.android.gms.internal.measurement.zzap) r0
            com.google.android.gms.internal.measurement.zzap r0 = r12.zzb(r0)
            java.lang.String r7 = r0.zzi()
            int r0 = r13.size()
            if (r0 != r3) goto L80
            com.google.android.gms.internal.measurement.zzt r12 = r11.zzc
            com.google.android.gms.internal.measurement.zzr r5 = com.google.android.gms.internal.measurement.zzt.zzb(r12)
            java.util.List r8 = java.util.Collections.EMPTY_LIST
            boolean r9 = r11.zza
            boolean r10 = r11.zzb
            r5.zza(r6, r7, r8, r9, r10)
            com.google.android.gms.internal.measurement.zzap r11 = com.google.android.gms.internal.measurement.zzap.zzf
            return r11
        L80:
            java.util.ArrayList r8 = new java.util.ArrayList
            r8.<init>()
        L85:
            int r0 = r13.size()
            int r0 = java.lang.Math.min(r0, r2)
            if (r3 >= r0) goto La3
            java.lang.Object r0 = r13.get(r3)
            com.google.android.gms.internal.measurement.zzap r0 = (com.google.android.gms.internal.measurement.zzap) r0
            com.google.android.gms.internal.measurement.zzap r0 = r12.zzb(r0)
            java.lang.String r0 = r0.zzi()
            r8.add(r0)
            int r3 = r3 + 1
            goto L85
        La3:
            com.google.android.gms.internal.measurement.zzt r12 = r11.zzc
            com.google.android.gms.internal.measurement.zzr r5 = com.google.android.gms.internal.measurement.zzt.zzb(r12)
            boolean r9 = r11.zza
            boolean r10 = r11.zzb
            r5.zza(r6, r7, r8, r9, r10)
            com.google.android.gms.internal.measurement.zzap r11 = com.google.android.gms.internal.measurement.zzap.zzf
            return r11
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.measurement.zzs.zza(com.google.android.gms.internal.measurement.zzg, java.util.List):com.google.android.gms.internal.measurement.zzap");
    }
}
