//
// sub_100457360 from 0x100457360 to 0x1004573ec (140 bytes)
//
// 4 xrefs:
// > LeaderboardsLayer::dLeaderboardsLayer @ 0x1004573f0
// > sub_1004573F4 @ 0x1004573f8
// > sub_1004573FC @ 0x100457404
// > sub_100457410 @ 0x10045741c
//
// 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:05:24 +0000
//
__int64 __fastcall sub_100457360(_QWORD *a1)
{
_DWORD *v2; // x0
_DWORD *v3; // x0
*a1 = off_100966FE0;
a1[40] = off_100967498;
a1[41] = &off_100967508;
a1[42] = off_100967520;
a1[43] = &off_100967540;
a1[44] = off_100967568;
a1[51] = off_100967598;
a1[52] = &off_1009675C8;
if ( *(_QWORD **)(GameLevelManager::sharedState() + 1296) == a1 + 51 )
*(_QWORD *)(GameLevelManager::sharedState() + 1296) = 0;
v2 = (_DWORD *)a1[62];
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = (_DWORD *)a1[63];
if ( v3 )
cocos2d::CCObject::release(v3);
return cocos2d::CCLayer::dCCLayer(a1);
}