//
// cocos2d::CCArray::initWithObjects from 0x7c9178 to 0x7c91c8 (80 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:28 +0000
//
int cocos2d::CCArray::initWithObjects(cocos2d::CCArray *this, cocos2d::CCObject *a2, ...)
{
cocos2d::CCArray *v4; // r0
cocos2d::CCObject *v5; // r1
cocos2d::CCObject *v6; // kr00_4
va_list v8; // [sp+0h] [bp-Ch]
va_list varg_r2; // [sp+20h] [bp+14h] BYREF
va_start(varg_r2, a2);
cocos2d::ccArrayFree((char *)this + 52);
if ( !a2 )
return 0;
v4 = this;
v5 = a2;
va_copy(v8, varg_r2);
while ( 1 )
{
cocos2d::CCArray::addObject(v4, v5);
v6 = va_arg(v8, cocos2d::CCObject *);
v5 = v6;
if ( !v6 )
break;
v4 = this;
}
return 1;
}