//
// CustomSongWidget::getSongInfoIfUnloaded from 0x1000fd0e0 to 0x1000fd154 (116 bytes)
//
// 2 xrefs:
// > CustomSongLayer::init @ 0x10014455c
// > CustomSongLayer::onSearch @ 0x1001447d8
//
// 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 __fastcall CustomSongWidget::getSongInfoIfUnloaded(CustomSongWidget *a1)
{
SongInfoObject *m_songInfoObject; // x20
cocos2d::CCObject *v3; // x1
std::string __str; // [xsp+8h] [xbp-28h] BYREF
m_songInfoObject = a1->m_songInfoObject;
if ( m_songInfoObject && m_songInfoObject->m_unloaded )
{
sub_100009900(&__str, "Loading");
std::string::operator=((std::string *)&m_songInfoObject->m_songName, &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
CustomSongWidget::updateSongInfo(a1);
CustomSongWidget::onGetSongInfo(a1, v3);
}
}