//
// PlatformerControlsPopup::onUpdate from 0x140451390 to 0x14045145e (206 bytes)
//
// 2 xrefs:
// > PlatformerControlsPopup::init @ 0x14044fb8b
// > ??> @ 0x1409277ac
//
// This function is hookable on this platform (idp: pc, 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 11:32:27 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall PlatformerControlsPopup::onUpdate(_QWORD *a1)
{
__int64 v2; // rcx
__int64 v3; // rcx
__int64 v4; // rdx
__int64 v5; // rcx
__int64 v6; // rcx
void *v7; // [rsp+30h] [rbp+8h]
v2 = a1[129];
if ( v2 && *(_DWORD *)(v2 + 328) - *(_DWORD *)(v2 + 332) > 0 )
{
v3 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v7 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v7);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v3 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v3 + 816) = a1 + 127;
GameLevelManager::getLevelControls(
(cocos2d::CCActionManager **)v3,
*(_DWORD *)(a1[129] + 328LL) - *(_DWORD *)(a1[129] + 332LL));
v5 = a1[146];
if ( v5 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 336LL))(v5, 0);
v6 = a1[147];
if ( v6 )
{
LOBYTE(v4) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 336LL))(v6, v4);
}
}
}