{"type": "func", "start": 4295029004, "end": 4295029092, "name": "GJEffectManager::activeColorForIndex", "pseudocode": "// \n// GJEffectManager::activeColorForIndex from 0x10000f10c to 0x10000f164 (88 bytes)\n// \n// 32 xrefs:\n// > GJEffectManager::processCopyColorPulseActions @ 0x10000f60c\n// > GJEffectManager::colorForPulseEffect @ 0x10000fa50\n// > PlayLayer::updateVisibility @ 0x10011c4c8\n// > PlayLayer::updateVisibility @ 0x10011c518\n// > PlayLayer::updateVisibility @ 0x10011c530\n// > PlayLayer::applyCustomEnterEffect @ 0x10011d2ec\n// > GJBaseGameLayer::updateLevelColors @ 0x1001dde88\n// > GJBaseGameLayer::updateLevelColors @ 0x1001ddeb4\n// > GJBaseGameLayer::updateLevelColors @ 0x1001ddee8\n// > GJBaseGameLayer::updateLevelColors @ 0x1001ddf10\n// > GJBaseGameLayer::updateLevelColors @ 0x1001ddfe4\n// > GJBaseGameLayer::updateLevelColors @ 0x1001de004\n// > GJBaseGameLayer::updateGradientLayers @ 0x1001f002c\n// > GJBaseGameLayer::updateGradientLayers @ 0x1001f0044\n// > GJBaseGameLayer::updateShaderLayer @ 0x1001f12d0\n// > GJBaseGameLayer::updateShaderLayer @ 0x1001f1300\n// > GJBaseGameLayer::updateShaderLayer @ 0x1001f1474\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f5d40\n// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd87c\n// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd888\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100208f90\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100208fa8\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100208fc4\n// > PlayerObject::ringJump @ 0x10022866c\n// > LevelEditorLayer::updateGameObjects @ 0x100358a04\n// > LevelEditorLayer::updateVisibility @ 0x10035e8d4\n// > LevelEditorLayer::updateVisibility @ 0x10035ed14\n// > LevelEditorLayer::updateVisibility @ 0x10035ef44\n// > LevelEditorLayer::updateObjectColors @ 0x10035f334\n// > LevelEditorLayer::updateObjectColors @ 0x10035f524\n// > LevelEditorLayer::transferDefaultColors @ 0x10036081c\n// > LevelEditorLayer::postUpdate @ 0x1003636a8\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 __fastcall GJEffectManager::activeColorForIndex(GJEffectManager *a1, int a2)\n{\n  int v3; // w0\n  ColorActionSprite *ColorSprite; // x0\n\n  v3 = 0xFFFFFF;\n  if ( a2 && a2 != 1011 )\n  {\n    if ( a2 == 1010 )\n    {\n      return (cocos2d::ccColor3B)0;\n    }\n    else\n    {\n      ColorSprite = GJEffectManager::getColorSprite(a1, a2);\n      if ( ColorSprite )\n        return (cocos2d::ccColor3B)(*(unsigned __int16 *)&ColorSprite->m_copyColor.r | (ColorSprite->m_copyColor.b << 16));\n      else\n        return (cocos2d::ccColor3B)0xFFFFFF;\n    }\n  }\n  return (cocos2d::ccColor3B)v3;\n}", "assembly": "; \n; GJEffectManager::activeColorForIndex from 0x10000f10c to 0x10000f164 (88 bytes)\n; \n; 32 xrefs:\n; > GJEffectManager::processCopyColorPulseActions @ 0x10000f60c\n; > GJEffectManager::colorForPulseEffect @ 0x10000fa50\n; > PlayLayer::updateVisibility @ 0x10011c4c8\n; > PlayLayer::updateVisibility @ 0x10011c518\n; > PlayLayer::updateVisibility @ 0x10011c530\n; > PlayLayer::applyCustomEnterEffect @ 0x10011d2ec\n; > GJBaseGameLayer::updateLevelColors @ 0x1001dde88\n; > GJBaseGameLayer::updateLevelColors @ 0x1001ddeb4\n; > GJBaseGameLayer::updateLevelColors @ 0x1001ddee8\n; > GJBaseGameLayer::updateLevelColors @ 0x1001ddf10\n; > GJBaseGameLayer::updateLevelColors @ 0x1001ddfe4\n; > GJBaseGameLayer::updateLevelColors @ 0x1001de004\n; > GJBaseGameLayer::updateGradientLayers @ 0x1001f002c\n; > GJBaseGameLayer::updateGradientLayers @ 0x1001f0044\n; > GJBaseGameLayer::updateShaderLayer @ 0x1001f12d0\n; > GJBaseGameLayer::updateShaderLayer @ 0x1001f1300\n; > GJBaseGameLayer::updateShaderLayer @ 0x1001f1474\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f5d40\n; > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd87c\n; > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd888\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100208f90\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100208fa8\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100208fc4\n; > PlayerObject::ringJump @ 0x10022866c\n; > LevelEditorLayer::updateGameObjects @ 0x100358a04\n; > LevelEditorLayer::updateVisibility @ 0x10035e8d4\n; > LevelEditorLayer::updateVisibility @ 0x10035ed14\n; > LevelEditorLayer::updateVisibility @ 0x10035ef44\n; > LevelEditorLayer::updateObjectColors @ 0x10035f334\n; > LevelEditorLayer::updateObjectColors @ 0x10035f524\n; > LevelEditorLayer::transferDefaultColors @ 0x10036081c\n; > LevelEditorLayer::postUpdate @ 0x1003636a8\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\nMOV             X8, X0                                                 ; +0x0, 0x10000f10c\nMOV             W0, #0xFFFFFF                                          ; +0x4, 0x10000f110\nCBZ             W1, locret_10000F12C                                   ; +0x8, 0x10000f114\nCMP             W1, #0x3F3                                             ; +0xc, 0x10000f118\nB.EQ            locret_10000F12C                                       ; +0x10, 0x10000f11c\nCMP             W1, #0x3F2                                             ; +0x14, 0x10000f120\nB.NE            loc_10000F130                                          ; +0x18, 0x10000f124\nMOV             W0, #0                                                 ; +0x1c, 0x10000f128\nRET                                                                    ; +0x20, 0x10000f12c\nSTP             X29, X30, [SP,#var_10]!                                ; +0x24, 0x10000f130\nMOV             X29, SP                                                ; +0x28, 0x10000f134\nMOV             X0, X8                                                 ; +0x2c, 0x10000f138\nBL              GJEffectManager__getColorSprite                        ; +0x30, 0x10000f13c\nCBZ             X0, loc_10000F158                                      ; +0x34, 0x10000f140\nADD             X8, X0, #0x143                                         ; +0x38, 0x10000f144\nLDRB            W9, [X0,#0x145]                                        ; +0x3c, 0x10000f148\nLDRH            W8, [X8]                                               ; +0x40, 0x10000f14c\nORR             W0, W8, W9,LSL#16                                      ; +0x44, 0x10000f150\nB               loc_10000F15C                                          ; +0x48, 0x10000f154\nMOV             W0, #0xFFFFFF                                          ; +0x4c, 0x10000f158\nLDP             X29, X30, [SP+0x10+var_10],#0x10                       ; +0x50, 0x10000f15c\nRET                                                                    ; +0x54, 0x10000f160", "xrefs": ["GJEffectManager::processCopyColorPulseActions @ 0x10000f60c", "GJEffectManager::colorForPulseEffect @ 0x10000fa50", "PlayLayer::updateVisibility @ 0x10011c4c8", "PlayLayer::updateVisibility @ 0x10011c518", "PlayLayer::updateVisibility @ 0x10011c530", "PlayLayer::applyCustomEnterEffect @ 0x10011d2ec", "GJBaseGameLayer::updateLevelColors @ 0x1001dde88", "GJBaseGameLayer::updateLevelColors @ 0x1001ddeb4", "GJBaseGameLayer::updateLevelColors @ 0x1001ddee8", "GJBaseGameLayer::updateLevelColors @ 0x1001ddf10", "GJBaseGameLayer::updateLevelColors @ 0x1001ddfe4", "GJBaseGameLayer::updateLevelColors @ 0x1001de004", "GJBaseGameLayer::updateGradientLayers @ 0x1001f002c", "GJBaseGameLayer::updateGradientLayers @ 0x1001f0044", "GJBaseGameLayer::updateShaderLayer @ 0x1001f12d0", "GJBaseGameLayer::updateShaderLayer @ 0x1001f1300", "GJBaseGameLayer::updateShaderLayer @ 0x1001f1474", "GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f5d40", "GJBaseGameLayer::preUpdateVisibility @ 0x1001fd87c", "GJBaseGameLayer::preUpdateVisibility @ 0x1001fd888", "GJBaseGameLayer::visitWithColorFlash @ 0x100208f90", "GJBaseGameLayer::visitWithColorFlash @ 0x100208fa8", "GJBaseGameLayer::visitWithColorFlash @ 0x100208fc4", "PlayerObject::ringJump @ 0x10022866c", "LevelEditorLayer::updateGameObjects @ 0x100358a04", "LevelEditorLayer::updateVisibility @ 0x10035e8d4", "LevelEditorLayer::updateVisibility @ 0x10035ed14", "LevelEditorLayer::updateVisibility @ 0x10035ef44", "LevelEditorLayer::updateObjectColors @ 0x10035f334", "LevelEditorLayer::updateObjectColors @ 0x10035f524", "LevelEditorLayer::transferDefaultColors @ 0x10036081c", "LevelEditorLayer::postUpdate @ 0x1003636a8"], "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"}