// // cocos2d::CCArray::copyWithZone from 0x180006a10 to 0x180006af3 (227 bytes) // // 3 xrefs: // > @ 0x1800ec310 // > @ 0x18014cf68 // > @ 0x1801b7930 // // 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 // // Hidden C++ exception states: #wind=2 struct cocos2d::CCObject *__fastcall cocos2d::CCArray::copyWithZone(cocos2d::CCArray *this, struct cocos2d::CCZone *a2) { cocos2d::CCObject *v3; // rax cocos2d::CCObject *v4; // rsi unsigned int v5; // edi unsigned int *v6; // rbx __int64 v7; // rax cocos2d::CCObject **v8; // rbx cocos2d::CCObject **i; // rbp cocos2d::CCObject *v10; // rdi v3 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u); v4 = v3; v5 = 1; if ( v3 ) { cocos2d::CCObject::CCObject(v3); *(_QWORD *)v4 = &cocos2d::CCArray::`vftable'; *((_QWORD *)v4 + 7) = 0; sub_1800A16E0((char *)v4 + 56); *((_QWORD *)v4 + 7) = sub_1800A1920(1u); } else { v4 = nullptr; } if ( **((_DWORD **)this + 7) ) v5 = **((_DWORD **)this + 7); sub_1800A16E0((char *)v4 + 56); *((_QWORD *)v4 + 7) = sub_1800A1920(v5); v6 = *((unsigned int **)this + 7); v7 = *v6; if ( (_DWORD)v7 ) { v8 = *((cocos2d::CCObject ***)v6 + 2); for ( i = &v8[v7 - 1]; v8 <= i; ++v8 ) { if ( !*v8 ) break; v10 = cocos2d::CCObject::copy(*v8); sub_1800A12A0(*((_QWORD *)v4 + 7), v10); cocos2d::CCObject::release(v10); } } return v4; }