{"type": "func", "start": 4297974816, "end": 4297974887, "name": "GJEffectManager::activeColorForIndex", "pseudocode": "// \n// GJEffectManager::activeColorForIndex from 0x1002de420 to 0x1002de467 (71 bytes)\n// \n// 30 xrefs:\n// > PlayLayer::updateVisibility @ 0x1000b7061\n// > PlayLayer::updateVisibility @ 0x1000b70be\n// > PlayLayer::updateVisibility @ 0x1000b70d9\n// > PlayLayer::applyCustomEnterEffect @ 0x1000b8461\n// > LevelEditorLayer::updateGameObjects @ 0x1000de064\n// > LevelEditorLayer::updateVisibility @ 0x1000ead85\n// > LevelEditorLayer::updateVisibility @ 0x1000eb26a\n// > LevelEditorLayer::updateVisibility @ 0x1000eb492\n// > LevelEditorLayer::updateObjectColors @ 0x1000eb92f\n// > LevelEditorLayer::updateObjectColors @ 0x1000ebb2f\n// > LevelEditorLayer::transferDefaultColors @ 0x1000eeb31\n// > LevelEditorLayer::postUpdate @ 0x1000f3460\n// > GJBaseGameLayer::updateLevelColors @ 0x10011461a\n// > GJBaseGameLayer::updateLevelColors @ 0x100114649\n// > GJBaseGameLayer::updateLevelColors @ 0x10011468b\n// > GJBaseGameLayer::updateLevelColors @ 0x1001146bc\n// > GJBaseGameLayer::updateLevelColors @ 0x1001147c0\n// > GJBaseGameLayer::updateLevelColors @ 0x1001147e7\n// > GJBaseGameLayer::updateGradientLayers @ 0x100139988\n// > GJBaseGameLayer::updateGradientLayers @ 0x1001399a6\n// > GJBaseGameLayer::updateShaderLayer @ 0x10013b3ea\n// > GJBaseGameLayer::updateShaderLayer @ 0x10013b425\n// > GJBaseGameLayer::updateShaderLayer @ 0x10013b605\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x100142ac7\n// > GJBaseGameLayer::preUpdateVisibility @ 0x10014f8cf\n// > GJBaseGameLayer::preUpdateVisibility @ 0x10014f8e0\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100164fa0\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100164fbb\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100164fda\n// > PlayerObject::ringJump @ 0x100414bf0\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 v2; // eax\n  ColorActionSprite *ColorSprite; // rcx\n\n  v2 = 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      v2 = 0xFFFFFF;\n      if ( ColorSprite )\n        return (cocos2d::ccColor3B)(*(unsigned __int16 *)&ColorSprite->m_copyColor.r | (ColorSprite->m_copyColor.b << 16));\n    }\n  }\n  return (cocos2d::ccColor3B)v2;\n}", "assembly": "; \n; GJEffectManager::activeColorForIndex from 0x1002de420 to 0x1002de467 (71 bytes)\n; \n; 30 xrefs:\n; > PlayLayer::updateVisibility @ 0x1000b7061\n; > PlayLayer::updateVisibility @ 0x1000b70be\n; > PlayLayer::updateVisibility @ 0x1000b70d9\n; > PlayLayer::applyCustomEnterEffect @ 0x1000b8461\n; > LevelEditorLayer::updateGameObjects @ 0x1000de064\n; > LevelEditorLayer::updateVisibility @ 0x1000ead85\n; > LevelEditorLayer::updateVisibility @ 0x1000eb26a\n; > LevelEditorLayer::updateVisibility @ 0x1000eb492\n; > LevelEditorLayer::updateObjectColors @ 0x1000eb92f\n; > LevelEditorLayer::updateObjectColors @ 0x1000ebb2f\n; > LevelEditorLayer::transferDefaultColors @ 0x1000eeb31\n; > LevelEditorLayer::postUpdate @ 0x1000f3460\n; > GJBaseGameLayer::updateLevelColors @ 0x10011461a\n; > GJBaseGameLayer::updateLevelColors @ 0x100114649\n; > GJBaseGameLayer::updateLevelColors @ 0x10011468b\n; > GJBaseGameLayer::updateLevelColors @ 0x1001146bc\n; > GJBaseGameLayer::updateLevelColors @ 0x1001147c0\n; > GJBaseGameLayer::updateLevelColors @ 0x1001147e7\n; > GJBaseGameLayer::updateGradientLayers @ 0x100139988\n; > GJBaseGameLayer::updateGradientLayers @ 0x1001399a6\n; > GJBaseGameLayer::updateShaderLayer @ 0x10013b3ea\n; > GJBaseGameLayer::updateShaderLayer @ 0x10013b425\n; > GJBaseGameLayer::updateShaderLayer @ 0x10013b605\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x100142ac7\n; > GJBaseGameLayer::preUpdateVisibility @ 0x10014f8cf\n; > GJBaseGameLayer::preUpdateVisibility @ 0x10014f8e0\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100164fa0\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100164fbb\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100164fda\n; > PlayerObject::ringJump @ 0x100414bf0\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     eax, 0FFFFFFh                                                  ; +0x0, 0x1002de420\ntest    esi, esi                                                       ; +0x5, 0x1002de425\njz      short locret_1002DE43B                                         ; +0x7, 0x1002de427\ncmp     esi, 3F3h                                                      ; +0x9, 0x1002de429\njz      short locret_1002DE43B                                         ; +0xf, 0x1002de42f\ncmp     esi, 3F2h                                                      ; +0x11, 0x1002de431\njnz     short loc_1002DE43C                                            ; +0x17, 0x1002de437\nxor     eax, eax                                                       ; +0x19, 0x1002de439\nretn                                                                   ; +0x1b, 0x1002de43b\npush    rbp                                                            ; +0x1c, 0x1002de43c\nmov     rbp, rsp                                                       ; +0x1d, 0x1002de43d\ncall    GJEffectManager__getColorSprite                                ; +0x20, 0x1002de440\nmov     rcx, rax                                                       ; +0x25, 0x1002de445\nmov     eax, 0FFFFFFh                                                  ; +0x28, 0x1002de448\ntest    rcx, rcx                                                       ; +0x2d, 0x1002de44d\njz      short loc_1002DE465                                            ; +0x30, 0x1002de450\nmovzx   edx, word ptr [rcx+143h]                                       ; +0x32, 0x1002de452\nmovzx   eax, byte ptr [rcx+145h]                                       ; +0x39, 0x1002de459\nshl     eax, 10h                                                       ; +0x40, 0x1002de460\nor      eax, edx                                                       ; +0x43, 0x1002de463\npop     rbp                                                            ; +0x45, 0x1002de465\nretn                                                                   ; +0x46, 0x1002de466", "xrefs": ["PlayLayer::updateVisibility @ 0x1000b7061", "PlayLayer::updateVisibility @ 0x1000b70be", "PlayLayer::updateVisibility @ 0x1000b70d9", "PlayLayer::applyCustomEnterEffect @ 0x1000b8461", "LevelEditorLayer::updateGameObjects @ 0x1000de064", "LevelEditorLayer::updateVisibility @ 0x1000ead85", "LevelEditorLayer::updateVisibility @ 0x1000eb26a", "LevelEditorLayer::updateVisibility @ 0x1000eb492", "LevelEditorLayer::updateObjectColors @ 0x1000eb92f", "LevelEditorLayer::updateObjectColors @ 0x1000ebb2f", "LevelEditorLayer::transferDefaultColors @ 0x1000eeb31", "LevelEditorLayer::postUpdate @ 0x1000f3460", "GJBaseGameLayer::updateLevelColors @ 0x10011461a", "GJBaseGameLayer::updateLevelColors @ 0x100114649", "GJBaseGameLayer::updateLevelColors @ 0x10011468b", "GJBaseGameLayer::updateLevelColors @ 0x1001146bc", "GJBaseGameLayer::updateLevelColors @ 0x1001147c0", "GJBaseGameLayer::updateLevelColors @ 0x1001147e7", "GJBaseGameLayer::updateGradientLayers @ 0x100139988", "GJBaseGameLayer::updateGradientLayers @ 0x1001399a6", "GJBaseGameLayer::updateShaderLayer @ 0x10013b3ea", "GJBaseGameLayer::updateShaderLayer @ 0x10013b425", "GJBaseGameLayer::updateShaderLayer @ 0x10013b605", "GJBaseGameLayer::processAreaTintGroupAction @ 0x100142ac7", "GJBaseGameLayer::preUpdateVisibility @ 0x10014f8cf", "GJBaseGameLayer::preUpdateVisibility @ 0x10014f8e0", "GJBaseGameLayer::visitWithColorFlash @ 0x100164fa0", "GJBaseGameLayer::visitWithColorFlash @ 0x100164fbb", "GJBaseGameLayer::visitWithColorFlash @ 0x100164fda", "PlayerObject::ringJump @ 0x100414bf0"], "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"}