package com.google.android.recaptcha.internal;

import A4.d;
import C4.j;
import J4.e;
import V4.C;
import V4.E;
import V4.H0;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
final class zzdg extends j implements e {
    Object zza;
    int zzb;
    final /* synthetic */ zzdt zzc;
    final /* synthetic */ String zzd;
    final /* synthetic */ long zze;
    final /* synthetic */ zzsp zzf;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public zzdg(zzdt zzdtVar, String str, long j4, zzsp zzspVar, d dVar) {
        super(2, dVar);
        this.zzc = zzdtVar;
        this.zzd = str;
        this.zze = j4;
        this.zzf = zzspVar;
    }

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

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) throws Throwable {
        zzen zzenVar;
        Exception e6;
        zzbd e7;
        H0 e8;
        B4.a aVar = B4.a.f492a;
        if (this.zzb != 0) {
            zzenVar = (zzen) this.zza;
            try {
                AbstractC2467b.l(obj);
            } catch (H0 e9) {
                e8 = e9;
                zzbd zzbdVarZzs = this.zzc.zzs(e8, new zzbd(zzbb.zzc, zzba.zzb, e8.getMessage()));
                zzenVar.zzb(zzbdVarZzs);
                throw zzbdVarZzs;
            } catch (zzbd e10) {
                e7 = e10;
                zzbd zzbdVarZzs2 = this.zzc.zzs(e7, e7);
                zzenVar.zzb(zzbdVarZzs2);
                throw zzbdVarZzs2;
            } catch (Exception e11) {
                e6 = e11;
                zzbd zzbdVarZzs3 = this.zzc.zzs(e6, new zzbd(zzbb.zzc, zzba.zzZ, e6.getMessage()));
                zzenVar.zzb(zzbdVarZzs3);
                throw zzbdVarZzs3;
            }
        } else {
            AbstractC2467b.l(obj);
            zzen zzenVarZzf = this.zzc.zzu(this.zzd).zzf(28);
            try {
                long j4 = this.zze;
                zzdf zzdfVar = new zzdf(this.zzc, this.zzf, zzenVarZzf, null);
                this.zza = zzenVarZzf;
                this.zzb = 1;
                Object objI = E.I(j4, zzdfVar, this);
                if (objI == aVar) {
                    return aVar;
                }
                zzenVar = zzenVarZzf;
                obj = objI;
            } catch (H0 e12) {
                zzenVar = zzenVarZzf;
                e8 = e12;
                zzbd zzbdVarZzs4 = this.zzc.zzs(e8, new zzbd(zzbb.zzc, zzba.zzb, e8.getMessage()));
                zzenVar.zzb(zzbdVarZzs4);
                throw zzbdVarZzs4;
            } catch (zzbd e13) {
                zzenVar = zzenVarZzf;
                e7 = e13;
                zzbd zzbdVarZzs22 = this.zzc.zzs(e7, e7);
                zzenVar.zzb(zzbdVarZzs22);
                throw zzbdVarZzs22;
            } catch (Exception e14) {
                zzenVar = zzenVarZzf;
                e6 = e14;
                zzbd zzbdVarZzs32 = this.zzc.zzs(e6, new zzbd(zzbb.zzc, zzba.zzZ, e6.getMessage()));
                zzenVar.zzb(zzbdVarZzs32);
                throw zzbdVarZzs32;
            }
        }
        return (zzsr) obj;
    }
}
