package V2;

import android.content.Context;
import java.util.concurrent.CancellationException;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: renamed from: V2.g, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0662g extends C4.j implements J4.e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f7769a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Context f7770b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ boolean f7771c;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0662g(Context context, boolean z6, A4.d dVar) {
        super(2, dVar);
        this.f7770b = context;
        this.f7771c = z6;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C0662g(this.f7770b, this.f7771c, dVar);
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f7769a;
        try {
            if (i6 == 0) {
                AbstractC2467b.l(obj);
                C0716s c0716s = C0716s.f8049a;
                Context context = this.f7770b;
                kotlin.jvm.internal.o.e(context);
                boolean z6 = this.f7771c;
                this.f7769a = 1;
                if (C0716s.l(context, z6, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i6 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                AbstractC2467b.l(obj);
            }
        } catch (CancellationException e6) {
            throw e6;
        } catch (Exception unused) {
        }
        return C3137A.f25453a;
    }
}
