//
// MPLobbyLayer::uploadActionFailed from 0x66abd4 to 0x66ac88 (180 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'MPLobbyLayer::uploadActionFailed @ 0x66ac98
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:55:45 +0000
//
int __fastcall MPLobbyLayer::uploadActionFailed(int this, int a2, char *a3)
{
int v4; // r5
int v5; // r8
size_t v6; // r0
int v7[2]; // [sp+4h] [bp-1Ch] BYREF
char *v8; // [sp+Ch] [bp-14h]
int v9[3]; // [sp+10h] [bp-10h] BYREF
v4 = this;
if ( a2 == *(_DWORD *)(this + 336) && *(_DWORD *)(this + 344) )
{
v7[0] = 0;
v7[1] = 0;
v8 = nullptr;
std::string::__init(v7, "Unknown action failed", 0x15u);
if ( a3 == (char *)&dword_40 )
std::string::assign(v7, "Could not exit game");
v5 = *(_DWORD *)(v4 + 344);
if ( (v7[0] & 1) == 0 )
a3 = (char *)v7 + 1;
v9[0] = 0;
if ( (v7[0] & 1) != 0 )
a3 = v8;
v9[1] = 0;
v9[2] = 0;
v6 = strlen(a3);
std::string::__init(v9, a3, v6);
UploadActionPopup::showFailMessage(v5, (const char *)v9);
std::string::~string((int)v9);
return std::string::~string((int)v7);
}
return this;
}