//
// DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch from 0x10017d5a0 to 0x10017d65e (190 bytes)
//
// 0 xrefs:
//
// 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
//
unsigned int __fastcall DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch(DS_Dictionary *a1, const char *a2)
{
__int64 v2; // rax
std::__vector_base
::pointer 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 = a1->dictTree.__end_ - 1;
v6 = "k";
if ( a1->compatible )
v6 = "key";
v11[0] = sub_10063B550(v5, v6);
if ( !sub_10063B3F0(v11) )
return 0;
for ( i = 0; ; ++i )
{
v8 = (char *)sub_10063B880(v11);
if ( sub_1001796D0((char *)a2, v8) )
break;
v9 = "key";
if ( !a1->compatible )
v9 = "k";
v11[0] = sub_10063B730(v11, v9);
if ( !sub_10063B3F0(v11) )
return 0;
}
return i;
}