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