package x;

import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class M extends C4.j implements J4.e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public kotlin.jvm.internal.C f25628a;

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ kotlin.jvm.internal.C f25631d;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public M(kotlin.jvm.internal.C c6, O o6, A4.d dVar) {
        super(2, dVar);
        this.f25631d = c6;
        this.f25632e = o6;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        M m6 = new M(this.f25631d, this.f25632e, dVar);
        m6.f25630c = obj;
        return m6;
    }

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

    /* JADX WARN: Removed duplicated region for block: B:11:0x002b  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:20:0x0041 -> B:25:0x0053). Please report as a decompilation issue!!! */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:22:0x004d -> B:24:0x0050). Please report as a decompilation issue!!! */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        J4.c cVar;
        Object obj2;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f25629b;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            cVar = (J4.c) this.f25630c;
            c = this.f25631d;
            obj2 = c.f20115a;
            if (obj2 instanceof C3206z) {
            }
            return C3137A.f25453a;
        }
        if (i6 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        kotlin.jvm.internal.C c6 = this.f25628a;
        cVar = (J4.c) this.f25630c;
        AbstractC2467b.l(obj);
        A a6 = (A) obj;
        c6.f20115a = a6;
        c6 = this.f25631d;
        obj2 = c6.f20115a;
        if (!(obj2 instanceof C3206z) || (obj2 instanceof C3200w)) {
            return C3137A.f25453a;
        }
        a6 = null;
        C3202x c3202x = obj2 instanceof C3202x ? (C3202x) obj2 : null;
        if (c3202x != null) {
            cVar.invoke(c3202x);
        }
        X4.e eVar = this.f25632e.f25651j;
        if (eVar != null) {
            this.f25630c = cVar;
            this.f25628a = c6;
            this.f25629b = 1;
            obj = eVar.e(this);
            if (obj == aVar) {
                return aVar;
            }
            A a62 = (A) obj;
        }
        c6.f20115a = a62;
        c6 = this.f25631d;
        obj2 = c6.f20115a;
        if (obj2 instanceof C3206z) {
        }
        return C3137A.f25453a;
    }
}
