//
// sub_1002E7778 from 0x1002e7778 to 0x1002e781c (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x100925c08
//
// 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:02:51 +0000
//
_QWORD *__fastcall sub_1002E7778(__int64 a1)
{
_QWORD *v2; // x19
unsigned int v3; // w8
__int64 v4; // x21
unsigned int *v5; // x9
__int64 v6; // x8
__int64 (__fastcall ****v7)(_QWORD, _QWORD); // x21
unsigned __int64 v8; // x22
_DWORD *v9; // x20
v2 = operator new(0x40u);
sub_1002E72A4((__int64)v2);
v3 = **(_DWORD **)(a1 + 56);
if ( v3 <= 1 )
v4 = 1;
else
v4 = v3;
sub_1003F2DF4(v2 + 7);
v2[7] = sub_1003F2DA8(v4);
v5 = *(unsigned int **)(a1 + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((__int64 (__fastcall *****)(_QWORD, _QWORD))v5 + 2);
v8 = (unsigned __int64)&v7[v6 - 1];
do
{
if ( !*v7 )
break;
v9 = (_DWORD *)sub_10008EA20(*v7);
sub_1003F3020(v2[7]);
cocos2d::CCObject::release(v9);
++v7;
}
while ( (unsigned __int64)v7 <= v8 );
}
return v2;
}