{"type": "func", "start": 6442688928, "end": 6442689106, "name": "sub_18003A1A0", "pseudocode": "// \n// sub_18003A1A0 from 0x18003a1a0 to 0x18003a252 (178 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800f06a8\n// > <???> @ 0x1801baed0\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_18003A1A0(cocos2d::CCAction *this, char a2)\n{\n  void *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 120, *((_QWORD *)this - 1), cocos2d::CCTurnOffTiles::~CCTurnOffTiles);\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::CCTurnOffTiles::`vftable';\n    v5 = *((void **)this + 14);\n    if ( v5 )\n    {\n      j_j_free_0(v5);\n      *((_QWORD *)this + 14) = 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_18003A1A0 from 0x18003a1a0 to 0x18003a252 (178 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800f06a8\n; > <???> @ 0x1801baed0\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, 0x18003a1a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18003a1a5\npush    rdi                                                            ; +0xa, 0x18003a1aa\nsub     rsp, 20h                                                       ; +0xb, 0x18003a1ab\nmov     esi, edx                                                       ; +0xf, 0x18003a1af\nmov     rbx, rcx                                                       ; +0x11, 0x18003a1b1\ntest    dl, 2                                                          ; +0x14, 0x18003a1b4\njz      short loc_18003A1FA                                            ; +0x17, 0x18003a1b7\nlea     r9, ??1CCTurnOffTiles@cocos2d@@UEAA@XZ; cocos2d::CCTurnOffTiles::~CCTurnOffTiles(void) ; +0x19, 0x18003a1b9\nmov     r8, [rcx-8]                                                    ; +0x20, 0x18003a1c0\nmov     edx, 78h ; 'x'                                                 ; +0x24, 0x18003a1c4\ncall    sub_1800E49F8                                                  ; +0x29, 0x18003a1c9\ntest    sil, 1                                                         ; +0x2e, 0x18003a1ce\njz      short loc_18003A1E6                                            ; +0x32, 0x18003a1d2\nimul    rdx, [rbx-8], 78h ; 'x'                                        ; +0x34, 0x18003a1d4\nadd     rdx, 8                                                         ; +0x39, 0x18003a1d9\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x18003a1dd\ncall    j_j_j_free_0                                                   ; +0x41, 0x18003a1e1\nlea     rax, [rbx-8]                                                   ; +0x46, 0x18003a1e6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x18003a1ea\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x18003a1ef\nadd     rsp, 20h                                                       ; +0x54, 0x18003a1f4\npop     rdi                                                            ; +0x58, 0x18003a1f8\nretn                                                                   ; +0x59, 0x18003a1f9\nlea     rax, ??_7CCTurnOffTiles@cocos2d@@6B@; const cocos2d::CCTurnOffTiles::`vftable' ; +0x5a, 0x18003a1fa\nmov     [rcx], rax                                                     ; +0x61, 0x18003a201\nmov     rcx, [rcx+70h]; Block                                          ; +0x64, 0x18003a204\ntest    rcx, rcx                                                       ; +0x68, 0x18003a208\njz      short loc_18003A21A                                            ; +0x6b, 0x18003a20b\ncall    j_j_free_0                                                     ; +0x6d, 0x18003a20d\nmov     qword ptr [rbx+70h], 0                                         ; +0x72, 0x18003a212\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x7a, 0x18003a21a\nmov     [rbx], rax                                                     ; +0x81, 0x18003a221\nmov     rcx, rbx; this                                                 ; +0x84, 0x18003a224\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x87, 0x18003a227\ntest    sil, 1                                                         ; +0x8c, 0x18003a22c\njz      short loc_18003A23F                                            ; +0x90, 0x18003a230\nmov     edx, 78h ; 'x'                                                 ; +0x92, 0x18003a232\nmov     rcx, rbx; Block                                                ; +0x97, 0x18003a237\ncall    j_j_free_0                                                     ; +0x9a, 0x18003a23a\nmov     rax, rbx                                                       ; +0x9f, 0x18003a23f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa2, 0x18003a242\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa7, 0x18003a247\nadd     rsp, 20h                                                       ; +0xac, 0x18003a24c\npop     rdi                                                            ; +0xb0, 0x18003a250\nretn                                                                   ; +0xb1, 0x18003a251", "xrefs": ["<???> @ 0x1800f06a8", "<???> @ 0x1801baed0"], "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"}