{"type": "func", "start": 5371182624, "end": 5371182749, "name": "GJEffectManager::setColorAction", "pseudocode": "// \n// GJEffectManager::setColorAction from 0x14025be20 to 0x14025be9d (125 bytes)\n// \n// 3 xrefs:\n// > GJEffectManager::setupFromString @ 0x140263de2\n// > GJEffectManager::loadFromState @ 0x1402645ea\n// > <???> @ 0x1406cfd5c\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; // esi\n  ColorActionSprite *ColorSprite; // rax\n\n  v3 = a3;\n  if ( a3 < 0 )\n    v3 = 0;\n  if ( v3 > 1101 )\n    v3 = 1101;\n  a2->m_colorID = v3;\n  cocos2d::CCDictionary::setObject(a1->m_unkObject148, a2, v3);\n  a1->m_colorActionVector._Mypair._Myval2._Myfirst[v3] = a2;\n  ColorSprite = GJEffectManager::getColorSprite(a1, v3);\n  a2->m_colorSprite = ColorSprite;\n  ColorSprite->m_colorAction = a2;\n}", "assembly": "; \n; GJEffectManager::setColorAction from 0x14025be20 to 0x14025be9d (125 bytes)\n; \n; 3 xrefs:\n; > GJEffectManager::setupFromString @ 0x140263de2\n; > GJEffectManager::loadFromState @ 0x1402645ea\n; > <???> @ 0x1406cfd5c\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14025be20\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14025be25\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14025be2a\npush    rdi                                                            ; +0xf, 0x14025be2f\nsub     rsp, 20h                                                       ; +0x10, 0x14025be30\nxor     eax, eax                                                       ; +0x14, 0x14025be34\nmov     esi, r8d                                                       ; +0x16, 0x14025be36\ntest    r8d, r8d                                                       ; +0x19, 0x14025be39\nmov     rdi, rcx                                                       ; +0x1c, 0x14025be3c\nmov     rbp, rdx                                                       ; +0x1f, 0x14025be3f\ncmovs   esi, eax                                                       ; +0x22, 0x14025be42\nmov     eax, 44Dh                                                      ; +0x25, 0x14025be45\ncmp     esi, eax                                                       ; +0x2a, 0x14025be4a\ncmovg   esi, eax                                                       ; +0x2c, 0x14025be4c\nmov     [rdx+5Ch], esi                                                 ; +0x2f, 0x14025be4f\nmov     rcx, [rcx+148h]                                                ; +0x32, 0x14025be52\nmovsxd  rbx, esi                                                       ; +0x39, 0x14025be59\nmov     r8, rbx                                                        ; +0x3c, 0x14025be5c\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x3f, 0x14025be5f\nmov     rax, [rdi+2E0h]                                                ; +0x45, 0x14025be65\nmov     edx, esi                                                       ; +0x4c, 0x14025be6c\nmov     rcx, rdi                                                       ; +0x4e, 0x14025be6e\nmov     [rax+rbx*8], rbp                                               ; +0x51, 0x14025be71\ncall    GJEffectManager__getColorSprite                                ; +0x55, 0x14025be75\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5a, 0x14025be7a\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x5f, 0x14025be7f\nmov     [rbp+90h], rax                                                 ; +0x64, 0x14025be84\nmov     [rax+158h], rbp                                                ; +0x6b, 0x14025be8b\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x72, 0x14025be92\nadd     rsp, 20h                                                       ; +0x77, 0x14025be97\npop     rdi                                                            ; +0x7b, 0x14025be9b\nretn                                                                   ; +0x7c, 0x14025be9c", "xrefs": ["GJEffectManager::setupFromString @ 0x140263de2", "GJEffectManager::loadFromState @ 0x1402645ea", "<???> @ 0x1406cfd5c"], "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"}