// // CustomSongWidget::positionInfoObjects from 0x1400c9630 to 0x1400c9c0e (1502 bytes) // // 3 xrefs: // > CustomSongWidget::init @ 0x1400c9426 // > CustomSongWidget::updateSongInfo @ 0x1400cb534 // > @ 0x1406c8298 // // 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=2 void CustomSongWidget::positionInfoObjects(CustomSongWidget *a1) { bool m_isMusicLibrary; // cl int v3; // eax float v4; // xmm6_4 int v5; // eax float v6; // xmm7_4 SongInfoObject *m_songInfoObject; // rax bool v8; // di float v9; // xmm7_4 float v10; // xmm2_4 float v11; // xmm6_4 float v12; // xmm1_4 cocos2d::CCLabelBMFont_vtbl *v13; // rbx const cocos2d::CCPoint *v14; // rax const cocos2d::CCPoint *v15; // rax const cocos2d::CCPoint *v16; // rax cocos2d::CCLabelBMFont_vtbl *v17; // rbx const cocos2d::CCPoint *v18; // rax const cocos2d::CCPoint *v19; // rax void (__fastcall **v20)(void *, const cocos2d::CCPoint *); // rbx const cocos2d::CCPoint *v21; // rax const cocos2d::CCPoint *v22; // rax void *m_bgSpr; // rcx const cocos2d::CCPoint *v24; // rax cocos2d::CCLabelBMFont_vtbl *v25; // rbx const cocos2d::CCPoint *v26; // rax cocos2d::CCLabelBMFont_vtbl *v27; // rbx const cocos2d::CCPoint *v28; // rax const cocos2d::CCPoint *v29; // rax int m_nongType; // r14d const char *v31; // rdx size_t v32; // rbx size_t v33; // r8 const char *v34; // rdx const char *v35; // r8 cocos2d::CCString *v36; // rax const char *CString; // rax const char *v38; // rdi cocos2d::CCSprite_vtbl *v39; // rbx cocos2d::CCSpriteFrameCache *v40; // rax struct cocos2d::CCSpriteFrame *v41; // rax const cocos2d::CCPoint *v42; // rax int v43; // eax const cocos2d::CCPoint *v44; // rax cocos2d::CCLabelBMFont *m_artistLabel; // rcx const cocos2d::CCPoint *v46; // rax int v47; // eax float v48; // xmm6_4 const cocos2d::CCPoint *v49; // rax const cocos2d::CCPoint *v50; // rax cocos2d::CCPoint v51; // [rsp+28h] [rbp-39h] BYREF cocos2d::CCPoint v52; // [rsp+30h] [rbp-31h] BYREF __int128 v53; // [rsp+38h] [rbp-29h] BYREF __int128 v54; // [rsp+48h] [rbp-19h] __int128 v55; // [rsp+58h] [rbp-9h] BYREF __int128 v56; // [rsp+68h] [rbp+7h] m_isMusicLibrary = a1->m_isMusicLibrary; v3 = 300; if ( m_isMusicLibrary ) v3 = 320; v4 = (float)v3; v5 = 90; if ( m_isMusicLibrary ) v5 = 50; v6 = (float)v5; m_songInfoObject = a1->m_songInfoObject; v8 = m_songInfoObject && m_songInfoObject->m_nongType > 0; v9 = v6 * 0.5; v10 = v9 - 16.0; v11 = v4 * 0.5; v12 = 10.0 - v11; v13 = a1->m_songLabel->__vftable; if ( m_isMusicLibrary ) { cocos2d::CCPoint::CCPoint(&v52, v12, v10); v13->setPosition_0(a1->m_songLabel, v24); v25 = a1->m_songIDLabel->__vftable; cocos2d::CCPoint::CCPoint(&v52, 11.0 - v11, v9 - 34.0); v25->setPosition_0(a1->m_songIDLabel, v26); v27 = a1->m_errorLabel->__vftable; cocos2d::CCPoint::CCPoint(&v52, 0.0, 3.0 - v9); v27->setPosition_0(a1->m_errorLabel, v28); cocos2d::CCPoint::CCPoint(&v52, 0.0, -0.5); v29 = a1->m_errorLabel->getPosition_0(a1->m_errorLabel); cocos2d::CCPoint::operator+(v29, &v51); a1->m_sliderGroove->setPosition_0(a1->m_sliderGroove, &v51); v20 = (void (__fastcall **)(void *, const cocos2d::CCPoint *))a1->m_bgSpr->__vftable; v22 = a1->m_sliderGroove->getPosition_0(a1->m_sliderGroove); m_bgSpr = a1->m_bgSpr; } else { cocos2d::CCPoint::CCPoint(&v51, v12, v10); v13->setPosition_0(a1->m_songLabel, v14); cocos2d::CCPoint::CCPoint(&v52, 1.0, -24.0); v15 = a1->m_songLabel->getPosition_0(a1->m_songLabel); cocos2d::CCPoint::operator+(v15, &v51); a1->m_artistLabel->setPosition_0(a1->m_artistLabel, &v51); cocos2d::CCPoint::CCPoint(&v52, 1.0, -20.0); v16 = a1->m_artistLabel->getPosition_0(a1->m_artistLabel); cocos2d::CCPoint::operator+(v16, &v51); a1->m_errorLabel->setPosition_0(a1->m_errorLabel, &v51); v17 = a1->m_songIDLabel->__vftable; v18 = a1->m_songLabel->getPosition_0(a1->m_songLabel); cocos2d::CCPoint::CCPoint(&v52, v18->x + 1.0, 14.0 - v9); v17->setPosition_0(a1->m_songIDLabel, v19); v20 = (void (__fastcall **)(void *, const cocos2d::CCPoint *))a1->m_sliderGroove->__vftable; v21 = a1->m_errorLabel->getPosition_0(a1->m_errorLabel); cocos2d::CCPoint::CCPoint(&v52, -34.0, v21->y); m_bgSpr = a1->m_sliderGroove; } v20[23](m_bgSpr, v22); a1->m_ncsLogo->setVisible(a1->m_ncsLogo, v8); if ( v8 ) { m_nongType = a1->m_songInfoObject->m_nongType; v31 = "ncs"; if ( m_nongType == 2 ) v31 = "chompo"; v55 = 0; v56 = 0; v32 = -1; v33 = -1; do ++v33; while ( v31[v33] ); sub_14003A930(&v55, v31, v33); v34 = (const char *)&v55; if ( *((_QWORD *)&v56 + 1) > 0xFu ) v34 = (const char *)v55; v35 = "med"; if ( a1->m_isMusicLibrary ) v35 = "small"; v36 = cocos2d::CCString::createWithFormat("%s_%s_001.png", v34, v35); CString = cocos2d::CCString::getCString(v36); v53 = 0; v54 = 0; do ++v32; while ( CString[v32] ); sub_14003A930(&v53, CString, v32); v38 = (const char *)&v53; if ( *((_QWORD *)&v54 + 1) > 0xFu ) v38 = (const char *)v53; v39 = a1->m_ncsLogo->__vftable; v40 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v41 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v40, v38); v39->setDisplayFrame(a1->m_ncsLogo, v41); if ( a1->m_isMusicLibrary ) { cocos2d::CCPoint::CCPoint(&v52, 0.0, -1.0); v46 = a1->m_songLabel->getPosition_0(a1->m_songLabel); cocos2d::CCPoint::operator+(v46, &v51); a1->m_ncsLogo->setPosition_0(a1->m_ncsLogo, &v51); v47 = 37; if ( m_nongType == 2 ) v47 = 45; v48 = (float)v47; cocos2d::CCPoint::CCPoint(&v52, (float)v47, 0.0); v49 = a1->m_songLabel->getPosition_0(a1->m_songLabel); cocos2d::CCPoint::operator+(v49, &v51); a1->m_songLabel->setPosition_0(a1->m_songLabel, &v51); cocos2d::CCPoint::CCPoint(&v52, v48, 0.0); v50 = a1->m_artistLabel->getPosition_0(a1->m_artistLabel); cocos2d::CCPoint::operator+(v50, &v51); m_artistLabel = a1->m_artistLabel; } else { cocos2d::CCPoint::CCPoint(&v52, 0.0, -2.0); v42 = a1->m_songLabel->getPosition_0(a1->m_songLabel); cocos2d::CCPoint::operator+(v42, &v51); a1->m_ncsLogo->setPosition_0(a1->m_ncsLogo, &v51); v43 = 53; if ( m_nongType == 2 ) v43 = 61; cocos2d::CCPoint::CCPoint(&v52, (float)v43, 0.0); v44 = a1->m_songLabel->getPosition_0(a1->m_songLabel); cocos2d::CCPoint::operator+(v44, &v51); m_artistLabel = a1->m_songLabel; } m_artistLabel->setPosition_0(m_artistLabel, &v51); sub_14003A830((__int64)&v53); sub_14003A830((__int64)&v55); } }