//
// ControlSlotsPopup::create from 0x7a3f00 to 0x7a3fb4 (180 bytes)
//
// 1 xrefs:
// > TouchControlEditLayer::onSlots @ 0x7a3fbe
//
// 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 ControlSlotsPopup::create(ControlSlotsPopup *this, TouchControlEditLayer *a2, bool a3)
{
char v4; // r5
int *v5; // r4
int v6; // r3
int *v7; // r0
v4 = (char)a2;
v5 = (int *)operator new(0x2D0u);
memset(v5, 0, 0x2D0u);
SetupTriggerPopup::SetupTriggerPopup((SetupTriggerPopup *)v5);
*v5 = (int)&off_CFE5D8;
v5[66] = (int)&off_CFE8D0;
v5[67] = (int)&off_CFE908;
v5[68] = (int)&off_CFE914;
v5[69] = (int)&off_CFE924;
v5[70] = (int)&off_CFE938;
v5[79] = (int)&off_CFE950;
v5[83] = (int)&off_CFE990;
v5[110] = (int)&off_CFE9A0;
v5[130] = (int)&off_CFE9C4;
v5[131] = (int)&off_CFE9D0;
v5[178] = 0;
*((_BYTE *)v5 + 716) = 0;
if ( ControlSlotsPopup::init((cocos2d::CCPoint **)v5, this, v4) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
}
else
{
v6 = *v5;
v7 = v5;
v5 = nullptr;
(*(void (__fastcall **)(int *))(v6 + 8))(v7);
}
return v5;
}