//
// CustomSongWidget::loadSongInfoFinished from 0x3e06a4 to 0x3e0752 (174 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CustomSongWidget::loadSongInfoFinished @ 0x3e0760
//
// 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)
{
std::set *p_m_nextSongIDs; // r8
MusicDownloadManager *v5; // r0
cocos2d::CCDelayTime *v6; // r0
cocos2d::CCSequence *v7; // r8
cocos2d::CCFiniteTimeAction *v8; // r0
cocos2d::CCAction *v9; // r0
int v10[2]; // [sp+4h] [bp-Ch] BYREF
v10[0] = (int)a2;
p_m_nextSongIDs = &a1->m_nextSongIDs;
v10[0] = a2->m_songID;
if ( &a1->m_nextSongIDs._M_t._M_impl._M_header == (std::_Rb_tree_node_base *)std::_Rb_tree,std::less,std::allocator>::find(
(int)&a1->m_nextSongIDs,
v10) )
{
if ( CustomSongWidget::verifySongID(a1, a2->m_songID) )
{
CustomSongWidget::updateSongObject(a1, a2);
if ( a1->m_isNotDownloading )
CustomSongWidget::startDownload(a1);
v6 = cocos2d::CCDelayTime::create(0.0);
v10[1] = 0;
v10[0] = (int)CustomSongWidget::updateSongInfo;
v7 = (cocos2d::CCSequence *)v6;
v8 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, CustomSongWidget::updateSongInfo, 0);
v9 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v7, v8, 0);
cocos2d::CCNode::runAction(a1, v9);
}
}
else
{
v10[0] = a2->m_songID;
std::_Rb_tree,std::less,std::allocator>::erase(p_m_nextSongIDs, v10);
v5 = MusicDownloadManager::sharedState();
MusicDownloadManager::downloadSong(v5, a2->m_songID);
}
}