{"type": "func", "start": 4297887424, "end": 4297887495, "name": "GJEffectManager::activeColorForIndex", "pseudocode": "// \n// GJEffectManager::activeColorForIndex from 0x1002c8ec0 to 0x1002c8f07 (71 bytes)\n// \n// 30 xrefs:\n// > PlayLayer::updateVisibility @ 0x10008496e\n// > PlayLayer::updateVisibility @ 0x1000849cb\n// > PlayLayer::updateVisibility @ 0x1000849e6\n// > PlayLayer::applyCustomEnterEffect @ 0x100085d61\n// > LevelEditorLayer::updateGameObjects @ 0x1000ad184\n// > LevelEditorLayer::updateVisibility @ 0x1000bdc37\n// > LevelEditorLayer::updateVisibility @ 0x1000be13e\n// > LevelEditorLayer::updateVisibility @ 0x1000be343\n// > LevelEditorLayer::updateObjectColors @ 0x1000be7ef\n// > LevelEditorLayer::updateObjectColors @ 0x1000be9ef\n// > LevelEditorLayer::transferDefaultColors @ 0x1000c22c1\n// > LevelEditorLayer::postUpdate @ 0x1000c7350\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f08ba\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f08e9\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f092b\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f095c\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f0a60\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f0a87\n// > GJBaseGameLayer::updateGradientLayers @ 0x1001172b5\n// > GJBaseGameLayer::updateGradientLayers @ 0x1001172d3\n// > GJBaseGameLayer::updateShaderLayer @ 0x10011898a\n// > GJBaseGameLayer::updateShaderLayer @ 0x1001189c5\n// > GJBaseGameLayer::updateShaderLayer @ 0x100118ba5\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x100121067\n// > GJBaseGameLayer::preUpdateVisibility @ 0x10012d7ef\n// > GJBaseGameLayer::preUpdateVisibility @ 0x10012d800\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1001444f0\n// > GJBaseGameLayer::visitWithColorFlash @ 0x10014450b\n// > GJBaseGameLayer::visitWithColorFlash @ 0x10014452a\n// > PlayerObject::ringJump @ 0x100401c70\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:28:09 +0000\n// \n\n__int64 __fastcall GJEffectManager::activeColorForIndex(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 ColorSprite; // rcx\n\n  result = 0xFFFFFF;\n  if ( (_DWORD)a2 && (_DWORD)a2 != 1011 )\n  {\n    if ( (_DWORD)a2 == 1010 )\n    {\n      return 0;\n    }\n    else\n    {\n      ColorSprite = GJEffectManager::getColorSprite(a1, a2);\n      result = 0xFFFFFF;\n      if ( ColorSprite )\n        return *(unsigned __int16 *)(ColorSprite + 323) | (*(unsigned __int8 *)(ColorSprite + 325) << 16);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJEffectManager::activeColorForIndex from 0x1002c8ec0 to 0x1002c8f07 (71 bytes)\n; \n; 30 xrefs:\n; > PlayLayer::updateVisibility @ 0x10008496e\n; > PlayLayer::updateVisibility @ 0x1000849cb\n; > PlayLayer::updateVisibility @ 0x1000849e6\n; > PlayLayer::applyCustomEnterEffect @ 0x100085d61\n; > LevelEditorLayer::updateGameObjects @ 0x1000ad184\n; > LevelEditorLayer::updateVisibility @ 0x1000bdc37\n; > LevelEditorLayer::updateVisibility @ 0x1000be13e\n; > LevelEditorLayer::updateVisibility @ 0x1000be343\n; > LevelEditorLayer::updateObjectColors @ 0x1000be7ef\n; > LevelEditorLayer::updateObjectColors @ 0x1000be9ef\n; > LevelEditorLayer::transferDefaultColors @ 0x1000c22c1\n; > LevelEditorLayer::postUpdate @ 0x1000c7350\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f08ba\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f08e9\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f092b\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f095c\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f0a60\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f0a87\n; > GJBaseGameLayer::updateGradientLayers @ 0x1001172b5\n; > GJBaseGameLayer::updateGradientLayers @ 0x1001172d3\n; > GJBaseGameLayer::updateShaderLayer @ 0x10011898a\n; > GJBaseGameLayer::updateShaderLayer @ 0x1001189c5\n; > GJBaseGameLayer::updateShaderLayer @ 0x100118ba5\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x100121067\n; > GJBaseGameLayer::preUpdateVisibility @ 0x10012d7ef\n; > GJBaseGameLayer::preUpdateVisibility @ 0x10012d800\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1001444f0\n; > GJBaseGameLayer::visitWithColorFlash @ 0x10014450b\n; > GJBaseGameLayer::visitWithColorFlash @ 0x10014452a\n; > PlayerObject::ringJump @ 0x100401c70\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:28:09 +0000\n; \nmov     eax, 0FFFFFFh                                                  ; +0x0, 0x1002c8ec0\ntest    esi, esi                                                       ; +0x5, 0x1002c8ec5\njz      short locret_1002C8EDB                                         ; +0x7, 0x1002c8ec7\ncmp     esi, 3F3h                                                      ; +0x9, 0x1002c8ec9\njz      short locret_1002C8EDB                                         ; +0xf, 0x1002c8ecf\ncmp     esi, 3F2h                                                      ; +0x11, 0x1002c8ed1\njnz     short loc_1002C8EDC                                            ; +0x17, 0x1002c8ed7\nxor     eax, eax                                                       ; +0x19, 0x1002c8ed9\nretn                                                                   ; +0x1b, 0x1002c8edb\npush    rbp                                                            ; +0x1c, 0x1002c8edc\nmov     rbp, rsp                                                       ; +0x1d, 0x1002c8edd\ncall    GJEffectManager__getColorSprite                                ; +0x20, 0x1002c8ee0\nmov     rcx, rax                                                       ; +0x25, 0x1002c8ee5\nmov     eax, 0FFFFFFh                                                  ; +0x28, 0x1002c8ee8\ntest    rcx, rcx                                                       ; +0x2d, 0x1002c8eed\njz      short loc_1002C8F05                                            ; +0x30, 0x1002c8ef0\nmovzx   edx, word ptr [rcx+143h]                                       ; +0x32, 0x1002c8ef2\nmovzx   eax, byte ptr [rcx+145h]                                       ; +0x39, 0x1002c8ef9\nshl     eax, 10h                                                       ; +0x40, 0x1002c8f00\nor      eax, edx                                                       ; +0x43, 0x1002c8f03\npop     rbp                                                            ; +0x45, 0x1002c8f05\nretn                                                                   ; +0x46, 0x1002c8f06", "xrefs": ["PlayLayer::updateVisibility @ 0x10008496e", "PlayLayer::updateVisibility @ 0x1000849cb", "PlayLayer::updateVisibility @ 0x1000849e6", "PlayLayer::applyCustomEnterEffect @ 0x100085d61", "LevelEditorLayer::updateGameObjects @ 0x1000ad184", "LevelEditorLayer::updateVisibility @ 0x1000bdc37", "LevelEditorLayer::updateVisibility @ 0x1000be13e", "LevelEditorLayer::updateVisibility @ 0x1000be343", "LevelEditorLayer::updateObjectColors @ 0x1000be7ef", "LevelEditorLayer::updateObjectColors @ 0x1000be9ef", "LevelEditorLayer::transferDefaultColors @ 0x1000c22c1", "LevelEditorLayer::postUpdate @ 0x1000c7350", "GJBaseGameLayer::updateLevelColors @ 0x1000f08ba", "GJBaseGameLayer::updateLevelColors @ 0x1000f08e9", "GJBaseGameLayer::updateLevelColors @ 0x1000f092b", "GJBaseGameLayer::updateLevelColors @ 0x1000f095c", "GJBaseGameLayer::updateLevelColors @ 0x1000f0a60", "GJBaseGameLayer::updateLevelColors @ 0x1000f0a87", "GJBaseGameLayer::updateGradientLayers @ 0x1001172b5", "GJBaseGameLayer::updateGradientLayers @ 0x1001172d3", "GJBaseGameLayer::updateShaderLayer @ 0x10011898a", "GJBaseGameLayer::updateShaderLayer @ 0x1001189c5", "GJBaseGameLayer::updateShaderLayer @ 0x100118ba5", "GJBaseGameLayer::processAreaTintGroupAction @ 0x100121067", "GJBaseGameLayer::preUpdateVisibility @ 0x10012d7ef", "GJBaseGameLayer::preUpdateVisibility @ 0x10012d800", "GJBaseGameLayer::visitWithColorFlash @ 0x1001444f0", "GJBaseGameLayer::visitWithColorFlash @ 0x10014450b", "GJBaseGameLayer::visitWithColorFlash @ 0x10014452a", "PlayerObject::ringJump @ 0x100401c70"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}