//
// TouchControlEditLayer::init from 0x7a4220 to 0x7a42ce (174 bytes)
//
// 1 xrefs:
// > TouchControlEditLayer::create @ 0x7a443c
//
// 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:56 +0000
//
GameManager *__fastcall TouchControlEditLayer::init(TouchControlEditLayer *this, bool a2, LevelControlConfig *a3)
{
GameManager *v6; // r6
void (__fastcall *v7)(TouchControlEditLayer *, _BYTE *); // r2
_BYTE v9[4]; // [sp+10h] [bp-Ch] BYREF
v6 = SetupTriggerPopup::init(this, nullptr, nullptr, 400.0, 280.0, (_BYTE *)&dword_0 + 1, 0.0);
if ( v6 )
{
*((_BYTE *)this + 712) = a2;
*((_DWORD *)this + 179) = a3;
SetupTriggerPopup::preSetup(this);
SetupTriggerPopup::toggleBG(this, 0);
v7 = *(void (__fastcall **)(TouchControlEditLayer *, _BYTE *))(*(_DWORD *)this + 608);
v9[0] = 0;
v9[1] = 0;
v9[2] = 0;
v7(this, v9);
(*(void (__fastcall **)(TouchControlEditLayer *, int))(*(_DWORD *)this + 584))(this, 50);
*((_BYTE *)this + 468) = 1;
TouchControlEditLayer::buildNodes(this);
TouchControlEditLayer::buildHud((cocos2d::CCPoint **)this);
TouchControlEditLayer::updateHandles(this);
TouchControlEditLayer::updateJumpGuide(this);
SetupTriggerPopup::postSetup(this);
TouchControlEditLayer::refreshHud(this);
TouchControlEditLayer::updateHudVisibility(this);
}
return v6;
}