//
// cocos2d::CCArray::initWithObjects from 0x180007160 to 0x1800071dc (124 bytes)
//
// 4 xrefs:
// > ??> @ 0x18013a478
// > ??> @ 0x18013a488
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b79cc
//
// 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:21:18 +0000
//
char cocos2d::CCArray::initWithObjects(cocos2d::CCArray *this, struct cocos2d::CCObject *a2, __int64 a3, ...)
{
_QWORD *v3; // rdi
__int64 v4; // rax
va_list v5; // rbx
va_list va; // [rsp+58h] [rbp+20h] BYREF
va_start(va, a3);
v3 = (_QWORD *)((char *)this + 56);
sub_1800A16E0((char *)this + 56);
if ( !a2 )
return 0;
sub_1800A12A0(*v3, a2);
v4 = a3;
va_copy(v5, va);
if ( a3 )
{
do
{
sub_1800A12A0(*v3, v4);
v4 = *(_QWORD *)v5;
v5 += 8;
}
while ( v4 );
}
return 1;
}