// // cocos2d::CCAnimation::copyWithZone from 0x1002815d0 to 0x100281701 (305 bytes) // // 1 xrefs: // > @ 0x100afe1f8 // // 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 12:27:43 +0000 // _QWORD *__fastcall cocos2d::CCAnimation::copyWithZone(__int64 a1, void **a2) { _QWORD *v3; // rbx _QWORD *v4; // r15 __int64 v5; // rdi int v6; // eax __int64 v7; // rax __int64 v8; // rdi __int64 v9; // r12 unsigned int *v10; // rax __int64 v11; // rcx unsigned __int64 v12; // rax unsigned __int64 v13; // rcx if ( a2 && (v3 = *a2) != nullptr ) { v4 = nullptr; } else { v3 = operator new(0x58u); cocos2d::CCObject::CCObject(v3); *v3 = off_100AFE1F8; v3[7] = 0; *((_DWORD *)v3 + 16) = 0; v3[9] = 0; *((_BYTE *)v3 + 80) = 0; *((_DWORD *)v3 + 21) = 0; v4 = operator new(8u); cocos2d::CCZone::CCZone(v4, (__int64)v3); } v5 = *(_QWORD *)(a1 + 72); v6 = *(_DWORD *)(a1 + 84); *((_DWORD *)v3 + 15) = *(_DWORD *)(a1 + 60); *((_DWORD *)v3 + 21) = v6; v7 = sub_1007FEC00(v5); v8 = v3[9]; if ( v8 == v7 ) { v9 = v3[9]; if ( !v8 ) goto LABEL_17; goto LABEL_13; } v9 = v7; if ( v7 ) { cocos2d::CCObject::retain(v7); v8 = v3[9]; } if ( v8 ) cocos2d::CCObject::release(v8); v3[9] = v9; if ( v9 ) { LABEL_13: v10 = *(unsigned int **)(v9 + 56); v11 = *v10; if ( *v10 ) { v12 = *((_QWORD *)v10 + 2); v13 = v12 + 8 * v11 - 8; do { if ( !*(_QWORD *)v12 ) break; *((float *)v3 + 14) = *(float *)(*(_QWORD *)v12 + 64LL) + *((float *)v3 + 14); v12 += 8LL; } while ( v12 <= v13 ); } } LABEL_17: *((_BYTE *)v3 + 80) = *(_BYTE *)(a1 + 80); if ( v4 ) operator delete(v4); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source