package com.revenuecat.purchases.ui.revenuecatui.composables;

import A4.d;
import B4.a;
import C4.e;
import C4.j;
import V4.C;
import m3.AbstractC2467b;
import q.C2769d;
import q.InterfaceC2787m;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
@e(c = "com.revenuecat.purchases.ui.revenuecatui.composables.ThumbNode$measure$2", f = "Switch.kt", l = {385}, m = "invokeSuspend")
public final class ThumbNode$measure$2 extends j implements J4.e {
    final /* synthetic */ float $offset;
    int label;
    final /* synthetic */ ThumbNode this$0;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public ThumbNode$measure$2(ThumbNode thumbNode, float f6, d dVar) {
        super(2, dVar);
        this.this$0 = thumbNode;
        this.$offset = f6;
    }

    @Override // C4.a
    public final d create(Object obj, d dVar) {
        return new ThumbNode$measure$2(this.this$0, this.$offset, dVar);
    }

    @Override // J4.e
    public final Object invoke(C c6, d dVar) {
        return ((ThumbNode$measure$2) create(c6, dVar)).invokeSuspend(C3137A.f25453a);
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        a aVar = a.f492a;
        int i6 = this.label;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            C2769d c2769d = this.this$0.offsetAnim;
            if (c2769d != null) {
                Float f6 = new Float(this.$offset);
                InterfaceC2787m interfaceC2787m = this.this$0.isPressed ? SwitchKt.SnapSpec : SwitchKt.AnimationSpec;
                this.label = 1;
                obj = C2769d.c(c2769d, f6, interfaceC2787m, null, this, 12);
                if (obj == aVar) {
                    return aVar;
                }
            }
            return C3137A.f25453a;
        }
        if (i6 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        AbstractC2467b.l(obj);
        return C3137A.f25453a;
    }
}
