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