// // SongInfoLayer::showCustomMusicUnlockInfo from 0x903d44 to 0x903fc4 (640 bytes) // // 3 xrefs: // > SongInfoLayer::onMenuMusic @ 0x904040 // > SongInfoLayer::onPracticeMusic @ 0x9040c8 // > @ 0xd3df8 // // 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:57:08 +0000 // __int64 __fastcall SongInfoLayer::showCustomMusicUnlockInfo(SongInfoLayer *this) { unsigned int v2; // w23 DialogLayer *v3; // x0 int v4; // w2 DialogLayer *v5; // x21 char v6; // w1 int v7; // w0 __int64 v9; // [xsp+40h] [xbp+40h] BYREF size_t v10; // [xsp+48h] [xbp+48h] void *v11; // [xsp+50h] [xbp+50h] __int64 v12[2]; // [xsp+58h] [xbp+58h] BYREF void *v13; // [xsp+68h] [xbp+68h] __int64 v14; // [xsp+70h] [xbp+70h] BYREF size_t v15; // [xsp+78h] [xbp+78h] void *v16; // [xsp+80h] [xbp+80h] v9 = 0; v10 = 0; v11 = nullptr; std::string::__init(&v9, &byte_11B8890, 0); switch ( *((_DWORD *)this + 179) ) { case 0: std::string::assign(&v9, "You need a Music Customizer to change menu and practice music."); goto LABEL_2; case 1: std::string::assign(&v9, "Lucky for you I have one in my shop.\nBut they are very expensive."); v2 = 38; goto LABEL_3; case 2: std::string::assign( &v9, "Find me when you can afford it.\nI need the Mana Orbs..."); goto LABEL_2; case 3: std::string::assign(&v9, "All this clicking makes me want to give you the item for free!"); v2 = 39; goto LABEL_3; case 4: std::string::assign(&v9, "... is something I would never say."); goto LABEL_2; case 5: std::string::assign(&v9, "You really are persistent, I will give you that."); v2 = 38; goto LABEL_3; case 6: std::string::assign(&v9, "I am The Mechanic, not Santa Claus. I don't work for free."); v2 = 39; goto LABEL_3; default: LABEL_2: v2 = 37; LABEL_3: v12[0] = 0; v12[1] = 0; v13 = nullptr; std::string::__init(v12, "The Mechanic", 0xCu); v14 = 0; v15 = 0; v16 = nullptr; if ( (v9 & 1) != 0 ) { std::string::__init(&v14, v11, v10); } else { v14 = v9; v15 = v10; v16 = v11; } v3 = (DialogLayer *)DialogObject::create(v12, &v14, v2, 0, 0xFFFFFF, 1.0); v5 = (DialogLayer *)DialogLayer::create(v3, (DialogObject *)&byte_4, v4); if ( (v14 & 1) != 0 ) operator delete(v16); if ( (v12[0] & 1) != 0 ) operator delete(v13); DialogLayer::addToMainScene(v5); DialogLayer::updateChatPlacement(v5, 0); DialogLayer::animateIn(v5, 1); v6 = v9; v7 = *((_DWORD *)this + 179) + 1; if ( v7 > 6 ) v7 = 0; *((_DWORD *)this + 179) = v7; if ( (v6 & 1) != 0 ) operator delete(v11); return _stack_chk_guard; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source