// // CustomSongWidget::positionInfoObjects from 0x743748 to 0x743d98 (1616 bytes) // // 3 xrefs: // > CustomSongWidget::updateSongInfo @ 0x7445a8 // > CustomSongWidget::init @ 0x746138 // > @ 0xb1918 // // 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 CustomSongWidget::positionInfoObjects(CustomSongWidget *a1) { SongInfoObject *m_songInfoObject; // x0 _BOOL4 v3; // w23 cocos2d::CCLabelBMFont *m_songLabel; // x24 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCLabelBMFont *m_songIDLabel; // x24 void (__fastcall *v7)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCLabelBMFont *m_errorLabel; // x24 void (__fastcall *v9)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCSprite *m_sliderGroove; // x24 void (__fastcall *v11)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x25 const cocos2d::CCPoint *v12; // x26 cocos2d::extension::CCScale9Sprite *m_bgSpr; // x24 void (__fastcall *v14)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 const cocos2d::CCPoint *v15; // x0 _BOOL4 v16; // w23 char *v17; // x1 const char *v18; // x2 cocos2d::CCString *v19; // x0 char *CString; // x0 cocos2d::CCSprite *m_ncsLogo; // x24 void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x25 cocos2d::CCSpriteFrameCache *v23; // x0 cocos2d::CCSpriteFrame *v24; // x0 cocos2d::CCLabelBMFont *v25; // x1 cocos2d::CCSprite *v26; // x24 void (__fastcall *v27)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x25 __int64 v28; // x26 cocos2d::CCLabelBMFont *v29; // x19 void (__fastcall *v30)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 __int64 v31; // x25 float v32; // s0 void (__fastcall *v33)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x25 __int64 v34; // x26 float v35; // s8 cocos2d::CCLabelBMFont *v36; // x23 void (__fastcall *v37)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 __int64 v38; // x25 cocos2d::CCLabelBMFont *v39; // x19 void (__fastcall *v40)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 __int64 v41; // x24 char *v42; // x0 char *v43; // x0 unsigned int *v44; // x1 int v45; // w2 SongInfoObject *v46; // x0 cocos2d::CCLabelBMFont *v47; // x24 void (__fastcall *v48)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCLabelBMFont *m_artistLabel; // x24 void (__fastcall *v50)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 const cocos2d::CCPoint *v51; // x26 cocos2d::CCLabelBMFont *v52; // x24 void (__fastcall *v53)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 const cocos2d::CCPoint *v54; // x26 cocos2d::CCLabelBMFont *v55; // x24 void (__fastcall *v56)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 const cocos2d::CCPoint *v57; // x0 cocos2d::CCSprite *v58; // x24 void (__fastcall *v59)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x25 const cocos2d::CCPoint *v60; // x0 unsigned int *v61; // x1 int v62; // w2 char *v63; // [xsp+68h] [xbp+68h] BYREF char *v64; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCPoint v65; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v66; // [xsp+80h] [xbp+80h] BYREF if ( a1->m_isMusicLibrary ) { m_songInfoObject = a1->m_songInfoObject; v3 = 0; if ( m_songInfoObject ) v3 = m_songInfoObject->m_nongType > 0; m_songLabel = a1->m_songLabel; setPosition = m_songLabel->setPosition; cocos2d::CCPoint::CCPoint(&v66, -150.0, 9.0); setPosition(m_songLabel, &v66); m_songIDLabel = a1->m_songIDLabel; v7 = m_songIDLabel->setPosition; cocos2d::CCPoint::CCPoint(&v66, -149.0, -9.0); v7(m_songIDLabel, &v66); m_errorLabel = a1->m_errorLabel; v9 = m_errorLabel->setPosition; cocos2d::CCPoint::CCPoint(&v66, 0.0, -22.0); v9(m_errorLabel, &v66); m_sliderGroove = a1->m_sliderGroove; v11 = m_sliderGroove->setPosition; v12 = a1->m_errorLabel->getPosition(a1->m_errorLabel); cocos2d::CCPoint::CCPoint(&v65, 0.0, -0.5); cocos2d::CCPoint::operator+(&v66, v12, &v65); v11(m_sliderGroove, &v66); m_bgSpr = a1->m_bgSpr; v14 = m_bgSpr->setPosition; v15 = a1->m_sliderGroove->getPosition(a1->m_sliderGroove); v14(m_bgSpr, v15); } else { v46 = a1->m_songInfoObject; v3 = 0; if ( v46 ) v3 = v46->m_nongType > 0; v47 = a1->m_songLabel; v48 = v47->setPosition; cocos2d::CCPoint::CCPoint(&v66, -140.0, 29.0); v48(v47, &v66); m_artistLabel = a1->m_artistLabel; v50 = m_artistLabel->setPosition; v51 = a1->m_songLabel->getPosition(a1->m_songLabel); cocos2d::CCPoint::CCPoint(&v65, 1.0, -24.0); cocos2d::CCPoint::operator+(&v66, v51, &v65); v50(m_artistLabel, &v66); v52 = a1->m_errorLabel; v53 = v52->setPosition; v54 = a1->m_artistLabel->getPosition(a1->m_artistLabel); cocos2d::CCPoint::CCPoint(&v65, 1.0, -20.0); cocos2d::CCPoint::operator+(&v66, v54, &v65); v53(v52, &v66); v55 = a1->m_songIDLabel; v56 = v55->setPosition; v57 = a1->m_songLabel->getPosition(a1->m_songLabel); cocos2d::CCPoint::CCPoint(&v66, v57->x + 1.0, -31.0); v56(v55, &v66); v58 = a1->m_sliderGroove; v59 = v58->setPosition; v60 = a1->m_errorLabel->getPosition(a1->m_errorLabel); cocos2d::CCPoint::CCPoint(&v66, -34.0, v60->y); v59(v58, &v66); } a1->m_ncsLogo->setVisible(a1->m_ncsLogo, v3); if ( v3 ) { v16 = a1->m_songInfoObject->m_nongType == 2; if ( a1->m_songInfoObject->m_nongType == 2 ) { sub_D153B8((int)&v63, "chompo"); v17 = v63; if ( !a1->m_isMusicLibrary ) { LABEL_8: v18 = "med"; LABEL_9: v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_%s_001.png", v17, v18); CString = (char *)cocos2d::CCString::getCString(v19); sub_D153B8((int)&v64, CString); m_ncsLogo = a1->m_ncsLogo; setDisplayFrame = m_ncsLogo->setDisplayFrame; v23 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v24 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v23, v64); setDisplayFrame(m_ncsLogo, v24); v25 = a1->m_songLabel; v26 = a1->m_ncsLogo; if ( a1->m_isMusicLibrary ) { v33 = v26->setPosition; v34 = (__int64)v25->getPosition(a1->m_songLabel); cocos2d::CCPoint::CCPoint(&v65, 0.0, -1.0); cocos2d::CCPoint::operator+(&v66, v34, &v65); v33(v26, &v66); if ( v16 ) v35 = 45.0; else v35 = 37.0; v36 = a1->m_songLabel; v37 = v36->setPosition; v38 = (__int64)v36->getPosition(v36); cocos2d::CCPoint::CCPoint(&v65, v35, 0.0); cocos2d::CCPoint::operator+(&v66, v38, &v65); v37(v36, &v66); v39 = a1->m_artistLabel; v40 = v39->setPosition; v41 = (__int64)v39->getPosition(v39); cocos2d::CCPoint::CCPoint(&v65, v35, 0.0); cocos2d::CCPoint::operator+(&v66, v41, &v65); v40(v39, &v66); } else { v27 = v26->setPosition; v28 = (__int64)v25->getPosition(a1->m_songLabel); cocos2d::CCPoint::CCPoint(&v65, 0.0, -2.0); cocos2d::CCPoint::operator+(&v66, v28, &v65); v27(v26, &v66); v29 = a1->m_songLabel; v30 = v29->setPosition; v31 = (__int64)v29->getPosition(v29); if ( v16 ) v32 = 61.0; else v32 = 53.0; cocos2d::CCPoint::CCPoint(&v65, v32, 0.0); cocos2d::CCPoint::operator+(&v66, v31, &v65); v30(v29, &v66); } v42 = v64 - 24; if ( v64 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v61 = (unsigned int *)(v64 - 8); do v62 = __ldaxr(v61); while ( __stlxr(v62 - 1, v61) ); } else { v62 = *((_DWORD *)v64 - 2); *((_DWORD *)v64 - 2) = v62 - 1; } if ( v62 <= 0 ) operator delete(v42); } v43 = v63 - 24; if ( v63 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v44 = (unsigned int *)(v63 - 8); do v45 = __ldaxr(v44); while ( __stlxr(v45 - 1, v44) ); } else { v45 = *((_DWORD *)v63 - 2); *((_DWORD *)v63 - 2) = v45 - 1; } if ( v45 <= 0 ) operator delete(v43); } return; } } else { sub_D153B8((int)&v63, "ncs"); v17 = v63; if ( !a1->m_isMusicLibrary ) goto LABEL_8; } v18 = "small"; goto LABEL_9; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source