{"type": "func", "start": 9173880, "end": 9174004, "name": "GJEffectManager::setColorAction", "pseudocode": "// \n// GJEffectManager::setColorAction from 0x8bfb78 to 0x8bfbf4 (124 bytes)\n// \n// 10 xrefs:\n// > LevelSettingsObject::init @ 0x685498\n// > LevelSettingsObject::init @ 0x6854b8\n// > LevelSettingsObject::init @ 0x6854d8\n// > LevelSettingsObject::init @ 0x6854fc\n// > LevelSettingsObject::init @ 0x68551c\n// > LevelSettingsObject::init @ 0x68553c\n// > GJEffectManager::getColorAction @ 0x8bfc60\n// > GJEffectManager::setupFromString @ 0x8c0984\n// > GJEffectManager::loadFromState @ 0x8c1160\n// > <???> @ 0x96198\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 GJEffectManager::setColorAction(GJEffectManager *a1, ColorAction *a2, int a3)\n{\n  int v5; // w19\n  intptr_t v6; // x2\n  __int64 v7; // x22\n  cocos2d::CCDictionary *m_unkObject148; // x0\n  ColorActionSprite *ColorSprite; // x0\n\n  if ( a3 > 1100 )\n  {\n    v6 = 1101;\n    v7 = 1101;\n    v5 = 1101;\n  }\n  else\n  {\n    if ( a3 < 0 )\n      v5 = 0;\n    else\n      v5 = a3;\n    v6 = v5;\n    v7 = v5;\n  }\n  m_unkObject148 = a1->m_unkObject148;\n  a2->m_colorID = v5;\n  cocos2d::CCDictionary::setObject(m_unkObject148, a2, v6);\n  a1->m_colorActionVector.m_start[v7] = a2;\n  ColorSprite = GJEffectManager::getColorSprite(a1, v5);\n  a2->m_colorSprite = ColorSprite;\n  ColorSprite->m_colorAction = a2;\n}", "assembly": "; \n; GJEffectManager::setColorAction from 0x8bfb78 to 0x8bfbf4 (124 bytes)\n; \n; 10 xrefs:\n; > LevelSettingsObject::init @ 0x685498\n; > LevelSettingsObject::init @ 0x6854b8\n; > LevelSettingsObject::init @ 0x6854d8\n; > LevelSettingsObject::init @ 0x6854fc\n; > LevelSettingsObject::init @ 0x68551c\n; > LevelSettingsObject::init @ 0x68553c\n; > GJEffectManager::getColorAction @ 0x8bfc60\n; > GJEffectManager::setupFromString @ 0x8c0984\n; > GJEffectManager::loadFromState @ 0x8c1160\n; > <???> @ 0x96198\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             X29, X30, [SP,#-0x30+var_s0]!                          ; +0x0, 0x8bfb78\nCMP             W2, #0x44C                                             ; +0x4, 0x8bfb7c\nMOV             X29, SP                                                ; +0x8, 0x8bfb80\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x8bfb84\nSTP             X21, X22, [SP,#var_s20]                                ; +0x10, 0x8bfb88\nMOV             X20, X1                                                ; +0x14, 0x8bfb8c\nMOV             X21, X0                                                ; +0x18, 0x8bfb90\nB.GT            loc_8BFBE4                                             ; +0x1c, 0x8bfb94\nCMP             W2, WZR                                                ; +0x20, 0x8bfb98\nCSEL            W19, W2, WZR, GE                                       ; +0x24, 0x8bfb9c\nSXTW            X2, W19; __int64                                       ; +0x28, 0x8bfba0\nLSL             X22, X2, #3                                            ; +0x2c, 0x8bfba4\nLDR             X0, [X21,#0x148]; this                                 ; +0x30, 0x8bfba8\nMOV             X1, X20; cocos2d::CCObject *                           ; +0x34, 0x8bfbac\nSTR             W19, [X20,#0x5C]                                       ; +0x38, 0x8bfbb0\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectEl; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,long) ; +0x3c, 0x8bfbb4\nLDR             X2, [X21,#0x2C0]                                       ; +0x40, 0x8bfbb8\nMOV             W1, W19; int                                           ; +0x44, 0x8bfbbc\nMOV             X0, X21; this                                          ; +0x48, 0x8bfbc0\nSTR             X20, [X2,X22]                                          ; +0x4c, 0x8bfbc4\nBL              _ZN15GJEffectManager14getColorSpriteEi; GJEffectManager::getColorSprite(int) ; +0x50, 0x8bfbc8\nSTR             X0, [X20,#0x90]                                        ; +0x54, 0x8bfbcc\nSTR             X20, [X0,#0x150]                                       ; +0x58, 0x8bfbd0\nLDP             X21, X22, [SP,#var_s20]                                ; +0x5c, 0x8bfbd4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x60, 0x8bfbd8\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x64, 0x8bfbdc\nRET                                                                    ; +0x68, 0x8bfbe0\nMOV             X2, #0x44D                                             ; +0x6c, 0x8bfbe4\nMOV             X22, #0x2268                                           ; +0x70, 0x8bfbe8\nMOV             W19, W2                                                ; +0x74, 0x8bfbec\nB               loc_8BFBA8                                             ; +0x78, 0x8bfbf0", "xrefs": ["LevelSettingsObject::init @ 0x685498", "LevelSettingsObject::init @ 0x6854b8", "LevelSettingsObject::init @ 0x6854d8", "LevelSettingsObject::init @ 0x6854fc", "LevelSettingsObject::init @ 0x68551c", "LevelSettingsObject::init @ 0x68553c", "GJEffectManager::getColorAction @ 0x8bfc60", "GJEffectManager::setupFromString @ 0x8c0984", "GJEffectManager::loadFromState @ 0x8c1160", "<???> @ 0x96198"], "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"}