// // CCPartAnimSprite::tweenSpriteTo from 0x100374920 to 0x100374ab4 (404 bytes) // // 1 xrefs: // > CCPartAnimSprite::tweenToFrame @ 0x100375120 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall CCPartAnimSprite::tweenSpriteTo(CCPartAnimSprite *a1, SpriteDescription *a2, float a3) { __int64 v4; // rbx __m128 v5; // xmm5 __m128 v6; // rt1 __m128 v7; // xmm1 cocos2d::CCMoveTo *v8; // r12 cocos2d::CCScaleTo *v9; // r13 cocos2d::CCRotateTo *v10; // r14 cocos2d::CCSpriteFrame *m_texture; // rax std::string *p_m_strFrameName; // rax float v13; // [rsp+0h] [rbp-80h] float v14; // [rsp+10h] [rbp-70h] std::string v15; // [rsp+30h] [rbp-50h] BYREF float v16; // [rsp+54h] [rbp-2Ch] v16 = a3; v4 = sub_1007200C0(a1->m_spriteParts, (unsigned int)a2->m_tag); cocos2d::CCNode::stopAllActions((cocos2d::CCNode *)v4); v5 = _mm_cmpneq_ss((__m128)LODWORD(a2->m_flipped.x), (__m128)0LL); LODWORD(v13) = _mm_andnot_ps(v5, (__m128)LODWORD(a2->m_scale.x)).u32[0] | COERCE_UNSIGNED_INT(-a2->m_scale.x) & v5.i32[0]; v6.i32[0] = LODWORD(a2->m_flipped.y); v7 = _mm_cmpneq_ss((__m128)0LL, v6); LODWORD(v14) = _mm_andnot_ps(v7, (__m128)LODWORD(a2->m_scale.y)).u32[0] | COERCE_UNSIGNED_INT(-a2->m_scale.y) & v7.i32[0]; v8 = cocos2d::CCMoveTo::create(a3, &a2->m_position); v9 = cocos2d::CCScaleTo::create(a3, v13, v14); *(_QWORD *)&a3 = LODWORD(a3); v10 = cocos2d::CCRotateTo::create_1(a3, a2->m_rotation); cocos2d::CCNode::runAction((cocos2d::CCNode *)v4, v8); cocos2d::CCNode::runAction((cocos2d::CCNode *)v4, v9); cocos2d::CCNode::runAction((cocos2d::CCNode *)v4, v10); if ( a2->m_usesCustomTag ) { (*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v4 + 1144LL))(v4, a2->m_texture); m_texture = a2->m_texture; if ( (m_texture->m_strFrameName.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70( &v15, m_texture->m_strFrameName.m_data.m_long.longStorage, m_texture->m_strFrameName.m_data.m_long.size, COERCE_DOUBLE((unsigned __int64)LODWORD(a3))); } else { p_m_strFrameName = &m_texture->m_strFrameName; v15.__r_.__value_.__r.__words[2] = (std::string::size_type)p_m_strFrameName->m_data.m_long.longStorage; *(_OWORD *)&a3 = *(_OWORD *)&p_m_strFrameName->m_data.m_short.sizex2; *(_OWORD *)&v15.__r_.__value_.__l.0 = *(_OWORD *)&p_m_strFrameName->m_data.m_short.sizex2; } CCSpritePart::frameChanged((std::string *)v4, &v15, *(double *)&a3); if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v15.__r_.__value_.__l.__data_); } if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 104LL))(v4) != a2->m_zValue ) ((void (__fastcall *)(CCPartAnimSprite *, __int64))a1->reorderChild)(a1, v4); *(_BYTE *)(v4 + 619) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 328LL))(v4, 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source