// // truncFloat2ToStr from 0x6aa204 to 0x6aa318 (276 bytes) // // 1 xrefs: // > @ 0xc40c0 // // 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 12:50:47 +0000 // __int64 *__usercall truncFloat2ToStr@(float a1@, __int64 *a2@) { const char *v2; // x1 cocos2d::CCString *v4; // x0 const char *CString; // x0 const char *v6; // x22 size_t v7; // x0 size_t v8; // x20 unsigned __int64 v9; // x0 __int64 v10; // x21 __int64 v11; // x0 void *v12; // x3 cocos2d::CCString *v14; // x0 const char *v15; // x0 size_t v16; // x0 char *v17; // [xsp+38h] [xbp+38h] v2 = (const char *)(unsigned int)(int)a1; if ( (float)(a1 - (float)(int)v2) != 0.0 ) { v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%0.2f", v2, a1); CString = (const char *)cocos2d::CCString::getCString(v4); *a2 = 0; a2[1] = 0; v6 = CString; a2[2] = 0; v7 = strlen(CString); v8 = v7; if ( v7 > 0xFFFFFFFFFFFFFFEFLL ) sub_62B644(); if ( v7 <= 0x16 ) { *(_BYTE *)a2 = 2 * v7; v12 = (char *)a2 + 1; if ( !v7 ) goto LABEL_6; } else { v9 = (v7 + 16) & 0xFFFFFFFFFFFFFFF0LL; v10 = v9 | 1; v11 = operator new(v9); *a2 = v10; v12 = (void *)v11; a2[2] = v11; a2[1] = v8; } v12 = memcpy(v12, v6, v8); LABEL_6: *((_BYTE *)v12 + v8) = 0; return a2; } v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v2); v15 = (const char *)cocos2d::CCString::getCString(v14); *a2 = 0; a2[1] = 0; a2[2] = 0; v17 = (char *)v15; v16 = strlen(v15); std::string::__init(a2, v17, v16); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source