package b.a.a.f.a; import b.a.a.f.a.d; import com.discord.rtcconnection.audio.DiscordAudioManager; import com.discord.stores.StoreAudioManagerV2; import d0.z.d.m; import d0.z.d.o; import java.util.List; import java.util.Objects; import kotlin.Unit; import kotlin.jvm.functions.Function1; /* compiled from: AudioOutputSelectionDialogViewModel.kt */ public final class c extends o implements Function1 { public final /* synthetic */ d this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c(d dVar) { super(1); this.this$0 = dVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public Unit invoke(StoreAudioManagerV2.State state) { StoreAudioManagerV2.State state2 = state; m.checkNotNullParameter(state2, "storeState"); d dVar = this.this$0; Objects.requireNonNull(dVar); List audioDevices = state2.getAudioDevices(); DiscordAudioManager.DeviceTypes activeAudioDevice = state2.getActiveAudioDevice(); DiscordAudioManager.DeviceTypes deviceTypes = DiscordAudioManager.DeviceTypes.BLUETOOTH_HEADSET; dVar.updateViewState(new d.a.C0014a(activeAudioDevice, audioDevices.get(deviceTypes.getValue()).f2747b, audioDevices.get(deviceTypes.getValue()).d, audioDevices.get(DiscordAudioManager.DeviceTypes.SPEAKERPHONE.getValue()).f2747b, audioDevices.get(DiscordAudioManager.DeviceTypes.WIRED_HEADSET.getValue()).f2747b, audioDevices.get(DiscordAudioManager.DeviceTypes.EARPIECE.getValue()).f2747b)); return Unit.a; } }