//
// TouchControlEditLayer::init from 0xd068c4 to 0xd069dc (280 bytes)
//
// 2 xrefs:
// > TouchControlEditLayer::create @ 0xd06d10
// > ??> @ 0xa0c78
//
// 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:56 +0000
//
__int64 __fastcall TouchControlEditLayer::init(TouchControlEditLayer *this, char a2, LevelControlConfig *a3)
{
unsigned __int8 v6; // w0
unsigned int v7; // w21
__int64 v8; // x2
_BYTE v10[8]; // [xsp+40h] [xbp+40h] BYREF
v6 = SetupTriggerPopup::init(this, nullptr, nullptr, 400.0, 280.0, 1u, 0.0);
v7 = v6;
if ( v6 )
{
*((_BYTE *)this + 1012) = a2;
*((_QWORD *)this + 127) = a3;
SetupTriggerPopup::preSetup(this);
SetupTriggerPopup::toggleBG(this, 0);
v10[0] = 0;
v8 = *(_QWORD *)this;
v10[1] = 0;
v10[2] = 0;
(*(void (__fastcall **)(TouchControlEditLayer *, _BYTE *))(v8 + 1216))(this, v10);
(*(void (__fastcall **)(TouchControlEditLayer *, __int64))(*(_QWORD *)this + 1168LL))(this, 50);
*((_BYTE *)this + 596) = 1;
TouchControlEditLayer::buildNodes(this);
TouchControlEditLayer::buildHud(this);
TouchControlEditLayer::updateHandles(this);
TouchControlEditLayer::updateJumpGuide(this);
SetupTriggerPopup::postSetup(this);
TouchControlEditLayer::refreshHud(this);
TouchControlEditLayer::updateHudVisibility(this);
}
return v7;
}