{"type": "func", "start": 5373563536, "end": 5373563838, "name": "ParticleGameObject::setChildColor", "pseudocode": "// \n// ParticleGameObject::setChildColor from 0x1404a1290 to 0x1404a13be (302 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14060d7a0\n// > <???> @ 0x1406dc68c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid ParticleGameObject::setChildColor(ParticleGameObject *a1, const cocos2d::ccColor3B *a2)\n{\n  cocos2d::CCParticleSystemQuad *m_particle; // rcx\n  __int64 v5; // rax\n  cocos2d::CCParticleSystemQuad *v6; // rcx\n  float v7; // xmm4_4\n  float v8; // xmm1_4\n  __m128 v9; // xmm4\n  __m128 v10; // xmm4\n  __m128 v11; // xmm4\n  __m128 v12; // xmm4\n  float v13[4]; // [rsp+20h] [rbp-28h] BYREF\n\n  GameObject::setChildColor(a1, a2);\n  m_particle = a1->m_particle;\n  if ( m_particle )\n  {\n    if ( a1->m_particleUseObjectColor )\n    {\n      v5 = (__int64)m_particle->getEndColor(m_particle);\n      v6 = a1->m_particle;\n      v7 = *(float *)(v5 + 12);\n      LODWORD(v5) = a2->r;\n      v13[3] = v7;\n      v8 = (float)a2->g / 255.0;\n      v13[2] = (float)a2->b / 255.0;\n      v13[0] = (float)(int)v5 / 255.0;\n      v13[1] = v8;\n      v6->setEndColor(v6, (const cocos2d::ccColor4F *)v13);\n    }\n    else if ( a1->m_hasUniformObjectColor )\n    {\n      v9 = 0;\n      v9.m128_f32[0] = (float)a2->r / 255.0;\n      v10 = _mm_shuffle_ps(v9, v9, 225);\n      v10.m128_f32[0] = (float)a2->g / 255.0;\n      v11 = _mm_shuffle_ps(v10, v10, 198);\n      v11.m128_f32[0] = (float)a2->b / 255.0;\n      v12 = _mm_shuffle_ps(v11, v11, 39);\n      v12.m128_f32[0] = m_particle->m_tUniformDeltaColor.a;\n      m_particle->m_tUniformDeltaColor = (cocos2d::ccColor4F)_mm_shuffle_ps(v12, v12, 57);\n    }\n  }\n}", "assembly": "; \n; ParticleGameObject::setChildColor from 0x1404a1290 to 0x1404a13be (302 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14060d7a0\n; > <???> @ 0x1406dc68c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1404a1290\npush    rdi                                                            ; +0x5, 0x1404a1295\nsub     rsp, 40h                                                       ; +0x6, 0x1404a1296\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1404a129a\nxor     rax, rsp                                                       ; +0x11, 0x1404a12a1\nmov     [rsp+48h+var_18], rax                                          ; +0x14, 0x1404a12a4\nmov     rdi, rdx                                                       ; +0x19, 0x1404a12a9\nmov     rbx, rcx                                                       ; +0x1c, 0x1404a12ac\ncall    GameObject__setChildColor                                      ; +0x1f, 0x1404a12af\nmov     rcx, [rbx+308h]                                                ; +0x24, 0x1404a12b4\ntest    rcx, rcx                                                       ; +0x2b, 0x1404a12bb\njz      loc_1404A13A6                                                  ; +0x2e, 0x1404a12be\ncmp     byte ptr [rbx+331h], 0                                         ; +0x34, 0x1404a12c4\njz      short loc_1404A133E                                            ; +0x3b, 0x1404a12cb\nmov     rax, [rcx]                                                     ; +0x3d, 0x1404a12cd\ncall    qword ptr [rax+550h]                                           ; +0x40, 0x1404a12d0\nmovss   xmm2, cs:dword_140623418                                       ; +0x46, 0x1404a12d6\nlea     rdx, [rsp+48h+var_28]                                          ; +0x4e, 0x1404a12de\nmov     rcx, [rbx+308h]                                                ; +0x53, 0x1404a12e3\nmovss   xmm4, dword ptr [rax+0Ch]                                      ; +0x5a, 0x1404a12ea\nmovzx   eax, byte ptr [rdi]                                            ; +0x5f, 0x1404a12ef\nmovss   [rsp+48h+var_1C], xmm4                                         ; +0x62, 0x1404a12f2\nmovd    xmm3, eax                                                      ; +0x68, 0x1404a12f8\nmovzx   eax, byte ptr [rdi+1]                                          ; +0x6c, 0x1404a12fc\ncvtdq2ps xmm3, xmm3                                                    ; +0x70, 0x1404a1300\nmovd    xmm1, eax                                                      ; +0x73, 0x1404a1303\nmovzx   eax, byte ptr [rdi+2]                                          ; +0x77, 0x1404a1307\ncvtdq2ps xmm1, xmm1                                                    ; +0x7b, 0x1404a130b\nmovd    xmm0, eax                                                      ; +0x7e, 0x1404a130e\ncvtdq2ps xmm0, xmm0                                                    ; +0x82, 0x1404a1312\ndivss   xmm3, xmm2                                                     ; +0x85, 0x1404a1315\ndivss   xmm0, xmm2                                                     ; +0x89, 0x1404a1319\ndivss   xmm1, xmm2                                                     ; +0x8d, 0x1404a131d\nmovss   [rsp+48h+var_20], xmm0                                         ; +0x91, 0x1404a1321\nmovss   [rsp+48h+var_28], xmm3                                         ; +0x97, 0x1404a1327\nmovss   [rsp+48h+var_24], xmm1                                         ; +0x9d, 0x1404a132d\nmov     rax, [rcx]                                                     ; +0xa3, 0x1404a1333\ncall    qword ptr [rax+558h]                                           ; +0xa6, 0x1404a1336\njmp     short loc_1404A13A6                                            ; +0xac, 0x1404a133c\ncmp     byte ptr [rbx+708h], 0                                         ; +0xae, 0x1404a133e\njz      short loc_1404A13A6                                            ; +0xb5, 0x1404a1345\nmovzx   eax, byte ptr [rdi]                                            ; +0xb7, 0x1404a1347\nxorps   xmm4, xmm4                                                     ; +0xba, 0x1404a134a\nmovss   xmm0, cs:dword_140623418                                       ; +0xbd, 0x1404a134d\nxorps   xmm1, xmm1                                                     ; +0xc5, 0x1404a1355\nmovss   xmm3, dword ptr [rcx+2E8h]                                     ; +0xc8, 0x1404a1358\nxorps   xmm2, xmm2                                                     ; +0xd0, 0x1404a1360\ncvtsi2ss xmm4, eax                                                     ; +0xd3, 0x1404a1363\nmovzx   eax, byte ptr [rdi+1]                                          ; +0xd7, 0x1404a1367\ncvtsi2ss xmm1, eax                                                     ; +0xdb, 0x1404a136b\nmovzx   eax, byte ptr [rdi+2]                                          ; +0xdf, 0x1404a136f\ndivss   xmm4, xmm0                                                     ; +0xe3, 0x1404a1373\ncvtsi2ss xmm2, eax                                                     ; +0xe7, 0x1404a1377\nshufps  xmm4, xmm4, 0E1h                                               ; +0xeb, 0x1404a137b\ndivss   xmm1, xmm0                                                     ; +0xef, 0x1404a137f\ndivss   xmm2, xmm0                                                     ; +0xf3, 0x1404a1383\nmovss   xmm4, xmm1                                                     ; +0xf7, 0x1404a1387\nshufps  xmm4, xmm4, 0C6h                                               ; +0xfb, 0x1404a138b\nmovss   xmm4, xmm2                                                     ; +0xff, 0x1404a138f\nshufps  xmm4, xmm4, 27h ; '''                                          ; +0x103, 0x1404a1393\nmovss   xmm4, xmm3                                                     ; +0x107, 0x1404a1397\nshufps  xmm4, xmm4, 39h ; '9'                                          ; +0x10b, 0x1404a139b\nmovups  xmmword ptr [rcx+2DCh], xmm4                                   ; +0x10f, 0x1404a139f\nmov     rcx, [rsp+48h+var_18]                                          ; +0x116, 0x1404a13a6\nxor     rcx, rsp; StackCookie                                          ; +0x11b, 0x1404a13ab\ncall    __security_check_cookie                                        ; +0x11e, 0x1404a13ae\nmov     rbx, [rsp+48h+arg_10]                                          ; +0x123, 0x1404a13b3\nadd     rsp, 40h                                                       ; +0x128, 0x1404a13b8\npop     rdi                                                            ; +0x12c, 0x1404a13bc\nretn                                                                   ; +0x12d, 0x1404a13bd", "xrefs": ["<???> @ 0x14060d7a0", "<???> @ 0x1406dc68c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}