//
// sub_1004C5CF0 from 0x1004c5cf0 to 0x1004c5dc1 (209 bytes)
//
// 4 xrefs:
// > UILayer::dUILayer @ 0x1004c5dd5
// > sub_1004C5DE0 @ 0x1004c5dec
// > sub_1004C5E00 @ 0x1004c5e09
// > sub_1004C5E20 @ 0x1004c5e33
//
// 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 12:31:07 +0000
//
__int64 __fastcall sub_1004C5CF0(_QWORD *a1)
{
__int64 v2; // rax
_DWORD *v3; // rdi
_DWORD *v4; // rdi
_DWORD *v5; // rdi
*a1 = off_100B5BA20;
a1[40] = off_100B5BF58;
a1[41] = &off_100B5BFC8;
a1[42] = off_100B5BFE0;
a1[43] = off_100B5C000;
a1[44] = off_100B5C028;
a1[51] = off_100B5C058;
a1[54] = off_100B5C0D8;
a1[68] = off_100B5C0F8;
v2 = GJKeybindManager::sharedState(a1);
GJKeybindManager::clearMovementOverride(v2);
v3 = (_DWORD *)a1[77];
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = (_DWORD *)a1[79];
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = (_DWORD *)a1[80];
if ( v5 )
cocos2d::CCObject::release(v5);
return sub_1004AB790(a1);
}