//
// PlatformerControlsPopup::onUpdate from 0xcf9fb4 to 0xcfa040 (140 bytes)
//
// 3 xrefs:
// > ??> @ 0xf6490
// > PlatformerControlsPopup::init @ 0xcfb638
// > ??> @ 0x1547760
//
// 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:50 +0000
//
_QWORD *__fastcall PlatformerControlsPopup::onUpdate(_QWORD *this, cocos2d::CCObject *a2)
{
__int64 v2; // x1
_QWORD *v3; // x19
GameLevelManager *v4; // x0
GameLevelManager *v5; // x0
__int64 v6; // x0
v2 = *(this + 131);
if ( v2 && *(_DWORD *)(v2 + 328) - *(_DWORD *)(v2 + 332) > 0 )
{
v3 = this;
v4 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)this);
*((_QWORD *)v4 + 89) = v3 + 129;
v5 = (GameLevelManager *)GameLevelManager::sharedState(v4);
GameLevelManager::getLevelControls(v5, *(_DWORD *)(v3[131] + 328LL) - *(_DWORD *)(v3[131] + 332LL));
v6 = v3[147];
if ( v6 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);
this = (_QWORD *)v3[148];
if ( this )
return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, __int64))(*this + 344LL))(this, 1);
}
return this;
}