{"type": "func", "start": 4295249796, "end": 4295249904, "name": "GameToolbox::getMultipliedHSV", "pseudocode": "// \n// GameToolbox::getMultipliedHSV from 0x100044f84 to 0x100044ff0 (108 bytes)\n// \n// 4 xrefs:\n// > GJEffectManager::calculateInheritedColor @ 0x10000f8e8\n// > GJEffectManager::colorForPulseEffect @ 0x10000fadc\n// > PlayLayer::applyCustomEnterEffect @ 0x10011d310\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f5dec\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::ccHSVValue __fastcall GameToolbox::getMultipliedHSV(const cocos2d::ccHSVValue *a1, float a2)\n{\n  float v; // w9\n  __int64 absoluteSaturation; // x10\n  __int64 absoluteBrightness; // x11\n  __int64 v5; // x12\n  float s; // s3\n  float v7; // s4\n  float v8; // s3\n  float v9; // s2\n  cocos2d::ccHSVValue result; // 0:x0.16\n\n  v = a1->v;\n  absoluteSaturation = a1->absoluteSaturation;\n  absoluteBrightness = a1->absoluteBrightness;\n  v5 = *(unsigned __int16 *)a1->__pad;\n  s = a1->s;\n  v7 = (float)(1.0 - a2) + (float)(s * a2);\n  v8 = s * a2;\n  if ( (absoluteSaturation & 1) == 0 )\n    v8 = v7;\n  v9 = (float)(1.0 - a2) + (float)(v * a2);\n  if ( (absoluteBrightness & 1) != 0 )\n    v9 = v * a2;\n  *(_QWORD *)&result.h = COERCE_UNSIGNED_INT(a1->h * a2) | ((unsigned __int64)LODWORD(v8) << 32);\n  *(_QWORD *)&result.v = (absoluteSaturation << 32) | (absoluteBrightness << 40) | (v5 << 48) | LODWORD(v9);\n  return result;\n}", "assembly": "; \n; GameToolbox::getMultipliedHSV from 0x100044f84 to 0x100044ff0 (108 bytes)\n; \n; 4 xrefs:\n; > GJEffectManager::calculateInheritedColor @ 0x10000f8e8\n; > GJEffectManager::colorForPulseEffect @ 0x10000fadc\n; > PlayLayer::applyCustomEnterEffect @ 0x10011d310\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f5dec\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\nLDR             S1, [X0]                                               ; +0x0, 0x100044f84\nLDP             W8, W9, [X0,#4]                                        ; +0x4, 0x100044f88\nLDRB            W10, [X0,#0xC]                                         ; +0x8, 0x100044f8c\nLDRB            W11, [X0,#0xD]                                         ; +0xc, 0x100044f90\nLDRH            W12, [X0,#0xE]                                         ; +0x10, 0x100044f94\nFMOV            S2, #1.0                                               ; +0x14, 0x100044f98\nFSUB            S2, S2, S0                                             ; +0x18, 0x100044f9c\nFMOV            S3, W8                                                 ; +0x1c, 0x100044fa0\nFMADD           S4, S3, S0, S2                                         ; +0x20, 0x100044fa4\nFMUL            S3, S3, S0                                             ; +0x24, 0x100044fa8\nTST             W10, #1                                                ; +0x28, 0x100044fac\nFCSEL           S3, S4, S3, EQ                                         ; +0x2c, 0x100044fb0\nFMOV            S4, W9                                                 ; +0x30, 0x100044fb4\nFMADD           S2, S4, S0, S2                                         ; +0x34, 0x100044fb8\nFMUL            S4, S4, S0                                             ; +0x38, 0x100044fbc\nTST             W11, #1                                                ; +0x3c, 0x100044fc0\nFCSEL           S2, S2, S4, EQ                                         ; +0x40, 0x100044fc4\nFMOV            W8, S2                                                 ; +0x44, 0x100044fc8\nFMOV            W9, S3                                                 ; +0x48, 0x100044fcc\nFMUL            S0, S1, S0                                             ; +0x4c, 0x100044fd0\nFMOV            W13, S0                                                ; +0x50, 0x100044fd4\nORR             X0, X13, X9,LSL#32                                     ; +0x54, 0x100044fd8\nLSL             X9, X10, #0x20 ; ' '                                   ; +0x58, 0x100044fdc\nORR             X9, X9, X11,LSL#40                                     ; +0x5c, 0x100044fe0\nORR             X9, X9, X12,LSL#48                                     ; +0x60, 0x100044fe4\nORR             X1, X9, X8                                             ; +0x64, 0x100044fe8\nRET                                                                    ; +0x68, 0x100044fec", "xrefs": ["GJEffectManager::calculateInheritedColor @ 0x10000f8e8", "GJEffectManager::colorForPulseEffect @ 0x10000fadc", "PlayLayer::applyCustomEnterEffect @ 0x10011d310", "GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f5dec"], "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"}