//
// sub_1004540B4 from 0x1004540b4 to 0x100454150 (156 bytes)
//
// 1 xrefs:
// > DS_Dictionary::saveRootSubDictToString @ 0x1001e9f60
//
// This function is hookable on this platform (idp: arm, 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 11:05:22 +0000
//
void __usercall sub_1004540B4(__int64 *a1@, void *a2@, __int64 a3@, unsigned int a4@, __int64 a5@)
{
__int64 (__fastcall **v6)(); // [xsp+0h] [xbp-40h] BYREF
void *__p[2]; // [xsp+8h] [xbp-38h]
__int64 v8; // [xsp+18h] [xbp-28h]
__p[0] = nullptr;
v6 = &off_100966EE0;
__p[1] = nullptr;
v8 = 0;
sub_100453DE8(a1, (__int64)&v6, a2, a3, a4);
if ( SHIBYTE(v8) < 0 )
{
sub_1000097D0((_BYTE *)a5, __p[0], (unsigned __int64)__p[1]);
v6 = &off_100966EE0;
if ( SHIBYTE(v8) < 0 )
operator delete(__p[0]);
}
else
{
*(_OWORD *)a5 = *(_OWORD *)__p;
*(_QWORD *)(a5 + 16) = v8;
}
}