// // cocos2d::CCPointArray::copyWithZone from 0x180026070 to 0x180026181 (273 bytes) // // 3 xrefs: // > @ 0x1800ed6e8 // > @ 0x18014cf68 // > @ 0x1801b943c // // 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:30 +0000 // // Hidden C++ exception states: #wind=2 struct cocos2d::CCObject *__fastcall cocos2d::CCPointArray::copyWithZone( cocos2d::CCPointArray *this, struct cocos2d::CCZone *a2) { const void **v3; // rax const void **v4; // rdi __int64 v5; // rax float **v6; // rbx float *v7; // rax float *v8; // rax _BYTE *v9; // rdx cocos2d::CCObject *v10; // rax cocos2d::CCObject *v11; // rbx _QWORD *v12; // rax void *v14; // [rsp+40h] [rbp+8h] BYREF float *v15; // [rsp+50h] [rbp+18h] v3 = (const void **)sub_1800E4AC0(0x18u); v4 = v3; if ( v3 ) { *v3 = nullptr; v3[1] = nullptr; v3[2] = nullptr; } else { v4 = nullptr; } v5 = *((_QWORD *)this + 7); v6 = *(float ***)v5; if ( *(_QWORD *)v5 != *(_QWORD *)(v5 + 8) ) { do { v7 = (float *)sub_1800E4AC0(8u); v15 = v7; if ( v7 ) v8 = kmVec2Fill(v7, **v6, (*v6)[1]); else v8 = nullptr; v14 = v8; v9 = v4[1]; if ( v9 == v4[2] ) { sub_180025630(v4, v9, &v14); } else { *(_QWORD *)v9 = v8; v4[1] = (char *)v4[1] + 8; } ++v6; } while ( v6 != *(float ***)(*((_QWORD *)this + 7) + 8LL) ); } v10 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u); v11 = v10; v14 = v10; if ( v10 ) { cocos2d::CCObject::CCObject(v10); *(_QWORD *)v11 = &cocos2d::CCPointArray::`vftable'; *((_QWORD *)v11 + 7) = 0; } else { v11 = nullptr; } v12 = (_QWORD *)sub_1800E4AC0(0x18u); if ( v12 ) { *v12 = 0; v12[1] = 0; v12[2] = 0; } else { v12 = nullptr; } *((_QWORD *)v11 + 7) = v12; cocos2d::CCPointArray::setControlPoints(v11, v4); return v11; }