//
// PlatformerControlsPopup::create from 0x10051ca10 to 0x10051cb50 (320 bytes)
//
// 3 xrefs:
// > PauseLayer::onSideButtonPressed @ 0x1001bfcf0
// > EditorPauseLayer::onControls @ 0x100444910
// > CreatorSettingsPopup::onControls @ 0x1004abc6c
//
// 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 11:07:09 +0000
//
char *__fastcall PlatformerControlsPopup::create(__int64 a1, int a2)
{
char *v4; // x19
v4 = (char *)operator new(0x518u);
bzero(v4, 0x518u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v4);
*(_QWORD *)v4 = off_10099DA48;
*((_QWORD *)v4 + 40) = off_10099E060;
*((_QWORD *)v4 + 41) = &off_10099E0D0;
*((_QWORD *)v4 + 42) = off_10099E0E8;
*((_QWORD *)v4 + 43) = off_10099E108;
*((_QWORD *)v4 + 44) = off_10099E130;
*((_QWORD *)v4 + 51) = off_10099E160;
*((_QWORD *)v4 + 54) = off_10099E1E0;
*((_QWORD *)v4 + 68) = off_10099E200;
*((_QWORD *)v4 + 83) = &off_10099E248;
*((_QWORD *)v4 + 84) = off_10099E260;
*((_QWORD *)v4 + 127) = off_10099E280;
*((_QWORD *)v4 + 128) = &off_10099E2A0;
*((_QWORD *)v4 + 129) = &off_10099E2B8;
*((_QWORD *)v4 + 130) = &off_10099E2D0;
*((_QWORD *)v4 + 131) = 0;
*((_WORD *)v4 + 528) = 0;
v4[1096] = 0;
*(_OWORD *)(v4 + 1064) = 0u;
*(_OWORD *)(v4 + 1080) = 0u;
v4[1200] = 0;
*((_OWORD *)v4 + 74) = 0u;
*((_OWORD *)v4 + 73) = 0u;
*((_OWORD *)v4 + 72) = 0u;
*((_OWORD *)v4 + 71) = 0u;
*((_OWORD *)v4 + 70) = 0u;
*((_OWORD *)v4 + 69) = 0u;
*(_OWORD *)(v4 + 1208) = 0u;
*(_OWORD *)(v4 + 1224) = 0u;
*(_OWORD *)(v4 + 1240) = 0u;
*(_OWORD *)(v4 + 1256) = 0u;
*(_OWORD *)(v4 + 1272) = 0u;
*(_OWORD *)(v4 + 1284) = 0u;
*((_DWORD *)v4 + 325) = -1;
if ( (unsigned int)PlatformerControlsPopup::init((__int64)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}