package O1;

import java.util.concurrent.atomic.AtomicInteger;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ Object f5352f;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public N(kotlin.jvm.internal.A a6, O o6, Object obj, boolean z6, A4.d dVar) {
        super(2, dVar);
        this.f5350d = a6;
        this.f5351e = o6;
        this.f5352f = obj;
        this.f5353j = z6;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        N n6 = new N(this.f5350d, this.f5351e, this.f5352f, this.f5353j, dVar);
        n6.f5349c = obj;
        return n6;
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:15:0x0062, code lost:
    
        if (r6.b(r3, r7) == r0) goto L16;
     */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        Q1.k kVar;
        kotlin.jvm.internal.A a6;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f5348b;
        kotlin.jvm.internal.A a7 = this.f5350d;
        Object obj2 = this.f5352f;
        O o6 = this.f5351e;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            Q1.k kVar2 = (Q1.k) this.f5349c;
            Y yE = o6.e();
            this.f5349c = kVar2;
            this.f5347a = a7;
            this.f5348b = 1;
            Integer num = new Integer(((AtomicInteger) yE.f5390b.f506b).incrementAndGet());
            if (num != aVar) {
                kVar = kVar2;
                obj = num;
                a6 = a7;
            }
            return aVar;
        }
        if (i6 != 1) {
            if (i6 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            if (this.f5353j) {
                o6.f5360g.x(new C0564d(obj2 != null ? obj2.hashCode() : 0, a7.f20113a, obj2));
            }
            return C3137A.f25453a;
        }
        a6 = this.f5347a;
        kVar = (Q1.k) this.f5349c;
        AbstractC2467b.l(obj);
        a6.f20113a = ((Number) obj).intValue();
        this.f5349c = null;
        this.f5347a = null;
        this.f5348b = 2;
    }
}
