// // GJBaseGameLayer::resetAudio from 0x140237710 to 0x1402377a6 (150 bytes) // // 5 xrefs: // > EndLevelLayer::goEdit @ 0x140135347 // > PauseLayer::onEdit @ 0x14037e89d // > PlayLayer::resumeAndRestart @ 0x1403ba480 // > PlayLayer::onQuit @ 0x1403bacd7 // > @ 0x1406ce130 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=2 void GJBaseGameLayer::resetAudio(GJBaseGameLayer *a1) { FMODAudioEngine *v1; // rcx __int64 v2; // rcx FMODAudioEngine *v3; // [rsp+30h] [rbp+8h] FMODAudioEngine *v4; // [rsp+30h] [rbp+8h] v1 = (FMODAudioEngine *)qword_1406C2E88; if ( !qword_1406C2E88 ) { v3 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v3); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v1 = (FMODAudioEngine *)qword_1406C2E88; } FMODAudioEngine::clearAllAudio(v1); v2 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v4 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v4); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v2 = qword_1406C2E88; } FMOD::System::update(*(FMOD::System **)(v2 + 560)); }