package J0;

import V4.InterfaceC0765i0;
import android.view.View;
import androidx.compose.runtime.Recomposer;
import androidx.lifecycle.InterfaceC1113w;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public u1(kotlin.jvm.internal.C c6, Recomposer recomposer, InterfaceC1113w interfaceC1113w, v1 v1Var, View view, A4.d dVar) {
        super(2, dVar);
        this.f3077c = c6;
        this.f3078d = recomposer;
        this.f3079e = interfaceC1113w;
        this.f3080f = v1Var;
        this.f3081j = view;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        u1 u1Var = new u1(this.f3077c, this.f3078d, this.f3079e, this.f3080f, this.f3081j, dVar);
        u1Var.f3076b = obj;
        return u1Var;
    }

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

    /* JADX WARN: Removed duplicated region for block: B:25:0x006b  */
    /* JADX WARN: Removed duplicated region for block: B:31:0x007e  */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) throws Throwable {
        InterfaceC0765i0 interfaceC0765i0;
        V4.B0 b0Y;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f3075a;
        InterfaceC1113w interfaceC1113w = this.f3079e;
        v1 v1Var = this.f3080f;
        if (i6 != 0) {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            interfaceC0765i0 = (InterfaceC0765i0) this.f3076b;
            try {
                AbstractC2467b.l(obj);
                if (interfaceC0765i0 != null) {
                    interfaceC0765i0.cancel(null);
                }
                interfaceC1113w.getLifecycle().removeObserver(v1Var);
                return C3137A.f25453a;
            } catch (Throwable th) {
                th = th;
                if (interfaceC0765i0 != null) {
                    interfaceC0765i0.cancel(null);
                }
                interfaceC1113w.getLifecycle().removeObserver(v1Var);
                throw th;
            }
        }
        AbstractC2467b.l(obj);
        V4.C c6 = (V4.C) this.f3076b;
        try {
            Q0 q02 = (Q0) this.f3077c.f20115a;
            if (q02 != null) {
                Y4.a0 a0VarA = y1.a(this.f3081j.getContext().getApplicationContext());
                q02.f2941a.setFloatValue(((Number) a0VarA.getValue()).floatValue());
                b0Y = V4.E.y(c6, null, null, new t1(a0VarA, q02, null), 3);
            } else {
                b0Y = null;
            }
        } catch (Throwable th2) {
            th = th2;
            interfaceC0765i0 = null;
        }
        try {
            Recomposer recomposer = this.f3078d;
            this.f3076b = b0Y;
            this.f3075a = 1;
            if (recomposer.runRecomposeAndApplyChanges(this) == aVar) {
                return aVar;
            }
            interfaceC0765i0 = b0Y;
            if (interfaceC0765i0 != null) {
            }
            interfaceC1113w.getLifecycle().removeObserver(v1Var);
            return C3137A.f25453a;
        } catch (Throwable th3) {
            interfaceC0765i0 = b0Y;
            th = th3;
            if (interfaceC0765i0 != null) {
            }
            interfaceC1113w.getLifecycle().removeObserver(v1Var);
            throw th;
        }
    }
}
