//
// TouchControlEditLayer::create from 0x7a42dc to 0x7a44b6 (474 bytes)
//
// 1 xrefs:
// > PlatformerControlsPopup::onTouch @ 0x79d018
//
// 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
//
int *__fastcall TouchControlEditLayer::create(
TouchControlEditLayer *this,
LevelControlConfig *a2,
LevelControlConfig *a3)
{
char v3; // r8
int *v5; // r4
cocos2d::CCPoint *v6; // r5
int v7; // r3
int *v8; // r0
_BYTE v10[8]; // [sp+4h] [bp-10h] BYREF
v3 = (char)this;
v5 = (int *)operator new(0x3E8u);
memset(v5, 0, 0x3E8u);
SetupTriggerPopup::SetupTriggerPopup((SetupTriggerPopup *)v5);
*v5 = (int)&off_CFE1D0;
v5[66] = (int)&off_CFE4C8;
v5[67] = (int)&off_CFE500;
v5[68] = (int)&off_CFE50C;
v5[69] = (int)&off_CFE51C;
v5[70] = (int)&off_CFE530;
v5[79] = (int)&off_CFE548;
v5[83] = (int)&off_CFE588;
v5[110] = (int)&off_CFE598;
v5[131] = (int)&off_CFE5C8;
v6 = (cocos2d::CCPoint *)(v5 + 187);
v5[130] = (int)&off_CFE5BC;
*((_BYTE *)v5 + 712) = 0;
v5[179] = 0;
do
{
cocos2d::CCPoint::CCPoint(v6);
*((_DWORD *)v6 - 7) = 280;
*((_DWORD *)v6 - 6) = 120;
*((_DWORD *)v6 - 4) = 1065353216;
*((_DWORD *)v6 - 3) = 255;
*((_DWORD *)v6 - 5) = 0;
*((_DWORD *)v6 - 2) = 1092616192;
*((_BYTE *)v6 - 4) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 95.0, 36.0);
cocos2d::CCPoint::operator=(v6, v10);
v6 = (cocos2d::CCPoint *)((char *)v6 + 40);
*((_BYTE *)v6 - 32) = 0;
*((_BYTE *)v6 - 31) = 0;
*((_BYTE *)v6 - 43) = 0;
*((_BYTE *)v6 - 30) = 0;
}
while ( v6 != (cocos2d::CCPoint *)(v5 + 237) );
v5[230] = 0;
v5[231] = 0;
v5[232] = 0;
v5[233] = 0;
v5[234] = 0;
v5[235] = 0;
v5[236] = 0;
v5[237] = 0;
v5[238] = 0;
v5[239] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 240));
v5[242] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 243));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 245));
v5[247] = 0;
*((_BYTE *)v5 + 992) = 0;
v5[249] = 0;
if ( TouchControlEditLayer::init((TouchControlEditLayer *)v5, v3, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
}
else
{
v7 = *v5;
v8 = v5;
v5 = nullptr;
(*(void (__fastcall **)(int *))(v7 + 8))(v8);
}
return v5;
}