// // cocos2d::CCRepeat::update from 0x5b6e94 to 0x5b6f9a (262 bytes) // // 0 xrefs: // // 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 // void cocos2d::CCRepeat::update(cocos2d::CCRepeat *a1, float a2) { int m_nLuaID; // s15 unsigned int v5; // r0 cocos2d::CCRepeat_vtbl *m_uID; // r3 unsigned int v7; // r0 int v8; // r3 unsigned int m_uReference; // r5 void (__fastcall *v10)(unsigned int, _DWORD); // r6 float v11; // r1 if ( a2 < *(float *)&a1[1].m_nLuaID ) { m_uReference = a1[1].m_uReference; v10 = *(void (__fastcall **)(unsigned int, _DWORD))(*(_DWORD *)m_uReference + 20); v11 = fmodf(a2 * (float)(unsigned int)a1[1].__vftable, 1.0); v10(m_uReference, LODWORD(v11)); } else { while ( 1 ) { m_nLuaID = a1[1].m_nLuaID; if ( a2 <= *(float *)&m_nLuaID ) break; if ( (cocos2d::CCRepeat_vtbl *)a1[1].m_uID >= a1[1].__vftable ) goto LABEL_8; (*(void (__fastcall **)(unsigned int, int))(*(_DWORD *)a1[1].m_uReference + 20))(a1[1].m_uReference, 1065353216); v5 = a1[1].m_uReference; ++a1[1].m_uID; (*(void (__fastcall **)(unsigned int))(*(_DWORD *)v5 + 48))(v5); (*(void (__fastcall **)(unsigned int, cocos2d::CCNode *))(*(_DWORD *)a1[1].m_uReference + 44))( a1[1].m_uReference, a1->m_pTarget); *(float *)&a1[1].m_nLuaID = *(float *)&a1[1].m_nLuaID + (float)(*(float *)(a1[1].m_uReference + 68) / a1->m_fDuration); } if ( a2 >= 1.0 ) { m_uID = (cocos2d::CCRepeat_vtbl *)a1[1].m_uID; if ( m_uID < a1[1].__vftable ) a1[1].m_uID = (unsigned int)&m_uID->copyWithZone + 1; } LABEL_8: if ( !LOBYTE(a1[1].cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag) ) { v7 = a1[1].m_uReference; v8 = *(_DWORD *)v7; if ( (cocos2d::CCRepeat_vtbl *)a1[1].m_uID == a1[1].__vftable ) { (*(void (**)(void))(v8 + 20))(); (*(void (__fastcall **)(unsigned int))(*(_DWORD *)a1[1].m_uReference + 48))(a1[1].m_uReference); } else { (*(void (__fastcall **)(unsigned int, _DWORD))(v8 + 20))( v7, a2 - (float)(*(float *)&m_nLuaID - (float)(*(float *)(v7 + 68) / a1->m_fDuration))); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source