//
// sub_1008ED030 from 0x1008ed030 to 0x1008ed068 (56 bytes)
//
// 2 xrefs:
// > sub_1008F0AC0 @ 0x1008f0bca
// > sub_1008F6E60 @ 0x1008f6efc
//
// 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:37:54 +0000
//
__int64 __fastcall sub_1008ED030(__int64 a1)
{
__int64 result; // rax
void *v2; // rax
result = *(_QWORD *)(a1 + 144);
if ( !result )
{
v2 = sub_1007FE900();
*(_QWORD *)(a1 + 144) = v2;
cocos2d::CCObject::retain((__int64)v2);
return *(_QWORD *)(a1 + 144);
}
return result;
}