//
// cocos2d::CCArray::initWithObjects from 0x180007010 to 0x18000708c (124 bytes)
//
// 4 xrefs:
// > ??> @ 0x180131610
// > ??> @ 0x180131620
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad9a8
//
// 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
//
char cocos2d::CCArray::initWithObjects(cocos2d::CCArray *this, struct cocos2d::CCObject *a2, __int64 a3, ...)
{
cocos2d::ccArray **p_data; // rdi
__int64 v4; // rax
va_list v5; // rbx
va_list va; // [rsp+58h] [rbp+20h] BYREF
va_start(va, a3);
p_data = &this->data;
sub_18009DA50(&this->data);
if ( !a2 )
return 0;
sub_18009D610(*p_data, a2);
v4 = a3;
va_copy(v5, va);
if ( a3 )
{
do
{
sub_18009D610(*p_data, v4);
v4 = *(_QWORD *)v5;
v5 += 8;
}
while ( v4 );
}
return 1;
}