package l1;

import J0.I0;
import V4.E;
import androidx.compose.runtime.MonotonicFrameClockKt;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        j jVar = new j(this.f20186c, dVar);
        jVar.f20185b = obj;
        return jVar;
    }

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

    /* JADX WARN: Removed duplicated region for block: B:11:0x0027  */
    /* JADX WARN: Removed duplicated region for block: B:19:0x0049  */
    /* JADX WARN: Removed duplicated region for block: B:26:0x0067  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:14:0x003d -> B:16:0x0040). Please report as a decompilation issue!!! */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) throws Throwable {
        V4.C c6;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f20184a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            c6 = (V4.C) this.f20185b;
            if (E.v(c6)) {
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            c6 = (V4.C) this.f20185b;
            AbstractC2467b.l(obj);
            y yVar = this.f20186c;
            if (yVar.isAttachedToWindow()) {
                int[] iArr = yVar.f20248w;
                int i7 = iArr[0];
                int i8 = iArr[1];
                yVar.f20233d.getLocationOnScreen(iArr);
                if (i7 != iArr[0] || i8 != iArr[1]) {
                    yVar.h();
                }
            }
            if (E.v(c6)) {
                C2448d c2448d = C2448d.f20159c;
                this.f20185b = c6;
                this.f20184a = 1;
                if (getContext().get(I0.f2883a) != null) {
                    throw new ClassCastException();
                }
                if (MonotonicFrameClockKt.withFrameNanos(c2448d, this) == aVar) {
                    return aVar;
                }
                y yVar2 = this.f20186c;
                if (yVar2.isAttachedToWindow()) {
                }
                if (E.v(c6)) {
                    return C3137A.f25453a;
                }
            }
        }
    }
}
