//
// cocos2d::CCConfiguration::getCString from 0x1800bd170 to 0x1800bd250 (224 bytes)
//
// 4 xrefs:
// > cocos2d::CCDirector::setDefaultValues @ 0x1800bf4bc
// > cocos2d::CCDirector::setDefaultValues @ 0x1800bf53f
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b90b4
//
// 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
//
// Hidden C++ exception states: #wind=1
std::string *__fastcall cocos2d::CCConfiguration::getCString(cocos2d::CCConfiguration *this, char *a2, const char *a3)
{
__int64 v5; // rbx
void *v6; // rcx
cocos2d::CCString *v7; // rax
void *Block[2]; // [rsp+30h] [rbp-38h] BYREF
__m128i si128; // [rsp+40h] [rbp-28h]
sub_180005910(Block, a2);
v5 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 11), (unsigned __int8 *)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 )
invalid_parameter_noinfo_noreturn();
}
j_j_free_0(v6);
}
si128 = _mm_load_si128((const __m128i *)&xmmword_1800E7160);
LOBYTE(Block[0]) = 0;
if ( v5
&& (v7 = (cocos2d::CCString *)_RTDynamicCast(
v5,
0,
&cocos2d::CCObject `RTTI Type Descriptor',
&cocos2d::CCString `RTTI Type Descriptor',
0)) != nullptr )
{
return cocos2d::CCString::getCString(v7);
}
else
{
return (std::string *)a3;
}
}