//
// sub_180082670 from 0x180082670 to 0x1800826f3 (131 bytes)
//
// 6 xrefs:
// > DS_Dictionary::DS_Dictionary @ 0x180016d8f
// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d702
// > DS_Dictionary::saveRootSubDictToString @ 0x18001e355
// > ??> @ 0x18014558c
// > ??> @ 0x18014559c
// > ??> @ 0x1801bf2bc
//
// 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
//
__int64 *__fastcall sub_180082670(_QWORD **a1, __int64 *a2, __int64 a3)
{
_QWORD *v3; // rcx
int v6; // eax
__int64 v7; // rax
__int64 v8; // rbx
v3 = *a1;
if ( v3 && ((v6 = *(_DWORD *)v3 & 7, v6 == 1) || v6 == 6) )
{
v7 = sub_180082700(v3, *(_QWORD *)(*v3 & 0xFFFFFFFFFFFFFFE0uLL));
v8 = v7;
if ( v7 )
sub_180088820(v7 + 8, v7, 16, a3);
*a2 = v8;
return a2;
}
else
{
*a2 = 0;
return a2;
}
}