{"type": "func", "start": 6442678272, "end": 6442678430, "name": "sub_180037800", "pseudocode": "// \n// sub_180037800 from 0x180037800 to 0x18003789e (158 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800ea050\n// > <???> @ 0x1801b0b4c\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::CCObject *__fastcall sub_180037800(cocos2d::CCObject *this, char a2)\n{\n  int v3; // edi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      this,\n      0x50u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))cocos2d::CCActionManager::~CCActionManager);\n    if ( v3 )\n      j_j_j_free_0((char *)this - 8);\n    return (cocos2d::CCObject *)((char *)this - 8);\n  }\n  else\n  {\n    this->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCActionManager::`vftable';\n    cocos2d::CCActionManager::removeAllActions((cocos2d::CCActionManager *)this);\n    cocos2d::CCObject::~CCObject(this);\n    if ( v3 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_180037800 from 0x180037800 to 0x18003789e (158 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800ea050\n; > <???> @ 0x1801b0b4c\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, 0x180037800\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180037805\npush    rdi                                                            ; +0xa, 0x18003780a\nsub     rsp, 20h                                                       ; +0xb, 0x18003780b\nmov     rbx, rcx                                                       ; +0xf, 0x18003780f\nmov     edi, edx                                                       ; +0x12, 0x180037812\nand     edi, 1                                                         ; +0x14, 0x180037814\ntest    dl, 2                                                          ; +0x17, 0x180037817\njz      short loc_180037862                                            ; +0x1a, 0x18003781a\nlea     r9, ??1CCActionManager@cocos2d@@UEAA@XZ; void (*)(void *)      ; +0x1c, 0x18003781c\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x23, 0x180037823\nmov     edx, 50h ; 'P'; unsigned __int64                               ; +0x27, 0x180037827\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x2c, 0x18003782c\ntest    edi, edi                                                       ; +0x31, 0x180037831\njz      short loc_18003784E                                            ; +0x33, 0x180037833\nmov     rcx, [rbx-8]                                                   ; +0x35, 0x180037835\nlea     rdx, [rcx+rcx*4]                                               ; +0x39, 0x180037839\nshl     rdx, 4                                                         ; +0x3d, 0x18003783d\nadd     rdx, 8                                                         ; +0x41, 0x180037841\nlea     rcx, [rbx-8]; Block                                            ; +0x45, 0x180037845\ncall    j_j_j_free_0                                                   ; +0x49, 0x180037849\nlea     rax, [rbx-8]                                                   ; +0x4e, 0x18003784e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x180037852\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x57, 0x180037857\nadd     rsp, 20h                                                       ; +0x5c, 0x18003785c\npop     rdi                                                            ; +0x60, 0x180037860\nretn                                                                   ; +0x61, 0x180037861\nlea     rax, ??_7CCActionManager@cocos2d@@6B@; const cocos2d::CCActionManager::`vftable' ; +0x62, 0x180037862\nmov     [rcx], rax                                                     ; +0x69, 0x180037869\ncall    ?removeAllActions@CCActionManager@cocos2d@@QEAAXXZ; cocos2d::CCActionManager::removeAllActions(void) ; +0x6c, 0x18003786c\nmov     rcx, rbx; this                                                 ; +0x71, 0x180037871\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x74, 0x180037874\nnop                                                                    ; +0x79, 0x180037879\ntest    edi, edi                                                       ; +0x7a, 0x18003787a\njz      short loc_18003788B                                            ; +0x7c, 0x18003787c\nmov     edx, 50h ; 'P'                                                 ; +0x7e, 0x18003787e\nmov     rcx, rbx; Block                                                ; +0x83, 0x180037883\ncall    j_j_free_0                                                     ; +0x86, 0x180037886\nmov     rax, rbx                                                       ; +0x8b, 0x18003788b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8e, 0x18003788e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x93, 0x180037893\nadd     rsp, 20h                                                       ; +0x98, 0x180037898\npop     rdi                                                            ; +0x9c, 0x18003789c\nretn                                                                   ; +0x9d, 0x18003789d", "xrefs": ["<???> @ 0x1800ea050", "<???> @ 0x1801b0b4c"], "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"}