{"type": "func", "start": 4295029092, "end": 4295029216, "name": "GJEffectManager::getColorSprite", "pseudocode": "// \n// GJEffectManager::getColorSprite from 0x10000f164 to 0x10000f1e0 (124 bytes)\n// \n// 15 xrefs:\n// > GJEffectManager::activeColorForIndex @ 0x10000f13c\n// > GJEffectManager::activeOpacityForIndex @ 0x10000f1e8\n// > GJEffectManager::processCopyColorPulseActions @ 0x10000f5f8\n// > GJEffectManager::calculateInheritedColor @ 0x10000f7a8\n// > GJEffectManager::setColorAction @ 0x10000fb54\n// > GJEffectManager::calculateLightBGColor @ 0x10001636c\n// > GJEffectManager::calculateLightBGColor @ 0x1000163fc\n// > GJEffectManager::calculateLightBGColor @ 0x100016414\n// > GJBaseGameLayer::updateColor @ 0x1001f1f14\n// > GameObject::saveActiveColors @ 0x100260e10\n// > GameObject::saveActiveColors @ 0x100260e20\n// > LevelEditorLayer::transferDefaultColors @ 0x100360794\n// > LevelEditorLayer::transferDefaultColors @ 0x1003607b4\n// > LevelEditorLayer::transferDefaultColors @ 0x1003607dc\n// > LevelEditorLayer::transferDefaultColors @ 0x100360800\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\nColorActionSprite *__fastcall GJEffectManager::getColorSprite(GJEffectManager *a1, int a2)\n{\n  int v2; // w8\n  intptr_t v3; // x19\n  ColorActionSprite *v4; // x21\n\n  v2 = a2 & ~(a2 >> 31);\n  if ( v2 >= 1101 )\n    v3 = 1101;\n  else\n    v3 = (unsigned int)v2;\n  v4 = a1->m_colorActionSpriteVector.__begin_[(unsigned int)v3];\n  if ( !v4 )\n  {\n    v4 = ColorActionSprite::create();\n    v4->m_colorID = v3;\n    ((void (__fastcall *)(GJEffectManager *, ColorActionSprite *))a1->addChild)(a1, v4);\n    a1->m_colorActionSpriteVector.__begin_[v3] = v4;\n    cocos2d::CCDictionary::setObject(a1->m_unkDict150, v4, v3);\n  }\n  return v4;\n}", "assembly": "; \n; GJEffectManager::getColorSprite from 0x10000f164 to 0x10000f1e0 (124 bytes)\n; \n; 15 xrefs:\n; > GJEffectManager::activeColorForIndex @ 0x10000f13c\n; > GJEffectManager::activeOpacityForIndex @ 0x10000f1e8\n; > GJEffectManager::processCopyColorPulseActions @ 0x10000f5f8\n; > GJEffectManager::calculateInheritedColor @ 0x10000f7a8\n; > GJEffectManager::setColorAction @ 0x10000fb54\n; > GJEffectManager::calculateLightBGColor @ 0x10001636c\n; > GJEffectManager::calculateLightBGColor @ 0x1000163fc\n; > GJEffectManager::calculateLightBGColor @ 0x100016414\n; > GJBaseGameLayer::updateColor @ 0x1001f1f14\n; > GameObject::saveActiveColors @ 0x100260e10\n; > GameObject::saveActiveColors @ 0x100260e20\n; > LevelEditorLayer::transferDefaultColors @ 0x100360794\n; > LevelEditorLayer::transferDefaultColors @ 0x1003607b4\n; > LevelEditorLayer::transferDefaultColors @ 0x1003607dc\n; > LevelEditorLayer::transferDefaultColors @ 0x100360800\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10000f164\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10000f168\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10000f16c\nADD             X29, SP, #0x20                                         ; +0xc, 0x10000f170\nBIC             W8, W1, W1,ASR#31                                      ; +0x10, 0x10000f174\nCMP             W8, #0x44D                                             ; +0x14, 0x10000f178\nMOV             W9, #0x44D                                             ; +0x18, 0x10000f17c\nCSEL            W19, W8, W9, LT                                        ; +0x1c, 0x10000f180\nLDR             X8, [X0,#0x298]                                        ; +0x20, 0x10000f184\nLDR             X21, [X8,W19,UXTW#3]                                   ; +0x24, 0x10000f188\nCBNZ            X21, loc_10000F1CC                                     ; +0x28, 0x10000f18c\nMOV             X20, X0                                                ; +0x2c, 0x10000f190\nBL              ColorActionSprite__create                              ; +0x30, 0x10000f194\nMOV             X21, X0                                                ; +0x34, 0x10000f198\nSTR             W19, [X0,#0x148]                                       ; +0x38, 0x10000f19c\nLDR             X8, [X20]                                              ; +0x3c, 0x10000f1a0\nLDR             X8, [X8,#0x1B8]                                        ; +0x40, 0x10000f1a4\nMOV             X0, X20                                                ; +0x44, 0x10000f1a8\nMOV             X1, X21                                                ; +0x48, 0x10000f1ac\nBLR             X8                                                     ; +0x4c, 0x10000f1b0\nLDR             X8, [X20,#0x298]                                       ; +0x50, 0x10000f1b4\nSTR             X21, [X8,X19,LSL#3]                                    ; +0x54, 0x10000f1b8\nLDR             X0, [X20,#0x150]                                       ; +0x58, 0x10000f1bc\nMOV             X1, X21                                                ; +0x5c, 0x10000f1c0\nMOV             X2, X19                                                ; +0x60, 0x10000f1c4\nBL              cocos2d__CCDictionary__setObject                       ; +0x64, 0x10000f1c8\nMOV             X0, X21                                                ; +0x68, 0x10000f1cc\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x6c, 0x10000f1d0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x70, 0x10000f1d4\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x74, 0x10000f1d8\nRET                                                                    ; +0x78, 0x10000f1dc", "xrefs": ["GJEffectManager::activeColorForIndex @ 0x10000f13c", "GJEffectManager::activeOpacityForIndex @ 0x10000f1e8", "GJEffectManager::processCopyColorPulseActions @ 0x10000f5f8", "GJEffectManager::calculateInheritedColor @ 0x10000f7a8", "GJEffectManager::setColorAction @ 0x10000fb54", "GJEffectManager::calculateLightBGColor @ 0x10001636c", "GJEffectManager::calculateLightBGColor @ 0x1000163fc", "GJEffectManager::calculateLightBGColor @ 0x100016414", "GJBaseGameLayer::updateColor @ 0x1001f1f14", "GameObject::saveActiveColors @ 0x100260e10", "GameObject::saveActiveColors @ 0x100260e20", "LevelEditorLayer::transferDefaultColors @ 0x100360794", "LevelEditorLayer::transferDefaultColors @ 0x1003607b4", "LevelEditorLayer::transferDefaultColors @ 0x1003607dc", "LevelEditorLayer::transferDefaultColors @ 0x100360800"], "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"}