//
// CustomSongWidget::getSongInfoIfUnloaded from 0x14016b590 to 0x14016b646 (182 bytes)
//
// 4 xrefs:
// > AudioAssetsPopup::init @ 0x1400be1fc
// > CustomSongLayer::init @ 0x1401648eb
// > CustomSongLayer::onSearch @ 0x140164dc4
// > ??> @ 0x1409180ec
//
// This function is hookable on this platform (idp: pc, 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 11:27:29 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall CustomSongWidget::getSongInfoIfUnloaded(__int64 a1)
{
__int64 v2; // rcx
void **v3; // rcx
__int64 result; // rax
char v5[8]; // [rsp+20h] [rbp-28h] BYREF
__int64 v6; // [rsp+28h] [rbp-20h]
__int64 v7; // [rsp+30h] [rbp-18h]
__int64 v8; // [rsp+38h] [rbp-10h]
v2 = *(_QWORD *)(a1 + 336);
if ( v2 && *(_BYTE *)(v2 + 472) )
{
v6 = 0;
v7 = 7;
v8 = 15;
strcpy(v5, "Loading");
v3 = (void **)(v2 + 328);
if ( v3 != (void **)v5 )
sub_1400405A0(v3, v5, 7u);
sub_14003D310((__int64)v5);
CustomSongWidget::updateSongInfo(a1);
return CustomSongWidget::onGetSongInfo(a1, 0);
}
return result;
}