//
// SongInfoLayer::showCustomMusicUnlockInfo from 0x53acf4 to 0x53ae34 (320 bytes)
//
// 2 xrefs:
// > SongInfoLayer::onMenuMusic @ 0x53ae78
// > SongInfoLayer::onPracticeMusic @ 0x53aece
//
// 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:52:14 +0000
//
int __fastcall SongInfoLayer::showCustomMusicUnlockInfo(SongInfoLayer *this)
{
char *v2; // r1
char *v3; // r1
int v4; // r7
char *v5; // r1
DialogLayer *v6; // r0
int v7; // r2
DialogLayer *v8; // r7
int v9; // r5
int v11; // [sp+4h] [bp-30h]
int v12[3]; // [sp+8h] [bp-2Ch] BYREF
int v13[3]; // [sp+14h] [bp-20h] BYREF
int v14[3]; // [sp+20h] [bp-14h] BYREF
memset(v12, 0, sizeof(v12));
std::string::__init(v12, &unk_B6B226, 0);
switch ( *((_DWORD *)this + 137) )
{
case 0:
v2 = "You need a Music Customizer to change menu and practice music.";
goto LABEL_3;
case 1:
v3 = "Lucky for you I have one in my shop.\nBut they are very expensive.";
goto LABEL_5;
case 2:
v2 = "Find me when you can afford it.\nI need the Mana Orbs...";
goto LABEL_3;
case 3:
v5 = "All this clicking makes me want to give you the item for free!";
goto LABEL_8;
case 4:
v2 = "... is something I would never say.";
LABEL_3:
std::string::assign(v12, v2);
goto LABEL_12;
case 5:
v3 = "You really are persistent, I will give you that.";
LABEL_5:
std::string::assign(v12, v3);
v4 = 38;
goto LABEL_13;
case 6:
v5 = "I am The Mechanic, not Santa Claus. I don't work for free.";
LABEL_8:
std::string::assign(v12, v5);
v4 = 39;
goto LABEL_13;
default:
LABEL_12:
v4 = 37;
LABEL_13:
memset(v13, 0, sizeof(v13));
std::string::__init(v13, "The Mechanic", 0xCu);
std::string::basic_string(v14, (int)v12);
LOWORD(v11) = -1;
BYTE2(v11) = -1;
v6 = (DialogLayer *)DialogObject::create(v13, v14, v4, 1065353216, 0, v11);
v8 = (DialogLayer *)DialogLayer::create(v6, (DialogObject *)&byte_4, v7);
std::string::~string((int)v14);
std::string::~string((int)v13);
DialogLayer::addToMainScene(v8);
DialogLayer::updateChatPlacement(v8, 0);
DialogLayer::animateIn(v8, 1);
v9 = *((_DWORD *)this + 137) + 1;
if ( v9 > 6 )
*((_DWORD *)this + 137) = 0;
else
*((_DWORD *)this + 137) = v9;
return std::string::~string((int)v12);
}
}