package V2;

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

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

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ String f7696d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ Map f7697e;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0637b(Context context, String str, Map map, A4.d dVar) {
        super(2, dVar);
        this.f7695c = context;
        this.f7696d = str;
        this.f7697e = map;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C0637b c0637b = new C0637b(this.f7695c, this.f7696d, this.f7697e, dVar);
        c0637b.f7694b = obj;
        return c0637b;
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((C0637b) 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.f7693a;
        Object objD = C3137A.f25453a;
        try {
            if (i6 == 0) {
                AbstractC2467b.l(obj);
                Context context = this.f7695c;
                String str = this.f7696d;
                Map map = this.f7697e;
                C0707p1 c0707p1 = C0707p1.f8004a;
                kotlin.jvm.internal.o.g(context.getApplicationContext(), "getApplicationContext(...)");
                this.f7693a = 1;
                c5.e eVar = V4.N.f8259a;
                Object objH = V4.E.H(c5.d.f13466b, new C0684k1(map, str, null), this);
                if (objH != aVar) {
                    objH = objD;
                }
                if (objH == aVar) {
                    return aVar;
                }
            } else {
                if (i6 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                AbstractC2467b.l(obj);
            }
        } catch (Throwable th) {
            objD = AbstractC2467b.d(th);
        }
        w4.n.a(objD);
        return new w4.n(objD);
    }
}
