//
// PlatformerControlsPopup::uploadActionFinished from 0xcfbccc to 0xcfbe14 (328 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'PlatformerControlsPopup::uploadActionFinished @ 0xcfbe18
// > ??> @ 0xf2de8
// > ??> @ 0x1505bb0
//
// 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:06:51 +0000
//
__int64 __fastcall PlatformerControlsPopup::uploadActionFinished(PlatformerControlsPopup *this, int a2, int a3)
{
__int64 v4; // x0
__int64 v6; // x21
__int64 v7; // x21
__int64 v8; // [xsp+30h] [xbp+30h] BYREF
__int64 v9; // [xsp+38h] [xbp+38h]
void *v10; // [xsp+40h] [xbp+40h]
v4 = *((_QWORD *)this + 131);
if ( v4 && a2 == *(_DWORD *)(v4 + 328) - *(_DWORD *)(v4 + 332) )
{
if ( a3 == 28 )
{
v7 = *((_QWORD *)this + 149);
if ( v7 )
{
v8 = 0;
v9 = 0;
v10 = nullptr;
std::string::__init(&v8, "Controls uploaded!", 0x12u);
UploadActionPopup::showSuccessMessage(v7, (__int64)&v8);
goto LABEL_10;
}
}
else
{
if ( a3 != 29 )
return _stack_chk_guard;
v6 = *((_QWORD *)this + 149);
*((_BYTE *)this + 1096) = 1;
if ( v6 )
{
v8 = 0;
v9 = 0;
v10 = nullptr;
std::string::__init(&v8, "Controls removed!", 0x11u);
UploadActionPopup::showSuccessMessage(v6, (__int64)&v8);
LABEL_10:
if ( (v8 & 1) != 0 )
operator delete(v10);
*(_QWORD *)(*((_QWORD *)this + 149) + 664LL) = 0;
*((_QWORD *)this + 149) = 0;
}
}
PlatformerControlsPopup::syncSourceUI(this);
PlatformerControlsPopup::refreshApplyVisible((__int64)this);
}
return _stack_chk_guard;
}