//
// DS_Dictionary::removeKey_1 from 0x10015cb30 to 0x10015cc1a (234 bytes)
//
// 11 xrefs:
// > DS_Dictionary::setVec2ForKey @ 0x10015e8a1
// > DS_Dictionary::setRectForKey @ 0x10015ede5
// > DS_Dictionary::setStringArrayForKey @ 0x10015f08d
// > DS_Dictionary::setVec2ArrayForKey @ 0x10015f2e0
// > DS_Dictionary::setRectArrayForKey @ 0x10015f6f0
// > DS_Dictionary::getArrayForKey @ 0x10015febb
// > GameLevelManager::writePlatformerSaveJournal @ 0x10054c651
// > GameLevelManager::replayPlatformerSaveJournal @ 0x10054d667
// > sub_10054DBF0 @ 0x10054dd14
// > sub_10054DDE0 @ 0x10054e017
// > sub_10058BFE0 @ 0x10058c027
//
// 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 12:25:06 +0000
//
__int64 __fastcall DS_Dictionary::removeKey_1(__int64 a1, const char *a2)
{
__int64 v4; // rdi
const char *v5; // rsi
__int64 result; // rax
const char *v7; // rax
const char *v8; // rsi
__int64 v9; // r14
__int64 v10; // [rsp+8h] [rbp-38h] BYREF
_QWORD v11[6]; // [rsp+10h] [rbp-30h] BYREF
v4 = *(_QWORD *)(a1 + 216) - 8LL;
v5 = "k";
if ( *(_BYTE *)(a1 + 232) )
v5 = "key";
v11[0] = sub_100718180(v4, v5);
result = sub_100718020(v11);
if ( result )
{
while ( 1 )
{
v7 = (const char *)sub_1007184B0(v11);
if ( !strcmp(v7, a2) )
break;
v8 = "key";
if ( !*(_BYTE *)(a1 + 232) )
v8 = "k";
v11[0] = sub_100718360(v11, v8);
result = sub_100718020(v11);
if ( !result )
return result;
}
v9 = *(_QWORD *)(a1 + 216) - 8LL;
v10 = sub_1007183B0(v11);
sub_100719E50(v9, &v10);
return sub_100719E50(*(_QWORD *)(a1 + 216) - 8LL, v11);
}
return result;
}