//
// sub_10051CB64 from 0x10051cb64 to 0x10051cc58 (244 bytes)
//
// 4 xrefs:
// > PlatformerControlsPopup::dPlatformerControlsPopup @ 0x10051cc5c
// > sub_10051CC60 @ 0x10051cc64
// > sub_10051CC68 @ 0x10051cc70
// > sub_10051CC7C @ 0x10051cc88
//
// 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
//
__int64 __fastcall sub_10051CB64(__int64 a1)
{
__int64 v2; // x8
_DWORD *v3; // x0
*(_QWORD *)a1 = off_10099DA48;
*(_QWORD *)(a1 + 320) = off_10099E060;
*(_QWORD *)(a1 + 328) = &off_10099E0D0;
*(_QWORD *)(a1 + 336) = off_10099E0E8;
*(_QWORD *)(a1 + 344) = off_10099E108;
*(_QWORD *)(a1 + 352) = off_10099E130;
*(_QWORD *)(a1 + 408) = off_10099E160;
*(_QWORD *)(a1 + 432) = off_10099E1E0;
*(_QWORD *)(a1 + 544) = off_10099E200;
*(_QWORD *)(a1 + 664) = &off_10099E248;
*(_QWORD *)(a1 + 672) = off_10099E260;
*(_QWORD *)(a1 + 1016) = off_10099E280;
*(_QWORD *)(a1 + 1024) = &off_10099E2A0;
*(_QWORD *)(a1 + 1032) = &off_10099E2B8;
*(_QWORD *)(a1 + 1040) = &off_10099E2D0;
if ( *(_QWORD *)(GameLevelManager::sharedState() + 712) == a1 + 1032 )
*(_QWORD *)(GameLevelManager::sharedState() + 712) = 0;
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1360) == a1 + 1016 )
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = 0;
v2 = *(_QWORD *)(a1 + 1192);
if ( v2 )
*(_QWORD *)(v2 + 664) = 0;
v3 = *(_DWORD **)(a1 + 1064);
if ( v3 )
cocos2d::CCObject::release(v3);
if ( *(char *)(a1 + 1095) < 0 )
operator delete(*(void **)(a1 + 1072));
return sub_1001ABB48(a1);
}