//
// truncFloat3ToStr from 0x2f0c70 to 0x2f0cda (106 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall truncFloat3ToStr(int a1, const char *a2)
{
cocos2d::CCString *v3; // r0
char *CString; // 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,
a1,
a2);
CString = (char *)cocos2d::CCString::getCString(v3);
sub_776584(a1, CString);
return a1;
}