//
// sub_10058BF50 from 0x10058bf50 to 0x10058bfc2 (114 bytes)
//
// 1 xrefs:
// > sub_1000D62F0 @ 0x1000d64df
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:32:24 +0000
//
__int64 __fastcall sub_10058BF50(__int64 a1, __int64 a2)
{
_QWORD *v3; // r14
void *v4; // rdi
v3 = operator new(0xF0u);
sub_100158EB0((__int64)v3);
(*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a2 + 48LL))(a2, v3);
DS_Dictionary::saveRootSubDictToString(a1, (__int64)v3);
v4 = (void *)v3[26];
if ( v4 )
{
v3[27] = v4;
operator delete(v4);
}
pugi::xml_document::dxml_document(v3);
operator delete(v3);
return a1;
}