//
// formatBytes from 0x95e44c to 0x95e504 (184 bytes)
//
// 9 xrefs:
// > CustomSongWidget::updateMultiAssetInfo @ 0x86c824
// > CustomSongWidget::updateMultiAssetInfo @ 0x86c844
// > CustomSongWidget::updateMultiAssetInfo @ 0x86cbac
// > CustomSFXWidget::updateSFXInfo @ 0xb5e41c
// > AutoBackupPopup::statsText @ 0xc520d8
// > AutoBackupPopup::onDeleteSelected @ 0xc52dcc
// > AutoBackupOptionsPopup::onDeleteAll @ 0xc57340
// > AutoBackupPopup::buildRows @ 0xc57c80
// > ??> @ 0x77e48
//
// 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:57:29 +0000
//
__int64 *__usercall formatBytes@(__int64 *__return_ptr a1@, int a2@)
{
float v2; // s0
int i; // w1
__int64 *v5; // x3
const char *v6; // x1
cocos2d::CCString *v7; // x0
const char *CString; // x0
size_t v9; // x0
char *v11; // [xsp+28h] [xbp+28h]
v2 = (float)a2;
for ( i = 0; roundf(v2 * 0.00097656) >= 1.0 && i <= 1; ++i )
v2 = v2 * 0.00097656;
v5 = &qword_155D0C8[3 * i];
v6 = (char *)v5 + 1;
if ( (*(_BYTE *)v5 & 1) != 0 )
v6 = (const char *)v5[2];
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%0.1f %s", v6, v2);
CString = (const char *)cocos2d::CCString::getCString(v7);
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
v11 = (char *)CString;
v9 = strlen(CString);
std::string::__init(a1, v11, v9);
return a1;
}