//
// sub_1800829C0 from 0x1800829c0 to 0x180082a34 (116 bytes)
//
// 5 xrefs:
// > DS_Dictionary::checkCompatibility @ 0x180018ed9
// > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x18001bb68
// > DS_Dictionary::loadRootSubDictFromFile @ 0x18001be8d
// > DS_Dictionary::loadRootSubDictFromString @ 0x18001c026
// > ??> @ 0x1801bf328
//
// 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_1800829C0(__int64 a1, _QWORD *a2, const char *a3)
{
__int64 v5; // rbx
const char *v6; // rdx
if ( *(_QWORD *)a1 && (v5 = *(_QWORD *)(*(_QWORD *)a1 + 56LL)) != 0 )
{
while ( 1 )
{
v6 = *(const char **)(v5 + 8);
if ( v6 )
{
if ( !strcmp(a3, v6) )
break;
}
v5 = *(_QWORD *)(v5 + 32);
if ( !v5 )
goto LABEL_6;
}
*a2 = v5;
return a2;
}
else
{
LABEL_6:
*a2 = 0;
return a2;
}
}