{"type": "func", "start": 4824706, "end": 4824768, "name": "GJEffectManager::colorForEffect", "pseudocode": "// \n// GJEffectManager::colorForEffect from 0x499e82 to 0x499ec0 (62 bytes)\n// \n// 7 xrefs:\n// > GameObject::getActiveColorForMode @ 0x358b44\n// > LevelEditorLayer::updateObjectColors @ 0x36789c\n// > LevelEditorLayer::updateObjectColors @ 0x3679be\n// > LevelEditorLayer::updateObjectColors @ 0x367a26\n// > LevelEditorLayer::updateVisibility @ 0x36993a\n// > LevelEditorLayer::updateVisibility @ 0x369a5c\n// > LevelEditorLayer::updateVisibility @ 0x369ac4\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::colorForEffect(GJEffectManager *a1, cocos2d::ccColor3B a2, cocos2d::ccHSVValue a3)\n{\n  int v3; // r4\n  int v4; // r5\n  int v5; // r6\n  int v6; // r0\n  int v9; // [sp+Ch] [bp-1Ch] BYREF\n  int v10; // [sp+10h] [bp-18h]\n  int v11; // [sp+14h] [bp-14h]\n  int v12; // [sp+18h] [bp-10h]\n\n  v10 = v3;\n  v11 = v4;\n  v12 = v5;\n  v9 = *(_DWORD *)&a2.r;\n  v6 = GameToolbox::transformColor((unsigned __int8 *)&v9, a3.h, a3.s, a3.v, *(__int16 *)&a3.absoluteSaturation);\n  return (cocos2d::ccColor3B)((unsigned __int8)v6 | (unsigned __int16)(BYTE1(v6) << 8) | (BYTE2(v6) << 16));\n}", "assembly": "; \n; GJEffectManager::colorForEffect from 0x499e82 to 0x499ec0 (62 bytes)\n; \n; 7 xrefs:\n; > GameObject::getActiveColorForMode @ 0x358b44\n; > LevelEditorLayer::updateObjectColors @ 0x36789c\n; > LevelEditorLayer::updateObjectColors @ 0x3679be\n; > LevelEditorLayer::updateObjectColors @ 0x367a26\n; > LevelEditorLayer::updateVisibility @ 0x36993a\n; > LevelEditorLayer::updateVisibility @ 0x369a5c\n; > LevelEditorLayer::updateVisibility @ 0x369ac4\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\nSUB             SP, SP, #8                                             ; +0x0, 0x499e82\nPUSH            {R0-R6,LR}                                             ; +0x2, 0x499e84\nADD             R0, SP, #0x28+var_10                                   ; +0x4, 0x499e86\nSTR.W           R1, [R0,#-0xC]!                                        ; +0x6, 0x499e88\nADD             R1, SP, #0x28+var_8                                    ; +0xa, 0x499e8c\nSTM.W           R1, {R2,R3}                                            ; +0xc, 0x499e8e\nLDR             R3, [SP,#0x28+arg_4]                                   ; +0x10, 0x499e92\nSTR             R3, [SP,#0x28+var_28]                                  ; +0x12, 0x499e94\nLDM             R1, {R1-R3}                                            ; +0x14, 0x499e96\nBL              _ZN11GameToolbox14transformColorERKN7cocos2d10_ccColor3BENS0_11_ccHSVValueE; GameToolbox::transformColor(cocos2d::_ccColor3B const&,cocos2d::_ccHSVValue) ; +0x16, 0x499e98\nMOV             R3, R0                                                 ; +0x1a, 0x499e9c\nMOVS            R0, #0                                                 ; +0x1c, 0x499e9e\nUXTB            R2, R3                                                 ; +0x1e, 0x499ea0\nBFI.W           R0, R2, #0, #8                                         ; +0x20, 0x499ea2\nUBFX.W          R2, R3, #8, #8                                         ; +0x24, 0x499ea6\nBFI.W           R0, R2, #8, #8                                         ; +0x28, 0x499eaa\nUBFX.W          R3, R3, #0x10, #8                                      ; +0x2c, 0x499eae\nBFI.W           R0, R3, #0x10, #8                                      ; +0x30, 0x499eb2\nADD             SP, SP, #0x1C                                          ; +0x34, 0x499eb6\nPOP.W           {LR}                                                   ; +0x36, 0x499eb8\nADD             SP, SP, #8                                             ; +0x3a, 0x499ebc\nBX              LR                                                     ; +0x3c, 0x499ebe", "xrefs": ["GameObject::getActiveColorForMode @ 0x358b44", "LevelEditorLayer::updateObjectColors @ 0x36789c", "LevelEditorLayer::updateObjectColors @ 0x3679be", "LevelEditorLayer::updateObjectColors @ 0x367a26", "LevelEditorLayer::updateVisibility @ 0x36993a", "LevelEditorLayer::updateVisibility @ 0x369a5c", "LevelEditorLayer::updateVisibility @ 0x369ac4"], "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"}