//
// sub_10051E77C from 0x10051e77c to 0x10051e824 (168 bytes)
//
// 4 xrefs:
// > RateStarsModLayer::dRateStarsModLayer @ 0x10051e828
// > sub_10051E82C @ 0x10051e830
// > sub_10051E834 @ 0x10051e83c
// > sub_10051E848 @ 0x10051e854
//
// 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:10 +0000
//
__int64 __fastcall sub_10051E77C(_QWORD *a1)
{
_DWORD *v2; // x0
_DWORD *v3; // x0
*a1 = off_10099E378;
a1[40] = off_10099E8E0;
a1[41] = &off_10099E950;
a1[42] = off_10099E968;
a1[43] = off_10099E988;
a1[44] = off_10099E9B0;
a1[51] = off_10099E9E0;
a1[54] = off_10099EA60;
a1[68] = off_10099EA80;
a1[83] = &off_10099EAC8;
a1[84] = off_10099EAE0;
if ( *(_QWORD **)(GameLevelManager::sharedState() + 1360) == a1 + 84 )
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = 0;
v2 = (_DWORD *)a1[87];
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = (_DWORD *)a1[88];
if ( v3 )
cocos2d::CCObject::release(v3);
return sub_10034A834((__int64)a1);
}