// // cocos2d::CCAnimation::copyWithZone from 0x100296f40 to 0x100297071 (305 bytes) // // 1 xrefs: // > @ 0x1008f7808 // // 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 // cocos2d::CCObject *__fastcall cocos2d::CCAnimation::copyWithZone(cocos2d::CCAnimation *a1, cocos2d::CCZone *a2) { _QWORD *v3; // rbx _QWORD *v4; // r15 cocos2d::CCArray *m_pFrames; // rdi unsigned int m_uLoops; // eax cocos2d::CCObject *v7; // rax cocos2d::CCObject *v8; // rdi cocos2d::CCObject *v9; // r12 cocos2d::CCObject_vtbl *v10; // rax __int64 copyWithZone_low; // rcx unsigned __int64 v12; // rax unsigned __int64 v13; // rcx if ( a2 && (v3 = *(_QWORD **)a2) != nullptr ) { v4 = nullptr; } else { v3 = operator new(0x58u); cocos2d::CCObject::CCObject(v3); *v3 = off_1008F7808; 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); } m_pFrames = a1->m_pFrames; m_uLoops = a1->m_uLoops; *((_DWORD *)v3 + 15) = LODWORD(a1->m_fDelayPerUnit); *((_DWORD *)v3 + 21) = m_uLoops; v7 = (cocos2d::CCObject *)sub_10071FCE0(m_pFrames); v8 = (cocos2d::CCObject *)v3[9]; if ( v8 == v7 ) { v9 = (cocos2d::CCObject *)v3[9]; if ( !v8 ) goto LABEL_17; goto LABEL_13; } v9 = v7; if ( v7 ) { cocos2d::CCObject::retain(v7); v8 = (cocos2d::CCObject *)v3[9]; } if ( v8 ) cocos2d::CCObject::release(v8); v3[9] = v9; if ( v9 ) { LABEL_13: v10 = v9[1].__vftable; copyWithZone_low = LODWORD(v10->copyWithZone); if ( LODWORD(v10->copyWithZone) ) { v12 = (unsigned __int64)v10->~CCObject_0; v13 = v12 + 8 * copyWithZone_low - 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) = a1->m_bRestoreOriginalFrame; if ( v4 ) operator delete(v4); return (cocos2d::CCObject *)v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source