{"type": "func", "start": 6442688720, "end": 6442688917, "name": "sub_18003A0D0", "pseudocode": "// \n// sub_18003A0D0 from 0x18003a0d0 to 0x18003a195 (197 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800f03b8\n// > <???> @ 0x1801baeb8\n// > <???> @ 0x1801baec4\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:21:36 +0000\n// \n\ncocos2d::CCAction *__fastcall sub_18003A0D0(cocos2d::CCAction *this, char a2)\n{\n  void *v5; // rcx\n  void *v6; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 128, *((_QWORD *)this - 1), cocos2d::CCShuffleTiles::~CCShuffleTiles);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0((char *)this - 8);\n    return (cocos2d::CCAction *)((char *)this - 8);\n  }\n  else\n  {\n    *(_QWORD *)this = &cocos2d::CCShuffleTiles::`vftable';\n    v5 = *((void **)this + 14);\n    if ( v5 )\n    {\n      j_j_free_0(v5);\n      *((_QWORD *)this + 14) = 0;\n    }\n    v6 = *((void **)this + 15);\n    if ( v6 )\n    {\n      j_j_free_0(v6);\n      *((_QWORD *)this + 15) = 0;\n    }\n    *(_QWORD *)this = &cocos2d::CCFiniteTimeAction::`vftable';\n    cocos2d::CCAction::~CCAction(this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_18003A0D0 from 0x18003a0d0 to 0x18003a195 (197 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800f03b8\n; > <???> @ 0x1801baeb8\n; > <???> @ 0x1801baec4\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:21:36 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18003a0d0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18003a0d5\npush    rdi                                                            ; +0xa, 0x18003a0da\nsub     rsp, 20h                                                       ; +0xb, 0x18003a0db\nmov     esi, edx                                                       ; +0xf, 0x18003a0df\nmov     rbx, rcx                                                       ; +0x11, 0x18003a0e1\ntest    dl, 2                                                          ; +0x14, 0x18003a0e4\njz      short loc_18003A12D                                            ; +0x17, 0x18003a0e7\nlea     r9, ??1CCShuffleTiles@cocos2d@@UEAA@XZ; cocos2d::CCShuffleTiles::~CCShuffleTiles(void) ; +0x19, 0x18003a0e9\nmov     r8, [rcx-8]                                                    ; +0x20, 0x18003a0f0\nmov     edx, 80h                                                       ; +0x24, 0x18003a0f4\ncall    sub_1800E49F8                                                  ; +0x29, 0x18003a0f9\ntest    sil, 1                                                         ; +0x2e, 0x18003a0fe\njz      short loc_18003A119                                            ; +0x32, 0x18003a102\nmov     rdx, [rbx-8]                                                   ; +0x34, 0x18003a104\nshl     rdx, 7                                                         ; +0x38, 0x18003a108\nadd     rdx, 8                                                         ; +0x3c, 0x18003a10c\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x18003a110\ncall    j_j_j_free_0                                                   ; +0x44, 0x18003a114\nlea     rax, [rbx-8]                                                   ; +0x49, 0x18003a119\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x18003a11d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x52, 0x18003a122\nadd     rsp, 20h                                                       ; +0x57, 0x18003a127\npop     rdi                                                            ; +0x5b, 0x18003a12b\nretn                                                                   ; +0x5c, 0x18003a12c\nlea     rax, ??_7CCShuffleTiles@cocos2d@@6B@; const cocos2d::CCShuffleTiles::`vftable' ; +0x5d, 0x18003a12d\nmov     [rcx], rax                                                     ; +0x64, 0x18003a134\nmov     rcx, [rcx+70h]; Block                                          ; +0x67, 0x18003a137\nxor     edi, edi                                                       ; +0x6b, 0x18003a13b\ntest    rcx, rcx                                                       ; +0x6d, 0x18003a13d\njz      short loc_18003A14B                                            ; +0x70, 0x18003a140\ncall    j_j_free_0                                                     ; +0x72, 0x18003a142\nmov     [rbx+70h], rdi                                                 ; +0x77, 0x18003a147\nmov     rcx, [rbx+78h]; Block                                          ; +0x7b, 0x18003a14b\ntest    rcx, rcx                                                       ; +0x7f, 0x18003a14f\njz      short loc_18003A15D                                            ; +0x82, 0x18003a152\ncall    j_j_free_0                                                     ; +0x84, 0x18003a154\nmov     [rbx+78h], rdi                                                 ; +0x89, 0x18003a159\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x8d, 0x18003a15d\nmov     [rbx], rax                                                     ; +0x94, 0x18003a164\nmov     rcx, rbx; this                                                 ; +0x97, 0x18003a167\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x9a, 0x18003a16a\ntest    sil, 1                                                         ; +0x9f, 0x18003a16f\njz      short loc_18003A182                                            ; +0xa3, 0x18003a173\nmov     edx, 80h                                                       ; +0xa5, 0x18003a175\nmov     rcx, rbx; Block                                                ; +0xaa, 0x18003a17a\ncall    j_j_free_0                                                     ; +0xad, 0x18003a17d\nmov     rax, rbx                                                       ; +0xb2, 0x18003a182\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb5, 0x18003a185\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xba, 0x18003a18a\nadd     rsp, 20h                                                       ; +0xbf, 0x18003a18f\npop     rdi                                                            ; +0xc3, 0x18003a193\nretn                                                                   ; +0xc4, 0x18003a194", "xrefs": ["<???> @ 0x1800f03b8", "<???> @ 0x1801baeb8", "<???> @ 0x1801baec4"], "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"}