//
// cocos2d::CCConfiguration::getNumber from 0x100325198 to 0x100325274 (220 bytes)
//
// 1 xrefs:
// > cocos2d::CCDirector::setDefaultValues @ 0x1001751d0
//
// 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 __fastcall cocos2d::CCConfiguration::getNumber(cocos2d::CCConfiguration *a1, const char *a2, double a3)
{
__int64 v4; // x19
const void *v5; // x19
double *v6; // x0
int *v7; // x0
cocos2d::CCString *v8; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v11; // [xsp+1Fh] [xbp-21h]
v4 = *(_QWORD *)&a1[1].m_uIndexInArray;
sub_100009900(__p, (char *)a2);
v5 = (const void *)cocos2d::CCDictionary::objectForKey_1(v4, __p);
if ( v11 < 0 )
operator delete(__p[0]);
if ( v5 )
{
v6 = (double *)__dynamic_cast(
v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&off_1007F0038,
0);
if ( v6 )
{
return v6[7];
}
else
{
v7 = (int *)__dynamic_cast(
v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&off_100790DC0,
0);
if ( v7 )
{
return (double)v7[14];
}
else
{
v8 = (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 ( v8 )
return cocos2d::CCString::doubleValue(v8);
}
}
}
return a3;
}