//
// sub_180084730 from 0x180084730 to 0x1800847ac (124 bytes)
//
// 8 xrefs:
// > DS_Dictionary::removeAllKeys @ 0x18001cf6d
// > DS_Dictionary::removeAllKeys @ 0x18001cf82
// > DS_Dictionary::removeKey @ 0x18001d07e
// > DS_Dictionary::removeKey @ 0x18001d093
// > DS_Dictionary::removeKey @ 0x18001d192
// > DS_Dictionary::removeKey @ 0x18001d1a7
// > ??> @ 0x1801b552c
// > ??> @ 0x1801b5538
//
// 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
//
char __fastcall sub_180084730(__int64 *a1, __int64 **a2)
{
__int64 v2; // r8
__int64 *v4; // rax
__int64 v5; // rcx
__int64 v6; // rcx
__int64 v7; // rax
v2 = *a1;
if ( !*a1 )
return 0;
v4 = *a2;
if ( !*a2 || v4[1] != v2 )
return 0;
v5 = v4[6];
if ( v5 || (v5 = *(_QWORD *)(v2 + 32)) != 0 )
*(_QWORD *)(v5 + 40) = v4[5];
v6 = (*a2)[5];
v7 = (*a2)[6];
if ( *(_QWORD *)(v6 + 48) )
*(_QWORD *)(v6 + 48) = v7;
else
*(_QWORD *)(*a1 + 32) = v7;
sub_180080B10(*a2, *(_QWORD **)(*(_QWORD *)*a1 & 0xFFFFFFFFFFFFFFE0uLL));
return 1;
}