//
// SupportLayer::uploadActionFinished from 0x539a40 to 0x539b1a (218 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SupportLayer::uploadActionFinished @ 0x539b30
//
// 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:52:13 +0000
//
int __fastcall SupportLayer::uploadActionFinished(int this, int a2, int a3, int a4)
{
int v4; // r4
GameManager *v5; // r0
int v6; // r6
GameManager *v7; // r0
int v8; // r6
int v9; // r6
int v10; // [sp+0h] [bp-10h] BYREF
int v11; // [sp+4h] [bp-Ch]
int v12; // [sp+8h] [bp-8h]
int v13; // [sp+Ch] [bp-4h]
v10 = this;
v11 = a2;
v12 = a3;
v13 = a4;
v4 = this;
if ( a3 == 49 && *(_DWORD *)(this + 492) )
{
v5 = (GameManager *)GameManager::sharedState((GameManager *)this);
if ( *((_DWORD *)v5 + 205) - *((_DWORD *)v5 + 206) == 2 )
{
v6 = *(_DWORD *)(v4 + 492);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "Success! Moderator access granted.", 0x22u);
UploadActionPopup::showSuccessMessage(v6, &v10);
}
else
{
v7 = (GameManager *)GameManager::sharedState(v5);
if ( *((_DWORD *)v7 + 205) - *((_DWORD *)v7 + 206) == 1 )
{
v8 = *(_DWORD *)(v4 + 492);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "Success! Advisor access granted.", 0x20u);
UploadActionPopup::showSuccessMessage(v8, &v10);
}
else
{
this = GameManager::sharedState(v7);
if ( !*(_BYTE *)(this + 832) )
return this;
v9 = *(_DWORD *)(v4 + 492);
v10 = 0;
v11 = 0;
v12 = 0;
std::string::__init(&v10, "Success! Leaderboard Moderator\naccess granted.", 0x2Eu);
UploadActionPopup::showSuccessMessage(v9, &v10);
}
}
return std::string::~string((int)&v10);
}
return this;
}