//
// sub_100642FA0 from 0x100642fa0 to 0x100643024 (132 bytes)
//
// 2 xrefs:
// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x10017c1b0
// > DS_Dictionary::saveRootSubDictToString @ 0x10017c86d
//
// 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_100642FA0(_QWORD *a1, unsigned __int64 *a2, const char *a3, unsigned int a4, unsigned int a5)
{
__int64 (__fastcall **v6)(); // [rsp+0h] [rbp-30h] BYREF
__int128 v7; // [rsp+8h] [rbp-28h]
void *__p; // [rsp+18h] [rbp-18h]
v6 = &off_100985EB8;
v7 = 0;
__p = nullptr;
sub_100642AF0(a2, (__int64)&v6, a3, a4, a5);
if ( (v7 & 1) != 0 )
{
sub_100006B70(a1, __p, *((unsigned __int64 *)&v7 + 1), 0.0);
v6 = &off_100985EB8;
if ( (v7 & 1) != 0 )
operator delete(__p);
}
else
{
a1[2] = __p;
*(_OWORD *)a1 = v7;
}
return a1;
}