//
// SongInfoObject::create from 0x973ddc to 0x973fdc (512 bytes)
//
// 9 xrefs:
// > LevelInfoLayer::init @ 0x7ebb44
// > GJGameLevel::getSongName @ 0x83bd00
// > CustomSongLayer::dropDownLayerWillClose @ 0x97e798
// > CustomSongLayer::musicBrowserClosed @ 0x97e80c
// > CustomSongLayer::onSearch @ 0x97f450
// > SongSelectNode::onSongMode @ 0x97fbc8
// > CustomSongLayer::init @ 0x981240
// > AudioAssetsPopup::init @ 0xc8e6d8
// > ??> @ 0xa90d8
//
// 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 12:57:43 +0000
//
__int64 __fastcall SongInfoObject::create(SongInfoObject *this)
{
unsigned int v1; // w21
MusicDownloadManager *v2; // x0
__int64 SongInfoObject; // x20
__int64 v5[2]; // [xsp+68h] [xbp+58h] BYREF
void *v6; // [xsp+78h] [xbp+68h]
__int64 v7[2]; // [xsp+80h] [xbp+70h] BYREF
void *v8; // [xsp+90h] [xbp+80h]
__int64 v9[2]; // [xsp+98h] [xbp+88h] BYREF
void *v10; // [xsp+A8h] [xbp+98h]
__int64 v11[2]; // [xsp+B0h] [xbp+A0h] BYREF
void *v12; // [xsp+C0h] [xbp+B0h]
v1 = (unsigned int)this;
v2 = (MusicDownloadManager *)MusicDownloadManager::sharedState(_stack_chk_guard);
SongInfoObject = MusicDownloadManager::getSongInfoObject(v2, (const char *)v1);
if ( !SongInfoObject )
{
v5[0] = 0;
v5[1] = 0;
v6 = nullptr;
std::string::__init(v5, "Unknown", 7u);
v7[0] = 0;
v7[1] = 0;
v8 = nullptr;
std::string::__init(v7, &byte_11B8890, 0);
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
std::string::__init(v9, &byte_11B8890, 0);
v11[0] = 0;
v11[1] = 0;
v12 = nullptr;
std::string::__init(v11, &byte_11B8890, 0);
SongInfoObject = SongInfoObject::create(v1, (char *)v5, (char *)v7, 0, (char *)v9, 0, (char *)v11, 0, 0.0, 0, -1);
if ( (v11[0] & 1) != 0 )
operator delete(v12);
if ( (v9[0] & 1) != 0 )
operator delete(v10);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
if ( (v5[0] & 1) != 0 )
operator delete(v6);
*(_BYTE *)(SongInfoObject + 432) = 1;
}
return SongInfoObject;
}