//
// DS_Dictionary::removeKey from 0x10015ca50 to 0x10015cb28 (216 bytes)
//
// 0 xrefs:
//
// 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(__int64 a1, int a2)
{
__int64 v4; // rdi
const char *v5; // rsi
__int64 result; // rax
int v7; // r14d
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 )
{
v7 = a2 + 1;
while ( --v7 )
{
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;
}