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

import android.content.Context;
import android.widget.Toast;
import androidx.compose.foundation.ImageKt;
import androidx.compose.foundation.layout.Arrangement;
import androidx.compose.foundation.layout.ColumnKt;
import androidx.compose.foundation.layout.ColumnScopeInstance;
import androidx.compose.foundation.layout.PaddingKt;
import androidx.compose.foundation.layout.RowScope;
import androidx.compose.foundation.layout.SizeKt;
import androidx.compose.foundation.layout.SpacerKt;
import androidx.compose.foundation.shape.RoundedCornerShape;
import androidx.compose.foundation.shape.RoundedCornerShapeKt;
import androidx.compose.material3.ButtonKt;
import androidx.compose.material3.CardColors;
import androidx.compose.material3.CardDefaults;
import androidx.compose.material3.CardKt;
import androidx.compose.material3.MenuKt;
import androidx.compose.material3.ProgressIndicatorKt;
import androidx.compose.material3.TextKt;
import androidx.compose.runtime.Applier;
import androidx.compose.runtime.ComposablesKt;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.CompositionLocalMap;
import androidx.compose.runtime.EffectsKt;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.ProvidableCompositionLocal;
import androidx.compose.runtime.RecomposeScopeImplKt;
import androidx.compose.runtime.ScopeUpdateScope;
import androidx.compose.runtime.SnapshotStateKt__SnapshotStateKt;
import androidx.compose.runtime.Updater;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import androidx.compose.ui.Alignment;
import androidx.compose.ui.ComposedModifierKt;
import androidx.compose.ui.Modifier;
import androidx.compose.ui.graphics.Color;
import androidx.compose.ui.graphics.ColorFilter;
import androidx.compose.ui.graphics.ColorKt;
import androidx.compose.ui.layout.ContentScale;
import androidx.compose.ui.layout.MeasurePolicy;
import androidx.compose.ui.node.ComposeUiNode;
import androidx.compose.ui.platform.AndroidCompositionLocals_androidKt;
import androidx.compose.ui.res.PainterResources_androidKt;
import androidx.compose.ui.semantics.Role;
import androidx.compose.ui.semantics.SemanticsModifierKt;
import androidx.compose.ui.semantics.SemanticsPropertiesKt;
import androidx.compose.ui.semantics.SemanticsPropertyReceiver;
import androidx.compose.ui.text.TextLayoutResult;
import androidx.compose.ui.text.TextStyle;
import androidx.compose.ui.text.font.FontFamily;
import androidx.compose.ui.text.font.FontStyle;
import androidx.compose.ui.text.font.FontWeight;
import androidx.compose.ui.text.style.TextAlign;
import androidx.compose.ui.text.style.TextDecoration;
import androidx.compose.ui.unit.Dp;
import androidx.profileinstaller.ProfileVerifier;
import com.sistemasolton.itranvias.MainActivity;
import com.sistemasolton.itranvias.R;
import java.util.Arrays;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.functions.Function3;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.CoroutineScope;

/* JADX INFO: compiled from: CardReaderScreen.android.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010\u000b\u001a'\u0010\u0000\u001a\u00020\u00012\b\u0010\u0002\u001a\u0004\u0018\u00010\u00032\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0005\u001a\u00020\u0003H\u0007¢\u0006\u0002\u0010\u0006¨\u0006\u0007²\u0006\n\u0010\b\u001a\u00020\tX\u008a\u008e\u0002"}, d2 = {"CardReaderContent", "", "tagId", "", "readButtonText", "placeholderText", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroidx/compose/runtime/Composer;I)V", "composeApp_release", "isReading", ""}, k = 2, mv = {2, 1, 0}, xi = 48)
public final class CardReaderScreen_androidKt {
    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit CardReaderContent$lambda$14(String str, String str2, String str3, int i, Composer composer, int i2) {
        CardReaderContent(str, str2, str3, composer, RecomposeScopeImplKt.updateChangedFlags(i | 1));
        return Unit.INSTANCE;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r12v10, types: [boolean, int] */
    /* JADX WARN: Type inference failed for: r12v17 */
    /* JADX WARN: Type inference failed for: r12v9 */
    /* JADX WARN: Type inference failed for: r14v11 */
    /* JADX WARN: Type inference failed for: r14v8 */
    /* JADX WARN: Type inference failed for: r14v9 */
    /* JADX WARN: Type inference failed for: r1v14 */
    /* JADX WARN: Type inference failed for: r1v15 */
    /* JADX WARN: Type inference failed for: r1v23 */
    /* JADX WARN: Type inference failed for: r5v50 */
    /* JADX WARN: Type inference failed for: r6v14 */
    /* JADX WARN: Type inference failed for: r6v15 */
    /* JADX WARN: Type inference failed for: r6v25 */
    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$PrimitiveArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    public static final void CardReaderContent(final String str, final String readButtonText, String str2, Composer composer, final int i) {
        int i2;
        Context context;
        MutableState mutableState;
        MainActivity mainActivity;
        int i3;
        Composer composer2;
        ?? r12;
        Object obj;
        int i4;
        int i5;
        MutableState<Integer> readingTrigger$composeApp_release;
        final String placeholderText = str2;
        Intrinsics.checkNotNullParameter(readButtonText, "readButtonText");
        Intrinsics.checkNotNullParameter(placeholderText, "placeholderText");
        Composer composerStartRestartGroup = composer.startRestartGroup(201330638);
        if ((i & 48) == 0) {
            i2 = (composerStartRestartGroup.changed(readButtonText) ? 32 : 16) | i;
        } else {
            i2 = i;
        }
        if ((i & 384) == 0) {
            i2 |= composerStartRestartGroup.changed(placeholderText) ? 256 : 128;
        }
        int i6 = i2;
        if ((i6 & 145) != 144 || !composerStartRestartGroup.getSkipping()) {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(201330638, i6, -1, "com.sistemasolton.itranvias.home.presentation.cardreader.CardReaderContent (CardReaderScreen.android.kt:44)");
            }
            ProvidableCompositionLocal<Context> localContext = AndroidCompositionLocals_androidKt.getLocalContext();
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 2023513938, "CC(<get-current>):CompositionLocal.kt#9igjgp");
            Object objConsume = composerStartRestartGroup.consume(localContext);
            ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
            Context context2 = (Context) objConsume;
            MainActivity mainActivity2 = context2 instanceof MainActivity ? (MainActivity) context2 : null;
            MutableState<MainActivity.CardData> cardDataState$composeApp_release = mainActivity2 != null ? mainActivity2.getCardDataState$composeApp_release() : null;
            if (mainActivity2 != null) {
                mainActivity2.getNfcTagState$composeApp_release();
            }
            composerStartRestartGroup.startReplaceGroup(1849434622);
            Object objRememberedValue = composerStartRestartGroup.rememberedValue();
            if (objRememberedValue == Composer.INSTANCE.getEmpty()) {
                objRememberedValue = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(false, null, 2, null);
                composerStartRestartGroup.updateRememberedValue(objRememberedValue);
            }
            MutableState mutableState2 = (MutableState) objRememberedValue;
            composerStartRestartGroup.endReplaceGroup();
            Integer value = (mainActivity2 == null || (readingTrigger$composeApp_release = mainActivity2.getReadingTrigger$composeApp_release()) == null) ? null : readingTrigger$composeApp_release.getValue();
            composerStartRestartGroup.startReplaceGroup(-1633490746);
            boolean zChangedInstance = composerStartRestartGroup.changedInstance(mainActivity2);
            CardReaderScreen_androidKt$CardReaderContent$1$1 cardReaderScreen_androidKt$CardReaderContent$1$1RememberedValue = composerStartRestartGroup.rememberedValue();
            if (zChangedInstance || cardReaderScreen_androidKt$CardReaderContent$1$1RememberedValue == Composer.INSTANCE.getEmpty()) {
                cardReaderScreen_androidKt$CardReaderContent$1$1RememberedValue = new CardReaderScreen_androidKt$CardReaderContent$1$1(mainActivity2, mutableState2, null);
                composerStartRestartGroup.updateRememberedValue(cardReaderScreen_androidKt$CardReaderContent$1$1RememberedValue);
            }
            composerStartRestartGroup.endReplaceGroup();
            EffectsKt.LaunchedEffect(value, (Function2<? super CoroutineScope, ? super Continuation<? super Unit>, ? extends Object>) cardReaderScreen_androidKt$CardReaderContent$1$1RememberedValue, composerStartRestartGroup, 0);
            float f = 16;
            Modifier modifierM832padding3ABfNKs = PaddingKt.m832padding3ABfNKs(SizeKt.fillMaxSize$default(Modifier.INSTANCE, 0.0f, 1, null), Dp.m7215constructorimpl(f));
            Alignment.Horizontal centerHorizontally = Alignment.INSTANCE.getCenterHorizontally();
            Arrangement.HorizontalOrVertical center = Arrangement.INSTANCE.getCenter();
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 1341605231, "CC(Column)N(modifier,verticalArrangement,horizontalAlignment,content)87@4443L61,88@4509L134:Column.kt#2w3rfo");
            MeasurePolicy measurePolicyColumnMeasurePolicy = ColumnKt.columnMeasurePolicy(center, centerHorizontally, composerStartRestartGroup, 54);
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
            int iHashCode = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composerStartRestartGroup, 0));
            CompositionLocalMap currentCompositionLocalMap = composerStartRestartGroup.getCurrentCompositionLocalMap();
            Modifier modifierMaterializeModifier = ComposedModifierKt.materializeModifier(composerStartRestartGroup, modifierM832padding3ABfNKs);
            Function0<ComposeUiNode> constructor = ComposeUiNode.INSTANCE.getConstructor();
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
            if (!(composerStartRestartGroup.getApplier() instanceof Applier)) {
                ComposablesKt.invalidApplier();
            }
            composerStartRestartGroup.startReusableNode();
            if (composerStartRestartGroup.getInserting()) {
                composerStartRestartGroup.createNode(constructor);
            } else {
                composerStartRestartGroup.useNode();
            }
            Composer composerM3820constructorimpl = Updater.m3820constructorimpl(composerStartRestartGroup);
            Updater.m3827setimpl(composerM3820constructorimpl, measurePolicyColumnMeasurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
            Updater.m3827setimpl(composerM3820constructorimpl, currentCompositionLocalMap, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
            Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
            if (composerM3820constructorimpl.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl.rememberedValue(), Integer.valueOf(iHashCode))) {
                composerM3820constructorimpl.updateRememberedValue(Integer.valueOf(iHashCode));
                composerM3820constructorimpl.apply(Integer.valueOf(iHashCode), setCompositeKeyHash);
            }
            Updater.m3827setimpl(composerM3820constructorimpl, modifierMaterializeModifier, ComposeUiNode.INSTANCE.getSetModifier());
            ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 2093002350, "C89@4557L9:Column.kt#2w3rfo");
            ColumnScopeInstance columnScopeInstance = ColumnScopeInstance.INSTANCE;
            MainActivity.CardData value2 = cardDataState$composeApp_release != null ? cardDataState$composeApp_release.getValue() : null;
            if (value2 == null) {
                composerStartRestartGroup.startReplaceGroup(-821619309);
                mutableState = mutableState2;
                mainActivity = mainActivity2;
                ImageKt.Image(PainterResources_androidKt.painterResource(R.drawable.nfc, composerStartRestartGroup, 0), "Phone tapping card", SizeKt.fillMaxWidth$default(SizeKt.m870height3ABfNKs(Modifier.INSTANCE, Dp.m7215constructorimpl(150)), 0.0f, 1, null), (Alignment) null, (ContentScale) null, 0.0f, (ColorFilter) null, composerStartRestartGroup, 432, MenuKt.InTransitionDuration);
                context = context2;
                i3 = i6;
                TextKt.m2803Text4IGK_g(str2, (Modifier) null, Color.INSTANCE.m4531getGray0d7_KjU(), 0L, (FontStyle) null, (FontWeight) null, (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composerStartRestartGroup, ((i6 >> 6) & 14) | 384, 0, 131066);
                composerStartRestartGroup.endReplaceGroup();
                composer2 = composerStartRestartGroup;
                r12 = 1;
                obj = null;
                i4 = 5004770;
                i5 = 54;
            } else {
                context = context2;
                mutableState = mutableState2;
                mainActivity = mainActivity2;
                i3 = i6;
                composer2 = composerStartRestartGroup;
                composer2.startReplaceGroup(-821193276);
                RoundedCornerShape roundedCornerShapeM1197RoundedCornerShape0680j_4 = RoundedCornerShapeKt.m1197RoundedCornerShape0680j_4(Dp.m7215constructorimpl(f));
                final MainActivity.CardData cardData = value2;
                CardColors cardColorsM1938cardColorsro_MJ88 = CardDefaults.INSTANCE.m1938cardColorsro_MJ88(ColorKt.Color(4278296804L), 0L, 0L, 0L, composer2, (CardDefaults.$stable << 12) | 6, 14);
                r12 = 1;
                obj = null;
                Modifier modifierM834paddingVpY3zN4$default = PaddingKt.m834paddingVpY3zN4$default(SizeKt.m870height3ABfNKs(SizeKt.fillMaxWidth$default(Modifier.INSTANCE, 0.0f, 1, null), Dp.m7215constructorimpl(180)), Dp.m7215constructorimpl(f), 0.0f, 2, null);
                i4 = 5004770;
                composer2.startReplaceGroup(5004770);
                boolean zChanged = composer2.changed(cardData);
                Object objRememberedValue2 = composer2.rememberedValue();
                if (zChanged || objRememberedValue2 == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue2 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.cardreader.CardReaderScreen_androidKt$$ExternalSyntheticLambda0
                        @Override // kotlin.jvm.functions.Function1
                        public final Object invoke(Object obj2) {
                            return CardReaderScreen_androidKt.CardReaderContent$lambda$13$lambda$6$lambda$5(cardData, (SemanticsPropertyReceiver) obj2);
                        }
                    };
                    composer2.updateRememberedValue(objRememberedValue2);
                }
                composer2.endReplaceGroup();
                i5 = 54;
                CardKt.Card(SemanticsModifierKt.clearAndSetSemantics(modifierM834paddingVpY3zN4$default, (Function1) objRememberedValue2), roundedCornerShapeM1197RoundedCornerShape0680j_4, cardColorsM1938cardColorsro_MJ88, null, null, ComposableLambdaKt.rememberComposableLambda(1071923290, true, new CardReaderScreen_androidKt$CardReaderContent$2$2(cardData), composer2, 54), composer2, ProfileVerifier.CompilationStatus.RESULT_CODE_ERROR_CANT_WRITE_PROFILE_VERIFICATION_RESULT_CACHE_FILE, 24);
                composer2.endReplaceGroup();
            }
            SpacerKt.Spacer(SizeKt.m870height3ABfNKs(Modifier.INSTANCE, Dp.m7215constructorimpl(24)), composer2, 6);
            if (CardReaderContent$lambda$1(mutableState)) {
                placeholderText = str2;
                composer2.startReplaceGroup(-818400424);
                Modifier.Companion companion = Modifier.INSTANCE;
                composer2.startReplaceGroup(1849434622);
                Object objRememberedValue3 = composer2.rememberedValue();
                if (objRememberedValue3 == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue3 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.cardreader.CardReaderScreen_androidKt$$ExternalSyntheticLambda3
                        @Override // kotlin.jvm.functions.Function1
                        public final Object invoke(Object obj2) {
                            return CardReaderScreen_androidKt.CardReaderContent$lambda$13$lambda$12$lambda$11((SemanticsPropertyReceiver) obj2);
                        }
                    };
                    composer2.updateRememberedValue(objRememberedValue3);
                }
                composer2.endReplaceGroup();
                ProgressIndicatorKt.m2477CircularProgressIndicatorLxG7B9w(SemanticsModifierKt.semantics$default(companion, false, (Function1) objRememberedValue3, r12, obj), 0L, 0.0f, 0L, 0, composer2, 0, 30);
                composer2.endReplaceGroup();
            } else {
                composer2.startReplaceGroup(-818893076);
                composer2.startReplaceGroup(-1224400529);
                final MainActivity mainActivity3 = mainActivity;
                final Context context3 = context;
                int i7 = i3;
                ?? r1 = (composer2.changedInstance(mainActivity3) ? 1 : 0) | (composer2.changedInstance(context3) ? 1 : 0) | ((i7 & 896) == 256 ? r12 : 0);
                Object objRememberedValue4 = composer2.rememberedValue();
                if (r1 != 0 || objRememberedValue4 == Composer.INSTANCE.getEmpty()) {
                    placeholderText = str2;
                    final MutableState mutableState3 = mutableState;
                    objRememberedValue4 = new Function0() { // from class: com.sistemasolton.itranvias.home.presentation.cardreader.CardReaderScreen_androidKt$$ExternalSyntheticLambda1
                        @Override // kotlin.jvm.functions.Function0
                        public final Object invoke() {
                            return CardReaderScreen_androidKt.CardReaderContent$lambda$13$lambda$8$lambda$7(mainActivity3, context3, placeholderText, mutableState3);
                        }
                    };
                    composer2.updateRememberedValue(objRememberedValue4);
                } else {
                    placeholderText = str2;
                }
                Function0 function0 = (Function0) objRememberedValue4;
                composer2.endReplaceGroup();
                Modifier.Companion companion2 = Modifier.INSTANCE;
                composer2.startReplaceGroup(i4);
                ?? r14 = (i7 & 112) == 32 ? r12 : 0;
                Object objRememberedValue5 = composer2.rememberedValue();
                if (r14 != 0 || objRememberedValue5 == Composer.INSTANCE.getEmpty()) {
                    objRememberedValue5 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.cardreader.CardReaderScreen_androidKt$$ExternalSyntheticLambda2
                        @Override // kotlin.jvm.functions.Function1
                        public final Object invoke(Object obj2) {
                            return CardReaderScreen_androidKt.CardReaderContent$lambda$13$lambda$10$lambda$9(readButtonText, (SemanticsPropertyReceiver) obj2);
                        }
                    };
                    composer2.updateRememberedValue(objRememberedValue5);
                }
                composer2.endReplaceGroup();
                ButtonKt.Button(function0, SemanticsModifierKt.semantics$default(companion2, false, (Function1) objRememberedValue5, r12, obj), false, null, null, null, null, null, null, ComposableLambdaKt.rememberComposableLambda(965082374, r12, new Function3<RowScope, Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.cardreader.CardReaderScreen_androidKt$CardReaderContent$2$5
                    @Override // kotlin.jvm.functions.Function3
                    public /* bridge */ /* synthetic */ Unit invoke(RowScope rowScope, Composer composer3, Integer num) {
                        invoke(rowScope, composer3, num.intValue());
                        return Unit.INSTANCE;
                    }

                    public final void invoke(RowScope Button, Composer composer3, int i8) {
                        Intrinsics.checkNotNullParameter(Button, "$this$Button");
                        if ((i8 & 17) == 16 && composer3.getSkipping()) {
                            composer3.skipToGroupEnd();
                            return;
                        }
                        if (ComposerKt.isTraceInProgress()) {
                            ComposerKt.traceEventStart(965082374, i8, -1, "com.sistemasolton.itranvias.home.presentation.cardreader.CardReaderContent.<anonymous>.<anonymous> (CardReaderScreen.android.kt:151)");
                        }
                        TextKt.m2803Text4IGK_g(readButtonText, (Modifier) null, 0L, 0L, (FontStyle) null, (FontWeight) null, (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer3, 0, 0, 131070);
                        if (ComposerKt.isTraceInProgress()) {
                            ComposerKt.traceEventEnd();
                        }
                    }
                }, composer2, i5), composer2, 805306368, 508);
                composer2.endReplaceGroup();
            }
            ComposerKt.sourceInformationMarkerEnd(composer2);
            composer2.endNode();
            ComposerKt.sourceInformationMarkerEnd(composer2);
            ComposerKt.sourceInformationMarkerEnd(composer2);
            ComposerKt.sourceInformationMarkerEnd(composer2);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        } else {
            composerStartRestartGroup.skipToGroupEnd();
            composer2 = composerStartRestartGroup;
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composer2.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new Function2() { // from class: com.sistemasolton.itranvias.home.presentation.cardreader.CardReaderScreen_androidKt$$ExternalSyntheticLambda4
                @Override // kotlin.jvm.functions.Function2
                public final Object invoke(Object obj2, Object obj3) {
                    return CardReaderScreen_androidKt.CardReaderContent$lambda$14(str, readButtonText, placeholderText, i, (Composer) obj2, ((Integer) obj3).intValue());
                }
            });
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final boolean CardReaderContent$lambda$1(MutableState<Boolean> mutableState) {
        return mutableState.getValue().booleanValue();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void CardReaderContent$lambda$2(MutableState<Boolean> mutableState, boolean z) {
        mutableState.setValue(Boolean.valueOf(z));
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit CardReaderContent$lambda$13$lambda$6$lambda$5(MainActivity.CardData cardData, SemanticsPropertyReceiver clearAndSetSemantics) {
        Intrinsics.checkNotNullParameter(clearAndSetSemantics, "$this$clearAndSetSemantics");
        Double balance = cardData.getBalance();
        if (balance != null) {
            String str = String.format("Saldo: %.2f euros", Arrays.copyOf(new Object[]{Double.valueOf(balance.doubleValue())}, 1));
            Intrinsics.checkNotNullExpressionValue(str, "format(...)");
            SemanticsPropertiesKt.setContentDescription(clearAndSetSemantics, str);
        }
        SemanticsPropertiesKt.m6444setRolekuIjeqM(clearAndSetSemantics, Role.INSTANCE.m6425getButtono7Vup1c());
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit CardReaderContent$lambda$13$lambda$8$lambda$7(MainActivity mainActivity, Context context, String str, MutableState mutableState) {
        CardReaderContent$lambda$2(mutableState, true);
        if (mainActivity != null) {
            mainActivity.enableNfcDispatch();
        }
        Toast.makeText(context, str, 0).show();
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit CardReaderContent$lambda$13$lambda$10$lambda$9(String str, SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        SemanticsPropertiesKt.setContentDescription(semantics, "Leer tarjeta. " + str);
        SemanticsPropertiesKt.m6444setRolekuIjeqM(semantics, Role.INSTANCE.m6425getButtono7Vup1c());
        return Unit.INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Unit CardReaderContent$lambda$13$lambda$12$lambda$11(SemanticsPropertyReceiver semantics) {
        Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
        SemanticsPropertiesKt.setContentDescription(semantics, "Leyendo tarjeta. Por favor acerca tu tarjeta NFC al dispositivo.");
        return Unit.INSTANCE;
    }
}