//
// PlatformerControlsPopup::uploadActionFinished from 0x79de10 to 0x79dece (190 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'PlatformerControlsPopup::uploadActionFinished @ 0x79dee0
//
// 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:59:51 +0000
//
int __fastcall PlatformerControlsPopup::uploadActionFinished(PlatformerControlsPopup *this, int a2, int a3)
{
int result; // r0
int v5; // r3
int v6; // r7
int v7; // r2
int v8; // r3
int v9; // r7
int v10; // r2
int v11; // r3
int v12; // r1
int v13; // r2
int v14; // [sp+0h] [bp-14h] BYREF
int v15; // [sp+4h] [bp-10h]
int v16; // [sp+8h] [bp-Ch]
result = *((_DWORD *)this + 182);
if ( result )
{
v5 = *(_DWORD *)(result + 268);
result = *(_DWORD *)(result + 272);
if ( v5 - result == a2 )
{
if ( a3 == 28 )
{
v6 = *((_DWORD *)this + 200);
if ( !v6 )
{
LABEL_10:
PlatformerControlsPopup::syncSourceUI(this);
return PlatformerControlsPopup::refreshApplyVisible(this, v12, v13);
}
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "Controls uploaded!", 0x12u);
UploadActionPopup::showSuccessMessage(v6, (const char *)&v14, v7, v8);
}
else
{
if ( a3 != 29 )
return result;
v9 = *((_DWORD *)this + 200);
*((_BYTE *)this + 752) = 1;
if ( !v9 )
goto LABEL_10;
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "Controls removed!", 0x11u);
UploadActionPopup::showSuccessMessage(v9, (const char *)&v14, v10, v11);
}
std::string::~string((int)&v14);
*(_DWORD *)(*((_DWORD *)this + 200) + 520) = 0;
*((_DWORD *)this + 200) = 0;
goto LABEL_10;
}
}
return result;
}