//
// DS_Dictionary::getBoolForKey from 0x180019e60 to 0x180019f7b (283 bytes)
//
// 4 xrefs:
// > DS_Dictionary::getDictForKey @ 0x18001a0b2
// > DS_Dictionary::getObjectForKey @ 0x18001aba2
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ae9bc
//
// 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
//
bool __fastcall DS_Dictionary::getBoolForKey(DS_Dictionary *this, const char *a2)
{
bool v2; // zf
const char *v4; // r8
std::_Vector_val>::pointer Mylast; // rcx
__int64 v7; // rax
const char *v8; // r8
int v9; // ecx
int v10; // edx
const char *v11; // r8
__int64 v13; // rax
const char *v14; // rcx
__int64 v15; // rax
int v16; // edx
int v17; // r8d
__int64 v18; // [rsp+30h] [rbp+8h] BYREF
char v19; // [rsp+40h] [rbp+18h] BYREF
v2 = !this->compatible;
v4 = "k";
Mylast = this->dictTree._Mypair._Myval2._Mylast;
if ( !v2 )
v4 = "key";
sub_18007FB10(&Mylast[-1], &v18, v4);
if ( !sub_18007F4E0(&v18) )
return 0;
while ( 1 )
{
v7 = sub_18007FB70(&v18);
v8 = &a2[-v7];
do
{
v9 = (unsigned __int8)v8[v7];
v10 = *(unsigned __int8 *)v7 - v9;
if ( v10 )
break;
++v7;
}
while ( v9 );
if ( !v10 )
break;
v11 = "k";
if ( this->compatible )
v11 = "key";
v18 = *(_QWORD *)sub_180081A50(&v18, &v19, v11);
if ( !sub_18007F4E0(&v18) )
return 0;
}
sub_180081AB0(&v18, &v19);
v13 = sub_180081A30(&v19);
v14 = "t";
if ( this->compatible )
v14 = "true";
v15 = v13 - (_QWORD)v14;
do
{
v16 = (unsigned __int8)v14[v15];
v17 = *(unsigned __int8 *)v14 - v16;
if ( v17 )
break;
++v14;
}
while ( v16 );
return !v17;
}