//
// PlatformerControlsPopup::onController from 0xcfa544 to 0xcfa590 (76 bytes)
//
// 3 xrefs:
// > ??> @ 0xbd550
// > PlatformerControlsPopup::init @ 0xcfb174
// > ??> @ 0x15457c8
//
// 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
//
__int64 __fastcall PlatformerControlsPopup::onController(PlatformerControlsPopup *this, cocos2d::CCObject *a2)
{
__int64 result; // x0
__int64 v4; // x0
result = PlatformerControlsPopup::sourceIsCustom(this);
if ( (_BYTE)result )
{
PlatformerControlsPopup::ensureCustomDraft(this);
v4 = LevelBindingsLayer::create(
(LevelBindingsLayer *)(*((_QWORD *)this + 133) + 112LL),
(KeybindSet *)((char *)&dword_0 + 1));
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}
return result;
}