//
// cocos2d::CCUserDefault::getBoolForKey from 0x1800a2590 to 0x1800a2611 (129 bytes)
//
// 3 xrefs:
// > cocos2d::CCUserDefault::getBoolForKey @ 0x1800a2583
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c1878
//
// 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:14 +0000
//
_BOOL8 __fastcall cocos2d::CCUserDefault::getBoolForKey(cocos2d::CCUserDefault *this, char *a2, bool a3)
{
const char *Str; // rbx
__int64 v5; // rax
__int64 v6; // rcx
__int64 v8; // [rsp+58h] [rbp+20h]
Str = nullptr;
v5 = sub_1800A2AE0(a2);
if ( v5 )
{
v6 = *(_QWORD *)(v5 + 48);
if ( v6 )
Str = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v6 + 24));
}
if ( Str )
a3 = strcmp(Str, "true") == 0;
if ( v8 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 128LL))(v8, 1);
return a3;
}