package com.google.android.recaptcha.internal;

import A4.d;
import C4.j;
import J4.e;
import V4.C0781t;
import com.google.android.play.core.integrity.StandardIntegrityException;
import com.google.android.play.core.integrity.StandardIntegrityManager;
import kotlin.jvm.internal.C;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
final class zzal extends j implements e {
    long zza;
    boolean zzb;
    int zzc;
    final /* synthetic */ zzan zzd;
    final /* synthetic */ zzen zze;
    final /* synthetic */ C zzf;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public zzal(zzan zzanVar, zzen zzenVar, C c6, d dVar) {
        super(2, dVar);
        this.zzd = zzanVar;
        this.zze = zzenVar;
        this.zzf = c6;
    }

    @Override // C4.a
    public final d create(Object obj, d dVar) {
        return new zzal(this.zzd, this.zze, this.zzf, dVar);
    }

    @Override // J4.e
    public final /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
        return ((zzal) create((V4.C) obj, (d) obj2)).invokeSuspend(C3137A.f25453a);
    }

    /* JADX WARN: Code restructure failed: missing block: B:15:0x002e, code lost:
    
        if (r8 != r0) goto L16;
     */
    /* JADX WARN: Code restructure failed: missing block: B:34:0x007c, code lost:
    
        if (V4.E.l(r4, r7) != r0) goto L6;
     */
    /* JADX WARN: Code restructure failed: missing block: B:37:0x0081, code lost:
    
        return r0;
     */
    /* JADX WARN: Removed duplicated region for block: B:14:0x0024 A[Catch: Exception -> 0x001a, TRY_ENTER, TryCatch #0 {Exception -> 0x001a, blocks: (B:14:0x0024, B:16:0x0030, B:8:0x0016), top: B:41:0x0016 }] */
    /* JADX WARN: Removed duplicated region for block: B:39:0x0083  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:17:0x0049 -> B:13:0x0022). Please report as a decompilation issue!!! */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:34:0x007c -> B:6:0x0011). Please report as a decompilation issue!!! */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) throws Exception {
        long j4;
        boolean z6;
        boolean z7;
        int errorCode;
        B4.a aVar = B4.a.f492a;
        int i6 = this.zzc;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            j4 = 1000;
            z6 = true;
            if (!z6) {
            }
        } else if (i6 != 1) {
            z7 = this.zzb;
            j4 = this.zza;
            AbstractC2467b.l(obj);
            z6 = z7;
            j4 += j4;
            if (!z6) {
                return C3137A.f25453a;
            }
            zzan zzanVar = this.zzd;
            this.zza = j4;
            this.zzc = 1;
            obj = zzanVar.zzi(this);
        } else {
            j4 = this.zza;
            try {
                AbstractC2467b.l(obj);
            } catch (Exception e6) {
                this.zzf.f20115a = e6;
                z7 = (e6 instanceof StandardIntegrityException) && ((errorCode = ((StandardIntegrityException) e6).getErrorCode()) == -100 || errorCode == -18 || errorCode == -12 || errorCode == -8 || errorCode == -3);
                if (!z7) {
                    throw e6;
                }
                this.zza = j4;
                this.zzb = true;
                this.zzc = 2;
            }
            ((C0781t) this.zzd.zzf()).G((StandardIntegrityManager.StandardIntegrityTokenProvider) obj);
            this.zzd.zze = zzao.zzc;
            this.zze.zza();
            z6 = false;
            if (!z6) {
            }
        }
    }
}
