{"type": "func", "start": 4299587440, "end": 4299587675, "name": "CreateParticlePopup::updateColorSprite", "pseudocode": "// \n// CreateParticlePopup::updateColorSprite from 0x100467f70 to 0x10046805b (235 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:30:30 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::updateColorSprite(_QWORD **a1, int a2)\n{\n  __int64 result; // rax\n  float *v3; // rax\n  __m128 v4; // xmm0\n  __int64 *v5; // rdi\n  __int64 v6; // rax\n  char *v7; // rsi\n  float *v8; // rax\n  __m128 v9; // xmm0\n  _QWORD v10[2]; // [rsp+0h] [rbp-10h] BYREF\n\n  v10[0] = result;\n  if ( a2 == 2 )\n  {\n    v8 = (float *)(*(__int64 (__fastcall **)(_QWORD *))(*a1[89] + 1384LL))(a1[89]);\n    v9 = (__m128)*(unsigned __int64 *)v8;\n    BYTE6(v10[0]) = (int)(float)(255.0 * v8[2]);\n    WORD2(v10[0]) = ((unsigned __int8)(int)(float)(_mm_movehdup_ps(v9).f32[0] * 255.0) << 8)\n                  | (unsigned __int8)(int)(float)(v9.f32[0] * 255.0);\n    v5 = a1[119];\n    v6 = *v5;\n    v7 = (char *)v10 + 4;\n  }\n  else\n  {\n    if ( a2 != 1 )\n      return result;\n    v3 = (float *)(*(__int64 (__fastcall **)(_QWORD *))(*a1[89] + 1352LL))(a1[89]);\n    v4 = (__m128)*(unsigned __int64 *)v3;\n    BYTE2(v10[0]) = (int)(float)(255.0 * v3[2]);\n    LOWORD(v10[0]) = ((unsigned __int8)(int)(float)(_mm_movehdup_ps(v4).f32[0] * 255.0) << 8)\n                   | (unsigned __int8)(int)(float)(v4.f32[0] * 255.0);\n    v5 = a1[118];\n    v6 = *v5;\n    v7 = (char *)v10;\n  }\n  return (*(__int64 (__fastcall **)(__int64 *, char *))(v6 + 960))(v5, v7);\n}", "assembly": "; \n; CreateParticlePopup::updateColorSprite from 0x100467f70 to 0x10046805b (235 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:30:30 +0000\n; \npush    rbp                                                            ; +0x0, 0x100467f70\nmov     rbp, rsp                                                       ; +0x1, 0x100467f71\npush    rbx                                                            ; +0x4, 0x100467f74\npush    rax                                                            ; +0x5, 0x100467f75\ncmp     esi, 2                                                         ; +0x6, 0x100467f76\njz      short loc_100467FEA                                            ; +0x9, 0x100467f79\ncmp     esi, 1                                                         ; +0xb, 0x100467f7b\njnz     loc_100468054                                                  ; +0xe, 0x100467f7e\nmov     rax, [rdi+2C8h]                                                ; +0x14, 0x100467f84\nmov     rcx, [rax]                                                     ; +0x1b, 0x100467f8b\nmov     rbx, rdi                                                       ; +0x1e, 0x100467f8e\nmov     rdi, rax                                                       ; +0x21, 0x100467f91\ncall    qword ptr [rcx+548h]                                           ; +0x24, 0x100467f94\nmovsd   xmm0, qword ptr [rax]                                          ; +0x2a, 0x100467f9a\nmovss   xmm1, cs:dword_100A03F80                                       ; +0x2e, 0x100467f9e\nmovshdup xmm2, xmm0                                                    ; +0x36, 0x100467fa6\nmulss   xmm0, xmm1                                                     ; +0x3a, 0x100467faa\ncvttss2si ecx, xmm0                                                    ; +0x3e, 0x100467fae\nmulss   xmm2, xmm1                                                     ; +0x42, 0x100467fb2\ncvttss2si edx, xmm2                                                    ; +0x46, 0x100467fb6\nmulss   xmm1, dword ptr [rax+8]                                        ; +0x4a, 0x100467fba\ncvttss2si eax, xmm1                                                    ; +0x4f, 0x100467fbf\nmov     [rbp+var_E], al                                                ; +0x53, 0x100467fc3\nshl     eax, 10h                                                       ; +0x56, 0x100467fc6\nmovzx   edx, dl                                                        ; +0x59, 0x100467fc9\nshl     edx, 8                                                         ; +0x5c, 0x100467fcc\nor      edx, eax                                                       ; +0x5f, 0x100467fcf\nmovzx   eax, cl                                                        ; +0x61, 0x100467fd1\nor      eax, edx                                                       ; +0x64, 0x100467fd4\nmov     [rbp+var_10], ax                                               ; +0x66, 0x100467fd6\nmov     rdi, [rbx+3B0h]                                                ; +0x6a, 0x100467fda\nmov     rax, [rdi]                                                     ; +0x71, 0x100467fe1\nlea     rsi, [rbp+var_10]                                              ; +0x74, 0x100467fe4\njmp     short loc_10046804E                                            ; +0x78, 0x100467fe8\nmov     rax, [rdi+2C8h]                                                ; +0x7a, 0x100467fea\nmov     rcx, [rax]                                                     ; +0x81, 0x100467ff1\nmov     rbx, rdi                                                       ; +0x84, 0x100467ff4\nmov     rdi, rax                                                       ; +0x87, 0x100467ff7\ncall    qword ptr [rcx+568h]                                           ; +0x8a, 0x100467ffa\nmovsd   xmm0, qword ptr [rax]                                          ; +0x90, 0x100468000\nmovss   xmm1, cs:dword_100A03F80                                       ; +0x94, 0x100468004\nmovshdup xmm2, xmm0                                                    ; +0x9c, 0x10046800c\nmulss   xmm0, xmm1                                                     ; +0xa0, 0x100468010\ncvttss2si ecx, xmm0                                                    ; +0xa4, 0x100468014\nmulss   xmm2, xmm1                                                     ; +0xa8, 0x100468018\ncvttss2si edx, xmm2                                                    ; +0xac, 0x10046801c\nmulss   xmm1, dword ptr [rax+8]                                        ; +0xb0, 0x100468020\ncvttss2si eax, xmm1                                                    ; +0xb5, 0x100468025\nmov     [rbp+var_A], al                                                ; +0xb9, 0x100468029\nshl     eax, 10h                                                       ; +0xbc, 0x10046802c\nmovzx   edx, dl                                                        ; +0xbf, 0x10046802f\nshl     edx, 8                                                         ; +0xc2, 0x100468032\nor      edx, eax                                                       ; +0xc5, 0x100468035\nmovzx   eax, cl                                                        ; +0xc7, 0x100468037\nor      eax, edx                                                       ; +0xca, 0x10046803a\nmov     [rbp+var_C], ax                                                ; +0xcc, 0x10046803c\nmov     rdi, [rbx+3B8h]                                                ; +0xd0, 0x100468040\nmov     rax, [rdi]                                                     ; +0xd7, 0x100468047\nlea     rsi, [rbp+var_C]                                               ; +0xda, 0x10046804a\ncall    qword ptr [rax+3C0h]                                           ; +0xde, 0x10046804e\nadd     rsp, 8                                                         ; +0xe4, 0x100468054\npop     rbx                                                            ; +0xe8, 0x100468058\npop     rbp                                                            ; +0xe9, 0x100468059\nretn                                                                   ; +0xea, 0x10046805a", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}