{"type": "func", "start": 5372270032, "end": 5372270143, "name": "GJEffectManager::getAllColorActions", "pseudocode": "// \n// GJEffectManager::getAllColorActions from 0x1403655d0 to 0x14036563f (111 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::transferDefaultColors @ 0x1403fa64b\n// > PlayLayer::loadDefaultColors @ 0x140510736\n// > <???> @ 0x1409215fc\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\n__int64 __fastcall GJEffectManager::getAllColorActions(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v3; // rdx\n  cocos2d::CCArray *v4; // rdi\n  __int64 v5; // rdx\n  __int64 i; // rbx\n\n  result = cocos2d::CCArray::create(a1);\n  v3 = *(_QWORD *)(a1 + 328);\n  v4 = (cocos2d::CCArray *)result;\n  if ( v3 )\n  {\n    v5 = *(_QWORD *)(v3 + 56);\n    if ( v5 )\n    {\n      for ( i = *(_QWORD *)(v5 + 288); ; i = *(_QWORD *)(i + 288) )\n      {\n        cocos2d::CCArray::addObject(v4, *(struct cocos2d::CCObject **)(v5 + 264));\n        v5 = i;\n        if ( !i )\n          break;\n      }\n      return (__int64)v4;\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJEffectManager::getAllColorActions from 0x1403655d0 to 0x14036563f (111 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::transferDefaultColors @ 0x1403fa64b\n; > PlayLayer::loadDefaultColors @ 0x140510736\n; > <???> @ 0x1409215fc\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, 0x1403655d0\npush    rdi                                                            ; +0x5, 0x1403655d5\nsub     rsp, 20h                                                       ; +0x6, 0x1403655d6\nmov     rbx, rcx                                                       ; +0xa, 0x1403655da\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0xd, 0x1403655dd\nmov     rdx, [rbx+148h]                                                ; +0x13, 0x1403655e3\nmov     rdi, rax                                                       ; +0x1a, 0x1403655ea\ntest    rdx, rdx                                                       ; +0x1d, 0x1403655ed\njz      short loc_140365634                                            ; +0x20, 0x1403655f0\nmov     rdx, [rdx+38h]                                                 ; +0x22, 0x1403655f2\ntest    rdx, rdx                                                       ; +0x26, 0x1403655f6\njz      short loc_140365634                                            ; +0x29, 0x1403655f9\nmov     rbx, [rdx+120h]                                                ; +0x2b, 0x1403655fb\nnop     dword ptr [rax+00h]                                            ; +0x32, 0x140365602\nnop     word ptr [rax+rax+00000000h]                                   ; +0x36, 0x140365606\nmov     rdx, [rdx+108h]                                                ; +0x40, 0x140365610\nmov     rcx, rdi                                                       ; +0x47, 0x140365617\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x4a, 0x14036561a\nmov     rdx, rbx                                                       ; +0x50, 0x140365620\ntest    rbx, rbx                                                       ; +0x53, 0x140365623\njz      short loc_140365631                                            ; +0x56, 0x140365626\nmov     rbx, [rbx+120h]                                                ; +0x58, 0x140365628\njmp     short loc_140365610                                            ; +0x5f, 0x14036562f\nmov     rax, rdi                                                       ; +0x61, 0x140365631\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x64, 0x140365634\nadd     rsp, 20h                                                       ; +0x69, 0x140365639\npop     rdi                                                            ; +0x6d, 0x14036563d\nretn                                                                   ; +0x6e, 0x14036563e", "xrefs": ["LevelEditorLayer::transferDefaultColors @ 0x1403fa64b", "PlayLayer::loadDefaultColors @ 0x140510736", "<???> @ 0x1409215fc"], "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"}