{"type": "func", "start": 6442686864, "end": 6442687061, "name": "sub_180039990", "pseudocode": "// \n// sub_180039990 from 0x180039990 to 0x180039a55 (197 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ea358\n// > <???> @ 0x1801b0d8c\n// > <???> @ 0x1801b0d98\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_180039990(cocos2d::CCAction *this, char a2)\n{\n  void *v5; // rcx\n  void *v6; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      this,\n      0x80u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))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    this->__vftable = (cocos2d::CCAction_vtbl *)&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    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_180039990 from 0x180039990 to 0x180039a55 (197 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ea358\n; > <???> @ 0x1801b0d8c\n; > <???> @ 0x1801b0d98\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, 0x180039990\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180039995\npush    rdi                                                            ; +0xa, 0x18003999a\nsub     rsp, 20h                                                       ; +0xb, 0x18003999b\nmov     esi, edx                                                       ; +0xf, 0x18003999f\nmov     rbx, rcx                                                       ; +0x11, 0x1800399a1\ntest    dl, 2                                                          ; +0x14, 0x1800399a4\njz      short loc_1800399ED                                            ; +0x17, 0x1800399a7\nlea     r9, ??1CCShuffleTiles@cocos2d@@UEAA@XZ; void (*)(void *)       ; +0x19, 0x1800399a9\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x1800399b0\nmov     edx, 80h; unsigned __int64                                     ; +0x24, 0x1800399b4\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x1800399b9\ntest    sil, 1                                                         ; +0x2e, 0x1800399be\njz      short loc_1800399D9                                            ; +0x32, 0x1800399c2\nmov     rdx, [rbx-8]                                                   ; +0x34, 0x1800399c4\nshl     rdx, 7                                                         ; +0x38, 0x1800399c8\nadd     rdx, 8                                                         ; +0x3c, 0x1800399cc\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x1800399d0\ncall    j_j_j_free_0                                                   ; +0x44, 0x1800399d4\nlea     rax, [rbx-8]                                                   ; +0x49, 0x1800399d9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x1800399dd\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x52, 0x1800399e2\nadd     rsp, 20h                                                       ; +0x57, 0x1800399e7\npop     rdi                                                            ; +0x5b, 0x1800399eb\nretn                                                                   ; +0x5c, 0x1800399ec\nlea     rax, ??_7CCShuffleTiles@cocos2d@@6B@; const cocos2d::CCShuffleTiles::`vftable' ; +0x5d, 0x1800399ed\nmov     [rcx], rax                                                     ; +0x64, 0x1800399f4\nmov     rcx, [rcx+70h]; Block                                          ; +0x67, 0x1800399f7\nxor     edi, edi                                                       ; +0x6b, 0x1800399fb\ntest    rcx, rcx                                                       ; +0x6d, 0x1800399fd\njz      short loc_180039A0B                                            ; +0x70, 0x180039a00\ncall    j_j_free_0                                                     ; +0x72, 0x180039a02\nmov     [rbx+70h], rdi                                                 ; +0x77, 0x180039a07\nmov     rcx, [rbx+78h]; Block                                          ; +0x7b, 0x180039a0b\ntest    rcx, rcx                                                       ; +0x7f, 0x180039a0f\njz      short loc_180039A1D                                            ; +0x82, 0x180039a12\ncall    j_j_free_0                                                     ; +0x84, 0x180039a14\nmov     [rbx+78h], rdi                                                 ; +0x89, 0x180039a19\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x8d, 0x180039a1d\nmov     [rbx], rax                                                     ; +0x94, 0x180039a24\nmov     rcx, rbx; this                                                 ; +0x97, 0x180039a27\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x9a, 0x180039a2a\ntest    sil, 1                                                         ; +0x9f, 0x180039a2f\njz      short loc_180039A42                                            ; +0xa3, 0x180039a33\nmov     edx, 80h                                                       ; +0xa5, 0x180039a35\nmov     rcx, rbx; Block                                                ; +0xaa, 0x180039a3a\ncall    j_j_free_0                                                     ; +0xad, 0x180039a3d\nmov     rax, rbx                                                       ; +0xb2, 0x180039a42\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb5, 0x180039a45\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xba, 0x180039a4a\nadd     rsp, 20h                                                       ; +0xbf, 0x180039a4f\npop     rdi                                                            ; +0xc3, 0x180039a53\nretn                                                                   ; +0xc4, 0x180039a54", "xrefs": ["<???> @ 0x1800ea358", "<???> @ 0x1801b0d8c", "<???> @ 0x1801b0d98"], "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"}