// // cocos2d::CCAnimation::initWithSpriteFrames from 0x18008d070 to 0x18008d1dc (364 bytes) // // 3 xrefs: // > cocos2d::CCAnimation::createWithSpriteFrames @ 0x18008ce2f // > @ 0x18014cf68 // > @ 0x1801bfcf4 // // 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:22:06 +0000 // // Hidden C++ exception states: #wind=1 char __fastcall cocos2d::CCAnimation::initWithSpriteFrames( cocos2d::CCAnimation *this, struct cocos2d::CCArray *a2, float a3) { struct cocos2d::CCArray *v5; // rax struct cocos2d::CCArray *v6; // rbx cocos2d::CCObject *v7; // rcx unsigned int *v8; // rsi __int64 v9; // rax cocos2d::CCObject **v10; // rsi cocos2d::CCObject **i; // r14 cocos2d::CCObject *v12; // rdi cocos2d::CCObject *v13; // rax cocos2d::CCObject *v14; // rbx cocos2d::CCObject *v15; // rcx cocos2d::CCObject *v16; // rcx *((_DWORD *)this + 21) = 1; *((float *)this + 15) = a3; v5 = cocos2d::CCArray::create(); v6 = v5; if ( *((struct cocos2d::CCArray **)this + 9) != v5 ) { if ( v5 ) cocos2d::CCObject::retain(v5); v7 = *((cocos2d::CCObject **)this + 9); if ( v7 ) cocos2d::CCObject::release(v7); *((_QWORD *)this + 9) = v6; } if ( a2 ) { v8 = *((unsigned int **)a2 + 7); v9 = *v8; if ( (_DWORD)v9 ) { v10 = *((cocos2d::CCObject ***)v8 + 2); for ( i = &v10[v9 - 1]; v10 <= i; ++v10 ) { v12 = *v10; if ( !*v10 ) break; v13 = (cocos2d::CCObject *)sub_1800E4AC0(0x50u); v14 = v13; if ( v13 ) { cocos2d::CCObject::CCObject(v13); *(_QWORD *)v14 = &cocos2d::CCAnimationFrame::`vftable'; *((_QWORD *)v14 + 7) = 0; *((_DWORD *)v14 + 16) = 0; *((_QWORD *)v14 + 9) = 0; *((_DWORD *)v14 + 7) = 14; } else { v14 = nullptr; } if ( *((cocos2d::CCObject **)v14 + 7) != v12 ) { cocos2d::CCObject::retain(v12); v15 = *((cocos2d::CCObject **)v14 + 7); if ( v15 ) cocos2d::CCObject::release(v15); *((_QWORD *)v14 + 7) = v12; } *((_DWORD *)v14 + 16) = 1065353216; v16 = *((cocos2d::CCObject **)v14 + 9); if ( v16 ) { cocos2d::CCObject::release(v16); *((_QWORD *)v14 + 9) = 0; } cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 9), v14); cocos2d::CCObject::release(v14); *((float *)this + 14) = *((float *)this + 14) + 1.0; } } } return 1; }