// // CreateParticlePopup::updateColorSprite from 0x100473950 to 0x100473a3b (235 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 __fastcall CreateParticlePopup::updateColorSprite(CreateParticlePopup *a1, int a2) { __int64 v2; // rax float *v3; // rax __m128 v4; // xmm0 cocos2d::CCSprite *m_endColorSprite; // rdi cocos2d::CCSprite_vtbl *v6; // rax char *v7; // rsi float *v8; // rax __m128 v9; // xmm0 _QWORD v10[2]; // [rsp+0h] [rbp-10h] BYREF v10[0] = v2; if ( a2 == 2 ) { v8 = (float *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getEndColor)(a1->m_particle); v9 = (__m128)*(unsigned __int64 *)v8; BYTE6(v10[0]) = (int)(float)(255.0 * v8[2]); WORD2(v10[0]) = ((unsigned __int8)(int)(float)(_mm_movehdup_ps(v9).f32[0] * 255.0) << 8) | (unsigned __int8)(int)(float)(v9.f32[0] * 255.0); m_endColorSprite = a1->m_endColorSprite; v6 = m_endColorSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v7 = (char *)v10 + 4; } else { if ( a2 != 1 ) return; v3 = (float *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getStartColor)(a1->m_particle); v4 = (__m128)*(unsigned __int64 *)v3; BYTE2(v10[0]) = (int)(float)(255.0 * v3[2]); LOWORD(v10[0]) = ((unsigned __int8)(int)(float)(_mm_movehdup_ps(v4).f32[0] * 255.0) << 8) | (unsigned __int8)(int)(float)(v4.f32[0] * 255.0); m_endColorSprite = a1->m_startColorSprite; v6 = m_endColorSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v7 = (char *)v10; } ((void (__fastcall *)(cocos2d::CCSprite *, char *))v6->setColor)(m_endColorSprite, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source