{"type": "func", "start": 9061148, "end": 9061216, "name": "GJEffectManager::colorForEffect", "pseudocode": "// \n// GJEffectManager::colorForEffect from 0x8a431c to 0x8a4360 (68 bytes)\n// \n// 8 xrefs:\n// > GameObject::getActiveColorForMode @ 0x64a744\n// > LevelEditorLayer::updateObjectColors @ 0x65f91c\n// > LevelEditorLayer::updateObjectColors @ 0x65faf8\n// > LevelEditorLayer::updateObjectColors @ 0x65fc5c\n// > LevelEditorLayer::updateVisibility @ 0x662fa8\n// > LevelEditorLayer::updateVisibility @ 0x6634cc\n// > LevelEditorLayer::updateVisibility @ 0x663620\n// > <???> @ 0xa1598\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 GJEffectManager::colorForEffect(GJEffectManager *a1, cocos2d::ccColor3B a2, cocos2d::ccHSVValue a3)\n{\n  unsigned __int64 v3; // x0\n  __int64 v5; // [xsp+18h] [xbp+18h] BYREF\n\n  v5 = *(_QWORD *)&a2.r;\n  v3 = GameToolbox::transformColor((unsigned __int8 *)&v5, *(unsigned __int64 *)&a3.h, *(__int64 *)&a3.v);\n  return (cocos2d::ccColor3B)((unsigned __int8)v3 | (unsigned __int16)(BYTE1(v3) << 8) | (BYTE2(v3) << 16));\n}", "assembly": "; \n; GJEffectManager::colorForEffect from 0x8a431c to 0x8a4360 (68 bytes)\n; \n; 8 xrefs:\n; > GameObject::getActiveColorForMode @ 0x64a744\n; > LevelEditorLayer::updateObjectColors @ 0x65f91c\n; > LevelEditorLayer::updateObjectColors @ 0x65faf8\n; > LevelEditorLayer::updateObjectColors @ 0x65fc5c\n; > LevelEditorLayer::updateVisibility @ 0x662fa8\n; > LevelEditorLayer::updateVisibility @ 0x6634cc\n; > LevelEditorLayer::updateVisibility @ 0x663620\n; > <???> @ 0xa1598\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x8a431c\nMOV             X29, SP                                                ; +0x4, 0x8a4320\nADD             X0, X29, #0x30+var_18                                  ; +0x8, 0x8a4324\nSTR             X1, [X29,#0x30+var_18]                                 ; +0xc, 0x8a4328\nMOV             X1, X2                                                 ; +0x10, 0x8a432c\nMOV             X2, X3                                                 ; +0x14, 0x8a4330\nBL              _ZN11GameToolbox14transformColorERKN7cocos2d10_ccColor3BENS0_11_ccHSVValueE; GameToolbox::transformColor(cocos2d::_ccColor3B const&,cocos2d::_ccHSVValue) ; +0x18, 0x8a4334\nSXTW            X1, W0                                                 ; +0x1c, 0x8a4338\nMOV             X0, #0                                                 ; +0x20, 0x8a433c\nUBFX            X2, X1, #8, #8                                         ; +0x24, 0x8a4340\nUXTB            W3, W1                                                 ; +0x28, 0x8a4344\nUBFX            X1, X1, #0x10, #8                                      ; +0x2c, 0x8a4348\nBFXIL           X0, X3, #0, #8                                         ; +0x30, 0x8a434c\nBFI             X0, X2, #8, #8                                         ; +0x34, 0x8a4350\nBFI             X0, X1, #0x10, #8                                      ; +0x38, 0x8a4354\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x3c, 0x8a4358\nRET                                                                    ; +0x40, 0x8a435c", "xrefs": ["GameObject::getActiveColorForMode @ 0x64a744", "LevelEditorLayer::updateObjectColors @ 0x65f91c", "LevelEditorLayer::updateObjectColors @ 0x65faf8", "LevelEditorLayer::updateObjectColors @ 0x65fc5c", "LevelEditorLayer::updateVisibility @ 0x662fa8", "LevelEditorLayer::updateVisibility @ 0x6634cc", "LevelEditorLayer::updateVisibility @ 0x663620", "<???> @ 0xa1598"], "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"}