package V2;

import android.content.Context;
import m3.AbstractC2467b;
import org.json.JSONArray;
import w4.C3137A;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public /* synthetic */ Object f7751b;

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

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

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C0657f c0657f = new C0657f(this.f7752c, dVar);
        c0657f.f7751b = obj;
        return c0657f;
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        Object objD;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f7750a;
        try {
            if (i6 == 0) {
                AbstractC2467b.l(obj);
                Context applicationContext = this.f7752c.getApplicationContext();
                kotlin.jvm.internal.o.g(applicationContext, "getApplicationContext(...)");
                i3.J j4 = new i3.J(applicationContext);
                this.f7750a = 1;
                obj = j4.I(this);
                if (obj == aVar) {
                    return aVar;
                }
            } else {
                if (i6 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                AbstractC2467b.l(obj);
            }
            Y4.c0 c0Var = C0706p0.f7996a;
            C0706p0.j((JSONArray) obj);
            objD = C3137A.f25453a;
        } catch (Throwable th) {
            objD = AbstractC2467b.d(th);
        }
        w4.n.a(objD);
        return new w4.n(objD);
    }
}
