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