{"type": "func", "start": 9172368, "end": 9172496, "name": "GJEffectManager::activeColorForIndex", "pseudocode": "// \n// GJEffectManager::activeColorForIndex from 0x8bf590 to 0x8bf610 (128 bytes)\n// \n// 34 xrefs:\n// > PlayLayer::applyCustomEnterEffect @ 0x5cd808\n// > PlayLayer::updateVisibility @ 0x5ce118\n// > PlayLayer::updateVisibility @ 0x5ce190\n// > PlayLayer::updateVisibility @ 0x5ce1b4\n// > PlayerObject::ringJump @ 0x63c170\n// > LevelEditorLayer::updateObjectColors @ 0x65f850\n// > LevelEditorLayer::updateObjectColors @ 0x65fbc0\n// > LevelEditorLayer::transferDefaultColors @ 0x65ff38\n// > LevelEditorLayer::updateVisibility @ 0x662cb8\n// > LevelEditorLayer::updateVisibility @ 0x662ed4\n// > LevelEditorLayer::updateVisibility @ 0x6633fc\n// > LevelEditorLayer::postUpdate @ 0x66eb48\n// > LevelEditorLayer::updateGameObjects @ 0x67bd20\n// > GJBaseGameLayer::updateLevelColors @ 0x857d64\n// > GJBaseGameLayer::updateLevelColors @ 0x857da0\n// > GJBaseGameLayer::updateLevelColors @ 0x857de8\n// > GJBaseGameLayer::updateLevelColors @ 0x857e28\n// > GJBaseGameLayer::updateLevelColors @ 0x857f20\n// > GJBaseGameLayer::updateLevelColors @ 0x857f58\n// > GJBaseGameLayer::updateGradientLayers @ 0x85de74\n// > GJBaseGameLayer::updateGradientLayers @ 0x85de98\n// > GJBaseGameLayer::updateShaderLayer @ 0x85f22c\n// > GJBaseGameLayer::updateShaderLayer @ 0x85f278\n// > GJBaseGameLayer::updateShaderLayer @ 0x85f358\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x861e94\n// > GJBaseGameLayer::visitWithColorFlash @ 0x86aa94\n// > GJBaseGameLayer::visitWithColorFlash @ 0x86aab8\n// > GJBaseGameLayer::visitWithColorFlash @ 0x86aadc\n// > GJBaseGameLayer::preUpdateVisibility @ 0x881e78\n// > GJBaseGameLayer::preUpdateVisibility @ 0x881e9c\n// > GJEffectManager::colorForPulseEffect @ 0x8bf7d8\n// > GJEffectManager::calculateLightBGColor @ 0x8bfa74\n// > GJEffectManager::processCopyColorPulseActions @ 0x8c14ac\n// > <???> @ 0x794b8\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::activeColorForIndex(GJEffectManager *a1, int a2)\n{\n  ColorActionSprite *ColorSprite; // x0\n  __int16 v4; // [xsp+18h] [xbp+18h]\n  unsigned __int8 b; // [xsp+1Ah] [xbp+1Ah]\n\n  if ( a2 == 1010 )\n  {\n    v4 = 0;\n    b = 0;\n  }\n  else if ( a2 != 1011 && a2 && (ColorSprite = GJEffectManager::getColorSprite(a1, a2)) != nullptr )\n  {\n    b = ColorSprite->m_copyColor.b;\n    v4 = *(_WORD *)&ColorSprite->m_copyColor.r;\n  }\n  else\n  {\n    v4 = -1;\n    b = -1;\n  }\n  return (cocos2d::ccColor3B)((unsigned __int8)v4 | (unsigned __int16)(HIBYTE(v4) << 8) | (b << 16));\n}", "assembly": "; \n; GJEffectManager::activeColorForIndex from 0x8bf590 to 0x8bf610 (128 bytes)\n; \n; 34 xrefs:\n; > PlayLayer::applyCustomEnterEffect @ 0x5cd808\n; > PlayLayer::updateVisibility @ 0x5ce118\n; > PlayLayer::updateVisibility @ 0x5ce190\n; > PlayLayer::updateVisibility @ 0x5ce1b4\n; > PlayerObject::ringJump @ 0x63c170\n; > LevelEditorLayer::updateObjectColors @ 0x65f850\n; > LevelEditorLayer::updateObjectColors @ 0x65fbc0\n; > LevelEditorLayer::transferDefaultColors @ 0x65ff38\n; > LevelEditorLayer::updateVisibility @ 0x662cb8\n; > LevelEditorLayer::updateVisibility @ 0x662ed4\n; > LevelEditorLayer::updateVisibility @ 0x6633fc\n; > LevelEditorLayer::postUpdate @ 0x66eb48\n; > LevelEditorLayer::updateGameObjects @ 0x67bd20\n; > GJBaseGameLayer::updateLevelColors @ 0x857d64\n; > GJBaseGameLayer::updateLevelColors @ 0x857da0\n; > GJBaseGameLayer::updateLevelColors @ 0x857de8\n; > GJBaseGameLayer::updateLevelColors @ 0x857e28\n; > GJBaseGameLayer::updateLevelColors @ 0x857f20\n; > GJBaseGameLayer::updateLevelColors @ 0x857f58\n; > GJBaseGameLayer::updateGradientLayers @ 0x85de74\n; > GJBaseGameLayer::updateGradientLayers @ 0x85de98\n; > GJBaseGameLayer::updateShaderLayer @ 0x85f22c\n; > GJBaseGameLayer::updateShaderLayer @ 0x85f278\n; > GJBaseGameLayer::updateShaderLayer @ 0x85f358\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x861e94\n; > GJBaseGameLayer::visitWithColorFlash @ 0x86aa94\n; > GJBaseGameLayer::visitWithColorFlash @ 0x86aab8\n; > GJBaseGameLayer::visitWithColorFlash @ 0x86aadc\n; > GJBaseGameLayer::preUpdateVisibility @ 0x881e78\n; > GJBaseGameLayer::preUpdateVisibility @ 0x881e9c\n; > GJEffectManager::colorForPulseEffect @ 0x8bf7d8\n; > GJEffectManager::calculateLightBGColor @ 0x8bfa74\n; > GJEffectManager::processCopyColorPulseActions @ 0x8c14ac\n; > <???> @ 0x794b8\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_20]!                                ; +0x0, 0x8bf590\nCMP             W1, #0x3F2                                             ; +0x4, 0x8bf594\nMOV             X29, SP                                                ; +0x8, 0x8bf598\nB.EQ            loc_8BF600                                             ; +0xc, 0x8bf59c\nCMP             W1, #0x3F3                                             ; +0x10, 0x8bf5a0\nB.EQ            loc_8BF5EC                                             ; +0x14, 0x8bf5a4\nCBZ             W1, loc_8BF5EC                                         ; +0x18, 0x8bf5a8\nBL              _ZN15GJEffectManager14getColorSpriteEi; GJEffectManager::getColorSprite(int) ; +0x1c, 0x8bf5ac\nCBZ             X0, loc_8BF5EC                                         ; +0x20, 0x8bf5b0\nLDRB            W1, [X0,#0x145]                                        ; +0x24, 0x8bf5b4\nADD             X0, X0, #0x143                                         ; +0x28, 0x8bf5b8\nSTRB            W1, [X29,#0x20+var_6]                                  ; +0x2c, 0x8bf5bc\nLDRH            W0, [X0]                                               ; +0x30, 0x8bf5c0\nSTRH            W0, [X29,#0x20+var_8]                                  ; +0x34, 0x8bf5c4\nLDRB            W1, [X29,#0x20+var_8]                                  ; +0x38, 0x8bf5c8\nMOV             X0, #0                                                 ; +0x3c, 0x8bf5cc\nLDRB            W2, [X29,#0x20+var_8+1]                                ; +0x40, 0x8bf5d0\nBFXIL           X0, X1, #0, #8                                         ; +0x44, 0x8bf5d4\nLDRB            W1, [X29,#0x20+var_6]                                  ; +0x48, 0x8bf5d8\nBFI             X0, X2, #8, #8                                         ; +0x4c, 0x8bf5dc\nBFI             X0, X1, #0x10, #8                                      ; +0x50, 0x8bf5e0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x54, 0x8bf5e4\nRET                                                                    ; +0x58, 0x8bf5e8\nMOV             W0, #0xFFFFFFFF                                        ; +0x5c, 0x8bf5ec\nSTRB            W0, [X29,#0x20+var_8]                                  ; +0x60, 0x8bf5f0\nSTRB            W0, [X29,#0x20+var_8+1]                                ; +0x64, 0x8bf5f4\nSTRB            W0, [X29,#0x20+var_6]                                  ; +0x68, 0x8bf5f8\nB               loc_8BF5C8                                             ; +0x6c, 0x8bf5fc\nSTRB            WZR, [X29,#0x20+var_8]                                 ; +0x70, 0x8bf600\nSTRB            WZR, [X29,#0x20+var_8+1]                               ; +0x74, 0x8bf604\nSTRB            WZR, [X29,#0x20+var_6]                                 ; +0x78, 0x8bf608\nB               loc_8BF5C8                                             ; +0x7c, 0x8bf60c", "xrefs": ["PlayLayer::applyCustomEnterEffect @ 0x5cd808", "PlayLayer::updateVisibility @ 0x5ce118", "PlayLayer::updateVisibility @ 0x5ce190", "PlayLayer::updateVisibility @ 0x5ce1b4", "PlayerObject::ringJump @ 0x63c170", "LevelEditorLayer::updateObjectColors @ 0x65f850", "LevelEditorLayer::updateObjectColors @ 0x65fbc0", "LevelEditorLayer::transferDefaultColors @ 0x65ff38", "LevelEditorLayer::updateVisibility @ 0x662cb8", "LevelEditorLayer::updateVisibility @ 0x662ed4", "LevelEditorLayer::updateVisibility @ 0x6633fc", "LevelEditorLayer::postUpdate @ 0x66eb48", "LevelEditorLayer::updateGameObjects @ 0x67bd20", "GJBaseGameLayer::updateLevelColors @ 0x857d64", "GJBaseGameLayer::updateLevelColors @ 0x857da0", "GJBaseGameLayer::updateLevelColors @ 0x857de8", "GJBaseGameLayer::updateLevelColors @ 0x857e28", "GJBaseGameLayer::updateLevelColors @ 0x857f20", "GJBaseGameLayer::updateLevelColors @ 0x857f58", "GJBaseGameLayer::updateGradientLayers @ 0x85de74", "GJBaseGameLayer::updateGradientLayers @ 0x85de98", "GJBaseGameLayer::updateShaderLayer @ 0x85f22c", "GJBaseGameLayer::updateShaderLayer @ 0x85f278", "GJBaseGameLayer::updateShaderLayer @ 0x85f358", "GJBaseGameLayer::processAreaTintGroupAction @ 0x861e94", "GJBaseGameLayer::visitWithColorFlash @ 0x86aa94", "GJBaseGameLayer::visitWithColorFlash @ 0x86aab8", "GJBaseGameLayer::visitWithColorFlash @ 0x86aadc", "GJBaseGameLayer::preUpdateVisibility @ 0x881e78", "GJBaseGameLayer::preUpdateVisibility @ 0x881e9c", "GJEffectManager::colorForPulseEffect @ 0x8bf7d8", "GJEffectManager::calculateLightBGColor @ 0x8bfa74", "GJEffectManager::processCopyColorPulseActions @ 0x8c14ac", "<???> @ 0x794b8"], "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"}