{"type": "func", "start": 4300130416, "end": 4300130565, "name": "GameToolbox::getMultipliedHSV", "pseudocode": "// \n// GameToolbox::getMultipliedHSV from 0x1004ec870 to 0x1004ec905 (149 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::applyCustomEnterEffect @ 0x100085da8\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001211e4\n// > GJEffectManager::calculateInheritedColor @ 0x1002c9d90\n// > GJEffectManager::colorForPulseEffect @ 0x1002c9fae\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:31:22 +0000\n// \n\nunsigned __int64 __fastcall GameToolbox::getMultipliedHSV(__int64 a1, float a2)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rsi\n  unsigned int v4; // eax\n  __m128i v5; // xmm3\n\n  v2 = *(unsigned __int8 *)(a1 + 12);\n  v3 = *(unsigned __int8 *)(a1 + 13);\n  if ( (v2 & 1) == 0 )\n  {\n    v4 = *(_DWORD *)(a1 + 8);\n    if ( (v3 & 1) == 0 )\n      goto LABEL_3;\nLABEL_5:\n    v5 = _mm_cvtsi32_si128(v4);\n    *(float *)v5.i32 = *(float *)v5.i32 * a2;\n    return ((unsigned __int64)*(unsigned __int16 *)(a1 + 14) << 48)\n         | (v3 << 40)\n         | (v2 << 32)\n         | (unsigned int)_mm_cvtsi128_si32(v5);\n  }\n  v4 = *(_DWORD *)(a1 + 8);\n  if ( (v3 & 1) != 0 )\n    goto LABEL_5;\nLABEL_3:\n  v5 = _mm_cvtsi32_si128(v4);\n  *(float *)v5.i32 = (float)(*(float *)v5.i32 * a2) + (float)(1.0 - a2);\n  return ((unsigned __int64)*(unsigned __int16 *)(a1 + 14) << 48)\n       | (v3 << 40)\n       | (v2 << 32)\n       | (unsigned int)_mm_cvtsi128_si32(v5);\n}", "assembly": "; \n; GameToolbox::getMultipliedHSV from 0x1004ec870 to 0x1004ec905 (149 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::applyCustomEnterEffect @ 0x100085da8\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001211e4\n; > GJEffectManager::calculateInheritedColor @ 0x1002c9d90\n; > GJEffectManager::colorForPulseEffect @ 0x1002c9fae\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:31:22 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004ec870\nmov     rbp, rsp                                                       ; +0x1, 0x1004ec871\nmovaps  xmm1, xmm0                                                     ; +0x4, 0x1004ec874\nmovsd   xmm0, qword ptr [rdi]                                          ; +0x7, 0x1004ec877\nmovzx   ecx, byte ptr [rdi+0Ch]                                        ; +0xb, 0x1004ec87b\nmovzx   esi, byte ptr [rdi+0Dh]                                        ; +0xf, 0x1004ec87f\nmovzx   edx, word ptr [rdi+0Eh]                                        ; +0x13, 0x1004ec883\ntest    cl, 1                                                          ; +0x17, 0x1004ec887\njz      short loc_1004EC8B7                                            ; +0x1a, 0x1004ec88a\nmovshdup xmm2, xmm0                                                    ; +0x1c, 0x1004ec88c\nmulss   xmm2, xmm1                                                     ; +0x20, 0x1004ec890\nmov     eax, [rdi+8]                                                   ; +0x24, 0x1004ec894\ntest    sil, 1                                                         ; +0x27, 0x1004ec897\njnz     short loc_1004EC8D8                                            ; +0x2b, 0x1004ec89b\nmovss   xmm4, cs:alpha                                                 ; +0x2d, 0x1004ec89d\nsubss   xmm4, xmm1                                                     ; +0x35, 0x1004ec8a5\nmovd    xmm3, eax                                                      ; +0x39, 0x1004ec8a9\nmulss   xmm3, xmm1                                                     ; +0x3d, 0x1004ec8ad\naddss   xmm3, xmm4                                                     ; +0x41, 0x1004ec8b1\njmp     short loc_1004EC8E0                                            ; +0x45, 0x1004ec8b5\nmovss   xmm3, cs:alpha                                                 ; +0x47, 0x1004ec8b7\nsubss   xmm3, xmm1                                                     ; +0x4f, 0x1004ec8bf\nmovshdup xmm2, xmm0                                                    ; +0x53, 0x1004ec8c3\nmulss   xmm2, xmm1                                                     ; +0x57, 0x1004ec8c7\naddss   xmm2, xmm3                                                     ; +0x5b, 0x1004ec8cb\nmov     eax, [rdi+8]                                                   ; +0x5f, 0x1004ec8cf\ntest    sil, 1                                                         ; +0x62, 0x1004ec8d2\njz      short loc_1004EC89D                                            ; +0x66, 0x1004ec8d6\nmovd    xmm3, eax                                                      ; +0x68, 0x1004ec8d8\nmulss   xmm3, xmm1                                                     ; +0x6c, 0x1004ec8dc\nmulss   xmm0, xmm1                                                     ; +0x70, 0x1004ec8e0\ninsertps xmm0, xmm2, 10h                                               ; +0x74, 0x1004ec8e4\nmovd    eax, xmm3                                                      ; +0x7a, 0x1004ec8ea\nshl     rdx, 30h                                                       ; +0x7e, 0x1004ec8ee\nshl     rsi, 28h                                                       ; +0x82, 0x1004ec8f2\nshl     rcx, 20h                                                       ; +0x86, 0x1004ec8f6\nor      rcx, rsi                                                       ; +0x8a, 0x1004ec8fa\nor      rcx, rdx                                                       ; +0x8d, 0x1004ec8fd\nor      rax, rcx                                                       ; +0x90, 0x1004ec900\npop     rbp                                                            ; +0x93, 0x1004ec903\nretn                                                                   ; +0x94, 0x1004ec904", "xrefs": ["PlayLayer::applyCustomEnterEffect @ 0x100085da8", "GJBaseGameLayer::processAreaTintGroupAction @ 0x1001211e4", "GJEffectManager::calculateInheritedColor @ 0x1002c9d90", "GJEffectManager::colorForPulseEffect @ 0x1002c9fae"], "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"}