//
// DS_Dictionary::setBoolForKey from 0x10015e190 to 0x10015e305 (373 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
//
void __fastcall DS_Dictionary::setBoolForKey(__int64 a1, char *a2, int a3, char a4)
{
const char *v6; // r15
const char *v7; // rsi
char *v8; // rax
const char *v9; // rsi
__int64 v10; // rax
const char *v11; // rsi
const char *v12; // rsi
__int64 v13; // [rsp-40h] [rbp-40h] BYREF
_QWORD v14[7]; // [rsp-38h] [rbp-38h] BYREF
if ( a3 )
{
pugi::xml_node::xml_node(&v13);
v6 = "k";
if ( !a4 )
goto LABEL_11;
v7 = "k";
if ( *(_BYTE *)(a1 + 232) )
v7 = "key";
v14[0] = sub_100718180(*(_QWORD *)(a1 + 216) - 8LL, v7);
if ( sub_100718020(v14) )
{
while ( 1 )
{
v8 = (char *)sub_1007184B0(v14);
if ( !sub_100158A80(v8, a2) )
break;
v9 = "key";
if ( !*(_BYTE *)(a1 + 232) )
v9 = "k";
v14[0] = sub_100718360(v14, v9);
if ( !sub_100718020(v14) )
goto LABEL_11;
}
v12 = "k";
if ( *(_BYTE *)(a1 + 232) )
v12 = "key";
v10 = sub_100719500(*(_QWORD *)(a1 + 216) - 8LL, v12, v14);
}
else
{
LABEL_11:
if ( *(_BYTE *)(a1 + 232) )
v6 = "key";
v10 = sub_100719290(*(_QWORD *)(a1 + 216) - 8LL, v6);
}
v13 = v10;
v14[0] = sub_100718D80(&v13, 3);
sub_100718670(v14, a2);
v11 = "t";
if ( *(_BYTE *)(a1 + 232) )
v11 = "true";
sub_100719400(*(_QWORD *)(a1 + 216) - 8LL, v11, &v13);
}
}