//
// DS_Dictionary::removeAllKeys from 0x18001cf00 to 0x18001cfcd (205 bytes)
//
// 4 xrefs:
// > ??> @ 0x18013312c
// > ??> @ 0x18013313c
// > ??> @ 0x1801438a8
// > ??> @ 0x1801aeb30
//
// 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::removeAllKeys(DS_Dictionary *this)
{
bool v1; // zf
const char *v3; // r8
std::_Vector_val>::pointer Mylast; // rcx
std::_Vector_val>::pointer v5; // rbx
__int64 v6; // rax
const char *v7; // r8
char v8; // [rsp+30h] [rbp+8h] BYREF
char v9; // [rsp+38h] [rbp+10h] BYREF
v1 = !this->compatible;
v3 = "k";
Mylast = this->dictTree._Mypair._Myval2._Mylast;
if ( !v1 )
v3 = "key";
sub_18007FB10(&Mylast[-1], &v8, v3);
while ( sub_18007F4E0(&v8) )
{
v5 = this->dictTree._Mypair._Myval2._Mylast;
v6 = sub_180081AB0(&v8, &v9);
sub_180084730(&v5[-1], v6);
sub_180084730(&this->dictTree._Mypair._Myval2._Mylast[-1], &v8);
v7 = "k";
if ( this->compatible )
v7 = "key";
sub_18007FB10(&this->dictTree._Mypair._Myval2._Mylast[-1], &v8, v7);
}
}