{"type": "func", "start": 4295058488, "end": 4295058656, "name": "GJEffectManager::getMixedColor", "pseudocode": "// \n// GJEffectManager::getMixedColor from 0x100016438 to 0x1000164e0 (168 bytes)\n// \n// 2 xrefs:\n// > GJEffectManager::calculateLightBGColor @ 0x1000163ec\n// > PlayLayer::updateInvisibleBlock @ 0x10011d030\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\n// local variable allocation has failed, the output may be wrong!\ncocos2d::ccColor3B __fastcall GJEffectManager::getMixedColor(cocos2d::ccColor3B a1, cocos2d::ccColor3B a2, float a3)\n{\n  int32x2_t v3; // d4\n  float v4; // s2\n  float32x2_t v5; // d1\n  int32x2_t v6; // d0\n\n  v3 = vdup_n_s32(0x437F0000u);\n  v4 = (float)((float)(1.0 - a3) * (float)a2.r) + (float)((float)a1.r * a3);\n  if ( v4 > 255.0 )\n    v4 = 255.0;\n  v5 = vmla_n_f32(\n         vmul_n_f32(\n           vcvt_f32_u32((uint32x2_t)vand_s8(\n                                      (int8x8_t)vshl_u32(\n                                                  (uint32x2_t)vdup_n_s32(*(unsigned int *)&a2.r),\n                                                  (uint32x2_t)0xFFFFFFF8FFFFFFF0LL),\n                                      (int8x8_t)0xFF000000FFLL)),\n           1.0 - a3),\n         vcvt_f32_u32((uint32x2_t)vand_s8(\n                                    (int8x8_t)vshl_u32(\n                                                (uint32x2_t)vdup_n_s32(*(unsigned int *)&a1.r),\n                                                (uint32x2_t)0xFFFFFFF8FFFFFFF0LL),\n                                    (int8x8_t)0xFF000000FFLL)),\n         a3);\n  v6 = (int32x2_t)vshl_u32(\n                    (uint32x2_t)vcvt_s32_f32(\n                                  vmaxnm_f32(\n                                    (float32x2_t)vbsl_s8(\n                                                   (int8x8_t)vcgt_f32(v5, (float32x2_t)v3),\n                                                   (int8x8_t)v3,\n                                                   (int8x8_t)v5),\n                                    0)),\n                    (uint32x2_t)0x800000010LL);\n  return (cocos2d::ccColor3B)(vorr_s8((int8x8_t)v6, (int8x8_t)vdup_lane_s32(v6, 1)).u32[0] | (int)fmaxf(v4, 0.0));\n}", "assembly": "; \n; GJEffectManager::getMixedColor from 0x100016438 to 0x1000164e0 (168 bytes)\n; \n; 2 xrefs:\n; > GJEffectManager::calculateLightBGColor @ 0x1000163ec\n; > PlayLayer::updateInvisibleBlock @ 0x10011d030\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\nFMOV            S1, #1.0                                               ; +0x0, 0x100016438\nFSUB            S1, S1, S0                                             ; +0x4, 0x10001643c\nAND             W8, W0, #0xFF                                          ; +0x8, 0x100016440\nUCVTF           S2, W8                                                 ; +0xc, 0x100016444\nAND             W8, W1, #0xFF                                          ; +0x10, 0x100016448\nUCVTF           S3, W8                                                 ; +0x14, 0x10001644c\nFMUL            S3, S1, S3                                             ; +0x18, 0x100016450\nMOV             W8, #0x437F0000                                        ; +0x1c, 0x100016454\nDUP             V4.2S, W8                                              ; +0x20, 0x100016458\nFMADD           S2, S2, S0, S3                                         ; +0x24, 0x10001645c\nFMOV            S3, W8                                                 ; +0x28, 0x100016460\nFCMP            S2, S3                                                 ; +0x2c, 0x100016464\nFCSEL           S2, S3, S2, GT                                         ; +0x30, 0x100016468\nFMOV            S3, WZR                                                ; +0x34, 0x10001646c\nFMAXNM          S2, S2, S3                                             ; +0x38, 0x100016470\nFCVTZS          W8, S2                                                 ; +0x3c, 0x100016474\nDUP             V2.2S, W0                                              ; +0x40, 0x100016478\nADRP            X9, #qword_1006354B8@PAGE                              ; +0x44, 0x10001647c\nLDR             D3, [X9,#qword_1006354B8@PAGEOFF]                      ; +0x48, 0x100016480\nUSHL            V2.2S, V2.2S, V3.2S                                    ; +0x4c, 0x100016484\nADRP            X9, #qword_1006354C0@PAGE                              ; +0x50, 0x100016488\nDUP             V5.2S, W1                                              ; +0x54, 0x10001648c\nUSHL            V3.2S, V5.2S, V3.2S                                    ; +0x58, 0x100016490\nMOVI            D5, #0xFF000000FF                                      ; +0x5c, 0x100016494\nAND             V2.8B, V2.8B, V5.8B                                    ; +0x60, 0x100016498\nAND             V3.8B, V3.8B, V5.8B                                    ; +0x64, 0x10001649c\nLDR             D5, [X9,#qword_1006354C0@PAGEOFF]                      ; +0x68, 0x1000164a0\nUCVTF           V2.2S, V2.2S                                           ; +0x6c, 0x1000164a4\nUCVTF           V3.2S, V3.2S                                           ; +0x70, 0x1000164a8\nFMUL            V1.2S, V3.2S, V1.S[0]                                  ; +0x74, 0x1000164ac\nFMLA            V1.2S, V2.2S, V0.S[0]                                  ; +0x78, 0x1000164b0\nFCMGT           V0.2S, V1.2S, V4.2S                                    ; +0x7c, 0x1000164b4\nBSL             V0.8B, V4.8B, V1.8B                                    ; +0x80, 0x1000164b8\nMOVI            D1, #0                                                 ; +0x84, 0x1000164bc\nFMAXNM          V0.2S, V0.2S, V1.2S                                    ; +0x88, 0x1000164c0\nFCVTZS          V0.2S, V0.2S                                           ; +0x8c, 0x1000164c4\nUSHL            V0.2S, V0.2S, V5.2S                                    ; +0x90, 0x1000164c8\nDUP             V1.2S, V0.S[1]                                         ; +0x94, 0x1000164cc\nORR             V0.8B, V0.8B, V1.8B                                    ; +0x98, 0x1000164d0\nFMOV            W9, S0                                                 ; +0x9c, 0x1000164d4\nORR             W0, W9, W8                                             ; +0xa0, 0x1000164d8\nRET                                                                    ; +0xa4, 0x1000164dc", "xrefs": ["GJEffectManager::calculateLightBGColor @ 0x1000163ec", "PlayLayer::updateInvisibleBlock @ 0x10011d030"], "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"}