//
// MPLobbyLayer::uploadActionFinished from 0xb06178 to 0xb062f8 (384 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MPLobbyLayer::uploadActionFinished @ 0xb062fc
// > ??> @ 0x5ab98
// > ??> @ 0x14b11d8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:01:24 +0000
//
__int64 __fastcall MPLobbyLayer::uploadActionFinished(MPLobbyLayer *this, int a2, int a3)
{
const char *v6; // x1
__int64 v7; // x22
size_t v8; // x0
char *v9; // [xsp+38h] [xbp+38h]
__int64 v10[2]; // [xsp+48h] [xbp+48h] BYREF
void *v11; // [xsp+58h] [xbp+58h]
__int64 v12[2]; // [xsp+60h] [xbp+60h] BYREF
void *v13; // [xsp+70h] [xbp+70h]
if ( *((_DWORD *)this + 112) == a2 && *((_QWORD *)this + 58) )
{
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", 0xDu);
*((_BYTE *)this + 493) = 1;
}
v6 = (char *)v10 + 1;
v7 = *((_QWORD *)this + 58);
if ( (v10[0] & 1) != 0 )
v6 = (const char *)v11;
v9 = (char *)v6;
v12[0] = 0;
v12[1] = 0;
v13 = nullptr;
v8 = strlen(v6);
std::string::__init(v12, v9, v8);
UploadActionPopup::showSuccessMessage(v7, (__int64)v12);
if ( (v12[0] & 1) != 0 )
operator delete(v13);
if ( *((_BYTE *)this + 493) )
{
*(_QWORD *)(*((_QWORD *)this + 58) + 664LL) = 0;
*((_QWORD *)this + 58) = 0;
MPLobbyLayer::onBack(this, nullptr);
}
if ( (v10[0] & 1) != 0 )
operator delete(v11);
}
return _stack_chk_guard;
}