//
// MPLobbyLayer::uploadActionFinished from 0x66aae8 to 0x66abc0 (216 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'MPLobbyLayer::uploadActionFinished @ 0x66abd0
//
// 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::uploadActionFinished(int this, int a2, int a3)
{
char *v3; // r8
int v5; // r4
int v6; // r9
size_t v7; // r0
int v8; // r2
int v9; // r3
int v10[2]; // [sp+4h] [bp-20h] BYREF
char *v11; // [sp+Ch] [bp-18h]
int v12[3]; // [sp+10h] [bp-14h] BYREF
v5 = this;
if ( a2 == *(_DWORD *)(this + 336) && *(_DWORD *)(this + 344) )
{
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, "Unknown action finished", 0x17u);
if ( a3 == 64 )
{
std::string::assign(v10, "Did exit game");
*(_BYTE *)(v5 + 361) = 1;
}
v6 = *(_DWORD *)(v5 + 344);
if ( (v10[0] & 1) == 0 )
v3 = (char *)v10 + 1;
v12[0] = 0;
if ( (v10[0] & 1) != 0 )
v3 = v11;
v12[1] = 0;
v12[2] = 0;
v7 = strlen(v3);
std::string::__init(v12, v3, v7);
UploadActionPopup::showSuccessMessage(v6, (const char *)v12, v8, v9);
std::string::~string((int)v12);
if ( *(_BYTE *)(v5 + 361) )
{
*(_DWORD *)(*(_DWORD *)(v5 + 344) + 520) = 0;
*(_DWORD *)(v5 + 344) = 0;
MPLobbyLayer::onBack((MPLobbyLayer *)v5, nullptr);
}
return std::string::~string((int)v10);
}
return this;
}