{"type": "func", "start": 4824384, "end": 4824444, "name": "GJEffectManager::setColorAction", "pseudocode": "// \n// GJEffectManager::setColorAction from 0x499d40 to 0x499d7c (60 bytes)\n// \n// 9 xrefs:\n// > LevelSettingsObject::init @ 0x37b214\n// > LevelSettingsObject::init @ 0x37b232\n// > LevelSettingsObject::init @ 0x37b252\n// > LevelSettingsObject::init @ 0x37b274\n// > LevelSettingsObject::init @ 0x37b292\n// > LevelSettingsObject::init @ 0x37b2b0\n// > GJEffectManager::getColorAction @ 0x499da6\n// > GJEffectManager::setupFromString @ 0x49de38\n// > GJEffectManager::loadFromState @ 0x4a6a74\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 v3; // r4\n  ColorActionSprite *ColorSprite; // r0\n\n  if ( a3 > 1100 )\n    v3 = 1101;\n  else\n    v3 = a3 & ~(a3 >> 31);\n  a2->m_colorID = v3;\n  cocos2d::CCDictionary::setObject(a1->m_unkObject148, a2, v3);\n  a1->m_colorActionVector.m_start[v3] = a2;\n  ColorSprite = GJEffectManager::getColorSprite(a1, v3);\n  a2->m_colorSprite = ColorSprite;\n  ColorSprite->m_colorAction = a2;\n}", "assembly": "; \n; GJEffectManager::setColorAction from 0x499d40 to 0x499d7c (60 bytes)\n; \n; 9 xrefs:\n; > LevelSettingsObject::init @ 0x37b214\n; > LevelSettingsObject::init @ 0x37b232\n; > LevelSettingsObject::init @ 0x37b252\n; > LevelSettingsObject::init @ 0x37b274\n; > LevelSettingsObject::init @ 0x37b292\n; > LevelSettingsObject::init @ 0x37b2b0\n; > GJEffectManager::getColorAction @ 0x499da6\n; > GJEffectManager::setupFromString @ 0x49de38\n; > GJEffectManager::loadFromState @ 0x4a6a74\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\nMOVW            R3, #0x44C                                             ; +0x0, 0x499d40\nCMP             R2, R3                                                 ; +0x4, 0x499d44\nPUSH            {R4-R6,LR}                                             ; +0x6, 0x499d46\nITE LE                                                                 ; +0x8, 0x499d48\nBICLE.W         R4, R2, R2,ASR#31                                      ; +0xa, 0x499d4a\nMOVWGT          R4, #0x44D                                             ; +0xe, 0x499d4e\nMOV             R6, R0                                                 ; +0x12, 0x499d52\nSTR             R4, [R1,#0x58]                                         ; +0x14, 0x499d54\nMOV             R2, R4; int                                            ; +0x16, 0x499d56\nLDR.W           R0, [R0,#0x10C]; this                                  ; +0x18, 0x499d58\nMOV             R5, R1                                                 ; +0x1c, 0x499d5c\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectEi; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,int) ; +0x1e, 0x499d5e\nLDR.W           R3, [R6,#0x1C8]                                        ; +0x22, 0x499d62\nMOV             R0, R6; this                                           ; +0x26, 0x499d66\nMOV             R1, R4; int                                            ; +0x28, 0x499d68\nSTR.W           R5, [R3,R4,LSL#2]                                      ; +0x2a, 0x499d6a\nBL              _ZN15GJEffectManager14getColorSpriteEi; GJEffectManager::getColorSprite(int) ; +0x2e, 0x499d6e\nSTR.W           R0, [R5,#0x88]                                         ; +0x32, 0x499d72\nSTR.W           R5, [R0,#0x11C]                                        ; +0x36, 0x499d76\nPOP             {R4-R6,PC}                                             ; +0x3a, 0x499d7a", "xrefs": ["LevelSettingsObject::init @ 0x37b214", "LevelSettingsObject::init @ 0x37b232", "LevelSettingsObject::init @ 0x37b252", "LevelSettingsObject::init @ 0x37b274", "LevelSettingsObject::init @ 0x37b292", "LevelSettingsObject::init @ 0x37b2b0", "GJEffectManager::getColorAction @ 0x499da6", "GJEffectManager::setupFromString @ 0x49de38", "GJEffectManager::loadFromState @ 0x4a6a74"], "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"}