//
// GameOptionsLayer::showPracticeMusicSyncUnlockInfo from 0x4b1854 to 0x4b19ec (408 bytes)
//
// 1 xrefs:
// > GameOptionsLayer::onPracticeMusicSync @ 0x4b1a40
//
// 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 GameOptionsLayer::showPracticeMusicSyncUnlockInfo(GameOptionsLayer *a1)
{
int v2; // r5
std::string v3; // r6
char *v4; // r1
DialogObject *v5; // r0
DialogLayer *v6; // r5
int v7; // r3
_BYTE v8[4]; // [sp+Ch] [bp-4h] BYREF
int v9; // [sp+10h] [bp+0h] BYREF
char v10; // [sp+14h] [bp+4h] BYREF
_BYTE v11[4]; // [sp+18h] [bp+8h] BYREF
sub_776584((int)v8, (char *)&unk_939830);
sub_776584((int)&v9, "Scratch");
switch ( a1->m_practiceDialogIndex )
{
case 0:
sub_7753D4((int)v8, "You need a Music Unlocker to play normal music in practice mode.");
goto LABEL_11;
case 1:
sub_7753D4((int)v8, "I think the Diamond Shopkeeper has one, weird guy...");
v2 = 2;
v3.m_data.m_data = (stl::StringData::Internal *)(&dword_18 + 2);
break;
case 2:
sub_7753D4((int)v8, "SpaRkle gnAsH Glorp sHiMmerRr crUnCHle bLinGz...");
sub_7753D4((int)&v9, "Diamond Shopkeeper");
v2 = 4;
v3.m_data.m_data = (stl::StringData::Internal *)&word_28;
break;
case 3:
v4 = "See what I mean?...";
goto LABEL_6;
case 4:
sub_7753D4(
(int)v8,
"ShiM gNaw glEaM... bRinG ShiNy!");
sub_7753D4((int)&v9, "Diamond Shopkeeper");
v2 = 4;
v3.m_data.m_data = (stl::StringData::Internal *)(&word_28 + 1);
break;
case 5:
sub_7753D4((int)v8, "Looks to me like you had enough shiny...");
v2 = 2;
v3.m_data.m_data = (stl::StringData::Internal *)(byte_9 + 2);
break;
case 6:
sub_7753D4(
(int)v8,
"ShiMmer... sHim... bLiNg sNap... HA!");
sub_7753D4((int)&v9, "Diamond Shopkeeper");
v2 = 4;
v3.m_data.m_data = (stl::StringData::Internal *)&word_2A;
break;
case 7:
v4 = "...";
LABEL_6:
sub_7753D4((int)v8, v4);
v2 = 2;
v3.m_data.m_data = (stl::StringData::Internal *)(byte_9 + 3);
break;
default:
LABEL_11:
v2 = 2;
v3.m_data.m_data = (stl::StringData::Internal *)(byte_9 + 1);
break;
}
sub_775C20(&v10);
sub_775C20(v11);
v5 = (DialogObject *)DialogObject::create((DialogObject *)&v10, (std::string)v11, v3, 1065353216, 0.0, 255);
v6 = DialogLayer::create(v5, v2);
sub_774008(v11);
sub_774008(&v10);
DialogLayer::addToMainScene(v6);
DialogLayer::updateChatPlacement(v6, Center);
DialogLayer::animateIn(v6, FromCenter);
v7 = a1->m_practiceDialogIndex + 1;
if ( v7 > 7 )
v7 = 0;
a1->m_practiceDialogIndex = v7;
sub_774008(&v9);
sub_774008(v8);
}