//
// sub_1003AB744 from 0x1003ab744 to 0x1003ab7fc (184 bytes)
//
// 9 xrefs:
// > DS_Dictionary::setSubDictForKey @ 0x100161cc8
// > DS_Dictionary::setIntegerForKey @ 0x100161e7c
// > DS_Dictionary::setIntegerForKey @ 0x100161ec8
// > DS_Dictionary::setBoolForKey @ 0x10016204c
// > DS_Dictionary::setFloatForKey @ 0x1001621f8
// > DS_Dictionary::setFloatForKey @ 0x100162244
// > DS_Dictionary::setStringForKey @ 0x1001623e0
// > DS_Dictionary::setStringForKey @ 0x10016242c
// > sub_1003ABB4C @ 0x1003abb60
//
// 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
//
__int64 __fastcall sub_1003AB744(_QWORD **a1, unsigned int a2)
{
_QWORD *v2; // x0
__int64 v4; // x19
__int64 v5; // x9
__int64 v7; // x0
v2 = *a1;
if ( !v2 )
return 0;
v4 = 0;
if ( a2 >= 2 )
{
v5 = *v2 & 7LL;
if ( (unsigned int)v5 <= 1 )
{
if ( a2 - 9 >= 0xFFFFFFFE && (_DWORD)v5 )
return 0;
v7 = sub_1003AB7FC();
v4 = v7;
if ( a2 == 7 && v7 && (*(_DWORD *)v7 & 7) != 7 && ((1 << (*(_BYTE *)v7 & 7)) & 0x62) != 0 )
sub_1003AB264((void **)(v7 + 16), (__int64 *)v7, 16, "xml");
}
}
return v4;
}