//
// PlatformerControlsPopup::create from 0x10095f080 to 0x10095f247 (455 bytes)
//
// 3 xrefs:
// > EditorPauseLayer::onControls @ 0x10027ea47
// > PauseLayer::onSideButtonPressed @ 0x1003c16df
// > sub_1008B6940 @ 0x1008b6950
//
// This function is hookable on this platform (idp: pc, 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 12:38:45 +0000
//
char *__fastcall PlatformerControlsPopup::create(__int64 a1, unsigned __int8 a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x518u);
__bzero(v2, 1304);
SetupTriggerPopup::SetupTriggerPopup((__int64)v2);
*(_QWORD *)v2 = off_100BCADD8;
*((_QWORD *)v2 + 40) = off_100BCB3F0;
*((_QWORD *)v2 + 41) = &off_100BCB460;
*((_QWORD *)v2 + 42) = off_100BCB478;
*((_QWORD *)v2 + 43) = off_100BCB498;
*((_QWORD *)v2 + 44) = off_100BCB4C0;
*((_QWORD *)v2 + 51) = off_100BCB4F0;
*((_QWORD *)v2 + 54) = off_100BCB570;
*((_QWORD *)v2 + 68) = off_100BCB590;
*((_QWORD *)v2 + 83) = &off_100BCB5D8;
*((_QWORD *)v2 + 84) = off_100BCB5F0;
*((_QWORD *)v2 + 127) = off_100BCB610;
*((_QWORD *)v2 + 128) = &off_100BCB630;
*((_QWORD *)v2 + 129) = &off_100BCB648;
*((_QWORD *)v2 + 130) = &off_100BCB660;
*((_QWORD *)v2 + 131) = 0;
*((_WORD *)v2 + 528) = 0;
*(_OWORD *)(v2 + 1064) = 0;
*(_OWORD *)(v2 + 1080) = 0;
v2[1096] = 0;
*((_OWORD *)v2 + 74) = 0;
*((_OWORD *)v2 + 73) = 0;
*((_OWORD *)v2 + 72) = 0;
*((_OWORD *)v2 + 71) = 0;
*((_OWORD *)v2 + 70) = 0;
*((_OWORD *)v2 + 69) = 0;
v2[1200] = 0;
*(_OWORD *)(v2 + 1208) = 0;
*(_OWORD *)(v2 + 1224) = 0;
*(_OWORD *)(v2 + 1240) = 0;
*(_OWORD *)(v2 + 1256) = 0;
*(_OWORD *)(v2 + 1272) = 0;
*(_OWORD *)(v2 + 1284) = 0;
*((_DWORD *)v2 + 325) = -1;
if ( (unsigned __int8)PlatformerControlsPopup::init((__int64)v2, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}