package com.discord.widgets.hubs; import android.os.Bundle; import b.d.b.a.a; import com.discord.app.AppDialog; import d0.z.d.o; import kotlin.jvm.functions.Function0; /* compiled from: ArgUtils.kt */ /* loaded from: classes2.dex */ public final class WidgetHubAddServerConfirmationDialog$$special$$inlined$args$1 extends o implements Function0 { public final /* synthetic */ String $argsKey; public final /* synthetic */ AppDialog $this_args; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public WidgetHubAddServerConfirmationDialog$$special$$inlined$args$1(AppDialog appDialog, String str) { super(0); this.$this_args = appDialog; this.$argsKey = str; } /* JADX WARN: Can't rename method to resolve collision */ @Override // kotlin.jvm.functions.Function0 public final AddServerConfirmationArgs invoke() { Bundle arguments = this.$this_args.getArguments(); AddServerConfirmationArgs addServerConfirmationArgs = null; Object obj = arguments != null ? arguments.get(this.$argsKey) : null; if (obj instanceof AddServerConfirmationArgs) { addServerConfirmationArgs = obj; } AddServerConfirmationArgs addServerConfirmationArgs2 = addServerConfirmationArgs; if (addServerConfirmationArgs2 != null) { return addServerConfirmationArgs2; } StringBuilder R = a.R("Missing args for class type "); a.j0(AddServerConfirmationArgs.class, R, " + key "); throw new IllegalStateException(a.G(R, this.$argsKey, '!')); } }