//
// DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch from 0x10015c990 to 0x10015ca4e (190 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::getIndexOfKeyWithClosestAlphaNumericalMatch(__int64 a1, char *a2)
{
__int64 v2; // rax
__int64 v5; // rdi
const char *v6; // rsi
unsigned int i; // r15d
char *v8; // rax
const char *v9; // rsi
_QWORD v11[6]; // [rsp+0h] [rbp-30h] BYREF
v11[0] = v2;
v5 = *(_QWORD *)(a1 + 216) - 8LL;
v6 = "k";
if ( *(_BYTE *)(a1 + 232) )
v6 = "key";
v11[0] = sub_100718180(v5, v6);
if ( sub_100718020(v11) )
{
for ( i = 0; ; ++i )
{
v8 = (char *)sub_1007184B0(v11);
if ( sub_100158A80(a2, v8) )
break;
v9 = "key";
if ( !*(_BYTE *)(a1 + 232) )
v9 = "k";
v11[0] = sub_100718360(v11, v9);
if ( !sub_100718020(v11) )
return 0;
}
}
else
{
return 0;
}
return i;
}