//
// LevelInfoLayer::showSongWarning from 0x1002b0c90 to 0x1002b0d40 (176 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::onPlay @ 0x1002acc8f
//
// 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 12:28:01 +0000
//
__int64 __fastcall LevelInfoLayer::showSongWarning(__int64 a1)
{
__int64 v1; // rbx
_QWORD v3[2]; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
__p = operator new(0xA0u);
v3[0] = 161;
v3[1] = 154;
strcpy(
(char *)__p,
"This level uses a custom song that has not been downloaded yet.\n"
"Do you want to play without music?\n"
"Download by using the bar below");
v1 = FLAlertLayer::create_1(a1 + 440, "No Song", v3, "Cancel", "Play", 300.0);
if ( (v3[0] & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 72LL))(v1, 9);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 1312LL))(v1);
}