package androidx.compose.ui.platform; import androidx.compose.runtime.Composer; import androidx.compose.runtime.ComposerKt; import androidx.compose.runtime.CompositionLocalKt; import androidx.compose.runtime.ProvidableCompositionLocal; import androidx.compose.runtime.ProvidedValue; import androidx.compose.ui.text.input.TextInputService; import io.sentry.protocol.SentryThread; import kotlin.Metadata; import kotlin.jvm.functions.Function0; import kotlin.jvm.internal.Intrinsics; /* compiled from: LocalSoftwareKeyboardController.kt */ @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\bÇ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u000f\u0010\n\u001a\u0004\u0018\u00010\u0005H\u0003¢\u0006\u0002\u0010\tJ\u0019\u0010\u000b\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00050\f2\u0006\u0010\r\u001a\u00020\u0005H\u0086\u0004R\u0016\u0010\u0003\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00050\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u001c\u0010\u0006\u001a\u0004\u0018\u00010\u00058GX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0007\u0010\u0002\u001a\u0004\b\b\u0010\t¨\u0006\u000e"}, d2 = {"Landroidx/compose/ui/platform/LocalSoftwareKeyboardController;", "", "()V", "LocalSoftwareKeyboardController", "Landroidx/compose/runtime/ProvidableCompositionLocal;", "Landroidx/compose/ui/platform/SoftwareKeyboardController;", SentryThread.JsonKeys.CURRENT, "getCurrent$annotations", "getCurrent", "(Landroidx/compose/runtime/Composer;I)Landroidx/compose/ui/platform/SoftwareKeyboardController;", "delegatingController", "provides", "Landroidx/compose/runtime/ProvidedValue;", "softwareKeyboardController", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ public final class LocalSoftwareKeyboardController { public static final int $stable = 0; public static final LocalSoftwareKeyboardController INSTANCE = new LocalSoftwareKeyboardController(); private static final ProvidableCompositionLocal LocalSoftwareKeyboardController = CompositionLocalKt.compositionLocalOf$default(null, new Function0() { // from class: androidx.compose.ui.platform.LocalSoftwareKeyboardController$LocalSoftwareKeyboardController$1 /* JADX WARN: Can't rename method to resolve collision */ @Override // kotlin.jvm.functions.Function0 public final SoftwareKeyboardController invoke() { return null; } }, 1, null); public static /* synthetic */ void getCurrent$annotations() { } private LocalSoftwareKeyboardController() { } public final SoftwareKeyboardController getCurrent(Composer composer, int i) { composer.startReplaceableGroup(-1059476185); ComposerKt.sourceInformation(composer, "C41@1585L7,41@1596L22:LocalSoftwareKeyboardController.kt#itgzvw"); if (ComposerKt.isTraceInProgress()) { ComposerKt.traceEventStart(-1059476185, i, -1, "androidx.compose.ui.platform.LocalSoftwareKeyboardController. (LocalSoftwareKeyboardController.kt:40)"); } ProvidableCompositionLocal providableCompositionLocal = LocalSoftwareKeyboardController; ComposerKt.sourceInformationMarkerStart(composer, 2023513938, "CC:CompositionLocal.kt#9igjgp"); Object consume = composer.consume(providableCompositionLocal); ComposerKt.sourceInformationMarkerEnd(composer); SoftwareKeyboardController softwareKeyboardController = (SoftwareKeyboardController) consume; if (softwareKeyboardController == null) { softwareKeyboardController = delegatingController(composer, i & 14); } if (ComposerKt.isTraceInProgress()) { ComposerKt.traceEventEnd(); } composer.endReplaceableGroup(); return softwareKeyboardController; } private final SoftwareKeyboardController delegatingController(Composer composer, int i) { composer.startReplaceableGroup(1835581880); ComposerKt.sourceInformation(composer, "C(delegatingController)46@1769L7,47@1807L105:LocalSoftwareKeyboardController.kt#itgzvw"); if (ComposerKt.isTraceInProgress()) { ComposerKt.traceEventStart(1835581880, i, -1, "androidx.compose.ui.platform.LocalSoftwareKeyboardController.delegatingController (LocalSoftwareKeyboardController.kt:45)"); } ProvidableCompositionLocal localTextInputService = CompositionLocalsKt.getLocalTextInputService(); ComposerKt.sourceInformationMarkerStart(composer, 2023513938, "CC:CompositionLocal.kt#9igjgp"); Object consume = composer.consume(localTextInputService); ComposerKt.sourceInformationMarkerEnd(composer); TextInputService textInputService = (TextInputService) consume; if (textInputService == null) { if (ComposerKt.isTraceInProgress()) { ComposerKt.traceEventEnd(); } composer.endReplaceableGroup(); return null; } int i2 = TextInputService.$stable; composer.startReplaceableGroup(1157296644); ComposerKt.sourceInformation(composer, "CC(remember)P(1):Composables.kt#9igjgp"); boolean changed = composer.changed(textInputService); Object rememberedValue = composer.rememberedValue(); if (changed || rememberedValue == Composer.INSTANCE.getEmpty()) { rememberedValue = new DelegatingSoftwareKeyboardController(textInputService); composer.updateRememberedValue(rememberedValue); } composer.endReplaceableGroup(); DelegatingSoftwareKeyboardController delegatingSoftwareKeyboardController = (DelegatingSoftwareKeyboardController) rememberedValue; if (ComposerKt.isTraceInProgress()) { ComposerKt.traceEventEnd(); } composer.endReplaceableGroup(); return delegatingSoftwareKeyboardController; } public final ProvidedValue provides(SoftwareKeyboardController softwareKeyboardController) { Intrinsics.checkNotNullParameter(softwareKeyboardController, "softwareKeyboardController"); return LocalSoftwareKeyboardController.provides(softwareKeyboardController); } }