{"type": "func", "start": 5372272896, "end": 5372273021, "name": "GJEffectManager::setColorAction", "pseudocode": "// \n// GJEffectManager::setColorAction from 0x140366100 to 0x14036617d (125 bytes)\n// \n// 3 xrefs:\n// > GJEffectManager::setupFromString @ 0x14036e67a\n// > GJEffectManager::loadFromState @ 0x14036ecd6\n// > <???> @ 0x1409216d4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:54 +0000\n// \n\nchar *__fastcall GJEffectManager::setColorAction(__int64 a1, __int64 a2, int a3)\n{\n  int v3; // esi\n  char *result; // rax\n\n  v3 = a3;\n  if ( a3 < 0 )\n    v3 = 0;\n  if ( v3 > 1101 )\n    v3 = 1101;\n  *(_DWORD *)(a2 + 92) = v3;\n  cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 328), (struct cocos2d::CCObject *)a2, v3);\n  *(_QWORD *)(*(_QWORD *)(a1 + 736) + 8LL * v3) = a2;\n  result = GJEffectManager::getColorSprite(a1, v3);\n  *(_QWORD *)(a2 + 144) = result;\n  *((_QWORD *)result + 43) = a2;\n  return result;\n}", "assembly": "; \n; GJEffectManager::setColorAction from 0x140366100 to 0x14036617d (125 bytes)\n; \n; 3 xrefs:\n; > GJEffectManager::setupFromString @ 0x14036e67a\n; > GJEffectManager::loadFromState @ 0x14036ecd6\n; > <???> @ 0x1409216d4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:54 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140366100\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140366105\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14036610a\npush    rdi                                                            ; +0xf, 0x14036610f\nsub     rsp, 20h                                                       ; +0x10, 0x140366110\nxor     eax, eax                                                       ; +0x14, 0x140366114\nmov     esi, r8d                                                       ; +0x16, 0x140366116\ntest    r8d, r8d                                                       ; +0x19, 0x140366119\nmov     rdi, rcx                                                       ; +0x1c, 0x14036611c\nmov     rbp, rdx                                                       ; +0x1f, 0x14036611f\ncmovs   esi, eax                                                       ; +0x22, 0x140366122\nmov     eax, 44Dh                                                      ; +0x25, 0x140366125\ncmp     esi, eax                                                       ; +0x2a, 0x14036612a\ncmovg   esi, eax                                                       ; +0x2c, 0x14036612c\nmov     [rdx+5Ch], esi                                                 ; +0x2f, 0x14036612f\nmov     rcx, [rcx+148h]                                                ; +0x32, 0x140366132\nmovsxd  rbx, esi                                                       ; +0x39, 0x140366139\nmov     r8, rbx                                                        ; +0x3c, 0x14036613c\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x3f, 0x14036613f\nmov     rax, [rdi+2E0h]                                                ; +0x45, 0x140366145\nmov     edx, esi                                                       ; +0x4c, 0x14036614c\nmov     rcx, rdi                                                       ; +0x4e, 0x14036614e\nmov     [rax+rbx*8], rbp                                               ; +0x51, 0x140366151\ncall    GJEffectManager__getColorSprite                                ; +0x55, 0x140366155\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5a, 0x14036615a\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x5f, 0x14036615f\nmov     [rbp+90h], rax                                                 ; +0x64, 0x140366164\nmov     [rax+158h], rbp                                                ; +0x6b, 0x14036616b\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x72, 0x140366172\nadd     rsp, 20h                                                       ; +0x77, 0x140366177\npop     rdi                                                            ; +0x7b, 0x14036617b\nretn                                                                   ; +0x7c, 0x14036617c", "xrefs": ["GJEffectManager::setupFromString @ 0x14036e67a", "GJEffectManager::loadFromState @ 0x14036ecd6", "<???> @ 0x1409216d4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}