//
// GameOptionsLayer::showPracticeMusicSyncUnlockInfo from 0x5db57c to 0x5db720 (420 bytes)
//
// 1 xrefs:
// > GameOptionsLayer::onPracticeMusicSync @ 0x5db774
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:54:12 +0000
//
int __fastcall GameOptionsLayer::showPracticeMusicSyncUnlockInfo(GameOptionsLayer *this)
{
DialogObject *v2; // r5
int v3; // r6
char *v4; // r1
DialogLayer *v5; // r0
int v6; // r2
DialogLayer *v7; // r5
int v8; // r3
int v10; // [sp+4h] [bp-14h]
int v11[3]; // [sp+Ch] [bp-Ch] BYREF
int v12[3]; // [sp+18h] [bp+0h] BYREF
int v13[3]; // [sp+24h] [bp+Ch] BYREF
int v14[3]; // [sp+30h] [bp+18h] BYREF
memset(v11, 0, sizeof(v11));
std::string::__init(v11, &unk_B6B226, 0);
memset(v12, 0, sizeof(v12));
std::string::__init(v12, "Scratch", 7u);
switch ( *((_DWORD *)this + 196) )
{
case 0:
std::string::assign(
v11,
"You need a Music Unlocker to play normal music in practice mode.");
goto LABEL_11;
case 1:
std::string::assign(v11, "I think the Diamond Shopkeeper has one, weird guy...");
v2 = (DialogObject *)(&dword_0 + 2);
v3 = 26;
break;
case 2:
std::string::assign(v11, "SpaRkle gnAsH Glorp sHiMmerRr crUnCHle bLinGz...");
std::string::assign(v12, "Diamond Shopkeeper");
v2 = (DialogObject *)byte_4;
v3 = 40;
break;
case 3:
v4 = "See what I mean?...";
goto LABEL_6;
case 4:
std::string::assign(
v11,
"ShiM gNaw glEaM... bRinG ShiNy!");
std::string::assign(v12, "Diamond Shopkeeper");
v2 = (DialogObject *)byte_4;
v3 = 41;
break;
case 5:
std::string::assign(v11, "Looks to me like you had enough shiny...");
v2 = (DialogObject *)(&dword_0 + 2);
v3 = 11;
break;
case 6:
std::string::assign(
v11,
"ShiMmer... sHim... bLiNg sNap... HA!");
std::string::assign(v12, "Diamond Shopkeeper");
v2 = (DialogObject *)byte_4;
v3 = 42;
break;
case 7:
v4 = "...";
LABEL_6:
std::string::assign(v11, v4);
v2 = (DialogObject *)(&dword_0 + 2);
v3 = 12;
break;
default:
LABEL_11:
v2 = (DialogObject *)(&dword_0 + 2);
v3 = 10;
break;
}
std::string::basic_string(v13, (int)v12);
std::string::basic_string(v14, (int)v11);
LOWORD(v10) = -1;
BYTE2(v10) = -1;
v5 = (DialogLayer *)DialogObject::create(v13, v14, v3, 1065353216, 0, v10);
v7 = (DialogLayer *)DialogLayer::create(v5, v2, v6);
std::string::~string((int)v14);
std::string::~string((int)v13);
DialogLayer::addToMainScene(v7);
DialogLayer::updateChatPlacement(v7, 0);
DialogLayer::animateIn(v7, 1);
v8 = *((_DWORD *)this + 196) + 1;
if ( v8 > 7 )
v8 = 0;
*((_DWORD *)this + 196) = v8;
std::string::~string((int)v12);
return std::string::~string((int)v11);
}