//
// SongInfoLayer::showCustomMusicUnlockInfo from 0x1006d9710 to 0x1006d988c (380 bytes)
//
// 2 xrefs:
// > SongInfoLayer::onMenuMusic @ 0x1006d9580
// > SongInfoLayer::onPracticeMusic @ 0x1006d95f7
//
// 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:35:42 +0000
//
void __fastcall SongInfoLayer::showCustomMusicUnlockInfo(__int64 a1)
{
int v1; // r14d
const std::string::value_type *v2; // rsi
const std::string::value_type *v3; // rsi
const std::string::value_type *v4; // rsi
char *v5; // rax
__int64 v6; // r14
int v7; // eax
int v8; // edx
std::string v9; // [rsp+0h] [rbp-60h] BYREF
std::string v10; // [rsp+20h] [rbp-40h] BYREF
std::string v11; // [rsp+38h] [rbp-28h] BYREF
*(_WORD *)&v11.__r_.__value_.__l.0 = 0;
v1 = 37;
switch ( *(_DWORD *)(a1 + 716) )
{
case 0:
v2 = "You need a Music Customizer to change menu and practice music.";
goto LABEL_5;
case 1:
v4 = "Lucky for you I have one in my shop.\nBut they are very expensive.";
goto LABEL_9;
case 2:
v2 = "Find me when you can afford it.\nI need the Mana Orbs...";
goto LABEL_5;
case 3:
v3 = "All this clicking makes me want to give you the item for free!";
goto LABEL_11;
case 4:
v2 = "... is something I would never say.";
LABEL_5:
std::string::assign(&v11, v2);
break;
case 5:
v4 = "You really are persistent, I will give you that.";
LABEL_9:
v1 = 38;
std::string::assign(&v11, v4);
break;
case 6:
v3 = "I am The Mechanic, not Santa Claus. I don't work for free.";
LABEL_11:
v1 = 39;
std::string::assign(&v11, v3);
break;
default:
break;
}
v10.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)24;
strcpy(v10.__r_.__value_.__s.__data_, "The Mechanic");
if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) != 0 )
sub_10001AD30(&v9, v11.__r_.__value_.__l.__data_, v11.__r_.__value_.__l.__size_);
else
v9 = v11;
v5 = DialogObject::create(&v10, &v9, v1, 0, 0xFFFFFF, 1.0);
v6 = DialogLayer::create((__int64)v5, 4u);
if ( (*(_BYTE *)&v9.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v9.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v10.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v10.__r_.__value_.__l.__data_);
DialogLayer::addToMainScene(v6, 4);
DialogLayer::updateChatPlacement(v6, 0);
DialogLayer::animateIn(v6, 1);
v7 = *(_DWORD *)(a1 + 716);
v8 = 0;
if ( v7 < 6 )
v8 = v7 + 1;
*(_DWORD *)(a1 + 716) = v8;
if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v11.__r_.__value_.__l.__data_);
}