//
// CustomSongWidget::getSongInfoIfUnloaded from 0x1001219bc to 0x100121a30 (116 bytes)
//
// 3 xrefs:
// > CustomSongLayer::init @ 0x1001c30c4
// > CustomSongLayer::onSearch @ 0x1001c3340
// > AudioAssetsPopup::init @ 0x1004a9758
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:59:16 +0000
//
__int64 __fastcall CustomSongWidget::getSongInfoIfUnloaded(__int64 result)
{
__int64 v1; // x20
__int64 v2; // x19
std::string __str; // [xsp+8h] [xbp-28h] BYREF
v1 = *(_QWORD *)(result + 336);
if ( v1 && *(_BYTE *)(v1 + 432) == 1 )
{
v2 = result;
sub_100009900(&__str, "Loading");
std::string::operator=((std::string *)(v1 + 320), &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
CustomSongWidget::updateSongInfo(v2);
return sub_10011F884(v2);
}
return result;
}