//
// PlatformerControlsPopup::onController from 0x79cfce to 0x79cff8 (42 bytes)
//
// 0 xrefs:
//
// 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:50 +0000
//
int __fastcall PlatformerControlsPopup::onController(PlatformerControlsPopup *this, cocos2d::CCObject *a2)
{
int result; // r0
size_t v4; // r1
int v5; // r2
int v6; // r3
bool v7; // r2
int *v8; // r0
result = PlatformerControlsPopup::sourceIsCustom(this);
if ( result )
{
PlatformerControlsPopup::ensureCustomDraft((int)this, v4, v5, v6);
v8 = LevelBindingsLayer::create(
(LevelBindingsLayer *)(*((_DWORD *)this + 184) + 88),
(KeybindSet *)((char *)&dword_0 + 1),
v7);
return (*(int (__fastcall **)(int *))(*v8 + 656))(v8);
}
return result;
}