// // PlayLayer::prepareMusic from 0x100142038 to 0x100142130 (248 bytes) // // 2 xrefs: // > PlayLayer::setupHasCompleted @ 0x10013ff58 // > PlayLayer::startMusic @ 0x1001426cc // // 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 10:59:32 +0000 // void __fastcall PlayLayer::prepareMusic(__int64 a1, __int64 a2) { unsigned __int8 *v4; // x22 __int64 v5; // x21 __int64 Music; // x0 __int64 v7; // x8 float v8; // s8 __int64 v9; // x0 void *__p[2]; // [xsp+8h] [xbp-48h] BYREF char v11; // [xsp+1Fh] [xbp-31h] v4 = (unsigned __int8 *)(a1 + 12238); if ( (*(_BYTE *)(a1 + 12544) != 1 || *(_BYTE *)(a1 + 12545) == 1) && (*(_BYTE *)(a1 + 12650) & 1) == 0 ) { v5 = FMODAudioEngine::sharedEngine(a1); GJGameLevel::getAudioFileName(*(_QWORD *)(a1 + 1936), __p); Music = FMODAudioEngine::loadMusic( v5, __p, *v4, 0, 0, *(unsigned __int8 *)(*(_QWORD *)(a1 + 3272) + 350LL), 1.0, 0.0, 1.0); if ( v11 < 0 ) operator delete(__p[0]); v7 = *(_QWORD *)(a1 + 3272); if ( (*(_BYTE *)(v7 + 350) & 1) == 0 ) { v8 = (*(double *)(a1 + 928) + *(float *)(v7 + 344)) * 1000.0; v9 = FMODAudioEngine::sharedEngine(Music); FMODAudioEngine::setMusicTimeMS(v9, (unsigned int)v8, a2, 0); } v4[2642] = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source