//
// sub_10058BFE0 from 0x10058bfe0 to 0x10058c078 (152 bytes)
//
// 1 xrefs:
// > sub_1006CE060 @ 0x1006ce21f
//
// 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_10058BFE0(__int64 a1, __int64 a2)
{
_QWORD *v3; // r14
__int64 i; // r15
void *v5; // rdi
v3 = operator new(0xF0u);
sub_100158EB0((__int64)v3);
(*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a2 + 48LL))(a2, v3);
for ( i = 0; i != 88; ++i )
DS_Dictionary::removeKey_1((__int64)v3, off_100B6DB30[i]);
DS_Dictionary::saveRootSubDictToString(a1, (__int64)v3);
v5 = (void *)v3[26];
if ( v5 )
{
v3[27] = v5;
operator delete(v5);
}
pugi::xml_document::dxml_document(v3);
operator delete(v3);
return a1;
}