// // FMODAudioEngine::stopAllMusic from 0x1400629a0 to 0x140062aab (267 bytes) // // 2 xrefs: // > PlayLayer::resumeAndRestart @ 0x14051a80f // > @ 0x140910bec // // This function is hookable on this platform (idp: pc, 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 11:25:44 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall FMODAudioEngine::stopAllMusic(_QWORD *a1, char a2) { __int64 v3; // rcx _QWORD *v5; // rax _QWORD *v6; // rbx int *v7; // rdi int *v8; // r8 int *i; // rbx __int64 v10; // rax __int128 v11; // [rsp+20h] [rbp-28h] BYREF int *v12; // [rsp+30h] [rbp-18h] if ( a2 ) { v3 = a1[69]; if ( v3 ) FMOD::ChannelControl::stop(v3); sub_14003EB60(a1 + 137); sub_14003EB60(a1 + 145); return sub_14003EB60(a1 + 153); } else { v11 = 0; v12 = nullptr; v5 = (_QWORD *)a1[41]; v6 = (_QWORD *)*v5; v7 = nullptr; if ( (_QWORD *)*v5 != v5 ) { do { if ( !*((_BYTE *)v6 + 73) ) { v8 = (int *)(v6 + 3); if ( v7 == v12 ) { sub_140069B30(&v11, v7, v8); v7 = *((int **)&v11 + 1); } else { *v7 = *v8; v7 = (int *)(*((_QWORD *)&v11 + 1) + 4LL); *((_QWORD *)&v11 + 1) += 4LL; } } v6 = (_QWORD *)*v6; } while ( v6 != (_QWORD *)a1[41] ); } for ( i = (int *)v11; i != v7; ++i ) { v10 = FMODAudioEngine::channelForChannelID(a1, *i); if ( v10 ) FMOD::ChannelControl::stop(v10); } return sub_140069730(&v11); } }