//
// cocos2d::CCConfiguration::getBool from 0x1800c07c0 to 0x1800c08e4 (292 bytes)
//
// 4 xrefs:
// > cocos2d::CCDirector::setDefaultValues @ 0x1800c2cf5
// > cocos2d::CCDirector::setDefaultValues @ 0x1800c2de4
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c3360
//
// 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:22:25 +0000
//
// Hidden C++ exception states: #wind=1
char __fastcall cocos2d::CCConfiguration::getBool(cocos2d::CCConfiguration *this, char *a2, char a3)
{
__int64 v5; // rdi
void *v6; // r8
__int64 v7; // rax
cocos2d::CCString *v9; // rax
void *Block[2]; // [rsp+30h] [rbp-38h] BYREF
__m128i si128; // [rsp+40h] [rbp-28h]
sub_180005A10(Block, a2);
v5 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 11), (__int64)Block);
if ( si128.m128i_i64[1] > 0xFuLL )
{
v6 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free_0(v6);
}
si128 = _mm_load_si128((const __m128i *)&xmmword_1800EC500);
LOBYTE(Block[0]) = 0;
if ( !v5 )
return a3;
v7 = _RTDynamicCast(v5, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCBool `RTTI Type Descriptor', 0);
if ( v7 )
return *(_BYTE *)(v7 + 56);
v9 = (cocos2d::CCString *)_RTDynamicCast(
v5,
0,
&cocos2d::CCObject `RTTI Type Descriptor',
&cocos2d::CCString `RTTI Type Descriptor',
0);
if ( v9 )
return cocos2d::CCString::boolValue(v9);
else
return a3;
}