//
// GameOptionsLayer::showPracticeMusicSyncUnlockInfo from 0x1002b1900 to 0x1002b1b59 (601 bytes)
//
// 1 xrefs:
// > GameOptionsLayer::onPracticeMusicSync @ 0x1002b1879
//
// 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 GameOptionsLayer::showPracticeMusicSyncUnlockInfo(GameOptionsLayer *a1)
{
double v1; // xmm0_8
unsigned int v2; // r15d
int v3; // r14d
const std::string::value_type *v4; // rsi
DialogObject *v5; // rax
DialogLayer *v6; // r14
int m_practiceDialogIndex; // eax
int v8; // edx
__int128 v9; // [rsp+0h] [rbp-80h] BYREF
void *data; // [rsp+10h] [rbp-70h]
__int128 v11; // [rsp+20h] [rbp-60h] BYREF
void *__p; // [rsp+30h] [rbp-50h]
std::string v13; // [rsp+38h] [rbp-48h] BYREF
std::string v14; // [rsp+50h] [rbp-30h] BYREF
*(_WORD *)&v14.__r_.__value_.__l.0 = 0;
v13.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14;
strcpy(v13.__r_.__value_.__s.__data_, "Scratch");
v2 = 10;
v3 = 2;
switch ( a1->m_practiceDialogIndex )
{
case 0:
std::string::assign(
&v14,
"You need a Music Unlocker to play normal music in practice mode.");
goto LABEL_10;
case 1:
v2 = 26;
std::string::assign(&v14, "I think the Diamond Shopkeeper has one, weird guy...");
goto LABEL_10;
case 2:
std::string::assign(&v14, "SpaRkle gnAsH Glorp sHiMmerRr crUnCHle bLinGz...");
std::string::assign(&v13, "Diamond Shopkeeper");
v2 = 40;
v3 = 4;
if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )
goto LABEL_14;
goto LABEL_10;
case 3:
v4 = "See what I mean?...";
goto LABEL_9;
case 4:
std::string::assign(
&v14,
"ShiM gNaw glEaM... bRinG ShiNy!");
std::string::assign(&v13, "Diamond Shopkeeper");
v2 = 41;
v3 = 4;
if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )
goto LABEL_14;
goto LABEL_10;
case 5:
v2 = 11;
std::string::assign(&v14, "Looks to me like you had enough shiny...");
goto LABEL_10;
case 6:
std::string::assign(
&v14,
"ShiMmer... sHim... bLiNg sNap... HA!");
std::string::assign(&v13, "Diamond Shopkeeper");
v2 = 42;
v3 = 4;
if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_10;
LABEL_14:
sub_100006B70(&v9, v13.__r_.__value_.__l.__data_, v13.__r_.__value_.__l.__size_, v1);
break;
case 7:
v4 = "...";
LABEL_9:
v2 = 12;
std::string::assign(&v14, v4);
goto LABEL_10;
default:
LABEL_10:
data = v13.__r_.__value_.__l.__data_;
v1 = *(double *)v13.__r_.__value_.__r.__words;
v9 = *(_OWORD *)&v13.__r_.__value_.__l.0;
break;
}
if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 )
{
sub_100006B70(&v11, v14.__r_.__value_.__l.__data_, v14.__r_.__value_.__l.__size_, v1);
}
else
{
__p = v14.__r_.__value_.__l.__data_;
v11 = *(_OWORD *)&v14.__r_.__value_.__l.0;
}
v5 = (DialogObject *)DialogObject::create(&v9, &v11, v2, 0, 0xFFFFFF, 1.0);
v6 = DialogLayer::create(v5, v3);
if ( (v11 & 1) != 0 )
operator delete(__p);
if ( (v9 & 1) != 0 )
operator delete(data);
DialogLayer::addToMainScene(v6);
DialogLayer::updateChatPlacement(v6, Center);
DialogLayer::animateIn(v6, FromCenter);
m_practiceDialogIndex = a1->m_practiceDialogIndex;
v8 = 0;
if ( m_practiceDialogIndex < 7 )
v8 = m_practiceDialogIndex + 1;
a1->m_practiceDialogIndex = v8;
if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v13.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v14.__r_.__value_.__l.__data_);
}