// // cocos2d::CCPointArray::copyWithZone from 0x180025970 to 0x180025a81 (273 bytes) // // 3 xrefs: // > @ 0x1800e7688 // > @ 0x1801438a8 // > @ 0x1801af328 // // 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::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 _QWORD *v11; // rbx _QWORD *v12; // rax void *v14; // [rsp+40h] [rbp+8h] BYREF float *v15; // [rsp+50h] [rbp+18h] v3 = (const void **)operator new(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 *)operator new(8u); v15 = v7; if ( v7 ) v8 = kmVec2Fill(v7, **v6, (*v6)[1]); else v8 = nullptr; v14 = v8; v9 = v4[1]; if ( v9 == v4[2] ) { sub_180015D80(v4, v9, &v14); } else { *(_QWORD *)v9 = v8; v4[1] = (char *)v4[1] + 8; } ++v6; } while ( v6 != *(float ***)(*((_QWORD *)this + 7) + 8LL) ); } v10 = (cocos2d::CCObject *)operator new(0x40u); v11 = &v10->__vftable; v14 = v10; if ( v10 ) { cocos2d::CCObject::CCObject(v10); *v11 = &cocos2d::CCPointArray::`vftable'; v11[7] = 0; } else { v11 = nullptr; } v12 = operator new(0x18u); if ( v12 ) { *v12 = 0; v12[1] = 0; v12[2] = 0; } else { v12 = nullptr; } v11[7] = v12; cocos2d::CCPointArray::setControlPoints(v11, v4); return (struct cocos2d::CCObject *)v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source