//
// sub_10063C150 from 0x10063c150 to 0x10063c1f5 (165 bytes)
//
// 24 xrefs:
// > DS_Dictionary::setSubDictForKey_1 @ 0x10017e745
// > DS_Dictionary::setSubDictForKey @ 0x10017e883
// > DS_Dictionary::setIntegerForKey @ 0x10017eb72
// > DS_Dictionary::setIntegerForKey @ 0x10017ebd0
// > DS_Dictionary::setBoolForKey_1 @ 0x10017ed4c
// > DS_Dictionary::setBoolForKey @ 0x10017ee93
// > DS_Dictionary::setFloatForKey @ 0x10017f0a2
// > DS_Dictionary::setFloatForKey @ 0x10017f100
// > DS_Dictionary::setStringForKey @ 0x10017f350
// > DS_Dictionary::setStringForKey @ 0x10017f39f
// > DS_Dictionary::setVec2ForKey @ 0x10017f58f
// > DS_Dictionary::setVec2ForKey @ 0x10017f5de
// > DS_Dictionary::setRectForKey @ 0x10017facf
// > DS_Dictionary::setRectForKey @ 0x10017fb1e
// > DS_Dictionary::setStringArrayForKey @ 0x10017fd90
// > DS_Dictionary::setStringArrayForKey @ 0x10017fe5a
// > DS_Dictionary::setVec2ArrayForKey @ 0x10017fff2
// > DS_Dictionary::setVec2ArrayForKey @ 0x100180198
// > DS_Dictionary::setRectArrayForKey @ 0x100180402
// > DS_Dictionary::setRectArrayForKey @ 0x1001805f9
// > DS_Dictionary::setArrayForKey @ 0x10018079d
// > DS_Dictionary::setDictForKey @ 0x10018102e
// > DS_Dictionary::setBoolMapForKey @ 0x10018125b
// > DS_Dictionary::setBoolMapForKey @ 0x10018136c
//
// 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_10063C150(_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_10063C200(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_10063B180((const char **)(result + 16), (__int64 *)result, 16, "xml");
return v6;
}
}
return result;
}