{"type": "func", "start": 5373563232, "end": 5373563534, "name": "ParticleGameObject::setObjectColor", "pseudocode": "// \n// ParticleGameObject::setObjectColor from 0x1404a1160 to 0x1404a128e (302 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14060d930\n// > <???> @ 0x1406dc680\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::setObjectColor(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::setObjectColor(a1, a2);\n  m_particle = a1->m_particle;\n  if ( m_particle )\n  {\n    if ( a1->m_particleUseObjectColor )\n    {\n      v5 = (__int64)m_particle->getStartColor(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->setStartColor(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_tUniformColor.a;\n      m_particle->m_tUniformColor = (cocos2d::ccColor4F)_mm_shuffle_ps(v12, v12, 57);\n    }\n  }\n}", "assembly": "; \n; ParticleGameObject::setObjectColor from 0x1404a1160 to 0x1404a128e (302 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14060d930\n; > <???> @ 0x1406dc680\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, 0x1404a1160\npush    rdi                                                            ; +0x5, 0x1404a1165\nsub     rsp, 40h                                                       ; +0x6, 0x1404a1166\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1404a116a\nxor     rax, rsp                                                       ; +0x11, 0x1404a1171\nmov     [rsp+48h+var_18], rax                                          ; +0x14, 0x1404a1174\nmov     rdi, rdx                                                       ; +0x19, 0x1404a1179\nmov     rbx, rcx                                                       ; +0x1c, 0x1404a117c\ncall    GameObject__setObjectColor                                     ; +0x1f, 0x1404a117f\nmov     rcx, [rbx+308h]                                                ; +0x24, 0x1404a1184\ntest    rcx, rcx                                                       ; +0x2b, 0x1404a118b\njz      loc_1404A1276                                                  ; +0x2e, 0x1404a118e\ncmp     byte ptr [rbx+331h], 0                                         ; +0x34, 0x1404a1194\njz      short loc_1404A120E                                            ; +0x3b, 0x1404a119b\nmov     rax, [rcx]                                                     ; +0x3d, 0x1404a119d\ncall    qword ptr [rax+530h]                                           ; +0x40, 0x1404a11a0\nmovss   xmm2, cs:dword_140623418                                       ; +0x46, 0x1404a11a6\nlea     rdx, [rsp+48h+var_28]                                          ; +0x4e, 0x1404a11ae\nmov     rcx, [rbx+308h]                                                ; +0x53, 0x1404a11b3\nmovss   xmm4, dword ptr [rax+0Ch]                                      ; +0x5a, 0x1404a11ba\nmovzx   eax, byte ptr [rdi]                                            ; +0x5f, 0x1404a11bf\nmovss   [rsp+48h+var_1C], xmm4                                         ; +0x62, 0x1404a11c2\nmovd    xmm3, eax                                                      ; +0x68, 0x1404a11c8\nmovzx   eax, byte ptr [rdi+1]                                          ; +0x6c, 0x1404a11cc\ncvtdq2ps xmm3, xmm3                                                    ; +0x70, 0x1404a11d0\nmovd    xmm1, eax                                                      ; +0x73, 0x1404a11d3\nmovzx   eax, byte ptr [rdi+2]                                          ; +0x77, 0x1404a11d7\ncvtdq2ps xmm1, xmm1                                                    ; +0x7b, 0x1404a11db\nmovd    xmm0, eax                                                      ; +0x7e, 0x1404a11de\ncvtdq2ps xmm0, xmm0                                                    ; +0x82, 0x1404a11e2\ndivss   xmm3, xmm2                                                     ; +0x85, 0x1404a11e5\ndivss   xmm0, xmm2                                                     ; +0x89, 0x1404a11e9\ndivss   xmm1, xmm2                                                     ; +0x8d, 0x1404a11ed\nmovss   [rsp+48h+var_20], xmm0                                         ; +0x91, 0x1404a11f1\nmovss   [rsp+48h+var_28], xmm3                                         ; +0x97, 0x1404a11f7\nmovss   [rsp+48h+var_24], xmm1                                         ; +0x9d, 0x1404a11fd\nmov     rax, [rcx]                                                     ; +0xa3, 0x1404a1203\ncall    qword ptr [rax+538h]                                           ; +0xa6, 0x1404a1206\njmp     short loc_1404A1276                                            ; +0xac, 0x1404a120c\ncmp     byte ptr [rbx+708h], 0                                         ; +0xae, 0x1404a120e\njz      short loc_1404A1276                                            ; +0xb5, 0x1404a1215\nmovzx   eax, byte ptr [rdi]                                            ; +0xb7, 0x1404a1217\nxorps   xmm4, xmm4                                                     ; +0xba, 0x1404a121a\nmovss   xmm0, cs:dword_140623418                                       ; +0xbd, 0x1404a121d\nxorps   xmm1, xmm1                                                     ; +0xc5, 0x1404a1225\nmovss   xmm3, dword ptr [rcx+2D8h]                                     ; +0xc8, 0x1404a1228\nxorps   xmm2, xmm2                                                     ; +0xd0, 0x1404a1230\ncvtsi2ss xmm4, eax                                                     ; +0xd3, 0x1404a1233\nmovzx   eax, byte ptr [rdi+1]                                          ; +0xd7, 0x1404a1237\ncvtsi2ss xmm1, eax                                                     ; +0xdb, 0x1404a123b\nmovzx   eax, byte ptr [rdi+2]                                          ; +0xdf, 0x1404a123f\ndivss   xmm4, xmm0                                                     ; +0xe3, 0x1404a1243\ncvtsi2ss xmm2, eax                                                     ; +0xe7, 0x1404a1247\nshufps  xmm4, xmm4, 0E1h                                               ; +0xeb, 0x1404a124b\ndivss   xmm1, xmm0                                                     ; +0xef, 0x1404a124f\ndivss   xmm2, xmm0                                                     ; +0xf3, 0x1404a1253\nmovss   xmm4, xmm1                                                     ; +0xf7, 0x1404a1257\nshufps  xmm4, xmm4, 0C6h                                               ; +0xfb, 0x1404a125b\nmovss   xmm4, xmm2                                                     ; +0xff, 0x1404a125f\nshufps  xmm4, xmm4, 27h ; '''                                          ; +0x103, 0x1404a1263\nmovss   xmm4, xmm3                                                     ; +0x107, 0x1404a1267\nshufps  xmm4, xmm4, 39h ; '9'                                          ; +0x10b, 0x1404a126b\nmovups  xmmword ptr [rcx+2CCh], xmm4                                   ; +0x10f, 0x1404a126f\nmov     rcx, [rsp+48h+var_18]                                          ; +0x116, 0x1404a1276\nxor     rcx, rsp; StackCookie                                          ; +0x11b, 0x1404a127b\ncall    __security_check_cookie                                        ; +0x11e, 0x1404a127e\nmov     rbx, [rsp+48h+arg_10]                                          ; +0x123, 0x1404a1283\nadd     rsp, 40h                                                       ; +0x128, 0x1404a1288\npop     rdi                                                            ; +0x12c, 0x1404a128c\nretn                                                                   ; +0x12d, 0x1404a128d", "xrefs": ["<???> @ 0x14060d930", "<???> @ 0x1406dc680"], "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"}