// // GameManager::fadeInMusic from 0x7188f0 to 0x718a4c (348 bytes) // // 12 xrefs: // > GameManager::fadeInMenuMusic @ 0x71e2dc // > SecretLayer::init @ 0xa61608 // > GJShopLayer::onBack @ 0xa7ceac // > SecretLayer2::init @ 0xa902d8 // > SecretLayer3::init @ 0xa92564 // > SecretLayer4::init @ 0xa96e80 // > LevelAreaInnerLayer::tryResumeTowerMusic @ 0xb5a0ac // > LevelAreaLayer::init @ 0xb5ba14 // > SecretRewardsLayer::init @ 0xb9f128 // > SecretLayer5::init @ 0xbc7fac // > SecretLayer6::init @ 0xbc9074 // > @ 0xc4588 // // 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:52:17 +0000 // __int64 __fastcall GameManager::fadeInMusic(__int64 a1, unsigned __int8 *a2) { FMODAudioEngine *v3; // x0 __int64 v4; // x1 FMODAudioEngine *v6; // x22 char v7; // w0 __int64 v8; // x0 __int64 v9; // x1 _BOOL8 isMusicPlaying; // x0 _BOOL4 v11; // w22 int v12; // w4 int v13; // w5 int v14; // w6 int v15; // w7 FMODAudioEngine *v16; // x22 char v17; // w0 __int64 v18; // x0 __int64 v19; // x1 char v20; // [xsp+0h] [xbp+0h] __int64 v21; // [xsp+30h] [xbp+30h] BYREF __int64 v22; // [xsp+38h] [xbp+38h] void *v23; // [xsp+40h] [xbp+40h] v3 = (FMODAudioEngine *)*a2; v4 = (unsigned __int8)v3 >> 1; if ( ((unsigned __int8)v3 & 1) != 0 ) v4 = *((_QWORD *)a2 + 1); if ( v4 ) { v6 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v3); v7 = *a2; v21 = 0; v22 = 0; v23 = nullptr; if ( (v7 & 1) != 0 ) { std::string::__init(&v21, *((void **)a2 + 2), *((_QWORD *)a2 + 1)); } else { v8 = *(_QWORD *)a2; v9 = *((_QWORD *)a2 + 1); v23 = *((void **)a2 + 2); v21 = v8; v22 = v9; } isMusicPlaying = FMODAudioEngine::isMusicPlaying(v6, (__int64)&v21, 0); v11 = isMusicPlaying; if ( (v21 & 1) != 0 ) operator delete(v23); if ( !v11 ) { v16 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)isMusicPlaying); v17 = *a2; v21 = 0; v22 = 0; v23 = nullptr; if ( (v17 & 1) != 0 ) { std::string::__init(&v21, *((void **)a2 + 2), *((_QWORD *)a2 + 1)); } else { v18 = *(_QWORD *)a2; v19 = *((_QWORD *)a2 + 1); v23 = *((void **)a2 + 2); v21 = v18; v22 = v19; } FMODAudioEngine::playMusic(v16, (char *)&v21, 1u, 0, v12, v13, v14, v15, 1.0, v20); if ( (v21 & 1) != 0 ) operator delete(v23); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source