//
// cocos2d::CCConfiguration::getNumber from 0x5adea4 to 0x5adf56 (178 bytes)
//
// 1 xrefs:
// > cocos2d::CCDirector::setDefaultValues @ 0x5c2b6e
//
// 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
//
double cocos2d::CCConfiguration::getNumber(cocos2d::CCConfiguration *a1, const char *a2, double a3)
{
cocos2d::CCDictionary *m_uIndexInArray; // r9
const void *v5; // r9
double *v6; // r0
int *v8; // r0
cocos2d::CCString *v9; // r0
std::string v11; // [sp+10h] [bp+0h] BYREF
m_uIndexInArray = (cocos2d::CCDictionary *)a1[1].m_uIndexInArray;
sub_776584((int)&v11, (char *)a2);
v5 = (const void *)cocos2d::CCDictionary::objectForKey(m_uIndexInArray, &v11);
sub_774008(&v11);
if ( !v5 )
return a3;
v6 = (double *)_dynamic_cast(
v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCDouble,
0);
if ( !v6 )
{
v8 = (int *)_dynamic_cast(
v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCInteger,
0);
if ( v8 )
return (double)v8[13];
v9 = (cocos2d::CCString *)_dynamic_cast(
v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCString,
0);
if ( v9 )
return cocos2d::CCString::doubleValue(v9);
return a3;
}
return v6[7];
}