package com.sistemasolton.itranvias.home.presentation.cardreader;

import androidx.compose.runtime.MutableState;
import com.sistemasolton.itranvias.MainActivity;
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;

/* JADX INFO: compiled from: CardReaderScreen.android.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\n"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {2, 1, 0}, xi = 48)
@DebugMetadata(c = "com.sistemasolton.itranvias.home.presentation.cardreader.CardReaderScreen_androidKt$CardReaderContent$1$1", f = "CardReaderScreen.android.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
final class CardReaderScreen_androidKt$CardReaderContent$1$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
    final /* synthetic */ MainActivity $activity;
    final /* synthetic */ MutableState<Boolean> $isReading$delegate;
    int label;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    CardReaderScreen_androidKt$CardReaderContent$1$1(MainActivity mainActivity, MutableState<Boolean> mutableState, Continuation<? super CardReaderScreen_androidKt$CardReaderContent$1$1> continuation) {
        super(2, continuation);
        this.$activity = mainActivity;
        this.$isReading$delegate = mutableState;
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
        return new CardReaderScreen_androidKt$CardReaderContent$1$1(this.$activity, this.$isReading$delegate, continuation);
    }

    @Override // kotlin.jvm.functions.Function2
    public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
        return ((CardReaderScreen_androidKt$CardReaderContent$1$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Object invokeSuspend(Object obj) throws Throwable {
        IntrinsicsKt.getCOROUTINE_SUSPENDED();
        if (this.label == 0) {
            ResultKt.throwOnFailure(obj);
            if (CardReaderScreen_androidKt.CardReaderContent$lambda$1(this.$isReading$delegate)) {
                CardReaderScreen_androidKt.CardReaderContent$lambda$2(this.$isReading$delegate, false);
                MainActivity mainActivity = this.$activity;
                if (mainActivity != null) {
                    mainActivity.disableNfcDispatch();
                }
            }
            return Unit.INSTANCE;
        }
        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
    }
}