//
// DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch from 0xdb61a0 to 0xdb6290 (240 bytes)
//
// 1 xrefs:
// > ??> @ 0x67f30
//
// This function is hookable on this platform (idp: arm, 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 13:08:41 +0000
//
__int64 __fastcall DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch(DS_Dictionary *this, const char *a2)
{
int v3; // w1
pugi::xml_node *v5; // x0
const char *v6; // x1
unsigned int v7; // w20
const char *v8; // x0
const char *v9; // x1
__int64 result; // x0
__int64 i; // [xsp+50h] [xbp+50h] BYREF
v3 = *((unsigned __int8 *)this + 232);
v5 = (pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL);
if ( v3 )
v6 = "key";
else
v6 = "k";
v7 = 0;
for ( i = pugi::xml_node::child(v5, v6); ; i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v9) )
{
result = pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);
if ( !result )
break;
v8 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);
if ( (unsigned int)alphaNumericallyLessThan(a2, v8) )
return v7;
++v7;
if ( *((_BYTE *)this + 232) )
v9 = "key";
else
v9 = "k";
}
return result;
}