//
// PlatformerControlsPopup::FLAlert_Clicked from 0x79df74 to 0x79e012 (158 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'PlatformerControlsPopup::FLAlert_Clicked @ 0x79e020
//
// 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
//
GameLevelManager *__fastcall PlatformerControlsPopup::FLAlert_Clicked(
GameLevelManager *this,
FLAlertLayer *a2,
int a3,
int a4)
{
GameLevelManager *v4; // r4
GameLevelManager *v5; // r0
GameLevelManager *v6; // r0
int v7; // r2
int v8; // r2
int v9; // r3
GameLevelManager *v10; // [sp+0h] [bp-10h] BYREF
FLAlertLayer *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 )
{
if ( *((_DWORD *)this + 182) )
{
v5 = (GameLevelManager *)GameLevelManager::sharedState(this);
*((_DWORD *)v5 + 222) = (char *)v4 + 712;
v6 = (GameLevelManager *)GameLevelManager::sharedState(v5);
this = (GameLevelManager *)GameLevelManager::deleteLevelControls(
v6,
(const char *)(*(_DWORD *)(*((_DWORD *)v4 + 182) + 268)
- *(_DWORD *)(*((_DWORD *)v4 + 182) + 272)));
if ( this )
{
v7 = *((_DWORD *)v4 + 200);
if ( v7 )
{
*(_DWORD *)(v7 + 520) = 0;
*((_DWORD *)v4 + 200) = 0;
}
v10 = nullptr;
v11 = nullptr;
v12 = 0;
std::string::__init((int *)&v10, "Removing controls...", 0x14u);
*((_DWORD *)v4 + 200) = UploadActionPopup::create((int)v4 + 716, (int)&v10, v8, v9);
std::string::~string((int)&v10);
return (GameLevelManager *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)v4 + 200) + 656))(*((_DWORD *)v4 + 200));
}
}
}
return this;
}