//
// sub_1007FF3D0 from 0x1007ff3d0 to 0x1007ff49f (207 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b3f880
// > ??> @ 0x100b9ddd0
//
// 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:36 +0000
//
void *__fastcall sub_1007FF3D0(__int64 a1)
{
void *v1; // rbx
int v2; // r12d
unsigned int *v3; // rax
__int64 (__fastcall ****v4)(_QWORD, _QWORD); // r12
unsigned __int64 v5; // r13
_DWORD *v6; // r15
v1 = operator new(0x40u);
cocos2d::CCObject::CCObject((__int64)v1);
*(_QWORD *)v1 = off_100B9DDD0;
*((_QWORD *)v1 + 7) = 0;
sub_1007467C0((void **)v1 + 7);
*((_QWORD *)v1 + 7) = sub_100746770(1);
v2 = (**(_DWORD **)(a1 + 56) == 0) + **(_DWORD **)(a1 + 56);
sub_1007467C0((void **)v1 + 7);
*((_QWORD *)v1 + 7) = sub_100746770(v2);
v3 = *(unsigned int **)(a1 + 56);
if ( *v3 )
{
v4 = *((__int64 (__fastcall *****)(_QWORD, _QWORD))v3 + 2);
v5 = (unsigned __int64)&v4[*v3 - 1];
do
{
if ( !*v4 )
break;
v6 = (_DWORD *)sub_1004800C0(*v4);
sub_100746BF0(*((unsigned int **)v1 + 7), (__int64)v6);
cocos2d::CCObject::release(v6);
++v4;
}
while ( (unsigned __int64)v4 <= v5 );
}
return v1;
}