// // CustomSongWidget::loadSongInfoFinished from 0x1400ccc80 to 0x1400cce0d (397 bytes) // // 2 xrefs: // > @ 0x14054ec60 // > @ 0x1406c837c // // 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::loadSongInfoFinished(CustomSongWidget *a1, SongInfoObject *a2) { float v2; // xmm3_4 int m_songID; // r8d bool *p_m_bRunning; // rcx __int64 *v7; // r9 __int64 *v8; // rax MusicDownloadManager *v9; // rax float d; // eax bool *p_m_bReorderChildDirty; // rdi __int64 v12; // rcx SongInfoObject *v13; // rax cocos2d::CCObject *v14; // rcx float v15; // ecx MusicDownloadManager *v16; // rax __int64 v17; // rbx struct cocos2d::CCDelayTime *v18; // rax struct cocos2d::CCSequence *v19; // rax cocos2d::ccColor3B *v20; // r8 float v21; // [rsp+20h] [rbp-8h] int v22; // [rsp+30h] [rbp+8h] BYREF m_songID = a2->m_songID; p_m_bRunning = &a1->m_bRunning; v7 = *(__int64 **)p_m_bRunning; v8 = *(__int64 **)(*(_QWORD *)p_m_bRunning + 8LL); while ( !*((_BYTE *)v8 + 25) ) { if ( *((_DWORD *)v8 + 7) >= m_songID ) { v7 = v8; v8 = (__int64 *)*v8; } else { v8 = (__int64 *)v8[2]; } } if ( *((_BYTE *)v7 + 25) || m_songID < *((_DWORD *)v7 + 7) ) { d = a1->m_sInverse.d; p_m_bReorderChildDirty = &a1[-1].m_bReorderChildDirty; if ( LODWORD(d) == m_songID && d != 0.0 ) { (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)p_m_bReorderChildDirty + 47) + 320LL))( *((_QWORD *)p_m_bReorderChildDirty + 47), 0); v12 = *((_QWORD *)p_m_bReorderChildDirty + 59); if ( v12 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 320LL))(v12, 0); v13 = *((SongInfoObject **)p_m_bReorderChildDirty + 42); if ( v13 != a2 ) { cocos2d::CCObject::retain(a2); v14 = *((cocos2d::CCObject **)p_m_bReorderChildDirty + 42); if ( v14 ) cocos2d::CCObject::release(v14); *((_QWORD *)p_m_bReorderChildDirty + 42) = a2; v13 = a2; } if ( v13 ) v15 = *(float *)&v13->m_songID; else v15 = 0.0; a1->m_sInverse.d = v15; CustomSongWidget::updateSongInfo((CustomSongWidget *)((char *)a1 - 320)); if ( HIBYTE(a1->m_sInverse.b) ) { p_m_bReorderChildDirty[491] = 0; v16 = MusicDownloadManager::sharedState(); MusicDownloadManager::downloadSong(v16, *((_DWORD *)p_m_bReorderChildDirty + 124)); CustomSongWidget::startDownload((CustomSongWidget *)((char *)a1 - 320)); } v17 = cocos2d::CCCallFunc::create(&a1[-1].m_bReorderChildDirty, CustomSongWidget::updateSongInfo); v18 = cocos2d::CCDelayTime::create(0.0); v19 = cocos2d::CCSequence::create(v18, v17, 0); cocos2d::CCNode::runAction((CCLightFlash *)&a1[-1].m_bReorderChildDirty, (cocos2d::CCPoint)v19, v20, v2, v21); } } else { v22 = a2->m_songID; sub_1400CDAE0(p_m_bRunning, &v22); v9 = MusicDownloadManager::sharedState(); MusicDownloadManager::downloadSong(v9, a2->m_songID); } }