// // cocos2d::CCAnimation::initWithAnimationFrames from 0x18008cec0 to 0x18008cfdf (287 bytes) // // 5 xrefs: // > cocos2d::CCAnimation::copyWithZone @ 0x18008cb13 // > cocos2d::CCAnimation::create @ 0x18008cd0a // > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008e115 // > @ 0x18014cf68 // > @ 0x1801bfcdc // // 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 // char __fastcall cocos2d::CCAnimation::initWithAnimationFrames( cocos2d::CCAnimation *this, struct cocos2d::CCArray *a2, float a3, int a4) { struct cocos2d::CCDictionary *v5; // rdi struct cocos2d::CCDictionary *v6; // rax cocos2d::CCObject *v7; // rcx unsigned int *v8; // rcx __int64 v9; // rax _QWORD *v10; // rcx _QWORD *v11; // rdx float v12; // xmm0_4 __int64 v13; // rax float v14; // xmm0_4 __int64 v15; // rax float v16; // xmm0_4 __int64 v17; // rax __int64 v18; // rax *((float *)this + 15) = a3; *((_DWORD *)this + 21) = a4; v5 = cocos2d::CCDictionary::createWithDictionary(a2); v6 = *((struct cocos2d::CCDictionary **)this + 9); if ( v6 != v5 ) { if ( v5 ) cocos2d::CCObject::retain(v5); v7 = *((cocos2d::CCObject **)this + 9); if ( v7 ) cocos2d::CCObject::release(v7); *((_QWORD *)this + 9) = v5; v6 = v5; } if ( v6 ) { v8 = *((unsigned int **)v6 + 7); v9 = *v8; if ( (_DWORD)v9 ) { v10 = *((_QWORD **)v8 + 2); v11 = &v10[v9 - 1]; if ( v10 <= v11 ) { if ( ((8 * (v9 - 1) + 8) & 0xFFFFFFFFFFFFFFF8uLL) < 0x20 ) { do { LABEL_17: v18 = *v10; if ( !*v10 ) break; ++v10; *((float *)this + 14) = *(float *)(v18 + 64) + *((float *)this + 14); } while ( v10 <= v11 ); } else { while ( *v10 ) { v12 = *(float *)(*v10 + 64LL) + *((float *)this + 14); *((float *)this + 14) = v12; v13 = v10[1]; if ( !v13 ) break; v14 = v12 + *(float *)(v13 + 64); *((float *)this + 14) = v14; v15 = v10[2]; if ( !v15 ) break; v16 = v14 + *(float *)(v15 + 64); *((float *)this + 14) = v16; v17 = v10[3]; if ( !v17 ) break; v10 += 4; *((float *)this + 14) = v16 + *(float *)(v17 + 64); if ( v10 > v11 - 3 ) { if ( v10 > v11 ) return 1; goto LABEL_17; } } } } } } return 1; }