//
// formatBytes from 0x82890c to 0x8289c8 (188 bytes)
//
// 3 xrefs:
// > CustomSongWidget::updateMultiAssetInfo @ 0x7470ec
// > CustomSFXWidget::updateSFXInfo @ 0xa31e0c
// > ??> @ 0x56da8
//
// 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
//
__int64 __usercall formatBytes@(int a1@, __int64 a2@)
{
float v2; // s0
float v4; // s1
int v5; // w2
cocos2d::CCString *v6; // x0
char *CString; // x0
v2 = (float)a1;
v4 = (float)a1 * 0.00097656;
if ( roundf(v4) < 1.0 )
{
v5 = 0;
}
else
{
v2 = v4 * 0.00097656;
v5 = 2;
if ( roundf(v4 * 0.00097656) < 1.0 )
{
v2 = (float)a1 * 0.00097656;
v5 = 1;
}
}
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%0.1f %s",
(const char *)qword_1242BB0[v5],
v2);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_D153B8(a2, CString);
return a2;
}