// // cocos2d::CCConfiguration::getNumber from 0xd21500 to 0xd2169c (412 bytes) // // 2 xrefs: // > cocos2d::CCDirector::setDefaultValues @ 0xd48918 // > @ 0xb6908 // // This function is hookable on this platform (idp: arm, 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 13:07:12 +0000 // __int64 __fastcall cocos2d::CCConfiguration::getNumber(cocos2d::CCConfiguration *this, const char *a2, double a3) { __int64 v3; // x23 size_t v4; // x0 size_t v5; // x19 const char *v6; // x1 char *v7; // x3 const void *v8; // x21 unsigned __int64 v10; // x0 __int64 v11; // x21 char *v12; // x0 cocos2d::CCString *v13; // x0 __int64 v15; // [xsp+50h] [xbp+50h] BYREF size_t v16; // [xsp+58h] [xbp+58h] void *v17; // [xsp+60h] [xbp+60h] v3 = *((_QWORD *)this + 11); v15 = 0; v16 = 0; v17 = nullptr; v4 = strlen(a2); v5 = v4; v6 = a2; if ( v4 > 0x16 ) { v10 = (v4 + 16) & 0xFFFFFFFFFFFFFFF0LL; v11 = v10 | 1; v12 = (char *)operator new(v10); v15 = v11; v6 = a2; v7 = v12; v17 = v12; v16 = v5; } else { LOBYTE(v15) = 2 * v4; v7 = (char *)&v15 + 1; if ( !v4 ) { BYTE1(v15) = 0; v8 = (const void *)cocos2d::CCDictionary::objectForKey(v3, &v15); if ( (v15 & 1) == 0 ) goto LABEL_4; goto LABEL_9; } } *((_BYTE *)memcpy(v7, v6, v5) + v5) = 0; v8 = (const void *)cocos2d::CCDictionary::objectForKey(v3, &v15); if ( (v15 & 1) == 0 ) { LABEL_4: if ( !v8 ) return _stack_chk_guard; goto LABEL_5; } LABEL_9: operator delete(v17); if ( !v8 ) return _stack_chk_guard; LABEL_5: if ( !_dynamic_cast( v8, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDouble, 0) && !_dynamic_cast( v8, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)`typeinfo for'cocos2d::CCInteger, 0) ) { v13 = (cocos2d::CCString *)_dynamic_cast( v8, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString, 0); if ( v13 ) cocos2d::CCString::doubleValue(v13); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source