//
// sub_18007F580 from 0x18007f580 to 0x18007f5ab (43 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801014b0
// > ??> @ 0x1801b4fc8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_QWORD *__fastcall sub_18007F580(_QWORD *a1, char a2)
{
*a1 = &pugi::xml_writer::`vftable';
if ( (a2 & 1) != 0 )
j_j_free_0(a1);
return a1;
}