{"type": "func", "start": 4298981296, "end": 4298981428, "name": "FMODAudioEngine::pauseAllMusic", "pseudocode": "// \n// FMODAudioEngine::pauseAllMusic from 0x1003d3fb0 to 0x1003d4034 (132 bytes)\n// \n// 5 xrefs:\n// > PlayLayer::destroyPlayer @ 0x100087eb1\n// > PlayLayer::loadFromCheckpoint @ 0x10008aefe\n// > PlayLayer::resetLevel @ 0x10008c834\n// > GJBaseGameLayer::pauseAudio @ 0x10012f09e\n// > GameManager::videoAdShowed @ 0x10036955d\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:29:40 +0000\n// \n\nvoid __fastcall FMODAudioEngine::pauseAllMusic(__int64 a1, char a2)\n{\n  __int64 *v2; // r14\n  FMOD::ChannelControl *v3; // rax\n  FMOD::ChannelControl *v4; // rax\n\n  v2 = *(__int64 **)(a1 + 336);\n  if ( v2 )\n  {\n    if ( a2 )\n    {\n      do\n      {\n        v3 = (FMOD::ChannelControl *)FMODAudioEngine::channelForChannelID(a1, *((_DWORD *)v2 + 6));\n        if ( v3 )\n          FMOD::ChannelControl::setPaused(v3, 1);\n        v2 = (__int64 *)*v2;\n      }\n      while ( v2 );\n    }\n    else\n    {\n      do\n      {\n        if ( !*((_BYTE *)v2 + 65) )\n        {\n          v4 = (FMOD::ChannelControl *)FMODAudioEngine::channelForChannelID(a1, *((_DWORD *)v2 + 6));\n          if ( v4 )\n            FMOD::ChannelControl::setPaused(v4, 1);\n        }\n        v2 = (__int64 *)*v2;\n      }\n      while ( v2 );\n    }\n  }\n}", "assembly": "; \n; FMODAudioEngine::pauseAllMusic from 0x1003d3fb0 to 0x1003d4034 (132 bytes)\n; \n; 5 xrefs:\n; > PlayLayer::destroyPlayer @ 0x100087eb1\n; > PlayLayer::loadFromCheckpoint @ 0x10008aefe\n; > PlayLayer::resetLevel @ 0x10008c834\n; > GJBaseGameLayer::pauseAudio @ 0x10012f09e\n; > GameManager::videoAdShowed @ 0x10036955d\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:29:40 +0000\n; \npush    rbp                                                            ; +0x0, 0x1003d3fb0\nmov     rbp, rsp                                                       ; +0x1, 0x1003d3fb1\npush    r14                                                            ; +0x4, 0x1003d3fb4\npush    rbx                                                            ; +0x6, 0x1003d3fb6\nmov     r14, [rdi+150h]                                                ; +0x7, 0x1003d3fb7\ntest    r14, r14                                                       ; +0xe, 0x1003d3fbe\njz      short loc_1003D402F                                            ; +0x11, 0x1003d3fc1\nmov     rbx, rdi                                                       ; +0x13, 0x1003d3fc3\ntest    sil, sil                                                       ; +0x16, 0x1003d3fc6\njz      short loc_1003D4008                                            ; +0x19, 0x1003d3fc9\njmp     short loc_1003D3FD8                                            ; +0x1b, 0x1003d3fcb\nalign 10h                                                              ; +0x1d, 0x1003d3fcd\nmov     r14, [r14]                                                     ; +0x20, 0x1003d3fd0\ntest    r14, r14                                                       ; +0x23, 0x1003d3fd3\njz      short loc_1003D402F                                            ; +0x26, 0x1003d3fd6\nmov     esi, [r14+18h]                                                 ; +0x28, 0x1003d3fd8\nmov     rdi, rbx                                                       ; +0x2c, 0x1003d3fdc\ncall    FMODAudioEngine__channelForChannelID                           ; +0x2f, 0x1003d3fdf\ntest    rax, rax                                                       ; +0x34, 0x1003d3fe4\njz      short loc_1003D3FD0                                            ; +0x37, 0x1003d3fe7\nmov     rdi, rax; this                                                 ; +0x39, 0x1003d3fe9\nmov     esi, 1; bool                                                   ; +0x3c, 0x1003d3fec\ncall    __ZN4FMOD14ChannelControl9setPausedEb; FMOD::ChannelControl::setPaused(bool) ; +0x41, 0x1003d3ff1\njmp     short loc_1003D3FD0                                            ; +0x46, 0x1003d3ff6\nalign 20h                                                              ; +0x48, 0x1003d3ff8\nmov     r14, [r14]                                                     ; +0x50, 0x1003d4000\ntest    r14, r14                                                       ; +0x53, 0x1003d4003\njz      short loc_1003D402F                                            ; +0x56, 0x1003d4006\ncmp     byte ptr [r14+41h], 0                                          ; +0x58, 0x1003d4008\njnz     short loc_1003D4000                                            ; +0x5d, 0x1003d400d\nmov     esi, [r14+18h]                                                 ; +0x5f, 0x1003d400f\nmov     rdi, rbx                                                       ; +0x63, 0x1003d4013\ncall    FMODAudioEngine__channelForChannelID                           ; +0x66, 0x1003d4016\ntest    rax, rax                                                       ; +0x6b, 0x1003d401b\njz      short loc_1003D4000                                            ; +0x6e, 0x1003d401e\nmov     rdi, rax; this                                                 ; +0x70, 0x1003d4020\nmov     esi, 1; bool                                                   ; +0x73, 0x1003d4023\ncall    __ZN4FMOD14ChannelControl9setPausedEb; FMOD::ChannelControl::setPaused(bool) ; +0x78, 0x1003d4028\njmp     short loc_1003D4000                                            ; +0x7d, 0x1003d402d\npop     rbx                                                            ; +0x7f, 0x1003d402f\npop     r14                                                            ; +0x80, 0x1003d4030\npop     rbp                                                            ; +0x82, 0x1003d4032\nretn                                                                   ; +0x83, 0x1003d4033", "xrefs": ["PlayLayer::destroyPlayer @ 0x100087eb1", "PlayLayer::loadFromCheckpoint @ 0x10008aefe", "PlayLayer::resetLevel @ 0x10008c834", "GJBaseGameLayer::pauseAudio @ 0x10012f09e", "GameManager::videoAdShowed @ 0x10036955d"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}