//
// GameSettingsLayer::showPracticeMusicSyncUnlockInfo from 0xc06944 to 0xc06c9c (856 bytes)
//
// 2 xrefs:
// > GameSettingsLayer::valueDidChange @ 0xc06f6c
// > ??> @ 0x6a3f0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:03:51 +0000
//
__int64 __fastcall GameSettingsLayer::showPracticeMusicSyncUnlockInfo(GameSettingsLayer *this)
{
unsigned int v2; // w24
int v3; // w25
DialogLayer *v4; // x0
DialogLayer *v5; // x21
char v6; // w1
int v7; // w0
__int64 v9; // [xsp+58h] [xbp+58h] BYREF
size_t v10; // [xsp+60h] [xbp+60h]
void *v11; // [xsp+68h] [xbp+68h]
__int64 v12; // [xsp+70h] [xbp+70h] BYREF
size_t v13; // [xsp+78h] [xbp+78h]
void *v14; // [xsp+80h] [xbp+80h]
__int64 v15; // [xsp+88h] [xbp+88h] BYREF
size_t v16; // [xsp+90h] [xbp+90h]
void *v17; // [xsp+98h] [xbp+98h]
__int64 v18; // [xsp+A0h] [xbp+A0h] BYREF
size_t v19; // [xsp+A8h] [xbp+A8h]
void *v20; // [xsp+B0h] [xbp+B0h]
v9 = 0;
v10 = 0;
v11 = nullptr;
std::string::__init(&v9, &byte_11B8890, 0);
v12 = 0;
v13 = 0;
v14 = nullptr;
std::string::__init(&v12, "Scratch", 7u);
switch ( *((_DWORD *)this + 286) )
{
case 0:
std::string::assign(
&v9,
"You need a Music Unlocker to play normal music in practice mode.");
goto LABEL_2;
case 1:
std::string::assign(&v9, "I think the Diamond Shopkeeper has one, weird guy...");
v2 = 2;
v3 = 26;
break;
case 2:
std::string::assign(&v9, "SpaRkle gnAsH Glorp sHiMmerRr crUnCHle bLinGz...");
std::string::assign(&v12, "Diamond Shopkeeper");
v2 = 4;
v3 = 40;
break;
case 3:
std::string::assign(&v9, "See what I mean?...");
goto LABEL_23;
case 4:
std::string::assign(
&v9,
"ShiM gNaw glEaM... bRinG ShiNy!");
std::string::assign(&v12, "Diamond Shopkeeper");
v2 = 4;
v3 = 41;
break;
case 5:
std::string::assign(&v9, "Looks to me like you had enough shiny...");
v2 = 2;
v3 = 11;
break;
case 6:
std::string::assign(
&v9,
"ShiMmer... sHim... bLiNg sNap... HA!");
std::string::assign(&v12, "Diamond Shopkeeper");
v2 = 4;
v3 = 42;
break;
case 7:
std::string::assign(&v9, "...");
LABEL_23:
v2 = 2;
v3 = 12;
break;
default:
LABEL_2:
v2 = 2;
v3 = 10;
break;
}
v15 = 0;
v16 = 0;
v17 = nullptr;
if ( (v12 & 1) != 0 )
{
std::string::__init(&v15, v14, v13);
}
else
{
v17 = v14;
v15 = v12;
v16 = v13;
}
v18 = 0;
v19 = 0;
v20 = nullptr;
if ( (v9 & 1) != 0 )
{
std::string::__init(&v18, v11, v10);
}
else
{
v20 = v11;
v18 = v9;
v19 = v10;
}
v4 = (DialogLayer *)DialogObject::create((char *)&v15, (char *)&v18, v3, 0, 0xFFFFFF, 1.0);
v5 = (DialogLayer *)DialogLayer::create(v4, (DialogObject *)v2);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
DialogLayer::addToMainScene(v5);
DialogLayer::updateChatPlacement((__int64)v5, 0);
DialogLayer::animateIn(v5, 1u);
v6 = v12;
v7 = *((_DWORD *)this + 286) + 1;
if ( v7 > 7 )
v7 = 0;
*((_DWORD *)this + 286) = v7;
if ( (v6 & 1) != 0 )
operator delete(v14);
if ( (v9 & 1) != 0 )
operator delete(v11);
return _stack_chk_guard;
}