//
// sub_18007F910 from 0x18007f910 to 0x18007f9ca (186 bytes)
//
// 23 xrefs:
// > DS_Dictionary::setArrayForKey @ 0x18001e785
// > DS_Dictionary::setBoolForKey @ 0x18001e95c
// > DS_Dictionary::setFloatForKey @ 0x18001ef6c
// > DS_Dictionary::setFloatForKey @ 0x18001f050
// > DS_Dictionary::setIntegerForKey @ 0x18001f1fe
// > DS_Dictionary::setIntegerForKey @ 0x18001f2e2
// > DS_Dictionary::setRectArrayForKey @ 0x18001f632
// > DS_Dictionary::setRectArrayForKey @ 0x18001f915
// > DS_Dictionary::setRectForKey @ 0x18001fc4e
// > DS_Dictionary::setRectForKey @ 0x18001fcba
// > DS_Dictionary::setStringArrayForKey @ 0x18001feac
// > DS_Dictionary::setStringArrayForKey @ 0x18001ff5e
// > DS_Dictionary::setStringForKey @ 0x1800200ee
// > DS_Dictionary::setStringForKey @ 0x180020153
// > DS_Dictionary::setSubDictForKey @ 0x180020200
// > DS_Dictionary::setSubDictForKey @ 0x18002035c
// > DS_Dictionary::setVec2ArrayForKey @ 0x180020552
// > DS_Dictionary::setVec2ArrayForKey @ 0x1800207e7
// > DS_Dictionary::setVec2ForKey @ 0x180020adc
// > DS_Dictionary::setVec2ForKey @ 0x180020b48
// > ??> @ 0x18013c25c
// > ??> @ 0x18013c26c
// > ??> @ 0x1801b5034
//
// 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_18007F910(_QWORD **a1, _QWORD *a2, __int64 a3)
{
_QWORD *v3; // rcx
int v4; // esi
_DWORD *v6; // rax
_DWORD *v7; // rbx
v3 = *a1;
v4 = a3;
if ( !v3
|| (*(_DWORD *)v3 & 7u) > 1
|| (unsigned int)a3 <= 1
|| (*(_DWORD *)v3 & 7) != 0 && (unsigned int)(a3 - 7) <= 1 )
{
*a2 = 0;
return a2;
}
else
{
v6 = (_DWORD *)sub_18007F9D0(v3, *(_QWORD *)(*v3 & 0xFFFFFFFFFFFFFFE0uLL), a3);
v7 = v6;
if ( v4 == 7 && v6 && ((*v6 & 7) == 1 || (*v6 & 7u) - 5 <= 1) )
sub_180085720(v6 + 4, v6, 16, "xml");
*a2 = v7;
return a2;
}
}