//
// sub_1004A884C from 0x1004a884c to 0x1004a88e8 (156 bytes)
//
// 4 xrefs:
// > RateDemonLayer::dRateDemonLayer @ 0x1004a88ec
// > sub_1004A88F0 @ 0x1004a88f4
// > sub_1004A88F8 @ 0x1004a8900
// > sub_1004A890C @ 0x1004a8918
//
// 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:06:06 +0000
//
__int64 __fastcall sub_1004A884C(_QWORD *a1)
{
_DWORD *v2; // x0
*a1 = off_10097F160;
a1[40] = off_10097F6C8;
a1[41] = &off_10097F738;
a1[42] = off_10097F750;
a1[43] = off_10097F770;
a1[44] = off_10097F798;
a1[51] = off_10097F7C8;
a1[54] = off_10097F848;
a1[68] = off_10097F868;
a1[83] = &off_10097F8B0;
a1[84] = off_10097F8C8;
if ( *(_QWORD **)(GameLevelManager::sharedState() + 1360) == a1 + 84 )
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = 0;
v2 = (_DWORD *)a1[87];
if ( v2 )
cocos2d::CCObject::release(v2);
return sub_10034A834((__int64)a1);
}