{"type": "func", "start": 4297979200, "end": 4297979304, "name": "GJEffectManager::setColorAction", "pseudocode": "// \n// GJEffectManager::setColorAction from 0x1002df540 to 0x1002df5a8 (104 bytes)\n// \n// 6 xrefs:\n// > LevelSettingsObject::init @ 0x100102ea4\n// > LevelSettingsObject::init @ 0x100102ec7\n// > LevelSettingsObject::init @ 0x100102eea\n// > LevelSettingsObject::init @ 0x100102f11\n// > LevelSettingsObject::init @ 0x100102f34\n// > LevelSettingsObject::init @ 0x100102f57\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 v3; // eax\n  intptr_t v4; // r15\n  ColorActionSprite *ColorSprite; // rax\n\n  v3 = 0;\n  if ( a3 > 0 )\n    v3 = a3;\n  v4 = 1101;\n  if ( v3 < 1101 )\n    v4 = (unsigned int)v3;\n  a2->m_colorID = v4;\n  cocos2d::CCDictionary::setObject(a1->m_unkObject148, a2, v4);\n  a1->m_colorActionVector.__begin_[v4] = a2;\n  ColorSprite = GJEffectManager::getColorSprite(a1, v4);\n  a2->m_colorSprite = ColorSprite;\n  ColorSprite->m_colorAction = a2;\n}", "assembly": "; \n; GJEffectManager::setColorAction from 0x1002df540 to 0x1002df5a8 (104 bytes)\n; \n; 6 xrefs:\n; > LevelSettingsObject::init @ 0x100102ea4\n; > LevelSettingsObject::init @ 0x100102ec7\n; > LevelSettingsObject::init @ 0x100102eea\n; > LevelSettingsObject::init @ 0x100102f11\n; > LevelSettingsObject::init @ 0x100102f34\n; > LevelSettingsObject::init @ 0x100102f57\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\npush    rbp                                                            ; +0x0, 0x1002df540\nmov     rbp, rsp                                                       ; +0x1, 0x1002df541\npush    r15                                                            ; +0x4, 0x1002df544\npush    r14                                                            ; +0x6, 0x1002df546\npush    rbx                                                            ; +0x8, 0x1002df548\npush    rax                                                            ; +0x9, 0x1002df549\nmov     rbx, rsi                                                       ; +0xa, 0x1002df54a\nmov     r14, rdi                                                       ; +0xd, 0x1002df54d\nxor     eax, eax                                                       ; +0x10, 0x1002df550\ntest    edx, edx                                                       ; +0x12, 0x1002df552\ncmovg   eax, edx                                                       ; +0x14, 0x1002df554\ncmp     eax, 44Dh                                                      ; +0x17, 0x1002df557\nmov     r15d, 44Dh                                                     ; +0x1c, 0x1002df55c\ncmovl   r15d, eax                                                      ; +0x22, 0x1002df562\nmov     [rsi+5Ch], r15d                                                ; +0x26, 0x1002df566\nmov     rdi, [rdi+148h]                                                ; +0x2a, 0x1002df56a\nmov     rdx, r15                                                       ; +0x31, 0x1002df571\ncall    cocos2d__CCDictionary__setObject                               ; +0x34, 0x1002df574\nmov     rax, [r14+280h]                                                ; +0x39, 0x1002df579\nmov     [rax+r15*8], rbx                                               ; +0x40, 0x1002df580\nmov     rdi, r14                                                       ; +0x44, 0x1002df584\nmov     esi, r15d                                                      ; +0x47, 0x1002df587\ncall    GJEffectManager__getColorSprite                                ; +0x4a, 0x1002df58a\nmov     [rbx+90h], rax                                                 ; +0x4f, 0x1002df58f\nmov     [rax+150h], rbx                                                ; +0x56, 0x1002df596\nadd     rsp, 8                                                         ; +0x5d, 0x1002df59d\npop     rbx                                                            ; +0x61, 0x1002df5a1\npop     r14                                                            ; +0x62, 0x1002df5a2\npop     r15                                                            ; +0x64, 0x1002df5a4\npop     rbp                                                            ; +0x66, 0x1002df5a6\nretn                                                                   ; +0x67, 0x1002df5a7", "xrefs": ["LevelSettingsObject::init @ 0x100102ea4", "LevelSettingsObject::init @ 0x100102ec7", "LevelSettingsObject::init @ 0x100102eea", "LevelSettingsObject::init @ 0x100102f11", "LevelSettingsObject::init @ 0x100102f34", "LevelSettingsObject::init @ 0x100102f57"], "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"}