//
// sub_100747410 from 0x100747410 to 0x100747446 (54 bytes)
//
// 1 xrefs:
// > sub_1007FF1A0 @ 0x1007ff1a9
//
// 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:36:31 +0000
//
__int64 __fastcall sub_100747410(__int64 a1, unsigned int a2)
{
__int64 result; // rax
_DWORD *v4; // rdi
__int64 v5; // rcx
result = *(_QWORD *)(a1 + 16);
v4 = *(_DWORD **)(result + 8LL * a2);
if ( v4 )
{
cocos2d::CCObject::release(v4);
result = *(_QWORD *)(a1 + 16);
}
v5 = (unsigned int)(*(_DWORD *)a1 - 1);
*(_DWORD *)a1 = v5;
*(_QWORD *)(result + 8LL * a2) = *(_QWORD *)(result + 8 * v5);
return result;
}