//
// sub_1004CDA94 from 0x1004cda94 to 0x1004cdaf0 (92 bytes)
//
// 2 xrefs:
// > sub_1004CD5C0 @ 0x1004cd624
// > sub_1004CDAF0 @ 0x1004cdb14
//
// 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:26 +0000
//
_DWORD *__fastcall sub_1004CDA94(__int64 a1)
{
__int64 v2; // x0
_DWORD *result; // x0
v2 = *(_QWORD *)(a1 + 1056);
if ( v2 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 536LL))(v2);
*(_QWORD *)(a1 + 1056) = 0;
}
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 568LL))(*(_QWORD *)(a1 + 584), 9999, 1);
result = *(_DWORD **)(a1 + 1104);
if ( result )
{
result = cocos2d::CCObject::release(result);
*(_QWORD *)(a1 + 1104) = 0;
}
return result;
}