// // cocos2d::CCPointArray::copyWithZone from 0xd27648 to 0xd27784 (316 bytes) // // 2 xrefs: // > @ 0x495d0 // > @ 0x15110d0 // // This function is hookable on this platform (idp: arm, 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 13:07:15 +0000 // cocos2d::CCPointArray *__fastcall cocos2d::CCPointArray::copyWithZone(cocos2d::CCPointArray *this, cocos2d::CCZone *a2) { _QWORD *v3; // x0 __int64 v4; // x20 __int64 v5; // x0 float **v6; // x19 cocos2d::CCPoint **v7; // x0 cocos2d::CCPoint *v8; // x21 cocos2d::CCPointArray *v9; // x19 float v11; // [xsp+40h] [xbp+40h] float v12; // [xsp+50h] [xbp+50h] cocos2d::CCPoint *v13; // [xsp+60h] [xbp+60h] BYREF v3 = (_QWORD *)operator new(0x18u); *v3 = 0; v3[1] = 0; v4 = (__int64)v3; v3[2] = 0; v5 = *((_QWORD *)this + 7); v6 = *(float ***)v5; if ( *(_QWORD *)v5 != *(_QWORD *)(v5 + 8) ) { do { while ( 1 ) { v11 = **v6; v12 = (*v6)[1]; v8 = (cocos2d::CCPoint *)operator new(8u); cocos2d::CCPoint::CCPoint(v8, v11, v12); v13 = v8; v7 = *(cocos2d::CCPoint ***)(v4 + 8); if ( (unsigned __int64)v7 < *(_QWORD *)(v4 + 16) ) break; ++v6; std::vector::__push_back_slow_path((void **)v4, &v13); if ( *(float ***)(*((_QWORD *)this + 7) + 8LL) == v6 ) goto LABEL_8; } if ( v7 ) { *v7 = v8; v7 = *(cocos2d::CCPoint ***)(v4 + 8); } *(_QWORD *)(v4 + 8) = v7 + 1; ++v6; } while ( *(float ***)(*((_QWORD *)this + 7) + 8LL) != v6 ); } LABEL_8: v9 = (cocos2d::CCPointArray *)operator new(0x40u); cocos2d::CCPointArray::CCPointArray(v9); cocos2d::CCPointArray::initWithCapacity(v9); cocos2d::CCPointArray::setControlPoints((__int64)v9, v4); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source