package androidx.compose.animation; import androidx.compose.animation.SizeAnimationModifier; import androidx.compose.animation.core.Animatable; import androidx.compose.animation.core.AnimationEndReason; import androidx.compose.animation.core.AnimationResult; import androidx.compose.ui.unit.IntSize; import kotlin.Metadata; import kotlin.ResultKt; import kotlin.Unit; import kotlin.coroutines.Continuation; import kotlin.coroutines.intrinsics.IntrinsicsKt; import kotlin.coroutines.jvm.internal.DebugMetadata; import kotlin.coroutines.jvm.internal.SuspendLambda; import kotlin.jvm.functions.Function2; import kotlinx.coroutines.CoroutineScope; /* compiled from: AnimationModifier.kt */ @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u008a@"}, d2 = {"", "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {1, 8, 0}, xi = 48) @DebugMetadata(c = "androidx.compose.animation.SizeAnimationModifier$animateTo$data$1$1", f = "AnimationModifier.kt", i = {}, l = {124}, m = "invokeSuspend", n = {}, s = {}) /* loaded from: classes.dex */ final class SizeAnimationModifier$animateTo$data$1$1 extends SuspendLambda implements Function2, Object> { final /* synthetic */ long $targetSize; final /* synthetic */ SizeAnimationModifier.AnimData $this_apply; int label; final /* synthetic */ SizeAnimationModifier this$0; /* JADX INFO: Access modifiers changed from: package-private */ /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public SizeAnimationModifier$animateTo$data$1$1(SizeAnimationModifier.AnimData animData, long j, SizeAnimationModifier sizeAnimationModifier, Continuation continuation) { super(2, continuation); this.$this_apply = animData; this.$targetSize = j; this.this$0 = sizeAnimationModifier; } @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl public final Continuation create(Object obj, Continuation continuation) { return new SizeAnimationModifier$animateTo$data$1$1(this.$this_apply, this.$targetSize, this.this$0, continuation); } @Override // kotlin.jvm.functions.Function2 public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) { return ((SizeAnimationModifier$animateTo$data$1$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE); } /* JADX WARN: Multi-variable type inference failed */ @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl public final Object invokeSuspend(Object obj) { Function2 listener; Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED(); int i = this.label; if (i == 0) { ResultKt.throwOnFailure(obj); this.label = 1; obj = Animatable.animateTo$default(this.$this_apply.getAnim(), IntSize.m5035boximpl(this.$targetSize), this.this$0.getAnimSpec(), null, null, this, 12, null); if (obj == coroutine_suspended) { return coroutine_suspended; } } else { if (i != 1) { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } ResultKt.throwOnFailure(obj); } AnimationResult animationResult = (AnimationResult) obj; if (animationResult.getEndReason() == AnimationEndReason.Finished && (listener = this.this$0.getListener()) != 0) { listener.invoke(IntSize.m5035boximpl(this.$this_apply.m83getStartSizeYbymL2g()), animationResult.getEndState().getValue()); } return Unit.INSTANCE; } }