{"type": "func", "start": 4295031564, "end": 4295031664, "name": "GJEffectManager::setColorAction", "pseudocode": "// \n// GJEffectManager::setColorAction from 0x10000fb0c to 0x10000fb70 (100 bytes)\n// \n// 9 xrefs:\n// > GJEffectManager::getColorAction @ 0x10000f0f4\n// > GJEffectManager::setupFromString @ 0x100016934\n// > GJEffectManager::loadFromState @ 0x100016dfc\n// > LevelSettingsObject::init @ 0x10036ac20\n// > LevelSettingsObject::init @ 0x10036ac40\n// > LevelSettingsObject::init @ 0x10036ac5c\n// > LevelSettingsObject::init @ 0x10036ac84\n// > LevelSettingsObject::init @ 0x10036aca0\n// > LevelSettingsObject::init @ 0x10036acbc\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\nvoid __fastcall GJEffectManager::setColorAction(GJEffectManager *a1, ColorAction *a2, int a3)\n{\n  int v5; // w8\n  intptr_t v6; // x21\n  ColorActionSprite *ColorSprite; // x0\n\n  v5 = a3 & ~(a3 >> 31);\n  if ( v5 >= 1101 )\n    v6 = 1101;\n  else\n    v6 = (unsigned int)v5;\n  a2->m_colorID = v6;\n  cocos2d::CCDictionary::setObject(a1->m_unkObject148, a2, v6);\n  a1->m_colorActionVector.__begin_[(unsigned int)v6] = a2;\n  ColorSprite = GJEffectManager::getColorSprite(a1, v6);\n  a2->m_colorSprite = ColorSprite;\n  ColorSprite->m_colorAction = a2;\n}", "assembly": "; \n; GJEffectManager::setColorAction from 0x10000fb0c to 0x10000fb70 (100 bytes)\n; \n; 9 xrefs:\n; > GJEffectManager::getColorAction @ 0x10000f0f4\n; > GJEffectManager::setupFromString @ 0x100016934\n; > GJEffectManager::loadFromState @ 0x100016dfc\n; > LevelSettingsObject::init @ 0x10036ac20\n; > LevelSettingsObject::init @ 0x10036ac40\n; > LevelSettingsObject::init @ 0x10036ac5c\n; > LevelSettingsObject::init @ 0x10036ac84\n; > LevelSettingsObject::init @ 0x10036aca0\n; > LevelSettingsObject::init @ 0x10036acbc\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, 0x10000fb0c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10000fb10\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10000fb14\nADD             X29, SP, #0x20                                         ; +0xc, 0x10000fb18\nMOV             X19, X1                                                ; +0x10, 0x10000fb1c\nMOV             X20, X0                                                ; +0x14, 0x10000fb20\nBIC             W8, W2, W2,ASR#31                                      ; +0x18, 0x10000fb24\nCMP             W8, #0x44D                                             ; +0x1c, 0x10000fb28\nMOV             W9, #0x44D                                             ; +0x20, 0x10000fb2c\nCSEL            W21, W8, W9, LT                                        ; +0x24, 0x10000fb30\nSTR             W21, [X1,#0x5C]                                        ; +0x28, 0x10000fb34\nLDR             X0, [X0,#0x148]                                        ; +0x2c, 0x10000fb38\nMOV             X2, X21                                                ; +0x30, 0x10000fb3c\nBL              cocos2d__CCDictionary__setObject                       ; +0x34, 0x10000fb40\nLDR             X8, [X20,#0x280]                                       ; +0x38, 0x10000fb44\nSTR             X19, [X8,W21,UXTW#3]                                   ; +0x3c, 0x10000fb48\nMOV             X0, X20                                                ; +0x40, 0x10000fb4c\nMOV             X1, X21                                                ; +0x44, 0x10000fb50\nBL              GJEffectManager__getColorSprite                        ; +0x48, 0x10000fb54\nSTR             X0, [X19,#0x90]                                        ; +0x4c, 0x10000fb58\nSTR             X19, [X0,#0x150]                                       ; +0x50, 0x10000fb5c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x10000fb60\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x10000fb64\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x5c, 0x10000fb68\nRET                                                                    ; +0x60, 0x10000fb6c", "xrefs": ["GJEffectManager::getColorAction @ 0x10000f0f4", "GJEffectManager::setupFromString @ 0x100016934", "GJEffectManager::loadFromState @ 0x100016dfc", "LevelSettingsObject::init @ 0x10036ac20", "LevelSettingsObject::init @ 0x10036ac40", "LevelSettingsObject::init @ 0x10036ac5c", "LevelSettingsObject::init @ 0x10036ac84", "LevelSettingsObject::init @ 0x10036aca0", "LevelSettingsObject::init @ 0x10036acbc"], "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"}