//
// DS_Dictionary::setBoolForKey from 0x18001ea20 to 0x18001ebb1 (401 bytes)
//
// 7 xrefs:
// > DS_Dictionary::setBoolForKey @ 0x18001ebc3
// > DS_Dictionary::setBoolMapForKey @ 0x18001ecde
// > ??> @ 0x18013c2a8
// > ??> @ 0x18013c2b8
// > ??> @ 0x18013c2d0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b8d64
//
// 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 11:21:27 +0000
//
void __fastcall DS_Dictionary::setBoolForKey(DS_Dictionary *this, char *a2, char a3, char a4)
{
const char *v7; // rdi
const char *v8; // r8
char *v9; // rax
const char *v10; // r8
__int64 *v11; // rax
__int64 v12; // rax
const char *v13; // r8
__int64 v14; // [rsp+20h] [rbp-28h] BYREF
__int64 v15; // [rsp+28h] [rbp-20h] BYREF
_BYTE v16[24]; // [rsp+30h] [rbp-18h] BYREF
if ( a3 )
{
cocos2d::CCThread::CCThread((cocos2d::CCThread *)&v15);
v7 = "k";
if ( !a4 )
goto LABEL_10;
v8 = "k";
if ( *((_BYTE *)this + 232) )
v8 = "key";
sub_180082A40(*((_QWORD *)this + 27) - 8LL, &v14, v8);
if ( sub_1800823F0(&v14) )
{
while ( 1 )
{
v9 = (char *)sub_180082AC0(&v14);
if ( !sub_180018D00(v9, a2) )
break;
v10 = "k";
if ( *((_BYTE *)this + 232) )
v10 = "key";
v14 = *(_QWORD *)sub_180084A40(&v14, v16, v10);
if ( !sub_1800823F0(&v14) )
goto LABEL_10;
}
if ( *((_BYTE *)this + 232) )
v7 = "key";
v11 = (__int64 *)sub_180084060(*((_QWORD *)this + 27) - 8LL, v16, v7, &v14);
}
else
{
LABEL_10:
if ( *((_BYTE *)this + 232) )
v7 = "key";
v11 = (__int64 *)sub_180082790(*((_QWORD *)this + 27) - 8LL, v16, v7);
}
v15 = *v11;
v12 = sub_180082820(&v15, v16, 3);
sub_180088520(v12, a2);
v13 = "t";
if ( *((_BYTE *)this + 232) )
v13 = "true";
sub_180083ED0(*((_QWORD *)this + 27) - 8LL, v16, v13, &v15);
}
}