//
// formatBytes from 0x457bcc to 0x457c58 (140 bytes)
//
// 2 xrefs:
// > CustomSongWidget::updateMultiAssetInfo @ 0x3dfd46
// > CustomSFXWidget::updateSFXInfo @ 0x56e01e
//
// 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 formatBytes(int a1, int a2)
{
int v3; // r5
float v4; // s16
const char *v5; // r1
cocos2d::CCString *v6; // r0
char *CString; // r0
v3 = 0;
v4 = (float)a2;
while ( COERCE_FLOAT(roundf()) >= 1.0 && v3 != 2 )
{
++v3;
v4 = v4 * 0.00097656;
}
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%0.1f %s",
v5,
v4,
dword_AC6700[v3]);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_776584(a1, CString);
return a1;
}