//
// DS_Dictionary::removeKey from 0x18001d100 to 0x18001d1d5 (213 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b8c2c
//
// 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:21:27 +0000
//
void __fastcall DS_Dictionary::removeKey(DS_Dictionary *this, int a2)
{
const char *v4; // r8
int v5; // ebx
bool v6; // zf
__int64 v7; // rcx
const char *v8; // r8
__int64 v9; // rbx
__int64 v10; // rax
__int64 v11; // [rsp+40h] [rbp+8h] BYREF
char v12; // [rsp+50h] [rbp+18h] BYREF
v4 = "k";
v5 = 0;
v6 = *((_BYTE *)this + 232) == 0;
v7 = *((_QWORD *)this + 27);
if ( !v6 )
v4 = "key";
sub_180082A40(v7 - 8, &v11, v4);
if ( sub_1800823F0(&v11) )
{
while ( v5 != a2 )
{
++v5;
v8 = "k";
if ( *((_BYTE *)this + 232) )
v8 = "key";
v11 = *(_QWORD *)sub_180084A40(&v11, &v12, v8);
if ( !sub_1800823F0(&v11) )
return;
}
v9 = *((_QWORD *)this + 27);
v10 = sub_180084AC0(&v11, &v12);
sub_180087700(v9 - 8, v10);
sub_180087700(*((_QWORD *)this + 27) - 8LL, &v11);
}
}