{"type": "func", "start": 4300143712, "end": 4300143913, "name": "GameToolbox::multipliedColorValue", "pseudocode": "// \n// GameToolbox::multipliedColorValue from 0x1004efc60 to 0x1004efd29 (201 bytes)\n// \n// 17 xrefs:\n// > PlayLayer::applyCustomEnterEffect @ 0x1000b86e1\n// > PlayLayer::applyCustomEnterEffect @ 0x1000b8870\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x100142f9c\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x100143020\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x10014306f\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001431b6\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x100143209\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001432d6\n// > ColorAction::step @ 0x1002d99bb\n// > GJEffectManager::calculateInheritedColor @ 0x1002df209\n// > GJEffectManager::colorForPulseEffect @ 0x1002df479\n// > GJEffectManager::colorForPulseEffect @ 0x1002df528\n// > GJEffectManager::updateColorEffects @ 0x1002df89a\n// > PlayerObject::update @ 0x1003fcff9\n// > PlayerObject::update @ 0x1003fd05a\n// > ColorAction2::step @ 0x1004ed797\n// > SecretRewardsLayer::scrollLayerMoved @ 0x100632b34\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  unsigned int v3; // ecx\n  signed int v4; // eax\n  float v5; // xmm0_4\n\n  v3 = (*(_DWORD *)&a1.r & 0xFFFFFFu) >> 8;\n  v4 = (*(_DWORD *)&a1.r & 0xFFFFFFu) >> 16;\n  v5 = fmaxf(fminf(a3, 1.0), 0.0);\n  if ( v5 != 0.0 )\n  {\n    if ( v5 == 1.0 )\n    {\n      a1.r = a2.r;\n      LOBYTE(v3) = a2.g;\n      LOBYTE(v4) = (*(_DWORD *)&a2.r & 0xFFFFFFu) >> 16;\n    }\n    else\n    {\n      *(_DWORD *)&a1.r = (int)(float)((float)((float)(a2.r - a1.r) * v5) + (float)a1.r);\n      v3 = (int)(float)((float)((float)(a2.g - (unsigned __int8)v3) * v5) + (float)(unsigned __int8)v3);\n      v4 = (int)(float)((float)((float)(int)(((*(_DWORD *)&a2.r & 0xFFFFFFu) >> 16) - v4) * v5) + (float)v4);\n    }\n  }\n  return (cocos2d::ccColor3B)(((unsigned __int8)v4 << 16) | ((unsigned __int8)v3 << 8) | a1.r);\n}", "assembly": "; \n; GameToolbox::multipliedColorValue from 0x1004efc60 to 0x1004efd29 (201 bytes)\n; \n; 17 xrefs:\n; > PlayLayer::applyCustomEnterEffect @ 0x1000b86e1\n; > PlayLayer::applyCustomEnterEffect @ 0x1000b8870\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x100142f9c\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x100143020\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x10014306f\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001431b6\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x100143209\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001432d6\n; > ColorAction::step @ 0x1002d99bb\n; > GJEffectManager::calculateInheritedColor @ 0x1002df209\n; > GJEffectManager::colorForPulseEffect @ 0x1002df479\n; > GJEffectManager::colorForPulseEffect @ 0x1002df528\n; > GJEffectManager::updateColorEffects @ 0x1002df89a\n; > PlayerObject::update @ 0x1003fcff9\n; > PlayerObject::update @ 0x1003fd05a\n; > ColorAction2::step @ 0x1004ed797\n; > SecretRewardsLayer::scrollLayerMoved @ 0x100632b34\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, 0x1004efc60\nmov     rbp, rsp                                                       ; +0x1, 0x1004efc61\nmov     eax, edi                                                       ; +0x4, 0x1004efc64\nand     eax, 0FFFFFFh                                                  ; +0x6, 0x1004efc66\nmov     ecx, eax                                                       ; +0xb, 0x1004efc6b\nshr     ecx, 8                                                         ; +0xd, 0x1004efc6d\nshr     eax, 10h                                                       ; +0x10, 0x1004efc70\nminss   xmm0, cs:alpha                                                 ; +0x13, 0x1004efc73\nxorps   xmm1, xmm1                                                     ; +0x1b, 0x1004efc7b\nmaxss   xmm0, xmm1                                                     ; +0x1e, 0x1004efc7e\nucomiss xmm0, xmm1                                                     ; +0x22, 0x1004efc82\njnz     short loc_1004EFC8D                                            ; +0x25, 0x1004efc85\njnp     loc_1004EFD13                                                  ; +0x27, 0x1004efc87\nmov     edx, esi                                                       ; +0x2d, 0x1004efc8d\nand     edx, 0FFFFFFh                                                  ; +0x2f, 0x1004efc8f\nmov     r8d, edx                                                       ; +0x35, 0x1004efc95\nshr     r8d, 8                                                         ; +0x38, 0x1004efc98\nshr     edx, 10h                                                       ; +0x3c, 0x1004efc9c\nucomiss xmm0, cs:alpha                                                 ; +0x3f, 0x1004efc9f\njnz     short loc_1004EFCB3                                            ; +0x46, 0x1004efca6\njp      short loc_1004EFCB3                                            ; +0x48, 0x1004efca8\nmov     edi, esi                                                       ; +0x4a, 0x1004efcaa\nmov     ecx, r8d                                                       ; +0x4c, 0x1004efcac\nmov     eax, edx                                                       ; +0x4f, 0x1004efcaf\njmp     short loc_1004EFD13                                            ; +0x51, 0x1004efcb1\nmovzx   edi, dil                                                       ; +0x53, 0x1004efcb3\nxorps   xmm1, xmm1                                                     ; +0x57, 0x1004efcb7\ncvtsi2ss xmm1, edi                                                     ; +0x5a, 0x1004efcba\nmovzx   esi, sil                                                       ; +0x5e, 0x1004efcbe\nsub     esi, edi                                                       ; +0x62, 0x1004efcc2\ncvtsi2ss xmm2, esi                                                     ; +0x64, 0x1004efcc4\nmulss   xmm2, xmm0                                                     ; +0x68, 0x1004efcc8\naddss   xmm2, xmm1                                                     ; +0x6c, 0x1004efccc\ncvttss2si edi, xmm2                                                    ; +0x70, 0x1004efcd0\nmovzx   ecx, cl                                                        ; +0x74, 0x1004efcd4\nxorps   xmm1, xmm1                                                     ; +0x77, 0x1004efcd7\ncvtsi2ss xmm1, ecx                                                     ; +0x7a, 0x1004efcda\nmovzx   esi, r8b                                                       ; +0x7e, 0x1004efcde\nsub     esi, ecx                                                       ; +0x82, 0x1004efce2\nxorps   xmm2, xmm2                                                     ; +0x84, 0x1004efce4\ncvtsi2ss xmm2, esi                                                     ; +0x87, 0x1004efce7\nmulss   xmm2, xmm0                                                     ; +0x8b, 0x1004efceb\naddss   xmm2, xmm1                                                     ; +0x8f, 0x1004efcef\ncvttss2si ecx, xmm2                                                    ; +0x93, 0x1004efcf3\nxorps   xmm1, xmm1                                                     ; +0x97, 0x1004efcf7\ncvtsi2ss xmm1, eax                                                     ; +0x9a, 0x1004efcfa\nsub     edx, eax                                                       ; +0x9e, 0x1004efcfe\nxorps   xmm2, xmm2                                                     ; +0xa0, 0x1004efd00\ncvtsi2ss xmm2, edx                                                     ; +0xa3, 0x1004efd03\nmulss   xmm2, xmm0                                                     ; +0xa7, 0x1004efd07\naddss   xmm2, xmm1                                                     ; +0xab, 0x1004efd0b\ncvttss2si eax, xmm2                                                    ; +0xaf, 0x1004efd0f\nmovzx   eax, al                                                        ; +0xb3, 0x1004efd13\nshl     eax, 10h                                                       ; +0xb6, 0x1004efd16\nmovzx   ecx, cl                                                        ; +0xb9, 0x1004efd19\nshl     ecx, 8                                                         ; +0xbc, 0x1004efd1c\nor      ecx, eax                                                       ; +0xbf, 0x1004efd1f\nmovzx   eax, dil                                                       ; +0xc1, 0x1004efd21\nor      eax, ecx                                                       ; +0xc5, 0x1004efd25\npop     rbp                                                            ; +0xc7, 0x1004efd27\nretn                                                                   ; +0xc8, 0x1004efd28", "xrefs": ["PlayLayer::applyCustomEnterEffect @ 0x1000b86e1", "PlayLayer::applyCustomEnterEffect @ 0x1000b8870", "GJBaseGameLayer::processAreaTintGroupAction @ 0x100142f9c", "GJBaseGameLayer::processAreaTintGroupAction @ 0x100143020", "GJBaseGameLayer::processAreaTintGroupAction @ 0x10014306f", "GJBaseGameLayer::processAreaTintGroupAction @ 0x1001431b6", "GJBaseGameLayer::processAreaTintGroupAction @ 0x100143209", "GJBaseGameLayer::processAreaTintGroupAction @ 0x1001432d6", "ColorAction::step @ 0x1002d99bb", "GJEffectManager::calculateInheritedColor @ 0x1002df209", "GJEffectManager::colorForPulseEffect @ 0x1002df479", "GJEffectManager::colorForPulseEffect @ 0x1002df528", "GJEffectManager::updateColorEffects @ 0x1002df89a", "PlayerObject::update @ 0x1003fcff9", "PlayerObject::update @ 0x1003fd05a", "ColorAction2::step @ 0x1004ed797", "SecretRewardsLayer::scrollLayerMoved @ 0x100632b34"], "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"}