//
// SongSelectNode::updateAudioLabel from 0x57b9a8 to 0x57ba68 (192 bytes)
//
// 3 xrefs:
// > SongSelectNode::selectSong @ 0x57ba8e
// > SongSelectNode::onSongMode @ 0x57bad4
// > SongSelectNode::init @ 0x57bd72
//
// 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:52:49 +0000
//
int __fastcall SongSelectNode::updateAudioLabel(SongSelectNode *this)
{
char *v2; // r2
cocos2d::CCString *v3; // r0
int CString; // r0
float v5; // s15
unsigned __int8 v7; // [sp+0h] [bp-10h] BYREF
char v8; // [sp+1h] [bp-Fh] BYREF
char *v9; // [sp+8h] [bp-8h]
LevelTools::getAudioTitle((LevelTools *)&v7, *((_DWORD *)this + 69));
if ( (v7 & 1) != 0 )
v2 = v9;
else
v2 = &v8;
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%02d: %s",
(const char *)(*((_DWORD *)this + 69) + 1),
v2,
v7 << 31);
CString = cocos2d::CCString::getCString(v3);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 71) + 464))(*((_DWORD *)this + 71), CString);
v5 = 0.8;
if ( (float)(200.0 / *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 71) + 164))(*((_DWORD *)this + 71))) < 0.8 )
v5 = 200.0 / *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 71) + 164))(*((_DWORD *)this + 71));
(*(void (__fastcall **)(_DWORD, float))(**((_DWORD **)this + 71) + 80))(
*((_DWORD *)this + 71),
COERCE_FLOAT(LODWORD(v5)));
return std::string::~string((int)&v7);
}