//
// sub_140490BB0 from 0x140490bb0 to 0x140490c17 (103 bytes)
//
// 2 xrefs:
// > SFXSearchResult::updateObjects @ 0x14049b111
// > ??> @ 0x140928e68
//
// 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 11:32:50 +0000
//
__int64 __fastcall sub_140490BB0(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rcx
cocos2d::CCArray *v4; // rdi
__int64 v5; // rcx
__int64 i; // rbx
struct cocos2d::CCObject *v7; // rdx
result = cocos2d::CCArray::create(a1);
v3 = *(_QWORD *)(a1 + 408);
v4 = (cocos2d::CCArray *)result;
if ( v3 )
{
v5 = *(_QWORD *)(v3 + 56);
if ( v5 )
{
for ( i = *(_QWORD *)(v5 + 288); ; i = *(_QWORD *)(i + 288) )
{
v7 = *(struct cocos2d::CCObject **)(v5 + 264);
if ( !*((_BYTE *)v7 + 72) )
cocos2d::CCArray::addObject(v4, v7);
v5 = i;
if ( !i )
break;
}
return (__int64)v4;
}
}
return result;
}