//
// sub_100718D80 from 0x100718d80 to 0x100718e25 (165 bytes)
//
// 24 xrefs:
// > DS_Dictionary::setSubDictForKey_1 @ 0x10015db35
// > DS_Dictionary::setSubDictForKey @ 0x10015dc73
// > DS_Dictionary::setIntegerForKey @ 0x10015df62
// > DS_Dictionary::setIntegerForKey @ 0x10015dfc0
// > DS_Dictionary::setBoolForKey_1 @ 0x10015e13c
// > DS_Dictionary::setBoolForKey @ 0x10015e283
// > DS_Dictionary::setFloatForKey @ 0x10015e492
// > DS_Dictionary::setFloatForKey @ 0x10015e4f0
// > DS_Dictionary::setStringForKey @ 0x10015e740
// > DS_Dictionary::setStringForKey @ 0x10015e78f
// > DS_Dictionary::setVec2ForKey @ 0x10015e97f
// > DS_Dictionary::setVec2ForKey @ 0x10015e9ce
// > DS_Dictionary::setRectForKey @ 0x10015eebf
// > DS_Dictionary::setRectForKey @ 0x10015ef0e
// > DS_Dictionary::setStringArrayForKey @ 0x10015f180
// > DS_Dictionary::setStringArrayForKey @ 0x10015f24a
// > DS_Dictionary::setVec2ArrayForKey @ 0x10015f3e2
// > DS_Dictionary::setVec2ArrayForKey @ 0x10015f588
// > DS_Dictionary::setRectArrayForKey @ 0x10015f7f2
// > DS_Dictionary::setRectArrayForKey @ 0x10015f9e9
// > DS_Dictionary::setArrayForKey @ 0x10015fb8d
// > DS_Dictionary::setDictForKey @ 0x10016041e
// > DS_Dictionary::setBoolMapForKey @ 0x10016064b
// > DS_Dictionary::setBoolMapForKey @ 0x10016075c
//
// 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:36:09 +0000
//
__int64 __fastcall sub_100718D80(_QWORD **a1, unsigned int a2)
{
_QWORD *v2; // rdi
__int64 v3; // rcx
__int64 result; // rax
int v5; // edx
__int64 v6; // rbx
v2 = *a1;
if ( !v2 )
return 0;
v3 = *v2 & 7LL;
if ( (unsigned int)v3 >= 2 || a2 < 2 )
return 0;
if ( (_DWORD)v3 != 0 && a2 - 9 >= 0xFFFFFFFE )
return 0;
result = sub_100718E30(v2, *(_QWORD *)(*v2 & 0xFFFFFFFFFFFFFFE0LL), a2);
if ( a2 != 7 )
return result;
if ( !result )
return 0;
if ( (*(_DWORD *)result & 7) != 7 )
{
v5 = 98;
if ( _bittest(&v5, *(_DWORD *)result & 7) )
{
v6 = result;
sub_100717DB0((const char **)(result + 16), (__int64 *)result, 16, "xml");
return v6;
}
}
return result;
}