//
// sub_140343A30 from 0x140343a30 to 0x140343a97 (103 bytes)
//
// 2 xrefs:
// > SFXSearchResult::updateObjects @ 0x140347f15
// > ??> @ 0x1406d5834
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_140343A30(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rcx
cocos2d::CCArray *v4; // rdi
__int64 v5; // rcx
__int64 i; // rbx
__int64 v7; // rdx
result = cocos2d::CCArray::create(a1);
v3 = *(_QWORD *)(a1 + 400);
v4 = (cocos2d::CCArray *)result;
if ( v3 )
{
v5 = *(_QWORD *)(v3 + 56);
if ( v5 )
{
for ( i = *(_QWORD *)(v5 + 288); ; i = *(_QWORD *)(i + 288) )
{
v7 = *(_QWORD *)(v5 + 264);
if ( !*(_BYTE *)(v7 + 72) )
cocos2d::CCArray::addObject(v4, (struct cocos2d::CCObject *)v7);
v5 = i;
if ( !i )
break;
}
return (__int64)v4;
}
}
return result;
}