//
// CustomSongWidget::getSongInfoIfUnloaded from 0x4e4e64 to 0x4e4ee8 (132 bytes)
//
// 3 xrefs:
// > CustomSongLayer::init @ 0x57cb3a
// > CustomSongLayer::onSearch @ 0x57cec2
// > AudioAssetsPopup::init @ 0x761142
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:04 +0000
//
int __fastcall CustomSongWidget::getSongInfoIfUnloaded(int this)
{
int v1; // r4
CustomSongWidget *v2; // r7
char *v3; // r1
size_t v4; // r2
int v5; // [sp+0h] [bp-14h] BYREF
size_t v6; // [sp+4h] [bp-10h]
int v7; // [sp+8h] [bp-Ch]
v1 = *(_DWORD *)(this + 272);
v2 = (CustomSongWidget *)this;
if ( v1 && *(_BYTE *)(v1 + 328) )
{
v5 = 0;
v6 = 0;
v7 = 0;
std::string::__init(&v5, "Loading", 7u);
if ( (int *)(v1 + 268) != &v5 )
{
if ( (v5 & 1) != 0 )
{
v3 = (char *)v7;
v4 = v6;
}
else
{
v4 = (int)(unsigned __int8)v5 >> 1;
v3 = (char *)&v5 + 1;
}
std::string::assign((_DWORD *)(v1 + 268), v3, v4);
}
std::string::~string((int)&v5);
CustomSongWidget::updateSongInfo(v2);
return CustomSongWidget::onGetSongInfo((int)v2, nullptr);
}
return this;
}