{"type": "func", "start": 6442978480, "end": 6442978534, "name": "pugi::xml_document::document_element", "pseudocode": "// \n// pugi::xml_document::document_element from 0x180080cb0 to 0x180080ce6 (54 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801438a8\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\n_QWORD *__fastcall pugi::xml_document::document_element(pugi::xml_document *this, _QWORD *a2)\n{\n  __int64 v2; // rax\n\n  v2 = *((_QWORD *)this->_root + 4);\n  if ( v2 )\n  {\n    while ( (*(_BYTE *)v2 & 7) != 1 )\n    {\n      v2 = *(_QWORD *)(v2 + 48);\n      if ( !v2 )\n        goto LABEL_4;\n    }\n    *a2 = v2;\n    return a2;\n  }\n  else\n  {\nLABEL_4:\n    *a2 = 0;\n    return a2;\n  }\n}", "assembly": "; \n; pugi::xml_document::document_element from 0x180080cb0 to 0x180080ce6 (54 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801438a8\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     rax, [rcx]                                                     ; +0x0, 0x180080cb0\nmov     rax, [rax+20h]                                                 ; +0x3, 0x180080cb3\ntest    rax, rax                                                       ; +0x7, 0x180080cb7\njz      short loc_180080CD4                                            ; +0xa, 0x180080cba\nnop     dword ptr [rax+00h]                                            ; +0xc, 0x180080cbc\nmovzx   ecx, byte ptr [rax]                                            ; +0x10, 0x180080cc0\nand     cl, 7                                                          ; +0x13, 0x180080cc3\ncmp     cl, 1                                                          ; +0x16, 0x180080cc6\njz      short loc_180080CDF                                            ; +0x19, 0x180080cc9\nmov     rax, [rax+30h]                                                 ; +0x1b, 0x180080ccb\ntest    rax, rax                                                       ; +0x1f, 0x180080ccf\njnz     short loc_180080CC0                                            ; +0x22, 0x180080cd2\nmov     qword ptr [rdx], 0                                             ; +0x24, 0x180080cd4\nmov     rax, rdx                                                       ; +0x2b, 0x180080cdb\nretn                                                                   ; +0x2e, 0x180080cde\nmov     [rdx], rax                                                     ; +0x2f, 0x180080cdf\nmov     rax, rdx                                                       ; +0x32, 0x180080ce2\nretn                                                                   ; +0x35, 0x180080ce5", "xrefs": ["<???> @ 0x1801438a8"], "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"}