{"type": "func", "start": 9067036, "end": 9067292, "name": "GJEffectManager::getMixedColor", "pseudocode": "// \n// GJEffectManager::getMixedColor from 0x8a5a1c to 0x8a5b1c (256 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::updateVisibility @ 0x5cedd8\n// > GJEffectManager::calculateLightBGColor @ 0x8bfaec\n// > <???> @ 0xc8958\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 GJEffectManager::getMixedColor(cocos2d::ccColor3B a1, cocos2d::ccColor3B a2, float a3)\n{\n  float r; // s3\n  float v4; // s3\n  float v5; // s2\n  float v6; // s0\n  unsigned __int8 v7; // w2\n  unsigned __int8 v8; // w3\n\n  r = (float)a2.r;\n  a2.r = -1;\n  v4 = (float)(r * (float)(1.0 - a3)) + (float)((float)a1.r * a3);\n  v5 = (float)((float)a2.g * (float)(1.0 - a3)) + (float)((float)a1.g * a3);\n  v6 = (float)((float)a2.b * (float)(1.0 - a3)) + (float)((float)a1.b * a3);\n  if ( v4 <= 255.0 )\n  {\n    if ( v4 <= 0.0 )\n    {\n      a2.r = 0;\n    }\n    else if ( v4 <= 255.0 )\n    {\n      a2.r = (unsigned int)v4;\n    }\n  }\n  v7 = -1;\n  if ( v5 <= 255.0 )\n  {\n    if ( v5 <= 0.0 )\n    {\n      v7 = 0;\n    }\n    else if ( v5 <= 255.0 )\n    {\n      v7 = (unsigned int)v5;\n    }\n  }\n  v8 = -1;\n  if ( v6 <= 255.0 )\n  {\n    if ( v6 <= 0.0 )\n    {\n      v8 = 0;\n    }\n    else if ( v6 <= 255.0 )\n    {\n      v8 = (unsigned int)v6;\n    }\n  }\n  return (cocos2d::ccColor3B)(a2.r | (unsigned __int16)(v7 << 8) | (v8 << 16));\n}", "assembly": "; \n; GJEffectManager::getMixedColor from 0x8a5a1c to 0x8a5b1c (256 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::updateVisibility @ 0x5cedd8\n; > GJEffectManager::calculateLightBGColor @ 0x8bfaec\n; > <???> @ 0xc8958\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\nUXTB            W4, W1                                                 ; +0x0, 0x8a5a1c\nUXTB            W2, W0                                                 ; +0x4, 0x8a5a20\nFMOV            S6, #1.0                                               ; +0x8, 0x8a5a24\nUBFX            X3, X1, #8, #8                                         ; +0xc, 0x8a5a28\nSCVTF           S3, W4                                                 ; +0x10, 0x8a5a2c\nUBFX            X1, X1, #0x10, #8                                      ; +0x14, 0x8a5a30\nFSUB            S6, S6, S0                                             ; +0x18, 0x8a5a34\nSUB             SP, SP, #0x20                                          ; +0x1c, 0x8a5a38\nSCVTF           S1, W2                                                 ; +0x20, 0x8a5a3c\nUBFX            X2, X0, #8, #8                                         ; +0x24, 0x8a5a40\nSCVTF           S4, W1                                                 ; +0x28, 0x8a5a44\nUBFX            X0, X0, #0x10, #8                                      ; +0x2c, 0x8a5a48\nSCVTF           S5, W3                                                 ; +0x30, 0x8a5a4c\nMOV             W1, #0xFF                                              ; +0x34, 0x8a5a50\nFMUL            S3, S3, S6                                             ; +0x38, 0x8a5a54\nLDR             S7, =0x437F0000                                        ; +0x3c, 0x8a5a58\nSCVTF           S2, W2                                                 ; +0x40, 0x8a5a5c\nFMUL            S5, S5, S6                                             ; +0x44, 0x8a5a60\nFMADD           S3, S1, S0, S3                                         ; +0x48, 0x8a5a64\nFMUL            S4, S4, S6                                             ; +0x4c, 0x8a5a68\nSCVTF           S1, W0                                                 ; +0x50, 0x8a5a6c\nFMADD           S2, S2, S0, S5                                         ; +0x54, 0x8a5a70\nFMADD           S0, S1, S0, S4                                         ; +0x58, 0x8a5a74\nFCMPE           S3, S7                                                 ; +0x5c, 0x8a5a78\nB.GT            loc_8A5A98                                             ; +0x60, 0x8a5a7c\nFCMPE           S3, #0.0                                               ; +0x64, 0x8a5a80\nB.LE            loc_8A5B0C                                             ; +0x68, 0x8a5a84\nFCMPE           S3, S7                                                 ; +0x6c, 0x8a5a88\nB.GT            loc_8A5A98                                             ; +0x70, 0x8a5a8c\nFCVTZU          W1, S3                                                 ; +0x74, 0x8a5a90\nUXTB            W1, W1                                                 ; +0x78, 0x8a5a94\nFCMPE           S2, S7                                                 ; +0x7c, 0x8a5a98\nMOV             W2, #0xFF                                              ; +0x80, 0x8a5a9c\nB.GT            loc_8A5ABC                                             ; +0x84, 0x8a5aa0\nFCMPE           S2, #0.0                                               ; +0x88, 0x8a5aa4\nB.LE            loc_8A5B04                                             ; +0x8c, 0x8a5aa8\nFCMPE           S2, S7                                                 ; +0x90, 0x8a5aac\nB.GT            loc_8A5ABC                                             ; +0x94, 0x8a5ab0\nFCVTZU          W2, S2                                                 ; +0x98, 0x8a5ab4\nUXTB            W2, W2                                                 ; +0x9c, 0x8a5ab8\nFCMPE           S0, S7                                                 ; +0xa0, 0x8a5abc\nMOV             W3, #0xFF                                              ; +0xa4, 0x8a5ac0\nB.GT            loc_8A5AE0                                             ; +0xa8, 0x8a5ac4\nFCMPE           S0, #0.0                                               ; +0xac, 0x8a5ac8\nB.LE            loc_8A5B14                                             ; +0xb0, 0x8a5acc\nFCMPE           S0, S7                                                 ; +0xb4, 0x8a5ad0\nB.GT            loc_8A5AE0                                             ; +0xb8, 0x8a5ad4\nFCVTZU          W0, S0                                                 ; +0xbc, 0x8a5ad8\nUXTB            W3, W0                                                 ; +0xc0, 0x8a5adc\nUXTB            W1, W1                                                 ; +0xc4, 0x8a5ae0\nMOV             X0, #0                                                 ; +0xc8, 0x8a5ae4\nBFXIL           X0, X1, #0, #8                                         ; +0xcc, 0x8a5ae8\nUXTB            W2, W2                                                 ; +0xd0, 0x8a5aec\nBFI             X0, X2, #8, #8                                         ; +0xd4, 0x8a5af0\nUXTB            W3, W3                                                 ; +0xd8, 0x8a5af4\nBFI             X0, X3, #0x10, #8                                      ; +0xdc, 0x8a5af8\nADD             SP, SP, #0x20 ; ' '                                    ; +0xe0, 0x8a5afc\nRET                                                                    ; +0xe4, 0x8a5b00\nMOV             W2, #0                                                 ; +0xe8, 0x8a5b04\nB               loc_8A5ABC                                             ; +0xec, 0x8a5b08\nMOV             W1, #0                                                 ; +0xf0, 0x8a5b0c\nB               loc_8A5A98                                             ; +0xf4, 0x8a5b10\nMOV             W3, #0                                                 ; +0xf8, 0x8a5b14\nB               loc_8A5AE0                                             ; +0xfc, 0x8a5b18", "xrefs": ["PlayLayer::updateVisibility @ 0x5cedd8", "GJEffectManager::calculateLightBGColor @ 0x8bfaec", "<???> @ 0xc8958"], "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"}