//
// LevelInfoLayer::showSongWarning from 0x7e6100 to 0x7e61fc (252 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::onPlay @ 0x7e8208
// > ??> @ 0xa4fe0
//
// 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:54:29 +0000
//
__int64 __fastcall LevelInfoLayer::showSongWarning(LevelInfoLayer *this)
{
__int64 v2; // x20
_QWORD v4[2]; // [xsp+20h] [xbp+20h] BYREF
void *v5; // [xsp+30h] [xbp+30h]
v5 = (void *)operator new(0xA0u);
v4[1] = 154;
v4[0] = 161;
*((_BYTE *)memcpy(
v5,
"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",
0x9Au)
+ 154) = 0;
v2 = FLAlertLayer::create(
(__int64)this + 440,
(cocos2d::CCLabelBMFont *)"No Song",
(char *)v4,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Play",
300.0);
if ( (v4[0] & 1) != 0 )
operator delete(v5);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 72LL))(v2, 9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1312LL))(v2);
return _stack_chk_guard;
}