//
// CustomSongWidget::updateSongInfo from 0x1400cb4f0 to 0x1400cc348 (3672 bytes)
//
// 18 xrefs:
// > CustomSongLayer::onSearch @ 0x1400c3d00
// > CustomSongLayer::dropDownLayerWillClose @ 0x1400c42d5
// > CustomSongLayer::musicBrowserClosed @ 0x1400c43a5
// > SongSelectNode::onSongMode @ 0x1400c7a5a
// > CustomSongWidget::init @ 0x1400c9588
// > CustomSongWidget::deleteSong @ 0x1400ca175
// > CustomSongWidget::getSongInfoIfUnloaded @ 0x1400caa7c
// > CustomSongWidget::onSelect @ 0x1400cae8f
// > CustomSongWidget::updateDownloadProgress @ 0x1400cb432
// > CustomSongWidget::songStateChanged @ 0x1400cb4d0
// > CustomSongWidget::updateMultiAssetInfo @ 0x1400ccbf2
// > CustomSongWidget::loadSongInfoFinished @ 0x1400ccd96
// > CustomSongWidget::loadSongInfoFailed @ 0x1400ccedf
// > CustomSongWidget::downloadSongFailed @ 0x1400cd053
// > CustomSongWidget::musicActionFailed @ 0x1400cd69e
// > SetupSongTriggerPopup::updateLength @ 0x14045d621
// > CustomSongWidget::loadSongInfoFinished @ 0x1400ccdc6
// > ??> @ 0x1406c8358
//
// 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
//
// Hidden C++ exception states: #wind=7
void CustomSongWidget::updateSongInfo(CustomSongWidget *a1)
{
SongInfoObject *m_songInfoObject; // rax
__int64 p_m_songName; // rdx
void **v4; // rdx
bool v5; // bl
size_t v6; // rdi
void **v7; // rdx
cocos2d::CCString *v8; // rax
char *v9; // rax
size_t v10; // r8
SongInfoObject *v11; // rcx
int v12; // eax
void **v13; // rdx
cocos2d::CCString *v14; // rax
char *v15; // rax
size_t v16; // r8
void **v17; // rdx
SongInfoObject *v18; // rax
__int64 m_songID; // rdx
cocos2d::CCString *v20; // rax
const char *v21; // rax
float m_lengthMod; // xmm1_4
int m_BPM; // ebx
float v24; // xmm0_4
cocos2d::CCString *v25; // rax
char *v26; // rax
cocos2d::CCString *v27; // rax
void **v28; // rdx
void *v29; // rcx
void *v30; // rcx
void **v31; // rdx
SongInfoObject *v32; // rcx
size_t v33; // rdi
int ExtraArtistCount; // eax
void **v35; // rdx
cocos2d::CCString *v36; // rax
char *CString; // rax
size_t v38; // r8
void **v39; // rdx
SongInfoObject *v40; // rdx
int m_duration; // eax
double m_fileSize; // xmm2_8
cocos2d::CCString *v43; // rax
char *v44; // rax
cocos2d::CCString *v45; // rax
__int64 v46; // r8
size_t v47; // rbx
void **v48; // rdx
void **v49; // rdx
_BOOL8 m_unkBool2; // rdx
SongInfoObject *v51; // rax
int v52; // ebx
MusicDownloadManager *v53; // rax
_BOOL8 v54; // rdx
_BOOL8 v55; // rdx
_BOOL8 v56; // rdx
cocos2d::CCNode *v57; // rdi
int v58; // eax
_BOOL8 v59; // rdx
CCMenuItemSpriteExtra *m_selectSongBtn; // rcx
CCMenuItemSpriteExtra_vtbl *v61; // r8
cocos2d::CCNode_vtbl *v62; // rbx
cocos2d::CCSpriteFrameCache *v63; // rax
const char *v64; // rdx
struct cocos2d::CCSpriteFrame *v65; // rax
void *m_deleteBtn; // rcx
MusicDownloadManager *v67; // rax
_BOOL8 v68; // rdx
char v69; // bl
_BOOL8 v70; // rdx
_BOOL8 v71; // rdx
const cocos2d::ccColor3B *v72; // rdx
void *m_sliderGroove; // rcx
cocos2d::CCSprite_vtbl *v74; // rax
char v75; // al
cocos2d::CCLabelBMFont *v76; // rcx
float v77; // xmm6_4
float v78; // xmm1_4
const cocos2d::CCSize *v79; // rbx
double v80; // xmm0_8
CCMenuItemSpriteExtra *v81; // rcx
CCMenuItemSpriteExtra_vtbl *v82; // rbx
cocos2d::CCNode *v83; // rax
struct cocos2d::CCPoint v84; // rax
_BOOL8 v85; // rdx
SongInfoObject *v86; // rax
char v87; // al
int v88; // ecx
float v89; // xmm8_4
bool v90; // al
int v91; // ecx
float v92; // xmm7_4
cocos2d::CCLabelBMFont *m_songLabel; // rbx
float width; // xmm6_4
float v95; // xmm0_4
const cocos2d::CCSize *v96; // rbx
double v97; // xmm0_8
float v98; // xmm6_4
const cocos2d::CCSize *v99; // rbx
double v100; // xmm0_8
const cocos2d::CCPoint *v101; // rax
CCMenuItemSpriteExtra_vtbl *v102; // rsi
CCMenuItemSpriteExtra *m_moreBtn; // rdi
cocos2d::CCNode *v104; // rax
cocos2d::CCNode *v105; // rax
struct cocos2d::CCPoint v106; // rax
cocos2d::CCLabelBMFont_vtbl *v107; // rbx
const cocos2d::CCPoint *v108; // rax
cocos2d::CCLabelBMFont_vtbl *v109; // rbx
float height; // xmm6_4
const cocos2d::CCSize *v111; // rax
const cocos2d::CCPoint *v112; // rax
struct cocos2d::CCPoint v113; // [rsp+28h] [rbp-99h] BYREF
char v114[8]; // [rsp+30h] [rbp-91h] BYREF
cocos2d::CCPoint v115; // [rsp+38h] [rbp-89h] BYREF
cocos2d::CCPoint v116; // [rsp+40h] [rbp-81h] BYREF
void *Src[2]; // [rsp+48h] [rbp-79h] BYREF
__m128i si128; // [rsp+58h] [rbp-69h]
void *v119[2]; // [rsp+68h] [rbp-59h] BYREF
size_t Size; // [rsp+78h] [rbp-49h]
unsigned __int64 v121; // [rsp+80h] [rbp-41h]
void *Block[2]; // [rsp+88h] [rbp-39h] BYREF
__m128i v123; // [rsp+98h] [rbp-29h]
CustomSongWidget::positionInfoObjects(a1);
m_songInfoObject = a1->m_songInfoObject;
if ( m_songInfoObject )
{
p_m_songName = (__int64)&m_songInfoObject->m_songName;
if ( a1->m_isMusicLibrary )
{
sub_14003BDB0((__int64)v119, p_m_songName);
v31 = v119;
if ( v121 > 0xF )
v31 = (void **)v119[0];
a1->m_songLabel->setString(&a1->m_songLabel->cocos2d::CCLabelProtocol, (const char *)v31);
sub_14003A830((__int64)v119);
sub_14003BDB0((__int64)Block, (__int64)&a1->m_songInfoObject->m_artistName);
v32 = a1->m_songInfoObject;
v33 = -1;
if ( v32->m_artistIDs._List._Mypair._Myval2._Mysize )
{
ExtraArtistCount = SongInfoObject::getExtraArtistCount(v32);
if ( ExtraArtistCount > 0 )
{
v35 = Block;
if ( v123.m128i_i64[1] > 0xFuLL )
v35 = (void **)Block[0];
v36 = cocos2d::CCString::createWithFormat("%s +%i", (const char *)v35, ExtraArtistCount);
CString = (char *)cocos2d::CCString::getCString(v36);
v38 = -1;
do
++v38;
while ( CString[v38] );
sub_14003CCE0(Block, CString, v38);
}
}
v39 = Block;
if ( v123.m128i_i64[1] > 0xFuLL )
v39 = (void **)Block[0];
a1->m_artistLabel->setString(&a1->m_artistLabel->cocos2d::CCLabelProtocol, (const char *)v39);
if ( !a1->m_hasSFX )
{
v40 = a1->m_songInfoObject;
m_duration = v40->m_duration;
*(_OWORD *)Src = 0;
si128 = _mm_load_si128((const __m128i *)&xmmword_140623F30);
LOBYTE(Src[0]) = 0;
m_fileSize = v40->m_fileSize;
if ( m_duration <= 0 )
{
v45 = cocos2d::CCString::createWithFormat("ID: %i Size: %.01fMB", v40->m_songID, m_fileSize);
v44 = (char *)cocos2d::CCString::getCString(v45);
do
++v33;
while ( v44[v33] );
}
else
{
v43 = cocos2d::CCString::createWithFormat(
"ID: %i Size: %.01fMB (%is)",
v40->m_songID,
m_fileSize,
v40->m_duration);
v44 = (char *)cocos2d::CCString::getCString(v43);
do
++v33;
while ( v44[v33] );
}
sub_14003CCE0(Src, v44, v33);
LOBYTE(v46) = 1;
SongInfoObject::getTagsString(a1->m_songInfoObject, v119, v46);
v47 = Size;
if ( Size )
{
sub_140041270(Src, " ", 4u);
v48 = v119;
if ( v121 > 0xF )
v48 = (void **)v119[0];
sub_140041270(Src, v48, v47);
}
v49 = Src;
if ( si128.m128i_i64[1] > 0xFuLL )
v49 = (void **)Src[0];
a1->m_songIDLabel->setString(&a1->m_songIDLabel->cocos2d::CCLabelProtocol, (const char *)v49);
sub_14003A830((__int64)v119);
sub_14003A830((__int64)Src);
}
sub_14003A830((__int64)Block);
}
else
{
sub_14003BDB0((__int64)v119, p_m_songName);
v4 = v119;
if ( v121 > 0xF )
v4 = (void **)v119[0];
a1->m_songLabel->setString(&a1->m_songLabel->cocos2d::CCLabelProtocol, (const char *)v4);
sub_14003A830((__int64)v119);
*(_OWORD *)Src = 0;
si128.m128i_i64[0] = 0;
si128.m128i_i64[1] = 15;
LOBYTE(Src[0]) = 0;
sub_14003BDB0((__int64)v119, (__int64)&a1->m_songInfoObject->m_artistName);
v5 = Size != 0;
sub_14003A830((__int64)v119);
v6 = -1;
if ( v5 )
{
sub_14003BDB0((__int64)v119, (__int64)&a1->m_songInfoObject->m_artistName);
v7 = v119;
if ( v121 > 0xF )
v7 = (void **)v119[0];
v8 = cocos2d::CCString::createWithFormat("By: %s", (const char *)v7);
v9 = (char *)cocos2d::CCString::getCString(v8);
v10 = -1;
do
++v10;
while ( v9[v10] );
sub_14003CCE0(Src, v9, v10);
sub_14003A830((__int64)v119);
}
v11 = a1->m_songInfoObject;
if ( v11->m_artistIDs._List._Mypair._Myval2._Mysize )
{
v12 = SongInfoObject::getExtraArtistCount(v11);
if ( v12 > 0 )
{
v13 = Src;
if ( si128.m128i_i64[1] > 0xFuLL )
v13 = (void **)Src[0];
v14 = cocos2d::CCString::createWithFormat("%s +%i", (const char *)v13, v12);
v15 = (char *)cocos2d::CCString::getCString(v14);
v16 = -1;
do
++v16;
while ( v15[v16] );
sub_14003CCE0(Src, v15, v16);
}
}
v17 = Src;
if ( si128.m128i_i64[1] > 0xFuLL )
v17 = (void **)Src[0];
a1->m_artistLabel->setString(&a1->m_artistLabel->cocos2d::CCLabelProtocol, (const char *)v17);
if ( !a1->m_hasSFX )
{
if ( a1->m_isRobtopSong )
{
a1->m_songIDLabel->setString(&a1->m_songIDLabel->cocos2d::CCLabelProtocol, byte_140518980);
}
else
{
v18 = a1->m_songInfoObject;
m_songID = (unsigned int)v18->m_songID;
if ( v18->m_unloaded )
v20 = cocos2d::CCString::createWithFormat("SongID: %i", m_songID);
else
v20 = cocos2d::CCString::createWithFormat("SongID: %i Size: %.02fMB", m_songID, v18->m_fileSize);
v21 = cocos2d::CCString::getCString(v20);
a1->m_songIDLabel->setString(&a1->m_songIDLabel->cocos2d::CCLabelProtocol, v21);
if ( a1->m_songInfoObject->m_BPM > 0 )
{
a1->m_errorLabel->setColor(&a1->m_errorLabel->cocos2d::CCRGBAProtocol, &stru_140529A30);
((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_errorLabel->setScale_0)(a1->m_errorLabel);
*(_OWORD *)Block = 0;
v123 = _mm_load_si128((const __m128i *)&xmmword_140623F30);
LOBYTE(Block[0]) = 0;
m_lengthMod = a1->m_lengthMod;
if ( m_lengthMod <= 0.0 || m_lengthMod == 1.0 )
{
v27 = cocos2d::CCString::createWithFormat("BPM: %i", a1->m_songInfoObject->m_BPM);
v26 = (char *)cocos2d::CCString::getCString(v27);
do
++v6;
while ( v26[v6] );
}
else
{
m_BPM = a1->m_songInfoObject->m_BPM;
v24 = roundf((float)m_BPM * m_lengthMod);
v25 = cocos2d::CCString::createWithFormat("BPM: %i (%i)", m_BPM, (int)v24);
v26 = (char *)cocos2d::CCString::getCString(v25);
do
++v6;
while ( v26[v6] );
}
sub_14003CCE0(Block, v26, v6);
v28 = Block;
if ( v123.m128i_i64[1] > 0xFuLL )
v28 = (void **)Block[0];
a1->m_errorLabel->setString(&a1->m_errorLabel->cocos2d::CCLabelProtocol, (const char *)v28);
CustomSongWidget::showError(a1, 0);
if ( v123.m128i_i64[1] > 0xFuLL )
{
v29 = Block[0];
if ( (unsigned __int64)(v123.m128i_i64[1] + 1) >= 0x1000 )
{
v29 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v29 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v29);
}
}
}
}
if ( si128.m128i_i64[1] > 0xFuLL )
{
v30 = Src[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v30 = *((void **)Src[0] - 1);
if ( (unsigned __int64)((char *)Src[0] - (char *)v30 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v30);
}
}
}
else
{
a1->m_songLabel->setString(&a1->m_songLabel->cocos2d::CCLabelProtocol, "No song loaded");
a1->m_artistLabel->setString(&a1->m_artistLabel->cocos2d::CCLabelProtocol, byte_140518980);
if ( !a1->m_hasSFX )
a1->m_songIDLabel->setString(&a1->m_songIDLabel->cocos2d::CCLabelProtocol, byte_140518980);
}
if ( a1->m_hasSFX )
{
m_unkBool2 = a1->m_unkBool2;
LABEL_116:
a1->m_downloadBtn->setVisible(a1->m_downloadBtn, m_unkBool2);
a1->m_cancelDownloadBtn->setVisible(a1->m_cancelDownloadBtn, 0);
a1->m_selectSongBtn->setVisible(a1->m_selectSongBtn, 0);
a1->m_playbackBtn->setVisible(a1->m_playbackBtn, 0);
m_sliderGroove = a1->m_sliderGroove;
goto LABEL_117;
}
v51 = a1->m_songInfoObject;
if ( !v51 )
{
m_unkBool2 = 0;
goto LABEL_116;
}
v52 = v51->m_songID;
v53 = MusicDownloadManager::sharedState();
if ( MusicDownloadManager::isSongDownloaded(v53, v52) )
{
a1->m_downloadBtn->setVisible(a1->m_downloadBtn, 0);
a1->m_cancelDownloadBtn->setVisible(a1->m_cancelDownloadBtn, 0);
if ( a1->m_songInfoObject->m_unloaded && a1->m_showDownloadBtn )
LOBYTE(v54) = 1;
else
v54 = 0;
a1->m_getSongInfoBtn->setVisible(a1->m_getSongInfoBtn, v54);
if ( !a1->m_showDownloadBtn
|| a1->m_getSongInfoBtn->isVisible(a1->m_getSongInfoBtn)
|| a1->m_deleteBtn->getTag(a1->m_deleteBtn) == -999 )
{
v55 = 0;
}
else
{
LOBYTE(v55) = 1;
}
a1->m_deleteBtn->setVisible(a1->m_deleteBtn, v55);
if ( a1->m_showSelectSongBtn && a1->m_songDelegate )
{
LOBYTE(v56) = 1;
a1->m_selectSongBtn->setVisible(a1->m_selectSongBtn, v56);
a1->m_deleteBtn->setVisible(a1->m_deleteBtn, 0);
v57 = a1->m_selectSongBtn->getNormalImage(a1->m_selectSongBtn);
v58 = a1->m_songDelegate->getActiveSongID(a1->m_songDelegate);
m_selectSongBtn = a1->m_selectSongBtn;
v61 = m_selectSongBtn->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( v58 == v52 )
{
v61->setEnabled(m_selectSongBtn, 0);
v62 = v57->__vftable;
v63 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v64 = "GJ_selectSongOnBtn_001.png";
}
else
{
LOBYTE(v59) = 1;
v61->setEnabled(m_selectSongBtn, v59);
v62 = v57->__vftable;
v63 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v64 = "GJ_selectSongBtn_001.png";
}
v65 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v63, v64);
((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCSpriteFrame *))v62[1].setScaleX)(v57, v65);
}
else
{
a1->m_selectSongBtn->setVisible(a1->m_selectSongBtn, 0);
}
a1->m_playbackBtn->setVisible(a1->m_playbackBtn, a1->m_showPlayMusicBtn);
m_deleteBtn = a1->m_sliderGroove;
goto LABEL_118;
}
a1->m_selectSongBtn->setVisible(a1->m_selectSongBtn, 0);
a1->m_playbackBtn->setVisible(a1->m_playbackBtn, 0);
a1->m_deleteBtn->setVisible(a1->m_deleteBtn, 0);
if ( a1->m_isRobtopSong )
{
a1->m_downloadBtn->setVisible(a1->m_downloadBtn, 0);
m_sliderGroove = a1->m_cancelDownloadBtn;
LABEL_117:
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)m_sliderGroove + 320LL))(m_sliderGroove, 0);
a1->m_getSongInfoBtn->setVisible(a1->m_getSongInfoBtn, 0);
m_deleteBtn = a1->m_deleteBtn;
LABEL_118:
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)m_deleteBtn + 320LL))(m_deleteBtn, 0);
goto LABEL_119;
}
v67 = MusicDownloadManager::sharedState();
if ( MusicDownloadManager::isRunningActionForSongID(v67, a1->m_customSongID) || a1->m_isNotDownloading )
{
v69 = 1;
}
else
{
v69 = 0;
if ( !a1->m_songInfoObject->m_unloaded && a1->m_showDownloadBtn )
{
LOBYTE(v68) = 1;
a1->m_downloadBtn->setVisible(a1->m_downloadBtn, v68);
LABEL_101:
v70 = 0;
goto LABEL_102;
}
}
a1->m_downloadBtn->setVisible(a1->m_downloadBtn, 0);
if ( !v69 || a1->m_songInfoObject->m_unloaded || !a1->m_showDownloadBtn )
goto LABEL_101;
LOBYTE(v70) = 1;
LABEL_102:
a1->m_cancelDownloadBtn->setVisible(a1->m_cancelDownloadBtn, v70);
if ( a1->m_songInfoObject->m_unloaded && a1->m_showDownloadBtn )
LOBYTE(v71) = 1;
else
v71 = 0;
a1->m_getSongInfoBtn->setVisible(a1->m_getSongInfoBtn, v71);
v72 = &stru_140529A28;
if ( !v69 )
v72 = (const cocos2d::ccColor3B *)&unk_140529A34;
a1->m_getSongInfoBtn->setColor(&a1->m_getSongInfoBtn->cocos2d::CCRGBAProtocol, v72);
a1->m_getSongInfoBtn->setEnabled(a1->m_getSongInfoBtn, v69 != 1);
LABEL_119:
v74 = a1->m_ncsLogo->__vftable;
if ( a1->m_isMusicLibrary )
{
v87 = ((__int64 (*)(void))v74->isVisible)();
v88 = 140;
if ( v87 )
v88 = 130;
v89 = (float)v88;
v90 = a1->m_ncsLogo->isVisible(a1->m_ncsLogo);
v91 = 80;
if ( v90 )
v91 = 55;
v92 = (float)v91;
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_songLabel, v89, 0.5, 0.0);
m_songLabel = a1->m_songLabel;
width = m_songLabel->getContentSize(m_songLabel)->width;
v95 = m_songLabel->getScale(m_songLabel);
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_artistLabel, fmaxf(0.0, v89 - (float)(v95 * width)) + v92, 0.5, 0.0);
if ( !a1->m_hasSFX )
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_songIDLabel, 220.0, 0.60000002, 0.0);
v96 = a1->m_songLabel->getContentSize(a1->m_songLabel);
v97 = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_songLabel->getScale)(a1->m_songLabel);
v98 = *(float *)&v97 * v96->width;
v99 = a1->m_artistLabel->getContentSize(a1->m_artistLabel);
v100 = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_artistLabel->getScale)(a1->m_artistLabel);
cocos2d::CCPoint::CCPoint(&v115, (float)((float)((float)(*(float *)&v100 * v99->width) * 0.5) + v98) + 4.0, 0.0);
v101 = a1->m_songLabel->getPosition_0(a1->m_songLabel);
cocos2d::CCPoint::operator+(v101, v114);
v102 = a1->m_moreBtn->__vftable;
m_moreBtn = a1->m_moreBtn;
v104 = a1->m_songLabel->getParent(a1->m_songLabel);
cocos2d::CCNode::convertToWorldSpace(v104, &v116);
v105 = m_moreBtn->getParent(m_moreBtn);
v106 = cocos2d::CCNode::convertToNodeSpace(v105, &v113);
((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v102->setPosition_0)(a1->m_moreBtn, v106);
v107 = a1->m_artistLabel->__vftable;
cocos2d::CCPoint::CCPoint(&v115, 0.5, 0.5);
v107->setAnchorPoint(a1->m_artistLabel, v108);
v109 = a1->m_artistLabel->__vftable;
height = a1->m_moreBtn->getContentSize(a1->m_moreBtn)->height;
v111 = a1->m_moreBtn->getContentSize(a1->m_moreBtn);
cocos2d::CCPoint::CCPoint(&v115, v111->width * 0.5, height * 0.5);
v109->setPosition_0(a1->m_artistLabel, v112);
}
else
{
v75 = ((__int64 (*)(void))v74->isVisible)();
v76 = a1->m_songLabel;
if ( v75 )
{
v77 = 0.75;
cocos2d::CCLabelBMFont::limitLabelWidth(v76, 190.0, 0.75, 0.0);
v78 = 165.0;
}
else
{
v77 = 0.80000001;
cocos2d::CCLabelBMFont::limitLabelWidth(v76, 240.0, 0.80000001, 0.0);
v78 = 175.0;
}
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_artistLabel, v78, v77, 0.0);
if ( !a1->m_hasSFX )
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_songIDLabel, 300.0, 0.40000001, 0.0);
a1->m_artistLabel->getPosition_0(a1->m_artistLabel);
cocos2d::CCNode::convertToWorldSpace(a1, &v113);
v79 = a1->m_artistLabel->getContentSize(a1->m_artistLabel);
v80 = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_artistLabel->getScaleX)(a1->m_artistLabel);
cocos2d::CCPoint::CCPoint(&v116, (float)(*(float *)&v80 * v79->width) + 35.0, -2.0);
cocos2d::CCPoint::operator+(&v113, v114);
v81 = a1->m_moreBtn;
v82 = v81->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v83 = v81->getParent(v81);
v84 = cocos2d::CCNode::convertToNodeSpace(v83, &v115);
((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v82->setPosition_0)(a1->m_moreBtn, v84);
v86 = a1->m_songInfoObject;
if ( !v86 || v86->m_unloaded )
v85 = 0;
else
LOBYTE(v85) = 1;
a1->m_moreBtn->setVisible(a1->m_moreBtn, v85);
}
}