{"type": "func", "start": 4297951664, "end": 4297951847, "name": "GJEffectManager::getMixedColor", "pseudocode": "// \n// GJEffectManager::getMixedColor from 0x1002d89b0 to 0x1002d8a67 (183 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::updateInvisibleBlock @ 0x10008599a\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:28:16 +0000\n// \n\n__int64 __fastcall GJEffectManager::getMixedColor(int a1, int a2, float a3)\n{\n  return ((int)fmaxf(\n                 fminf(\n                   255.0,\n                   (float)((float)((a1 & 0xFF0000u) >> 16) * a3)\n                 + (float)((float)((a2 & 0xFF0000u) >> 16) * (float)(1.0 - a3))),\n                 0.0) << 16)\n       | ((unsigned __int8)(int)fmaxf(\n                                  fminf(\n                                    255.0,\n                                    (float)((float)BYTE1(a1) * a3) + (float)((float)BYTE1(a2) * (float)(1.0 - a3))),\n                                  0.0) << 8)\n       | (unsigned int)(unsigned __int8)(int)fmaxf(\n                                               fminf(\n                                                 255.0,\n                                                 (float)((float)(unsigned __int8)a1 * a3)\n                                               + (float)((float)(unsigned __int8)a2 * (float)(1.0 - a3))),\n                                               0.0);\n}", "assembly": "; \n; GJEffectManager::getMixedColor from 0x1002d89b0 to 0x1002d8a67 (183 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::updateInvisibleBlock @ 0x10008599a\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:28:16 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002d89b0\nmov     rbp, rsp                                                       ; +0x1, 0x1002d89b1\nmov     ecx, esi                                                       ; +0x4, 0x1002d89b4\nmov     eax, edi                                                       ; +0x6, 0x1002d89b6\nmovzx   esi, cl                                                        ; +0x8, 0x1002d89b8\nmovzx   edx, ch                                                        ; +0xb, 0x1002d89bb\nmovzx   edi, al                                                        ; +0xe, 0x1002d89be\ncvtsi2ss xmm1, edi                                                     ; +0x11, 0x1002d89c1\nmovzx   edi, ah                                                        ; +0x15, 0x1002d89c5\nand     ecx, 0FF0000h                                                  ; +0x18, 0x1002d89c8\nand     eax, 0FF0000h                                                  ; +0x1e, 0x1002d89ce\nshr     eax, 10h                                                       ; +0x23, 0x1002d89d3\nshr     ecx, 10h                                                       ; +0x26, 0x1002d89d6\nmovss   xmm2, cs:alpha                                                 ; +0x29, 0x1002d89d9\nsubss   xmm2, xmm0                                                     ; +0x31, 0x1002d89e1\ncvtsi2ss xmm3, esi                                                     ; +0x35, 0x1002d89e5\nmulss   xmm3, xmm2                                                     ; +0x39, 0x1002d89e9\nmulss   xmm1, xmm0                                                     ; +0x3d, 0x1002d89ed\ncvtsi2ss xmm4, edi                                                     ; +0x41, 0x1002d89f1\naddss   xmm1, xmm3                                                     ; +0x45, 0x1002d89f5\nxorps   xmm3, xmm3                                                     ; +0x49, 0x1002d89f9\ncvtsi2ss xmm3, edx                                                     ; +0x4c, 0x1002d89fc\nmulss   xmm3, xmm2                                                     ; +0x50, 0x1002d8a00\ncvtsi2ss xmm5, eax                                                     ; +0x54, 0x1002d8a04\nmulss   xmm4, xmm0                                                     ; +0x58, 0x1002d8a08\ncvtsi2ss xmm6, ecx                                                     ; +0x5c, 0x1002d8a0c\naddss   xmm4, xmm3                                                     ; +0x60, 0x1002d8a10\nmulss   xmm6, xmm2                                                     ; +0x64, 0x1002d8a14\nmulss   xmm5, xmm0                                                     ; +0x68, 0x1002d8a18\naddss   xmm5, xmm6                                                     ; +0x6c, 0x1002d8a1c\nmovss   xmm0, cs:dword_100A03F80                                       ; +0x70, 0x1002d8a20\nmovaps  xmm2, xmm0                                                     ; +0x78, 0x1002d8a28\nminss   xmm2, xmm1                                                     ; +0x7b, 0x1002d8a2b\nxorps   xmm1, xmm1                                                     ; +0x7f, 0x1002d8a2f\nmaxss   xmm2, xmm1                                                     ; +0x82, 0x1002d8a32\ncvttss2si eax, xmm2                                                    ; +0x86, 0x1002d8a36\nmovaps  xmm2, xmm0                                                     ; +0x8a, 0x1002d8a3a\nminss   xmm2, xmm4                                                     ; +0x8d, 0x1002d8a3d\nmaxss   xmm2, xmm1                                                     ; +0x91, 0x1002d8a41\ncvttss2si ecx, xmm2                                                    ; +0x95, 0x1002d8a45\nminss   xmm0, xmm5                                                     ; +0x99, 0x1002d8a49\nmaxss   xmm0, xmm1                                                     ; +0x9d, 0x1002d8a4d\ncvttss2si edx, xmm0                                                    ; +0xa1, 0x1002d8a51\nshl     edx, 10h                                                       ; +0xa5, 0x1002d8a55\nmovzx   ecx, cl                                                        ; +0xa8, 0x1002d8a58\nshl     ecx, 8                                                         ; +0xab, 0x1002d8a5b\nor      ecx, edx                                                       ; +0xae, 0x1002d8a5e\nmovzx   eax, al                                                        ; +0xb0, 0x1002d8a60\nor      eax, ecx                                                       ; +0xb3, 0x1002d8a63\npop     rbp                                                            ; +0xb5, 0x1002d8a65\nretn                                                                   ; +0xb6, 0x1002d8a66", "xrefs": ["PlayLayer::updateInvisibleBlock @ 0x10008599a"], "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"}