// // cocos2d::CCAnimation::initWithAnimationFrames from 0x180089ea0 to 0x180089fbf (287 bytes) // // 5 xrefs: // > cocos2d::CCAnimation::copyWithZone @ 0x180089af3 // > cocos2d::CCAnimation::create @ 0x180089cea // > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008b029 // > @ 0x1801438a8 // > @ 0x1801b5a0c // // 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 // char __fastcall cocos2d::CCAnimation::initWithAnimationFrames( cocos2d::CCAnimation *this, struct cocos2d::CCDictionary *a2, float a3, unsigned int a4) { cocos2d::CCArray *v5; // rdi cocos2d::CCArray *m_pFrames; // rax cocos2d::CCArray *v7; // rcx cocos2d::ccArray *data; // rcx __int64 num; // rax cocos2d::CCObject **arr; // rcx cocos2d::CCObject **v11; // rdx float v12; // xmm0_4 cocos2d::CCObject *v13; // rax float v14; // xmm0_4 cocos2d::CCObject *v15; // rax float v16; // xmm0_4 cocos2d::CCObject *v17; // rax cocos2d::CCObject *v18; // rax this->m_fDelayPerUnit = a3; this->m_uLoops = a4; v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::createWithDictionary(a2); m_pFrames = this->m_pFrames; if ( m_pFrames != v5 ) { if ( v5 ) cocos2d::CCObject::retain(v5); v7 = this->m_pFrames; if ( v7 ) cocos2d::CCObject::release(v7); this->m_pFrames = v5; m_pFrames = v5; } if ( m_pFrames ) { data = m_pFrames->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; v11 = &arr[num - 1]; if ( arr <= v11 ) { if ( ((8 * (num - 1) + 8) & 0xFFFFFFFFFFFFFFF8uLL) < 0x20 ) { do { LABEL_17: v18 = *arr; if ( !*arr ) break; ++arr; this->m_fTotalDelayUnits = *(float *)&v18[1].m_uID + this->m_fTotalDelayUnits; } while ( arr <= v11 ); } else { while ( *arr ) { v12 = *(float *)&(*arr)[1].m_uID + this->m_fTotalDelayUnits; this->m_fTotalDelayUnits = v12; v13 = arr[1]; if ( !v13 ) break; v14 = v12 + *(float *)&v13[1].m_uID; this->m_fTotalDelayUnits = v14; v15 = arr[2]; if ( !v15 ) break; v16 = v14 + *(float *)&v15[1].m_uID; this->m_fTotalDelayUnits = v16; v17 = arr[3]; if ( !v17 ) break; arr += 4; this->m_fTotalDelayUnits = v16 + *(float *)&v17[1].m_uID; if ( arr > v11 - 3 ) { if ( arr > v11 ) return 1; goto LABEL_17; } } } } } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source