{"type": "func", "start": 6442977920, "end": 6442978056, "name": "pugi::xml_document::destroy", "pseudocode": "// \n// pugi::xml_document::destroy from 0x180080a80 to 0x180080b08 (136 bytes)\n// \n// 12 xrefs:\n// > pugi::xml_document::~xml_document @ 0x18007f414\n// > pugi::xml_document::load @ 0x180081230\n// > pugi::xml_document::load @ 0x180081290\n// > pugi::xml_document::load_buffer @ 0x180081330\n// > pugi::xml_document::load_buffer_inplace @ 0x180081610\n// > pugi::xml_document::load_buffer_inplace_own @ 0x1800816a0\n// > pugi::xml_document::load_file @ 0x180081730\n// > pugi::xml_document::load_file @ 0x1800817a0\n// > pugi::xml_document::reset @ 0x1800847bf\n// > pugi::xml_document::reset @ 0x180084cb9\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b519c\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\nvoid __fastcall pugi::xml_document::destroy(pugi::xml_document *this)\n{\n  pugi::char_t *buffer; // rcx\n  __int64 i; // rbx\n  __int64 v4; // rcx\n  __int64 v5; // rbx\n\n  buffer = this->_buffer;\n  if ( buffer )\n  {\n    off_1801A2FA8(buffer);\n    this->_buffer = nullptr;\n  }\n  for ( i = *((_QWORD *)this->_root + 11); i; i = *(_QWORD *)(i + 8) )\n  {\n    if ( *(_QWORD *)i )\n      off_1801A2FA8(*(void **)i);\n  }\n  v4 = *(_QWORD *)((*(_QWORD *)this->_root & 0xFFFFFFFFFFFFFFE0uLL) + 0x18);\n  if ( v4 )\n  {\n    do\n    {\n      v5 = *(_QWORD *)(v4 + 24);\n      off_1801A2FA8(*(void **)(v4 + 8));\n      v4 = v5;\n    }\n    while ( v5 );\n  }\n  this->_root = nullptr;\n}", "assembly": "; \n; pugi::xml_document::destroy from 0x180080a80 to 0x180080b08 (136 bytes)\n; \n; 12 xrefs:\n; > pugi::xml_document::~xml_document @ 0x18007f414\n; > pugi::xml_document::load @ 0x180081230\n; > pugi::xml_document::load @ 0x180081290\n; > pugi::xml_document::load_buffer @ 0x180081330\n; > pugi::xml_document::load_buffer_inplace @ 0x180081610\n; > pugi::xml_document::load_buffer_inplace_own @ 0x1800816a0\n; > pugi::xml_document::load_file @ 0x180081730\n; > pugi::xml_document::load_file @ 0x1800817a0\n; > pugi::xml_document::reset @ 0x1800847bf\n; > pugi::xml_document::reset @ 0x180084cb9\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b519c\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, 0x180080a80\npush    rdi                                                            ; +0x5, 0x180080a85\nsub     rsp, 20h                                                       ; +0x6, 0x180080a86\nmov     rdi, rcx                                                       ; +0xa, 0x180080a8a\nmov     rcx, [rcx+8]; Block                                            ; +0xd, 0x180080a8d\ntest    rcx, rcx                                                       ; +0x11, 0x180080a91\njz      short loc_180080AA4                                            ; +0x14, 0x180080a94\ncall    cs:off_1801A2FA8                                               ; +0x16, 0x180080a96\nmov     qword ptr [rdi+8], 0                                           ; +0x1c, 0x180080a9c\nmov     rax, [rdi]                                                     ; +0x24, 0x180080aa4\nmov     rbx, [rax+58h]                                                 ; +0x27, 0x180080aa7\ntest    rbx, rbx                                                       ; +0x2b, 0x180080aab\njz      short loc_180080AC7                                            ; +0x2e, 0x180080aae\nmov     rcx, [rbx]; Block                                              ; +0x30, 0x180080ab0\ntest    rcx, rcx                                                       ; +0x33, 0x180080ab3\njz      short loc_180080ABE                                            ; +0x36, 0x180080ab6\ncall    cs:off_1801A2FA8                                               ; +0x38, 0x180080ab8\nmov     rbx, [rbx+8]                                                   ; +0x3e, 0x180080abe\ntest    rbx, rbx                                                       ; +0x42, 0x180080ac2\njnz     short loc_180080AB0                                            ; +0x45, 0x180080ac5\nmov     rax, [rdi]                                                     ; +0x47, 0x180080ac7\nmov     rcx, [rax]                                                     ; +0x4a, 0x180080aca\nand     rcx, 0FFFFFFFFFFFFFFE0h                                        ; +0x4d, 0x180080acd\nmov     rcx, [rcx+18h]                                                 ; +0x51, 0x180080ad1\ntest    rcx, rcx                                                       ; +0x55, 0x180080ad5\njz      short loc_180080AF6                                            ; +0x58, 0x180080ad8\nnop     word ptr [rax+rax+00h]                                         ; +0x5a, 0x180080ada\nmov     rbx, [rcx+18h]                                                 ; +0x60, 0x180080ae0\nmov     rcx, [rcx+8]; Block                                            ; +0x64, 0x180080ae4\ncall    cs:off_1801A2FA8                                               ; +0x68, 0x180080ae8\nmov     rcx, rbx                                                       ; +0x6e, 0x180080aee\ntest    rbx, rbx                                                       ; +0x71, 0x180080af1\njnz     short loc_180080AE0                                            ; +0x74, 0x180080af4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x76, 0x180080af6\nmov     qword ptr [rdi], 0                                             ; +0x7b, 0x180080afb\nadd     rsp, 20h                                                       ; +0x82, 0x180080b02\npop     rdi                                                            ; +0x86, 0x180080b06\nretn                                                                   ; +0x87, 0x180080b07", "xrefs": ["pugi::xml_document::~xml_document @ 0x18007f414", "pugi::xml_document::load @ 0x180081230", "pugi::xml_document::load @ 0x180081290", "pugi::xml_document::load_buffer @ 0x180081330", "pugi::xml_document::load_buffer_inplace @ 0x180081610", "pugi::xml_document::load_buffer_inplace_own @ 0x1800816a0", "pugi::xml_document::load_file @ 0x180081730", "pugi::xml_document::load_file @ 0x1800817a0", "pugi::xml_document::reset @ 0x1800847bf", "pugi::xml_document::reset @ 0x180084cb9", "<???> @ 0x1801438a8", "<???> @ 0x1801b519c"], "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"}