//
// PlatformerControlsPopup::onTouch from 0xcfa590 to 0xcfa5fc (108 bytes)
//
// 3 xrefs:
// > ??> @ 0xfcaa8
// > PlatformerControlsPopup::init @ 0xcfb114
// > ??> @ 0x1547b20
//
// 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::onTouch(PlatformerControlsPopup *this, cocos2d::CCObject *a2)
{
LevelControlConfig *v3; // x2
__int64 v4; // x0
LevelControlConfig *v6; // x2
if ( PlatformerControlsPopup::sourceIsCustom(this) )
{
PlatformerControlsPopup::ensureCustomDraft(this);
v4 = TouchControlEditLayer::create(
(TouchControlEditLayer *)*((unsigned __int8 *)this + 1057),
*((_QWORD *)this + 133),
v6);
}
else
{
v4 = TouchControlEditLayer::create((TouchControlEditLayer *)*((unsigned __int8 *)this + 1057), 0, v3);
}
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}