//
// truncFloat3ToStr from 0x3d4ef0 to 0x3d4f4c (92 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:43 +0000
//
int *__fastcall truncFloat3ToStr(int *a1, const char *a2)
{
cocos2d::CCString *v3; // r0
const char *CString; // r0
const char *v5; // r5
size_t v6; // r0
if ( (float)(*(float *)&a2 - (float)(int)*(float *)&a2) == 0.0 )
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(int)*(float *)&a2);
else
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%0.3f", a2, *(float *)&a2);
CString = (const char *)cocos2d::CCString::getCString(v3);
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
v5 = CString;
v6 = strlen(CString);
std::string::__init(a1, v5, v6);
return a1;
}