//
// SupportLayer::uploadActionFinished from 0x901d50 to 0x901ec4 (372 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SupportLayer::uploadActionFinished @ 0x901ec8
// > ??> @ 0xf1030
// > ??> @ 0x1464e18
//
// 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 12:57:07 +0000
//
__int64 __fastcall SupportLayer::uploadActionFinished(SupportLayer *this, int a2, int a3)
{
GameManager *v5; // x0
__int64 v6; // x0
GameManager *v7; // x0
__int64 v8; // x0
GameManager *v9; // x0
__int64 v10; // x20
__int64 v11; // x20
__int64 v12; // x20
__int64 v13; // [xsp+30h] [xbp+30h] BYREF
__int64 v14; // [xsp+38h] [xbp+38h]
void *v15; // [xsp+40h] [xbp+40h]
if ( a3 == 49 )
{
v5 = *((GameManager **)this + 79);
if ( v5 )
{
v6 = GameManager::sharedState(v5);
v7 = (GameManager *)(unsigned int)(*(_DWORD *)(v6 + 1032) - *(_DWORD *)(v6 + 1036));
if ( (_DWORD)v7 == 2 )
{
v12 = *((_QWORD *)this + 79);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Success! Moderator access granted.", 0x22u);
UploadActionPopup::showSuccessMessage(v12, &v13);
}
else
{
v8 = GameManager::sharedState(v7);
v9 = (GameManager *)(unsigned int)(*(_DWORD *)(v8 + 1032) - *(_DWORD *)(v8 + 1036));
if ( (_DWORD)v9 == 1 )
{
v11 = *((_QWORD *)this + 79);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Success! Advisor access granted.", 0x20u);
UploadActionPopup::showSuccessMessage(v11, &v13);
}
else
{
if ( !*(_BYTE *)(GameManager::sharedState(v9) + 1044) )
return _stack_chk_guard;
v10 = *((_QWORD *)this + 79);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Success! Leaderboard Moderator\naccess granted.", 0x2Eu);
UploadActionPopup::showSuccessMessage(v10, &v13);
}
}
if ( (v13 & 1) != 0 )
operator delete(v15);
}
}
return _stack_chk_guard;
}