package V2;

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

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

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ J4.a f7891c;

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

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C0692m(this.f7890b, this.f7891c, dVar);
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:20:0x004d, code lost:
    
        if (V4.E.H(r9, r0, r8) == r1) goto L24;
     */
    /* JADX WARN: Code restructure failed: missing block: B:23:0x005f, code lost:
    
        if (V4.E.H(r9, r0, r8) != r1) goto L25;
     */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        Context context = this.f7890b;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f7889a;
        J4.a aVar2 = this.f7891c;
        try {
        } catch (CancellationException e6) {
            throw e6;
        } catch (Exception unused) {
            c5.e eVar = V4.N.f8259a;
            W4.d dVar = a5.m.f10845a;
            C0687l c0687l = new C0687l(aVar2, null);
            this.f7889a = 3;
        }
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            C0716s c0716s = C0716s.f8049a;
            kotlin.jvm.internal.o.e(context);
            C0716s.k(context);
            this.f7889a = 1;
            if (C0716s.a(context, this) == aVar) {
            }
            return aVar;
        }
        if (i6 != 1) {
            if (i6 != 2 && i6 != 3) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return C3137A.f25453a;
        }
        AbstractC2467b.l(obj);
        c5.e eVar2 = V4.N.f8259a;
        W4.d dVar2 = a5.m.f10845a;
        C0682k c0682k = new C0682k(aVar2, null);
        this.f7889a = 2;
    }
}
