//
// CreateParticlePopup::updateParticleValueForType from 0x100475500 to 0x10047607e (2942 bytes)
//
// 35 xrefs:
// > CreateParticlePopup::onPosType @ 0x1004737c7
// > CreateParticlePopup::onEmitterMode @ 0x100473894
// > CreateParticlePopup::onDuplicateColor @ 0x100473a67
// > CreateParticlePopup::onDuplicateColor @ 0x100473a8b
// > CreateParticlePopup::onDuplicateColor @ 0x100473aaf
// > CreateParticlePopup::onToggleBlending @ 0x100474512
// > CreateParticlePopup::onToggleStartSizeEqualToEnd @ 0x100474543
// > CreateParticlePopup::onToggleStartSpinEqualToEnd @ 0x100474573
// > CreateParticlePopup::onToggleStartRadiusEqualToEnd @ 0x1004745a3
// > CreateParticlePopup::onToggleStartRotationIsDir @ 0x1004745e2
// > CreateParticlePopup::onDynamicRotation @ 0x100474613
// > CreateParticlePopup::onUniformColor @ 0x1004748fb
// > CreateParticlePopup::onOrderSensitive @ 0x1004749d3
// > CreateParticlePopup::onStartRGBVarSync @ 0x100474a03
// > CreateParticlePopup::onEndRGBVarSync @ 0x100474a33
// > CreateParticlePopup::onSelectParticleTexture @ 0x100474af0
// > CreateParticlePopup::sliderChanged @ 0x100475288
// > CreateParticlePopup::onDurationForever @ 0x1004753c8
// > CreateParticlePopup::onMaxEmission @ 0x100475418
// > CreateParticlePopup::onCalcEmission @ 0x1004754c3
// > CreateParticlePopup::updateParticleValueForType @ 0x100475fec
// > CreateParticlePopup::colorSelectClosed @ 0x10047630e
// > CreateParticlePopup::colorSelectClosed @ 0x100476322
// > CreateParticlePopup::colorSelectClosed @ 0x100476336
// > CreateParticlePopup::colorSelectClosed @ 0x10047642b
// > CreateParticlePopup::colorSelectClosed @ 0x10047643f
// > CreateParticlePopup::colorSelectClosed @ 0x100476453
// > CreateParticlePopup::textChanged @ 0x1004767e6
// > CreateParticlePopup::ccTouchMoved @ 0x100477369
// > CreateParticlePopup::ccTouchMoved @ 0x100477384
// > CreateParticlePopup::ccTouchMoved @ 0x100477411
// > CreateParticlePopup::ccTouchMoved @ 0x100477425
// > CreateParticlePopup::ccTouchMoved @ 0x1004774be
// > CreateParticlePopup::ccTouchMoved @ 0x10047754e
// > CreateParticlePopup::ccTouchMoved @ 0x1004775ad
//
// 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 CreateParticlePopup::updateParticleValueForType(
CreateParticlePopup *a1,
float a2,
gjParticleValue a3,
cocos2d::CCParticleSystemQuad *a4)
{
cocos2d::CCParticleSystemQuad *m_particle; // r12
__int64 v7; // rax
cocos2d::CCParticleSystemQuad_vtbl *v8; // rcx
__m128 v9; // xmm0
__m128 v10; // xmm1
__m128 v11; // xmm0
__m128 v12; // xmm1
__m128 v13; // xmm0
__m128 v14; // xmm1
__m128 v15; // xmm0
__int64 v16; // rax
cocos2d::CCParticleSystemQuad_vtbl *v17; // rcx
__int64 v18; // rax
cocos2d::CCParticleSystemQuad_vtbl *v19; // rcx
float v20; // xmm1_4
__int64 v21; // rax
cocos2d::CCParticleSystemQuad_vtbl *v22; // rcx
__m128 v23; // xmm0
float v24; // xmm1_4
__int64 v25; // rax
cocos2d::CCParticleSystemQuad_vtbl *v26; // rcx
__int64 v27; // rax
cocos2d::CCParticleSystemQuad_vtbl *v28; // rcx
__m128 v29; // xmm0
__int64 v30; // rax
cocos2d::CCParticleSystemQuad_vtbl *v31; // rcx
__m128 v32; // xmm0
__int64 v33; // rax
cocos2d::CCParticleSystemQuad_vtbl *v34; // rcx
__int64 v35; // rax
cocos2d::CCParticleSystemQuad_vtbl *v36; // rcx
__m128 v37; // xmm1
__m128 v38; // xmm0
__int64 v39; // rax
cocos2d::CCParticleSystemQuad_vtbl *v40; // rcx
__int64 v41; // rax
cocos2d::CCParticleSystemQuad_vtbl *v42; // rcx
__int64 v43; // rax
cocos2d::CCParticleSystemQuad_vtbl *v44; // rcx
unsigned int v45; // eax
int v46; // ecx
__int64 v47; // r13
cocos2d::CCArray *m_particles; // rdi
unsigned int v49; // r15d
cocos2d::CCParticleSystemQuad *v50; // rax
__m128 v51; // [rsp+0h] [rbp-70h]
__m128 v52; // [rsp+0h] [rbp-70h]
__m128 v53; // [rsp+0h] [rbp-70h]
__m128 v54; // [rsp+0h] [rbp-70h]
__m128 v55; // [rsp+0h] [rbp-70h]
__m128 v56; // [rsp+0h] [rbp-70h]
__m128 v57; // [rsp+0h] [rbp-70h]
__m128 v58; // [rsp+0h] [rbp-70h]
float v59; // [rsp+10h] [rbp-60h]
__m128 v60; // [rsp+20h] [rbp-50h] BYREF
__m128 inserted; // [rsp+30h] [rbp-40h]
m_particle = a4;
if ( !a4 )
m_particle = a1->m_particle;
v59 = a2;
switch ( a3 )
{
case MaxParticles:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))m_particle->setTotalParticles)(
m_particle,
(unsigned int)(int)a2);
goto LABEL_84;
case Duration:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setDuration)(m_particle);
goto LABEL_84;
case Lifetime:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setLife)(m_particle);
goto LABEL_84;
case LifetimeVar:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setLifeVar)(m_particle);
goto LABEL_84;
case Emission:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setEmissionRate)(m_particle);
goto LABEL_84;
case Angle:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, double))m_particle->setAngle)(
m_particle,
COERCE_DOUBLE(*(_QWORD *)&a2 ^ 0x8000000080000000LL));
goto LABEL_84;
case AngleVar:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setAngleVar)(m_particle);
goto LABEL_84;
case Speed:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setSpeed)(m_particle);
goto LABEL_84;
case SpeedVar:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setSpeedVar)(m_particle);
goto LABEL_84;
case PosVarX:
v24 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getPosVar)(m_particle) + 4);
goto LABEL_59;
case PosVarY:
a2 = *(float *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getPosVar)(m_particle);
v24 = v59;
LABEL_59:
sub_10028CBE0(v60.f32, a2, v24);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __m128 *))m_particle->setPosVar)(m_particle, &v60);
goto LABEL_84;
case GravityX:
v20 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getGravity)(m_particle) + 4);
goto LABEL_35;
case GravityY:
a2 = *(float *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getGravity)(m_particle);
v20 = v59;
LABEL_35:
sub_10028CBE0(v60.f32, a2, v20);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __m128 *))m_particle->setGravity)(m_particle, &v60);
goto LABEL_84;
case AccelRad:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setRadialAccel)(m_particle);
goto LABEL_84;
case AccelRadVar:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setRadialAccelVar)(m_particle);
goto LABEL_84;
case AccelTan:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setTangentialAccel)(m_particle);
goto LABEL_84;
case AccelTanVar:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setTangentialAccelVar)(m_particle);
goto LABEL_84;
case StartSize:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setStartSize)(m_particle);
goto LABEL_84;
case StartSizeVar:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setStartSizeVar)(m_particle);
goto LABEL_84;
case EndSize:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setEndSize)(m_particle);
goto LABEL_84;
case EndSizeVar:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setEndSizeVar)(m_particle);
goto LABEL_84;
case StartSpin:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setStartSpin)(m_particle);
goto LABEL_84;
case StartSpinVar:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setStartSpinVar)(m_particle);
goto LABEL_84;
case EndSpin:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setEndSpin)(m_particle);
goto LABEL_84;
case EndSpinVar:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setEndSpinVar)(m_particle);
goto LABEL_84;
case StartR:
v25 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColor)(m_particle);
v26 = m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
inserted = _mm_insert_ps(*(__m128 *)&a2, (__m128)*(unsigned int *)(v25 + 4), 16);
v56 = (__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v26->getStartColor)(m_particle)
+ 8);
v14 = _mm_insert_ps(
v56,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColor)(m_particle)
+ 12),
16);
v15 = inserted;
goto LABEL_38;
case StartRVar:
v43 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColorVar)(m_particle);
v44 = m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
inserted = _mm_insert_ps(*(__m128 *)&a2, (__m128)*(unsigned int *)(v43 + 4), 16);
v58 = (__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v44->getStartColorVar)(m_particle)
+ 8);
v37 = _mm_insert_ps(
v58,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColorVar)(m_particle)
+ 12),
16);
v38 = inserted;
goto LABEL_82;
case StartG:
inserted = *(__m128 *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColor)(m_particle);
v53 = (__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColor)(m_particle)
+ 8);
v14 = _mm_insert_ps(
v53,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColor)(m_particle)
+ 12),
16);
v15 = _mm_insert_ps(inserted, (__m128)LODWORD(a2), 16);
LABEL_38:
v60 = _mm_movelh_ps(v15, v14);
goto LABEL_77;
case StartGVar:
inserted = *(__m128 *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColorVar)(m_particle);
v57 = (__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColorVar)(m_particle)
+ 8);
v37 = _mm_insert_ps(
v57,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColorVar)(m_particle)
+ 12),
16);
v38 = _mm_insert_ps(inserted, (__m128)LODWORD(a2), 16);
LABEL_82:
v60 = _mm_movelh_ps(v38, v37);
goto LABEL_83;
case StartB:
inserted = *(__m128 *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColor)(m_particle);
v39 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColor)(m_particle);
v40 = m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
inserted = _mm_insert_ps(inserted, (__m128)*(unsigned int *)(v39 + 4), 16);
v29 = _mm_insert_ps(
*(__m128 *)&a2,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v40->getStartColor)(m_particle)
+ 12),
16);
goto LABEL_76;
case StartBVar:
inserted = *(__m128 *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColorVar)(m_particle);
v30 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColorVar)(m_particle);
v31 = m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
inserted = _mm_insert_ps(inserted, (__m128)*(unsigned int *)(v30 + 4), 16);
v32 = _mm_insert_ps(
*(__m128 *)&a2,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v31->getStartColorVar)(m_particle)
+ 12),
16);
goto LABEL_63;
case StartA:
inserted = *(__m128 *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColor)(m_particle);
v27 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColor)(m_particle);
v28 = m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
inserted = _mm_insert_ps(inserted, (__m128)*(unsigned int *)(v27 + 4), 16);
v29 = _mm_insert_ps(
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v28->getStartColor)(m_particle)
+ 8),
(__m128)LODWORD(a2),
16);
LABEL_76:
v60 = _mm_movelh_ps(inserted, v29);
LABEL_77:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __m128 *))m_particle->setStartColor)(m_particle, &v60);
goto LABEL_84;
case StartAVar:
inserted = *(__m128 *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColorVar)(m_particle);
v33 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getStartColorVar)(m_particle);
v34 = m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
inserted = _mm_insert_ps(inserted, (__m128)*(unsigned int *)(v33 + 4), 16);
v32 = _mm_insert_ps(
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v34->getStartColorVar)(m_particle)
+ 8),
(__m128)LODWORD(a2),
16);
LABEL_63:
v60 = _mm_movelh_ps(inserted, v32);
LABEL_83:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __m128 *))m_particle->setStartColorVar)(m_particle, &v60);
goto LABEL_84;
case EndR:
v18 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColor)(m_particle);
v19 = m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
inserted = _mm_insert_ps(*(__m128 *)&a2, (__m128)*(unsigned int *)(v18 + 4), 16);
v55 = (__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v19->getEndColor)(m_particle)
+ 8);
v10 = _mm_insert_ps(
v55,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColor)(m_particle)
+ 12),
16);
v11 = inserted;
goto LABEL_25;
case EndRVar:
v16 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColorVar)(m_particle);
v17 = m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
inserted = _mm_insert_ps(*(__m128 *)&a2, (__m128)*(unsigned int *)(v16 + 4), 16);
v54 = (__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v17->getEndColorVar)(m_particle)
+ 8);
v12 = _mm_insert_ps(
v54,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColorVar)(m_particle)
+ 12),
16);
v13 = inserted;
goto LABEL_19;
case EndG:
inserted = *(__m128 *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColor)(m_particle);
v51 = (__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColor)(m_particle)
+ 8);
v10 = _mm_insert_ps(
v51,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColor)(m_particle)
+ 12),
16);
v11 = _mm_insert_ps(inserted, (__m128)LODWORD(a2), 16);
LABEL_25:
v60 = _mm_movelh_ps(v11, v10);
goto LABEL_68;
case EndGVar:
inserted = *(__m128 *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColorVar)(m_particle);
v52 = (__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColorVar)(m_particle)
+ 8);
v12 = _mm_insert_ps(
v52,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColorVar)(m_particle)
+ 12),
16);
v13 = _mm_insert_ps(inserted, (__m128)LODWORD(a2), 16);
LABEL_19:
v60 = _mm_movelh_ps(v13, v12);
goto LABEL_80;
case EndB:
inserted = *(__m128 *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColor)(m_particle);
v7 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColor)(m_particle);
v8 = m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
inserted = _mm_insert_ps(inserted, (__m128)*(unsigned int *)(v7 + 4), 16);
v9 = _mm_insert_ps(
*(__m128 *)&a2,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v8->getEndColor)(m_particle)
+ 12),
16);
goto LABEL_67;
case EndBVar:
inserted = *(__m128 *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColorVar)(m_particle);
v41 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColorVar)(m_particle);
v42 = m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
inserted = _mm_insert_ps(inserted, (__m128)*(unsigned int *)(v41 + 4), 16);
v23 = _mm_insert_ps(
*(__m128 *)&a2,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v42->getEndColorVar)(m_particle)
+ 12),
16);
goto LABEL_79;
case EndA:
inserted = *(__m128 *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColor)(m_particle);
v35 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColor)(m_particle);
v36 = m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
inserted = _mm_insert_ps(inserted, (__m128)*(unsigned int *)(v35 + 4), 16);
v9 = _mm_insert_ps(
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v36->getEndColor)(m_particle)
+ 8),
(__m128)LODWORD(a2),
16);
LABEL_67:
v60 = _mm_movelh_ps(inserted, v9);
LABEL_68:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __m128 *))m_particle->setEndColor)(m_particle, &v60);
goto LABEL_84;
case EndAVar:
inserted = *(__m128 *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColorVar)(m_particle);
v21 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getEndColorVar)(m_particle);
v22 = m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
inserted = _mm_insert_ps(inserted, (__m128)*(unsigned int *)(v21 + 4), 16);
v23 = _mm_insert_ps(
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v22->getEndColorVar)(m_particle)
+ 8),
(__m128)LODWORD(a2),
16);
LABEL_79:
v60 = _mm_movelh_ps(inserted, v23);
LABEL_80:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __m128 *))m_particle->setEndColorVar)(m_particle, &v60);
goto LABEL_84;
case FadeIn:
m_particle->m_fFadeInTime = a2;
goto LABEL_84;
case FadeInVar:
m_particle->m_fFadeInTimeVar = a2;
goto LABEL_84;
case FadeOut:
m_particle->m_fFadeOutTime = a2;
goto LABEL_84;
case FadeOutVar:
m_particle->m_fFadeOutTimeVar = a2;
goto LABEL_84;
case FrictionP:
m_particle->m_fFrictionPos = a2;
goto LABEL_84;
case FrictionPVar:
m_particle->m_fFrictionPosVar = a2;
goto LABEL_84;
case Respawn:
m_particle->m_fRespawn = a2;
goto LABEL_84;
case RespawnVar:
m_particle->m_fRespawnVar = a2;
goto LABEL_84;
case StartRad:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setStartRadius)(m_particle);
goto LABEL_84;
case StartRadVar:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setStartRadiusVar)(m_particle);
goto LABEL_84;
case EndRad:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setEndRadius)(m_particle);
goto LABEL_84;
case EndRadVar:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setEndRadiusVar)(m_particle);
goto LABEL_84;
case RotSec:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, double))m_particle->setRotatePerSecond)(
m_particle,
COERCE_DOUBLE(*(_QWORD *)&a2 ^ 0x8000000080000000LL));
goto LABEL_84;
case RotSecVar:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setRotatePerSecondVar)(m_particle);
goto LABEL_84;
case UniformColor:
m_particle->m_bUseUniformColorMode = a2 != 0.0;
goto LABEL_84;
case PositionType:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))m_particle->setPositionType)(
m_particle,
(unsigned int)(int)a2);
goto LABEL_84;
case Blending:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))m_particle->setBlendAdditive)(
m_particle,
_mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss((__m128)0LL, *(__m128 *)&a2)) & 1);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))m_particle->setOpacityModifyRGB)(m_particle, 1);
goto LABEL_84;
case StartSpinEqualToEnd:
m_particle->m_bStartSpinEqualToEnd = a2 != 0.0;
goto LABEL_84;
case StartRotationIsDir:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))m_particle->setRotationIsDir)(
m_particle,
_mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss((__m128)0LL, *(__m128 *)&a2)) & 1);
goto LABEL_84;
case DynamicRotation:
m_particle->m_bDynamicRotationIsDir = a2 != 0.0;
goto LABEL_84;
case EmitterMode:
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))m_particle->setEmitterMode)(
m_particle,
(unsigned int)(int)a2);
goto LABEL_84;
case ParticleIdx:
LOWORD(m_particle[1].cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = (int)a2;
goto LABEL_84;
case OrderSensitive:
m_particle->m_bOrderSensitive = a2 != 0.0;
goto LABEL_84;
case StartSizeEqualToEnd:
m_particle->m_bStartSizeEqualToEnd = a2 != 0.0;
goto LABEL_84;
case StartRadiusEqualToEnd:
m_particle->m_bStartRadiusEqualToEnd = a2 != 0.0;
goto LABEL_84;
case StartRGBVarSync:
m_particle->m_bStartRGBVarSync = a2 != 0.0;
goto LABEL_84;
case EndRGBVarSync:
m_particle->m_bEndRGBVarSync = a2 != 0.0;
goto LABEL_84;
case FrictionS:
a1->m_particle->m_fFrictionSize = a2;
return;
case FrictionSVar:
a1->m_particle->m_fFrictionSizeVar = a2;
return;
case FrictionR:
a1->m_particle->m_fFrictionRot = a2;
return;
case FrictionRVar:
a1->m_particle->m_fFrictionRotVar = a2;
return;
default:
LABEL_84:
if ( m_particle->m_bUseUniformColorMode )
{
v45 = a3 - 26;
if ( (unsigned int)(a3 - 26) <= 0xE )
{
v46 = 21845;
if ( _bittest(&v46, v45) )
{
v47 = qword_10081C430[v45];
*(_OWORD *)((char *)&m_particle->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v47) = *(_OWORD *)(*(__int64 (__fastcall **)(cocos2d::CCParticleSystemQuad *))((char *)&m_particle->copyWithZone + qword_10081C3B8[v45]))(m_particle);
}
}
}
if ( !a4 )
{
m_particles = a1->m_particles;
if ( m_particles )
{
if ( (unsigned int)sub_100720070(m_particles) )
{
v49 = 0;
do
{
v50 = (cocos2d::CCParticleSystemQuad *)sub_1007200C0(a1->m_particles, v49);
CreateParticlePopup::updateParticleValueForType(a1, v59, a3, v50);
++v49;
}
while ( v49 < (unsigned int)sub_100720070(a1->m_particles) );
}
}
}
return;
}
}