//
// cocos2d::CCArray::createWithObject from 0x180006d90 to 0x180006e3a (170 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad960
//
// 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
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCArray *__fastcall cocos2d::CCArray::createWithObject(struct cocos2d::CCObject *a1)
{
cocos2d::CCObject *v2; // rax
cocos2d::CCObject *v3; // rdi
__int64 v4; // rax
v2 = (cocos2d::CCObject *)operator new(0x40u);
v3 = v2;
if ( v2 )
{
cocos2d::CCObject::CCObject(v2);
v3->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCArray::`vftable';
v3[1].__vftable = nullptr;
sub_18009DA50(&v3[1]);
v3[1].__vftable = (cocos2d::CCObject_vtbl *)sub_18009DC90(1u);
}
else
{
v3 = nullptr;
}
if ( v3 )
{
sub_18009DA50(&v3[1]);
sub_18009DA50(&v3[1]);
v4 = sub_18009DC90(1u);
v3[1].__vftable = (cocos2d::CCObject_vtbl *)v4;
sub_18009D610(v4, a1);
cocos2d::CCObject::autorelease(v3);
}
return (struct cocos2d::CCArray *)v3;
}