{"type": "func", "start": 4298038576, "end": 4298038759, "name": "GJEffectManager::getMixedColor", "pseudocode": "// \n// GJEffectManager::getMixedColor from 0x1002edd30 to 0x1002edde7 (183 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::updateInvisibleBlock @ 0x1000b809a\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\ncocos2d::ccColor3B __fastcall GJEffectManager::getMixedColor(cocos2d::ccColor3B a1, cocos2d::ccColor3B a2, float a3)\n{\n  return (cocos2d::ccColor3B)(((int)fmaxf(\n                                      fminf(\n                                        255.0,\n                                        (float)((float)((*(_DWORD *)&a1.r & 0xFF0000u) >> 16) * a3)\n                                      + (float)((float)((*(_DWORD *)&a2.r & 0xFF0000u) >> 16) * (float)(1.0 - a3))),\n                                      0.0) << 16)\n                            | ((unsigned __int8)(int)fmaxf(\n                                                       fminf(\n                                                         255.0,\n                                                         (float)((float)a1.g * a3)\n                                                       + (float)((float)a2.g * (float)(1.0 - a3))),\n                                                       0.0) << 8)\n                            | (unsigned __int8)(int)fmaxf(\n                                                      fminf(\n                                                        255.0,\n                                                        (float)((float)a1.r * a3)\n                                                      + (float)((float)a2.r * (float)(1.0 - a3))),\n                                                      0.0));\n}", "assembly": "; \n; GJEffectManager::getMixedColor from 0x1002edd30 to 0x1002edde7 (183 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::updateInvisibleBlock @ 0x1000b809a\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\npush    rbp                                                            ; +0x0, 0x1002edd30\nmov     rbp, rsp                                                       ; +0x1, 0x1002edd31\nmov     ecx, esi                                                       ; +0x4, 0x1002edd34\nmov     eax, edi                                                       ; +0x6, 0x1002edd36\nmovzx   esi, cl                                                        ; +0x8, 0x1002edd38\nmovzx   edx, ch                                                        ; +0xb, 0x1002edd3b\nmovzx   edi, al                                                        ; +0xe, 0x1002edd3e\ncvtsi2ss xmm1, edi                                                     ; +0x11, 0x1002edd41\nmovzx   edi, ah                                                        ; +0x15, 0x1002edd45\nand     ecx, 0FF0000h                                                  ; +0x18, 0x1002edd48\nand     eax, 0FF0000h                                                  ; +0x1e, 0x1002edd4e\nshr     eax, 10h                                                       ; +0x23, 0x1002edd53\nshr     ecx, 10h                                                       ; +0x26, 0x1002edd56\nmovss   xmm2, cs:alpha                                                 ; +0x29, 0x1002edd59\nsubss   xmm2, xmm0                                                     ; +0x31, 0x1002edd61\ncvtsi2ss xmm3, esi                                                     ; +0x35, 0x1002edd65\nmulss   xmm3, xmm2                                                     ; +0x39, 0x1002edd69\nmulss   xmm1, xmm0                                                     ; +0x3d, 0x1002edd6d\ncvtsi2ss xmm4, edi                                                     ; +0x41, 0x1002edd71\naddss   xmm1, xmm3                                                     ; +0x45, 0x1002edd75\nxorps   xmm3, xmm3                                                     ; +0x49, 0x1002edd79\ncvtsi2ss xmm3, edx                                                     ; +0x4c, 0x1002edd7c\nmulss   xmm3, xmm2                                                     ; +0x50, 0x1002edd80\ncvtsi2ss xmm5, eax                                                     ; +0x54, 0x1002edd84\nmulss   xmm4, xmm0                                                     ; +0x58, 0x1002edd88\ncvtsi2ss xmm6, ecx                                                     ; +0x5c, 0x1002edd8c\naddss   xmm4, xmm3                                                     ; +0x60, 0x1002edd90\nmulss   xmm6, xmm2                                                     ; +0x64, 0x1002edd94\nmulss   xmm5, xmm0                                                     ; +0x68, 0x1002edd98\naddss   xmm5, xmm6                                                     ; +0x6c, 0x1002edd9c\nmovss   xmm0, cs:dword_100815C10                                       ; +0x70, 0x1002edda0\nmovaps  xmm2, xmm0                                                     ; +0x78, 0x1002edda8\nminss   xmm2, xmm1                                                     ; +0x7b, 0x1002eddab\nxorps   xmm1, xmm1                                                     ; +0x7f, 0x1002eddaf\nmaxss   xmm2, xmm1                                                     ; +0x82, 0x1002eddb2\ncvttss2si eax, xmm2                                                    ; +0x86, 0x1002eddb6\nmovaps  xmm2, xmm0                                                     ; +0x8a, 0x1002eddba\nminss   xmm2, xmm4                                                     ; +0x8d, 0x1002eddbd\nmaxss   xmm2, xmm1                                                     ; +0x91, 0x1002eddc1\ncvttss2si ecx, xmm2                                                    ; +0x95, 0x1002eddc5\nminss   xmm0, xmm5                                                     ; +0x99, 0x1002eddc9\nmaxss   xmm0, xmm1                                                     ; +0x9d, 0x1002eddcd\ncvttss2si edx, xmm0                                                    ; +0xa1, 0x1002eddd1\nshl     edx, 10h                                                       ; +0xa5, 0x1002eddd5\nmovzx   ecx, cl                                                        ; +0xa8, 0x1002eddd8\nshl     ecx, 8                                                         ; +0xab, 0x1002edddb\nor      ecx, edx                                                       ; +0xae, 0x1002eddde\nmovzx   eax, al                                                        ; +0xb0, 0x1002edde0\nor      eax, ecx                                                       ; +0xb3, 0x1002edde3\npop     rbp                                                            ; +0xb5, 0x1002edde5\nretn                                                                   ; +0xb6, 0x1002edde6", "xrefs": ["PlayLayer::updateInvisibleBlock @ 0x1000b809a"], "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"}