//
// DS_Dictionary::removeKey from 0x100161720 to 0x1001617e4 (196 bytes)
//
// 1 xrefs:
// > DS_Dictionary::getArrayForKey @ 0x10016274c
//
// 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
//
void __fastcall DS_Dictionary::removeKey(DS_Dictionary *a1, const char *a2)
{
std::__vector_base
::pointer v4; // x0
char *v5; // x1
__int64 i; // x0
const char *v7; // x0
char *v8; // x1
std::__vector_base::pointer v9; // x20
__int64 v10; // [xsp+0h] [xbp-30h] BYREF
__int64 v11; // [xsp+8h] [xbp-28h] BYREF
v4 = a1->dictTree.__end_ - 1;
if ( a1->compatible )
v5 = "key";
else
v5 = "k";
for ( i = sub_1003AB464((int)v4, v5); ; i = sub_1003AB540((int)&v11, v8) )
{
v11 = i;
if ( !sub_1003AB448(&v11) )
break;
v7 = (const char *)sub_1003AB5AC(&v11);
if ( !strcmp(v7, a2) )
{
v9 = a1->dictTree.__end_ - 1;
v10 = sub_1003AB594(&v11);
sub_1003ABC84(v9, &v10);
sub_1003ABC84(&a1->dictTree.__end_[-1], &v11);
return;
}
if ( a1->compatible )
v8 = "key";
else
v8 = "k";
}
}