//
// CustomSongWidget::updateSongInfo from 0x1000fbd64 to 0x1000fcad0 (3436 bytes)
//
// 12 xrefs:
// > CustomSongWidget::init @ 0x1000fa824
// > CustomSongWidget::onSelect @ 0x1000fabac
// > CustomSongWidget::updateSongObject @ 0x1000fbd60
// > CustomSongWidget::deleteSong @ 0x1000fce2c
// > CustomSongWidget::getSongInfoIfUnloaded @ 0x1000fd138
// > CustomSongWidget::updateDownloadProgress @ 0x1000fd490
// > CustomSongWidget::downloadFailed @ 0x1000fd4f0
// > CustomSongWidget::songStateChanged @ 0x1000fd504
// > sub_1000FD518 @ 0x1000fd52c
// > CustomSongWidget::updateLengthMod @ 0x1000fd544
// > CustomSongWidget::updateMultiAssetInfo @ 0x1000fdd74
// > CustomSongWidget::loadSongInfoFinished @ 0x1000fdf24
//
// 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
//
void __fastcall CustomSongWidget::updateSongInfo(CustomSongWidget *a1)
{
SongInfoObject *m_songInfoObject; // x8
cocos2d::CCLabelBMFont *m_songLabel; // x20
std::string *p_p; // x1
SongInfoObject *v5; // x0
std::string *v6; // x1
SongInfoObject *v7; // x8
int ExtraArtistCount; // w0
std::string *capacitym1; // x8
cocos2d::CCString *v10; // x0
const char *CString; // x0
std::string *v12; // x1
SongInfoObject *v13; // x10
int m_duration; // w9
int m_songID; // w8
cocos2d::CCString *v16; // x0
__int128 v17; // kr20_16
SongInfoObject *v18; // x8
std::string *v19; // x8
cocos2d::CCString *v20; // x0
const char *v21; // x0
SongInfoObject *v22; // x0
int v23; // w0
std::string *v24; // x8
cocos2d::CCString *v25; // x0
const char *v26; // x0
std::string *v27; // x1
SongInfoObject *v28; // x9
cocos2d::CCString *v29; // x0
const char *v30; // x0
std::string::size_type v31; // x8
const std::string::value_type *v32; // x1
std::string::size_type v33; // x2
std::string *p_dst; // x1
const char *v35; // x0
float m_lengthMod; // s0
cocos2d::CCString *v37; // x0
const char *v38; // x0
std::string *v39; // x1
void (*setVisible)(void); // x8
SongInfoObject *v41; // x8
int v42; // w20
MusicDownloadManager *v43; // x0
bool m_showDownloadBtn; // w8
CCMenuItemSpriteExtra *m_deleteBtn; // x21
_BOOL8 v46; // x1
_QWORD *p_m_deleteBtn; // x21
__int64 v48; // x8
bool m_isMusicLibrary; // w20
int v50; // w0
char v51; // w8
float v52; // s8
float v53; // s10
float v54; // s12
float v55; // s0
float v56; // s8
float v57; // s8
float v58; // s10
float v59; // s10
CCMenuItemSpriteExtra *m_moreBtn; // x20
cocos2d::CCNode *v61; // x21
cocos2d::CCNode *v62; // x22
float32x2_t *v63; // x23
__n128 v64; // q0
__n128 v65; // q1
__n128 v66; // q0
cocos2d::CCLabelBMFont *m_artistLabel; // x20
__n128 v68; // q1
cocos2d::CCLabelBMFont *v69; // x20
float v70; // s8
__n128 v71; // q1
__n128 v72; // q0
cocos2d::CCLabelBMFont *v73; // x0
cocos2d::CCLabelBMFont *v74; // x0
float v75; // s0
float v76; // s1
const cocos2d::CCPoint *v77; // x0
CCMenuItemSpriteExtra *v78; // x20
cocos2d::CCNode *v79; // x21
float v80; // s8
__n128 v81; // q0
__n128 v82; // q1
SongInfoObject *v83; // x8
MusicDownloadManager *v84; // x0
bool v85; // w8
CCMenuItemSpriteExtra *m_downloadBtn; // x0
__int64 v87; // x21
int v88; // w0
void (*setEnabled)(void); // x9
cocos2d::CCSpriteFrameCache *v90; // x0
const char *v91; // x1
int v92; // w22
bool v93; // w8
cocos2d::CCSpriteFrame *v94; // x0
bool v95; // w8
void *v96; // x1
float32x2_t v97; // [xsp+20h] [xbp-C0h] BYREF
void *v98; // [xsp+28h] [xbp-B8h] BYREF
std::string::size_type v99; // [xsp+30h] [xbp-B0h]
unsigned __int8 v100; // [xsp+3Fh] [xbp-A1h]
std::string __dst; // [xsp+40h] [xbp-A0h] BYREF
std::string __p; // [xsp+60h] [xbp-80h] BYREF
cocos2d::CCPoint v103; // 0:kr08_8.8
cocos2d::CCPoint v104; // 0:kr10_8.8
cocos2d::CCPoint v105; // 0:kr18_8.8
CustomSongWidget::positionInfoObjects(a1);
m_songInfoObject = a1->m_songInfoObject;
if ( m_songInfoObject )
{
m_songLabel = a1->m_songLabel;
if ( a1->m_isMusicLibrary )
{
if ( m_songInfoObject->m_songName.m_data.m_short.shortStorage.__elems_[22] < 0 )
sub_1000097D0(
&__p,
(void *)m_songInfoObject->m_songName.m_data.m_long.capacitym1,
m_songInfoObject->m_songName.m_data.m_long.size);
else
__p = m_songInfoObject->m_songName;
if ( __p.m_data.m_short.shortStorage.__elems_[22] >= 0 )
p_p = (std::string *)&__p;
else
p_p = (std::string *)__p.m_data.m_long.capacitym1;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))m_songLabel->setString)(m_songLabel, p_p);
if ( __p.m_data.m_short.shortStorage.__elems_[22] < 0 )
operator delete((void *)__p.m_data.m_long.capacitym1);
v5 = a1->m_songInfoObject;
if ( v5->m_artistName.m_data.m_short.shortStorage.__elems_[22] < 0 )
{
sub_1000097D0(&__p, (void *)v5->m_artistName.m_data.m_long.capacitym1, v5->m_artistName.m_data.m_long.size);
v5 = a1->m_songInfoObject;
}
else
{
__p = v5->m_artistName;
}
if ( v5->m_artistIDs.__table_.__p2_.__value_ )
{
ExtraArtistCount = SongInfoObject::getExtraArtistCount(v5);
if ( ExtraArtistCount >= 1 )
{
capacitym1 = (std::string *)&__p;
if ( __p.m_data.m_short.shortStorage.__elems_[22] < 0 )
capacitym1 = (std::string *)__p.m_data.m_long.capacitym1;
v10 = (cocos2d::CCString *)sub_100268F4C("%s +%i", (const char *)capacitym1, ExtraArtistCount);
CString = cocos2d::CCString::getCString(v10);
std::string::assign((std::string *)&__p, CString);
}
}
if ( __p.m_data.m_short.shortStorage.__elems_[22] >= 0 )
v12 = (std::string *)&__p;
else
v12 = (std::string *)__p.m_data.m_long.capacitym1;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))a1->m_artistLabel->setString)(
a1->m_artistLabel,
v12);
if ( a1->m_hasSFX )
goto LABEL_90;
v13 = a1->m_songInfoObject;
m_duration = v13->m_duration;
memset(&__dst, 0, sizeof(__dst));
m_songID = v13->m_songID;
if ( m_duration < 1 )
v16 = (cocos2d::CCString *)sub_100268F4C("ID: %i Size: %.01fMB", m_songID, v13->m_fileSize);
else
v16 = (cocos2d::CCString *)sub_100268F4C("ID: %i Size: %.01fMB (%is)", m_songID, v13->m_fileSize, m_duration);
v30 = cocos2d::CCString::getCString(v16);
std::string::assign(&__dst, v30);
SongInfoObject::getTagsString(&v98, a1->m_songInfoObject, 1);
v31 = v100;
if ( (v100 & 0x80u) != 0 )
v31 = v99;
if ( v31 )
{
std::string::append(&__dst, " ");
if ( (v100 & 0x80u) == 0 )
v32 = (const std::string::value_type *)&v98;
else
v32 = (const std::string::value_type *)v98;
if ( (v100 & 0x80u) == 0 )
v33 = v100;
else
v33 = v99;
std::string::append(&__dst, v32, v33);
}
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_dst = &__dst;
else
p_dst = (std::string *)__dst.__r_.__value_.__r.__words[0];
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))a1->m_songIDLabel->setString)(
a1->m_songIDLabel,
p_dst);
if ( (char)v100 < 0 )
operator delete(v98);
goto LABEL_88;
}
if ( m_songInfoObject->m_songName.m_data.m_short.shortStorage.__elems_[22] < 0 )
sub_1000097D0(
&__p,
(void *)m_songInfoObject->m_songName.m_data.m_long.capacitym1,
m_songInfoObject->m_songName.m_data.m_long.size);
else
__p = m_songInfoObject->m_songName;
if ( __p.m_data.m_short.shortStorage.__elems_[22] >= 0 )
v6 = (std::string *)&__p;
else
v6 = (std::string *)__p.m_data.m_long.capacitym1;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))m_songLabel->setString)(m_songLabel, v6);
if ( __p.m_data.m_short.shortStorage.__elems_[22] < 0 )
operator delete((void *)__p.m_data.m_long.capacitym1);
sub_100009900(&__p, "");
v7 = a1->m_songInfoObject;
if ( v7->m_artistName.m_data.m_short.shortStorage.__elems_[22] < 0 )
sub_1000097D0(&__dst, (void *)v7->m_artistName.m_data.m_long.capacitym1, v7->m_artistName.m_data.m_long.size);
else
__dst = (std::string)v7->m_artistName;
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
{
v17 = *(_OWORD *)&__dst.__r_.__value_.__l.__data_;
operator delete(__dst.__r_.__value_.__l.__data_);
if ( !*((_QWORD *)&v17 + 1) )
goto LABEL_49;
}
else if ( !*((_BYTE *)&__dst.__r_.__value_.__s + 23) )
{
goto LABEL_49;
}
v18 = a1->m_songInfoObject;
if ( v18->m_artistName.m_data.m_short.shortStorage.__elems_[22] < 0 )
sub_1000097D0(&__dst, (void *)v18->m_artistName.m_data.m_long.capacitym1, v18->m_artistName.m_data.m_long.size);
else
__dst = (std::string)v18->m_artistName;
v19 = &__dst;
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v19 = (std::string *)__dst.__r_.__value_.__r.__words[0];
v20 = (cocos2d::CCString *)sub_100268F4C("By: %s", (const char *)v19);
v21 = cocos2d::CCString::getCString(v20);
std::string::assign((std::string *)&__p, v21);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
LABEL_49:
v22 = a1->m_songInfoObject;
if ( v22->m_artistIDs.__table_.__p2_.__value_ )
{
v23 = SongInfoObject::getExtraArtistCount(v22);
if ( v23 >= 1 )
{
v24 = (std::string *)&__p;
if ( __p.m_data.m_short.shortStorage.__elems_[22] < 0 )
v24 = (std::string *)__p.m_data.m_long.capacitym1;
v25 = (cocos2d::CCString *)sub_100268F4C("%s +%i", (const char *)v24, v23);
v26 = cocos2d::CCString::getCString(v25);
std::string::assign((std::string *)&__p, v26);
}
}
if ( __p.m_data.m_short.shortStorage.__elems_[22] >= 0 )
v27 = (std::string *)&__p;
else
v27 = (std::string *)__p.m_data.m_long.capacitym1;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))a1->m_artistLabel->setString)(a1->m_artistLabel, v27);
if ( a1->m_hasSFX )
goto LABEL_90;
if ( a1->m_isRobtopSong )
{
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_songIDLabel->setString)(a1->m_songIDLabel, "");
}
else
{
v28 = a1->m_songInfoObject;
if ( v28->m_unloaded )
v29 = (cocos2d::CCString *)sub_100268F4C("SongID: %i", v28->m_songID);
else
v29 = (cocos2d::CCString *)sub_100268F4C("SongID: %i Size: %.02fMB", v28->m_songID, v28->m_fileSize);
v35 = cocos2d::CCString::getCString(v29);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_songIDLabel->setString)(
a1->m_songIDLabel,
v35);
if ( a1->m_songInfoObject->m_BPM >= 1 )
{
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_errorLabel->setColor)(
a1->m_errorLabel,
&unk_100636BC9);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))a1->m_errorLabel->setScale)(a1->m_errorLabel, 0.4);
memset(&__dst, 0, sizeof(__dst));
m_lengthMod = a1->m_lengthMod;
if ( m_lengthMod <= 0.0 || m_lengthMod == 1.0 )
v37 = (cocos2d::CCString *)sub_100268F4C("BPM: %i", a1->m_songInfoObject->m_BPM);
else
v37 = (cocos2d::CCString *)sub_100268F4C(
"BPM: %i (%i)",
a1->m_songInfoObject->m_BPM,
llroundf(m_lengthMod * (float)a1->m_songInfoObject->m_BPM));
v38 = cocos2d::CCString::getCString(v37);
std::string::assign(&__dst, v38);
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v39 = &__dst;
else
v39 = (std::string *)__dst.__r_.__value_.__r.__words[0];
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))a1->m_errorLabel->setString)(
a1->m_errorLabel,
v39);
CustomSongWidget::showError(a1, 0);
LABEL_88:
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
}
}
LABEL_90:
if ( __p.m_data.m_short.shortStorage.__elems_[22] < 0 )
operator delete((void *)__p.m_data.m_long.capacitym1);
goto LABEL_92;
}
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_songLabel->setString)(
a1->m_songLabel,
"No song loaded");
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_artistLabel->setString)(a1->m_artistLabel, "");
if ( !a1->m_hasSFX )
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_songIDLabel->setString)(a1->m_songIDLabel, "");
LABEL_92:
if ( a1->m_hasSFX )
{
setVisible = (void (*)(void))a1->m_downloadBtn->setVisible;
LABEL_102:
setVisible();
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_cancelDownloadBtn->setVisible)(
a1->m_cancelDownloadBtn,
0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_selectSongBtn->setVisible)(a1->m_selectSongBtn, 0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_playbackBtn->setVisible)(a1->m_playbackBtn, 0);
((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_sliderGroove->setVisible)(a1->m_sliderGroove, 0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_getSongInfoBtn->setVisible)(a1->m_getSongInfoBtn, 0);
p_m_deleteBtn = &a1->m_deleteBtn;
LABEL_103:
v48 = 328;
goto LABEL_104;
}
v41 = a1->m_songInfoObject;
if ( !v41 )
{
setVisible = (void (*)(void))a1->m_downloadBtn->setVisible;
goto LABEL_102;
}
v42 = v41->m_songID;
v43 = MusicDownloadManager::sharedState();
if ( MusicDownloadManager::isSongDownloaded(v43, v42) )
{
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_downloadBtn->setVisible)(a1->m_downloadBtn, 0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_cancelDownloadBtn->setVisible)(
a1->m_cancelDownloadBtn,
0);
m_showDownloadBtn = 0;
if ( a1->m_songInfoObject->m_unloaded )
m_showDownloadBtn = a1->m_showDownloadBtn;
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_getSongInfoBtn->setVisible)(
a1->m_getSongInfoBtn,
m_showDownloadBtn);
m_deleteBtn = a1->m_deleteBtn;
v46 = a1->m_showDownloadBtn
&& (((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_getSongInfoBtn->isVisible)(a1->m_getSongInfoBtn) & 1) == 0
&& ((unsigned int (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_deleteBtn->getTag)(a1->m_deleteBtn) != -999;
((void (__fastcall *)(CCMenuItemSpriteExtra *, _BOOL8))m_deleteBtn->setVisible)(m_deleteBtn, v46);
if ( a1->m_showSelectSongBtn && a1->m_songDelegate )
{
((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_selectSongBtn->setVisible)(a1->m_selectSongBtn, 1);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_deleteBtn->setVisible)(a1->m_deleteBtn, 0);
v87 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_selectSongBtn->getNormalImage)(a1->m_selectSongBtn);
v88 = ((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_songDelegate->getActiveSongID)(a1->m_songDelegate);
setEnabled = (void (*)(void))a1->m_selectSongBtn->setEnabled;
if ( v88 == v42 )
{
setEnabled();
v90 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v91 = "GJ_selectSongOnBtn_001.png";
}
else
{
setEnabled();
v90 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v91 = "GJ_selectSongBtn_001.png";
}
v94 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v90, v91);
(*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v87 + 1144LL))(v87, v94);
}
else
{
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_selectSongBtn->setVisible)(a1->m_selectSongBtn, 0);
}
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_playbackBtn->setVisible)(
a1->m_playbackBtn,
a1->m_showPlayMusicBtn);
p_m_deleteBtn = &a1->m_sliderGroove;
goto LABEL_103;
}
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_selectSongBtn->setVisible)(a1->m_selectSongBtn, 0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_playbackBtn->setVisible)(a1->m_playbackBtn, 0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_deleteBtn->setVisible)(a1->m_deleteBtn, 0);
if ( a1->m_isRobtopSong )
{
p_m_deleteBtn = &a1->m_deleteBtn;
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_downloadBtn->setVisible)(a1->m_downloadBtn, 0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_cancelDownloadBtn->setVisible)(
a1->m_cancelDownloadBtn,
0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_getSongInfoBtn->setVisible)(a1->m_getSongInfoBtn, 0);
goto LABEL_103;
}
v84 = MusicDownloadManager::sharedState();
if ( MusicDownloadManager::isRunningActionForSongID(v84, a1->m_customSongID) )
{
v85 = 0;
m_downloadBtn = a1->m_downloadBtn;
}
else
{
m_downloadBtn = a1->m_downloadBtn;
if ( !a1->m_isNotDownloading )
{
v92 = 0;
v85 = !a1->m_songInfoObject->m_unloaded && a1->m_showDownloadBtn;
goto LABEL_135;
}
v85 = 0;
}
v92 = 1;
LABEL_135:
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))m_downloadBtn->setVisible)(m_downloadBtn, v85);
v93 = v92 && !a1->m_songInfoObject->m_unloaded && a1->m_showDownloadBtn;
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_cancelDownloadBtn->setVisible)(
a1->m_cancelDownloadBtn,
v93);
p_m_deleteBtn = &a1->m_getSongInfoBtn;
v95 = a1->m_songInfoObject->m_unloaded && a1->m_showDownloadBtn;
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_getSongInfoBtn->setVisible)(a1->m_getSongInfoBtn, v95);
if ( v92 )
v96 = &unk_100636BC6;
else
v96 = &unk_100636BC3;
(*(void (__fastcall **)(_QWORD, void *))(*(_QWORD *)*p_m_deleteBtn + 944LL))(*p_m_deleteBtn, v96);
v48 = 1040;
LABEL_104:
(*(void (**)(void))(*(_QWORD *)*p_m_deleteBtn + v48))();
m_isMusicLibrary = a1->m_isMusicLibrary;
v50 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_ncsLogo->isVisible)(a1->m_ncsLogo);
v51 = v50;
if ( m_isMusicLibrary )
{
if ( v50 )
v52 = 130.0;
else
v52 = 140.0;
if ( ((unsigned int (__fastcall *)(cocos2d::CCSprite *))a1->m_ncsLogo->isVisible)(a1->m_ncsLogo) )
v53 = 55.0;
else
v53 = 80.0;
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_songLabel, v52, 0.5, 0.0);
v54 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_songLabel->getContentSize)(a1->m_songLabel);
v55 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_songLabel->getScale)(a1->m_songLabel);
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_artistLabel, v53 + fmaxf(v52 - (float)(v54 * v55), 0.0), 0.5, 0.0);
if ( !a1->m_hasSFX )
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_songIDLabel, 220.0, 0.6, 0.0);
v56 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_songLabel->getContentSize)(a1->m_songLabel);
v57 = v56 * ((float (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_songLabel->getScale)(a1->m_songLabel);
v58 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_artistLabel->getContentSize)(a1->m_artistLabel);
v59 = v58 * ((float (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_artistLabel->getScale)(a1->m_artistLabel);
m_moreBtn = a1->m_moreBtn;
v61 = (cocos2d::CCNode *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))m_moreBtn->getParent)(m_moreBtn);
v62 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_songLabel->getParent)(a1->m_songLabel);
v63 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_songLabel->getPosition)(a1->m_songLabel);
v64.n128_f32[0] = (float)(v57 + (float)(v59 * 0.5)) + 4.0;
v65.n128_u32[0] = 0;
sub_100022980(v64, v65, &v97);
sub_1000229DC(v63, &v97, (float32x2_t *)&v98);
cocos2d::CCNode::convertToWorldSpace(v62, (const cocos2d::CCPoint *)&v98);
v103 = cocos2d::CCNode::convertToNodeSpace(v61, (const cocos2d::CCPoint *)&__dst);
v66 = ((__n128 (__fastcall *)(CCMenuItemSpriteExtra *, std::string *, float, float))m_moreBtn->setPosition)(
m_moreBtn,
&__p,
v103.x,
v103.y);
m_artistLabel = a1->m_artistLabel;
v66.n128_u32[0] = 0.5;
v68.n128_u32[0] = 0.5;
sub_100022980(v66, v68, &__p);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))m_artistLabel->setAnchorPoint)(m_artistLabel, &__p);
v69 = a1->m_artistLabel;
v70 = *(float *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_moreBtn->getContentSize)(a1->m_moreBtn)
* 0.5;
v71.n128_f32[0] = *(float *)(((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_moreBtn->getContentSize)(a1->m_moreBtn)
+ 4)
* 0.5;
v72.n128_f32[0] = v70;
sub_100022980(v72, v71, &__p);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v69->setPosition)(v69, &__p);
}
else
{
v73 = a1->m_songLabel;
if ( (v51 & 1) != 0 )
{
cocos2d::CCLabelBMFont::limitLabelWidth(v73, 190.0, 0.75, 0.0);
v74 = a1->m_artistLabel;
v75 = 165.0;
v76 = 0.75;
}
else
{
cocos2d::CCLabelBMFont::limitLabelWidth(v73, 240.0, 0.8, 0.0);
v74 = a1->m_artistLabel;
v75 = 175.0;
v76 = 0.8;
}
cocos2d::CCLabelBMFont::limitLabelWidth(v74, v75, v76, 0.0);
if ( !a1->m_hasSFX )
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_songIDLabel, 300.0, 0.4, 0.0);
v77 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_artistLabel->getPosition)(a1->m_artistLabel);
v104 = cocos2d::CCNode::convertToWorldSpace(a1, v77);
v78 = a1->m_moreBtn;
v79 = (cocos2d::CCNode *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *, float, float))v78->getParent)(
v78,
v104.x,
v104.y);
v80 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_artistLabel->getContentSize)(a1->m_artistLabel);
v81.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_artistLabel->getScaleX)(a1->m_artistLabel);
v81.n128_f32[0] = (float)(v80 * v81.n128_f32[0]) + 35.0;
v82.n128_u32[0] = -2.0;
sub_100022980(v81, v82, &v97);
sub_1000229DC((float32x2_t *)&__p, &v97, (float32x2_t *)&v98);
v105 = cocos2d::CCNode::convertToNodeSpace(v79, (const cocos2d::CCPoint *)&v98);
((void (__fastcall *)(CCMenuItemSpriteExtra *, std::string *, float, float))v78->setPosition)(
v78,
&__dst,
v105.x,
v105.y);
v83 = a1->m_songInfoObject;
if ( v83 )
LOBYTE(v83) = !v83->m_unloaded;
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_moreBtn->setVisible)(
a1->m_moreBtn,
(unsigned __int8)v83 & 1);
}
}