//
// GJGameLevel::getSongName from 0x3c5708 to 0x3c57b0 (168 bytes)
//
// 3 xrefs:
// > LevelCell::loadLocalLevelCell @ 0x33197e
// > LevelCell::loadCustomLevelCell @ 0x33259c
// > EditLevelLayer::setupLevelInfo @ 0x3b63ac
//
// 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
//
GJGameLevel *__fastcall GJGameLevel::getSongName(GJGameLevel *this, int a2, int a3, int a4)
{
int v6; // r1
int v7; // r0
GJGameLevel_vtbl *v9; // [sp+4h] [bp-Ch] BYREF
_DWORD v10[2]; // [sp+8h] [bp-8h] BYREF
v9 = (GJGameLevel_vtbl *)a2;
v10[0] = a3;
v10[1] = a4;
if ( *(_DWORD *)(a2 + 356) )
{
sub_776584((int)&v9, (char *)&unk_939830);
v7 = SongInfoObject::create(*(SongInfoObject **)(a2 + 356), v6);
if ( !v7 || *(_BYTE *)(v7 + 308) )
{
sub_7753D4((int)&v9, "Unknown");
}
else
{
sub_775C20(v10, v7 + 268);
sub_774794(&v9, v10);
sub_774008(v10);
}
this->__vftable = v9;
v9 = (GJGameLevel_vtbl *)&unk_ACDDA8;
sub_774008(&v9);
}
else
{
LevelTools::getAudioTitle((LevelTools *)this, *(_DWORD *)(a2 + 352));
}
return this;
}