//
// sub_10045270C from 0x10045270c to 0x1004527c4 (184 bytes)
//
// 9 xrefs:
// > DS_Dictionary::setSubDictForKey @ 0x1001eab08
// > DS_Dictionary::setIntegerForKey @ 0x1001eacbc
// > DS_Dictionary::setIntegerForKey @ 0x1001ead08
// > DS_Dictionary::setBoolForKey @ 0x1001eae8c
// > DS_Dictionary::setFloatForKey @ 0x1001eb038
// > DS_Dictionary::setFloatForKey @ 0x1001eb084
// > sub_1001EB14C @ 0x1001eb220
// > sub_1001EB14C @ 0x1001eb26c
// > sub_100452B14 @ 0x100452b28
//
// 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:21 +0000
//
__int64 __fastcall sub_10045270C(_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_1004527C4();
v4 = v7;
if ( a2 == 7 && v7 && (*(_DWORD *)v7 & 7) != 7 && ((1 << (*(_BYTE *)v7 & 7)) & 0x62) != 0 )
sub_10045222C((void **)(v7 + 16), (__int64 *)v7, 16, "xml");
}
}
return v4;
}