//
// PlatformerControlsPopup::onInfo from 0x140451600 to 0x140451725 (293 bytes)
//
// 2 xrefs:
// > PlatformerControlsPopup::init @ 0x14044fe5d
// > ??> @ 0x1409277c4
//
// 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 11:32:27 +0000
//
__int64 PlatformerControlsPopup::onInfo()
{
_QWORD *v0; // r9
_QWORD *v1; // rcx
const char *v2; // rdx
__int64 v3; // r8
__int128 v4; // xmm0
cocos2d::CCObject *v5; // rax
__int128 v7; // [rsp+50h] [rbp-28h] BYREF
__int64 v8; // [rsp+60h] [rbp-18h]
__int64 v9; // [rsp+68h] [rbp-10h]
v7 = 0;
v0 = sub_14003D460(0x1A0u);
*(_QWORD *)&v7 = v0;
v1 = v0;
v8 = 414;
v2 = "Global controls are used in every level.\n"
"Custom controls only apply to this level.\n"
"Keyboard, Touch and Controller are separate.\n"
"Only the ones you change are used.\n"
"Creator controls apply automatically unless disabled in Options.\n"
"Apply Creator Controls copies them to your custom controls.\n"
"Update fetches the latest.\n"
"Creators: select what to include and press Upload Selected.";
v9 = 415;
v3 = 3;
do
{
v1 += 16;
v4 = *(_OWORD *)v2;
v2 += 128;
*((_OWORD *)v1 - 8) = v4;
*((_OWORD *)v1 - 7) = *((_OWORD *)v2 - 7);
*((_OWORD *)v1 - 6) = *((_OWORD *)v2 - 6);
*((_OWORD *)v1 - 5) = *((_OWORD *)v2 - 5);
*((_OWORD *)v1 - 4) = *((_OWORD *)v2 - 4);
*((_OWORD *)v1 - 3) = *((_OWORD *)v2 - 3);
*((_OWORD *)v1 - 2) = *((_OWORD *)v2 - 2);
*((_OWORD *)v1 - 1) = *((_OWORD *)v2 - 1);
--v3;
}
while ( v3 );
*(_OWORD *)v1 = *(_OWORD *)v2;
v1[2] = *((_QWORD *)v2 + 2);
*((_DWORD *)v1 + 6) = *((_DWORD *)v2 + 6);
*((_WORD *)v1 + 14) = *((_WORD *)v2 + 14);
*((_BYTE *)v0 + 414) = 0;
v5 = FLAlertLayer::create(0, (int)"Controls", (__int64)&v7, (__int64)"OK", 0, 1137180672, 0, 0, 1061158912);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v5 + 1064LL))(v5);
}