//
// sub_180082790 from 0x180082790 to 0x18008281b (139 bytes)
//
// 19 xrefs:
// > DS_Dictionary::DS_Dictionary @ 0x180016d79
// > DS_Dictionary::DS_Dictionary @ 0x180016db4
// > DS_Dictionary::setArrayForKey @ 0x18001e88e
// > DS_Dictionary::setArrayForKey @ 0x18001e927
// > DS_Dictionary::setBoolForKey @ 0x18001eb0f
// > DS_Dictionary::setFloatForKey @ 0x18001f0ef
// > DS_Dictionary::setIntegerForKey @ 0x18001f381
// > DS_Dictionary::setRectArrayForKey @ 0x18001f7cf
// > DS_Dictionary::setRectArrayForKey @ 0x18001fab9
// > DS_Dictionary::setRectForKey @ 0x18001fe0f
// > DS_Dictionary::setStringArrayForKey @ 0x18002008f
// > DS_Dictionary::setStringArrayForKey @ 0x18002014b
// > DS_Dictionary::setStringForKey @ 0x1800202d1
// > DS_Dictionary::setSubDictForKey @ 0x1800203e3
// > DS_Dictionary::setSubDictForKey @ 0x18002053f
// > DS_Dictionary::setVec2ArrayForKey @ 0x18002072f
// > DS_Dictionary::setVec2ArrayForKey @ 0x1800209d4
// > DS_Dictionary::setVec2ForKey @ 0x180020ce4
// > ??> @ 0x1801bf2ec
//
// 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 11:22:03 +0000
//
_QWORD *__fastcall sub_180082790(_QWORD **a1, _QWORD *a2, __int64 a3)
{
_QWORD *v3; // rcx
_DWORD *v6; // rax
v3 = *a1;
if ( v3 && (*(_DWORD *)v3 & 7u) < 2 )
{
v6 = (_DWORD *)sub_1800828E0(v3, *(_QWORD *)(*v3 & 0xFFFFFFFFFFFFFFE0uLL), 2);
*a2 = v6;
if ( v6 && ((*v6 & 7) == 1 || (*v6 & 7u) - 5 <= 1) )
{
sub_180088820(v6 + 4, v6, 16, a3);
return a2;
}
}
else
{
*a2 = 0;
}
return a2;
}