// // sub_CF847C from 0xcf847c to 0xcf85a0 (292 bytes) // // 2 xrefs: // > LevelStatsInfoPopup::buildInfoText @ 0xcf8fa0 // > LevelStatsInfoPopup::buildInfoText @ 0xcf9010 // // 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:06:49 +0000 // __int64 *__usercall sub_CF847C@(int a1@, __int64 *a2@) { __int64 v3; // x3 __int64 v4; // x2 cocos2d::CCString *v5; // x0 const char *CString; // x0 size_t v7; // x0 char *v9; // [xsp+28h] [xbp+28h] if ( a1 <= 0 ) { *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "NA", 2u); } else { v3 = (unsigned int)(a1 % 60); v4 = (unsigned int)(a1 / 60 % 60); if ( a1 / 3600 ) { v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%ih %im %is", (const char *)(unsigned int)(a1 / 3600), v4, v3); } else if ( (_DWORD)v4 ) { v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%im %is", (const char *)(unsigned int)v4, (unsigned int)v3); } else { v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%is", (const char *)(unsigned int)v3); } CString = (const char *)cocos2d::CCString::getCString(v5); *a2 = 0; a2[1] = 0; a2[2] = 0; v9 = (char *)CString; v7 = strlen(CString); std::string::__init(a2, v9, v7); } return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source