//
// sub_1000CF274 from 0x1000cf274 to 0x1000cf33c (200 bytes)
//
// 3 xrefs:
// > sub_100110828 @ 0x1001109e8
// > LevelCell::loadLocalLevelCell @ 0x10013330c
// > LevelCell::loadCustomLevelCell @ 0x100134838
//
// 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:58:53 +0000
//
double __usercall sub_1000CF274@(__int64 a1@, __int64 a2@)
{
__int64 v4; // x0
double result; // d0
__int128 v6; // [xsp+0h] [xbp-30h] BYREF
__int64 v7; // [xsp+10h] [xbp-20h]
if ( *(_DWORD *)(a1 + 608) )
{
sub_100009900((_QWORD *)a2, "");
v4 = SongInfoObject::create_1(*(unsigned int *)(a1 + 608));
if ( v4 && (*(_BYTE *)(v4 + 432) & 1) == 0 )
{
if ( *(char *)(v4 + 343) < 0 )
{
sub_1000097D0(&v6, *(void **)(v4 + 320), *(_QWORD *)(v4 + 328));
}
else
{
v6 = *(_OWORD *)(v4 + 320);
v7 = *(_QWORD *)(v4 + 336);
}
if ( *(char *)(a2 + 23) < 0 )
operator delete(*(void **)a2);
result = *(double *)&v6;
*(_OWORD *)a2 = v6;
*(_QWORD *)(a2 + 16) = v7;
}
else
{
std::string::assign((std::string *)a2, "Unknown");
}
}
else
{
LevelTools::getAudioTitle((_QWORD *)a2, *(unsigned int *)(a1 + 604));
}
return result;
}