{"type": "func", "start": 6442687072, "end": 6442687250, "name": "sub_180039A60", "pseudocode": "// \n// sub_180039A60 from 0x180039a60 to 0x180039b12 (178 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800ea648\n// > <???> @ 0x1801b0da4\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\ncocos2d::CCAction *__fastcall sub_180039A60(cocos2d::CCAction *this, char a2)\n{\n  void *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      this,\n      0x78u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))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    this->__vftable = (cocos2d::CCAction_vtbl *)&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    this->__vftable = (cocos2d::CCAction_vtbl *)&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_180039A60 from 0x180039a60 to 0x180039b12 (178 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800ea648\n; > <???> @ 0x1801b0da4\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, 0x180039a60\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180039a65\npush    rdi                                                            ; +0xa, 0x180039a6a\nsub     rsp, 20h                                                       ; +0xb, 0x180039a6b\nmov     esi, edx                                                       ; +0xf, 0x180039a6f\nmov     rbx, rcx                                                       ; +0x11, 0x180039a71\ntest    dl, 2                                                          ; +0x14, 0x180039a74\njz      short loc_180039ABA                                            ; +0x17, 0x180039a77\nlea     r9, ??1CCTurnOffTiles@cocos2d@@UEAA@XZ; void (*)(void *)       ; +0x19, 0x180039a79\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x180039a80\nmov     edx, 78h ; 'x'; unsigned __int64                               ; +0x24, 0x180039a84\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x180039a89\ntest    sil, 1                                                         ; +0x2e, 0x180039a8e\njz      short loc_180039AA6                                            ; +0x32, 0x180039a92\nimul    rdx, [rbx-8], 78h ; 'x'                                        ; +0x34, 0x180039a94\nadd     rdx, 8                                                         ; +0x39, 0x180039a99\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x180039a9d\ncall    j_j_j_free_0                                                   ; +0x41, 0x180039aa1\nlea     rax, [rbx-8]                                                   ; +0x46, 0x180039aa6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x180039aaa\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x180039aaf\nadd     rsp, 20h                                                       ; +0x54, 0x180039ab4\npop     rdi                                                            ; +0x58, 0x180039ab8\nretn                                                                   ; +0x59, 0x180039ab9\nlea     rax, ??_7CCTurnOffTiles@cocos2d@@6B@; const cocos2d::CCTurnOffTiles::`vftable' ; +0x5a, 0x180039aba\nmov     [rcx], rax                                                     ; +0x61, 0x180039ac1\nmov     rcx, [rcx+70h]; Block                                          ; +0x64, 0x180039ac4\ntest    rcx, rcx                                                       ; +0x68, 0x180039ac8\njz      short loc_180039ADA                                            ; +0x6b, 0x180039acb\ncall    j_j_free_0                                                     ; +0x6d, 0x180039acd\nmov     qword ptr [rbx+70h], 0                                         ; +0x72, 0x180039ad2\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x7a, 0x180039ada\nmov     [rbx], rax                                                     ; +0x81, 0x180039ae1\nmov     rcx, rbx; this                                                 ; +0x84, 0x180039ae4\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x87, 0x180039ae7\ntest    sil, 1                                                         ; +0x8c, 0x180039aec\njz      short loc_180039AFF                                            ; +0x90, 0x180039af0\nmov     edx, 78h ; 'x'                                                 ; +0x92, 0x180039af2\nmov     rcx, rbx; Block                                                ; +0x97, 0x180039af7\ncall    j_j_free_0                                                     ; +0x9a, 0x180039afa\nmov     rax, rbx                                                       ; +0x9f, 0x180039aff\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa2, 0x180039b02\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa7, 0x180039b07\nadd     rsp, 20h                                                       ; +0xac, 0x180039b0c\npop     rdi                                                            ; +0xb0, 0x180039b10\nretn                                                                   ; +0xb1, 0x180039b11", "xrefs": ["<???> @ 0x1800ea648", "<???> @ 0x1801b0da4"], "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"}