//
// PlatformerControlsPopup::onTouch from 0x79cff8 to 0x79d028 (48 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:51 +0000
//
int __fastcall PlatformerControlsPopup::onTouch(PlatformerControlsPopup *this, cocos2d::CCObject *a2)
{
int IsCustom; // r1
LevelControlConfig *v4; // r2
int v5; // r3
TouchControlEditLayer *v6; // r0
int v7; // r0
IsCustom = PlatformerControlsPopup::sourceIsCustom(this);
if ( IsCustom )
{
PlatformerControlsPopup::ensureCustomDraft((int)this, IsCustom, (int)v4, v5);
v6 = (TouchControlEditLayer *)*((unsigned __int8 *)this + 733);
IsCustom = *((_DWORD *)this + 184);
}
else
{
v6 = (TouchControlEditLayer *)*((unsigned __int8 *)this + 733);
}
v7 = TouchControlEditLayer::create(v6, IsCustom, v4);
return (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 656))(v7);
}