//
// DS_Dictionary::removeKey from 0x18001d1e0 to 0x18001d2d4 (244 bytes)
//
// 8 xrefs:
// > DS_Dictionary::getArrayForKey @ 0x180019a70
// > DS_Dictionary::setRectArrayForKey @ 0x18001f6fb
// > DS_Dictionary::setRectForKey @ 0x18001fd3f
// > DS_Dictionary::setStringArrayForKey @ 0x18001ffbd
// > DS_Dictionary::setVec2ArrayForKey @ 0x18002065d
// > DS_Dictionary::setVec2ForKey @ 0x180020c1d
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b8c38
//
// 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, const char *a2)
{
bool v2; // zf
const char *v4; // r8
__int64 v5; // rcx
const char *v7; // rax
const char *v8; // r8
__int64 v9; // rbx
__int64 v10; // rax
__int64 v11; // [rsp+30h] [rbp+8h] BYREF
char v12; // [rsp+40h] [rbp+18h] BYREF
v2 = *((_BYTE *)this + 232) == 0;
v4 = "k";
v5 = *((_QWORD *)this + 27);
if ( !v2 )
v4 = "key";
sub_180082A40(v5 - 8, &v11, v4);
if ( sub_1800823F0(&v11) )
{
while ( 1 )
{
v7 = (const char *)sub_180082AC0(&v11);
if ( !strcmp(v7, a2) )
break;
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);
}
}