{"type": "func", "start": 4295249608, "end": 4295249796, "name": "GameToolbox::multipliedColorValue", "pseudocode": "// \n// GameToolbox::multipliedColorValue from 0x100044ec8 to 0x100044f84 (188 bytes)\n// \n// 13 xrefs:\n// > ColorAction::step @ 0x10000d5b4\n// > GJEffectManager::calculateInheritedColor @ 0x10000f818\n// > GJEffectManager::colorForPulseEffect @ 0x10000faac\n// > GJEffectManager::colorForPulseEffect @ 0x10000fb04\n// > PlayLayer::applyCustomEnterEffect @ 0x10011d5c4\n// > PlayLayer::applyCustomEnterEffect @ 0x10011d60c\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f60c4\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f613c\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f61c0\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f6238\n// > PlayerObject::update @ 0x100219750\n// > PlayerObject::update @ 0x1002197a0\n// > SecretRewardsLayer::scrollLayerMoved @ 0x1002ea2bc\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 GameToolbox::multipliedColorValue(cocos2d::ccColor3B a1, cocos2d::ccColor3B a2, float a3)\n{\n  int64x2_t v3; // q1\n  float v4; // s0\n  int8x8_t v5; // d0\n  int64x2_t v6; // q2\n  int32x2_t v7; // d1\n  int32x2_t v8; // d0\n\n  v3 = (int64x2_t)vshlq_u64((uint64x2_t)vdupq_n_s64(*(unsigned __int64 *)&a1.r), (uint64x2_t)xmmword_100635AB0);\n  v4 = fmaxf(fminf(a3, 1.0), 0.0);\n  if ( v4 == 0.0 )\n  {\n    v5 = (int8x8_t)vmovn_s64(v3);\n  }\n  else\n  {\n    v6 = (int64x2_t)vshlq_u64((uint64x2_t)vdupq_n_s64(*(unsigned __int64 *)&a2.r), (uint64x2_t)xmmword_100635AB0);\n    if ( v4 == 1.0 )\n    {\n      v5 = (int8x8_t)vmovn_s64(v6);\n      a1.r = a2.r;\n    }\n    else\n    {\n      *(_DWORD *)&a1.r = (int)(float)((float)a1.r + (float)((float)(a2.r - a1.r) * v4));\n      v7 = (int32x2_t)vand_s8((int8x8_t)vmovn_s64(v3), (int8x8_t)0xFF000000FFLL);\n      v5 = (int8x8_t)vcvt_s32_f32(\n                       vmla_n_f32(\n                         vcvt_f32_u32((uint32x2_t)v7),\n                         vcvt_f32_s32(vsub_s32((int32x2_t)vand_s8((int8x8_t)vmovn_s64(v6), (int8x8_t)0xFF000000FFLL), v7)),\n                         v4));\n    }\n  }\n  v8 = (int32x2_t)vshl_u32((uint32x2_t)vand_s8(v5, (int8x8_t)0xFF000000FFLL), (uint32x2_t)0x800000010LL);\n  return (cocos2d::ccColor3B)(vorr_s8((int8x8_t)v8, (int8x8_t)vdup_lane_s32(v8, 1)).u32[0] | a1.r);\n}", "assembly": "; \n; GameToolbox::multipliedColorValue from 0x100044ec8 to 0x100044f84 (188 bytes)\n; \n; 13 xrefs:\n; > ColorAction::step @ 0x10000d5b4\n; > GJEffectManager::calculateInheritedColor @ 0x10000f818\n; > GJEffectManager::colorForPulseEffect @ 0x10000faac\n; > GJEffectManager::colorForPulseEffect @ 0x10000fb04\n; > PlayLayer::applyCustomEnterEffect @ 0x10011d5c4\n; > PlayLayer::applyCustomEnterEffect @ 0x10011d60c\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f60c4\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f613c\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f61c0\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f6238\n; > PlayerObject::update @ 0x100219750\n; > PlayerObject::update @ 0x1002197a0\n; > SecretRewardsLayer::scrollLayerMoved @ 0x1002ea2bc\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\nDUP             V1.2D, X0                                              ; +0x0, 0x100044ec8\nADRP            X8, #xmmword_100635AB0@PAGE                            ; +0x4, 0x100044ecc\nLDR             Q2, [X8,#xmmword_100635AB0@PAGEOFF]                    ; +0x8, 0x100044ed0\nUSHL            V1.2D, V1.2D, V2.2D                                    ; +0xc, 0x100044ed4\nFMOV            S3, #1.0                                               ; +0x10, 0x100044ed8\nFMINNM          S0, S0, S3                                             ; +0x14, 0x100044edc\nFMOV            S4, WZR                                                ; +0x18, 0x100044ee0\nFMAXNM          S0, S0, S4                                             ; +0x1c, 0x100044ee4\nFCMP            S0, #0.0                                               ; +0x20, 0x100044ee8\nB.NE            loc_100044EF8                                          ; +0x24, 0x100044eec\nXTN             V0.2S, V1.2D                                           ; +0x28, 0x100044ef0\nB               loc_100044F58                                          ; +0x2c, 0x100044ef4\nDUP             V4.2D, X1                                              ; +0x30, 0x100044ef8\nUSHL            V2.2D, V4.2D, V2.2D                                    ; +0x34, 0x100044efc\nFCMP            S0, S3                                                 ; +0x38, 0x100044f00\nB.NE            loc_100044F14                                          ; +0x3c, 0x100044f04\nXTN             V0.2S, V2.2D                                           ; +0x40, 0x100044f08\nMOV             X0, X1                                                 ; +0x44, 0x100044f0c\nB               loc_100044F58                                          ; +0x48, 0x100044f10\nAND             W8, W0, #0xFF                                          ; +0x4c, 0x100044f14\nUCVTF           S3, W8                                                 ; +0x50, 0x100044f18\nAND             W8, W1, #0xFF                                          ; +0x54, 0x100044f1c\nSUB             W8, W8, W0,UXTB                                        ; +0x58, 0x100044f20\nSCVTF           S4, W8                                                 ; +0x5c, 0x100044f24\nFMADD           S3, S4, S0, S3                                         ; +0x60, 0x100044f28\nFCVTZS          W0, S3                                                 ; +0x64, 0x100044f2c\nXTN             V1.2S, V1.2D                                           ; +0x68, 0x100044f30\nXTN             V2.2S, V2.2D                                           ; +0x6c, 0x100044f34\nMOVI            D3, #0xFF000000FF                                      ; +0x70, 0x100044f38\nAND             V1.8B, V1.8B, V3.8B                                    ; +0x74, 0x100044f3c\nUCVTF           V4.2S, V1.2S                                           ; +0x78, 0x100044f40\nAND             V2.8B, V2.8B, V3.8B                                    ; +0x7c, 0x100044f44\nSUB             V1.2S, V2.2S, V1.2S                                    ; +0x80, 0x100044f48\nSCVTF           V1.2S, V1.2S                                           ; +0x84, 0x100044f4c\nFMLA            V4.2S, V1.2S, V0.S[0]                                  ; +0x88, 0x100044f50\nFCVTZS          V0.2S, V4.2S                                           ; +0x8c, 0x100044f54\nMOVI            D1, #0xFF000000FF                                      ; +0x90, 0x100044f58\nAND             V0.8B, V0.8B, V1.8B                                    ; +0x94, 0x100044f5c\nADRP            X8, #qword_1006354C0@PAGE                              ; +0x98, 0x100044f60\nLDR             D1, [X8,#qword_1006354C0@PAGEOFF]                      ; +0x9c, 0x100044f64\nUSHL            V0.2S, V0.2S, V1.2S                                    ; +0xa0, 0x100044f68\nDUP             V1.2S, V0.S[1]                                         ; +0xa4, 0x100044f6c\nORR             V0.8B, V0.8B, V1.8B                                    ; +0xa8, 0x100044f70\nFMOV            W8, S0                                                 ; +0xac, 0x100044f74\nAND             W9, W0, #0xFF                                          ; +0xb0, 0x100044f78\nORR             W0, W8, W9                                             ; +0xb4, 0x100044f7c\nRET                                                                    ; +0xb8, 0x100044f80", "xrefs": ["ColorAction::step @ 0x10000d5b4", "GJEffectManager::calculateInheritedColor @ 0x10000f818", "GJEffectManager::colorForPulseEffect @ 0x10000faac", "GJEffectManager::colorForPulseEffect @ 0x10000fb04", "PlayLayer::applyCustomEnterEffect @ 0x10011d5c4", "PlayLayer::applyCustomEnterEffect @ 0x10011d60c", "GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f60c4", "GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f613c", "GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f61c0", "GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f6238", "PlayerObject::update @ 0x100219750", "PlayerObject::update @ 0x1002197a0", "SecretRewardsLayer::scrollLayerMoved @ 0x1002ea2bc"], "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"}