{"type": "func", "start": 4299057744, "end": 4299057876, "name": "FMODAudioEngine::pauseAllMusic", "pseudocode": "// \n// FMODAudioEngine::pauseAllMusic from 0x1003e6a50 to 0x1003e6ad4 (132 bytes)\n// \n// 8 xrefs:\n// > PlayLayer::destroyPlayer @ 0x1000ba413\n// > PlayLayer::loadFromCheckpoint @ 0x1000bd39e\n// > PlayLayer::resetLevel @ 0x1000be469\n// > GJBaseGameLayer::pauseAudio @ 0x10015117e\n// > GameManager::videoAdShowed @ 0x1003801fd\n// > AppDelegate::applicationDidEnterBackground @ 0x10065c389\n// > AppDelegate::pauseSound @ 0x10065c489\n// > AppDelegate::checkSound @ 0x10065c6f7\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall FMODAudioEngine::pauseAllMusic(FMODAudioEngine *a1, bool a2)\n{\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, FMODMusic>, void *> *>::__next_pointer next; // r14\n  FMOD::Channel *v3; // rax\n  FMOD::Channel *v4; // rax\n\n  next = a1->m_fmodMusic.__table_.__p1_.__value_.__next_;\n  if ( next )\n  {\n    if ( a2 )\n    {\n      do\n      {\n        v3 = FMODAudioEngine::channelForChannelID(a1, (int)next[3].__next_);\n        if ( v3 )\n          FMOD::ChannelControl::setPaused(v3, 1);\n        next = next->__next_;\n      }\n      while ( next );\n    }\n    else\n    {\n      do\n      {\n        if ( !BYTE1(next[8].__next_) )\n        {\n          v4 = FMODAudioEngine::channelForChannelID(a1, (int)next[3].__next_);\n          if ( v4 )\n            FMOD::ChannelControl::setPaused(v4, 1);\n        }\n        next = next->__next_;\n      }\n      while ( next );\n    }\n  }\n}", "assembly": "; \n; FMODAudioEngine::pauseAllMusic from 0x1003e6a50 to 0x1003e6ad4 (132 bytes)\n; \n; 8 xrefs:\n; > PlayLayer::destroyPlayer @ 0x1000ba413\n; > PlayLayer::loadFromCheckpoint @ 0x1000bd39e\n; > PlayLayer::resetLevel @ 0x1000be469\n; > GJBaseGameLayer::pauseAudio @ 0x10015117e\n; > GameManager::videoAdShowed @ 0x1003801fd\n; > AppDelegate::applicationDidEnterBackground @ 0x10065c389\n; > AppDelegate::pauseSound @ 0x10065c489\n; > AppDelegate::checkSound @ 0x10065c6f7\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1003e6a50\nmov     rbp, rsp                                                       ; +0x1, 0x1003e6a51\npush    r14                                                            ; +0x4, 0x1003e6a54\npush    rbx                                                            ; +0x6, 0x1003e6a56\nmov     r14, [rdi+150h]                                                ; +0x7, 0x1003e6a57\ntest    r14, r14                                                       ; +0xe, 0x1003e6a5e\njz      short loc_1003E6ACF                                            ; +0x11, 0x1003e6a61\nmov     rbx, rdi                                                       ; +0x13, 0x1003e6a63\ntest    sil, sil                                                       ; +0x16, 0x1003e6a66\njz      short loc_1003E6AA8                                            ; +0x19, 0x1003e6a69\njmp     short loc_1003E6A78                                            ; +0x1b, 0x1003e6a6b\nalign 10h                                                              ; +0x1d, 0x1003e6a6d\nmov     r14, [r14]                                                     ; +0x20, 0x1003e6a70\ntest    r14, r14                                                       ; +0x23, 0x1003e6a73\njz      short loc_1003E6ACF                                            ; +0x26, 0x1003e6a76\nmov     esi, [r14+18h]                                                 ; +0x28, 0x1003e6a78\nmov     rdi, rbx                                                       ; +0x2c, 0x1003e6a7c\ncall    FMODAudioEngine__channelForChannelID                           ; +0x2f, 0x1003e6a7f\ntest    rax, rax                                                       ; +0x34, 0x1003e6a84\njz      short loc_1003E6A70                                            ; +0x37, 0x1003e6a87\nmov     rdi, rax; this                                                 ; +0x39, 0x1003e6a89\nmov     esi, 1; bool                                                   ; +0x3c, 0x1003e6a8c\ncall    __ZN4FMOD14ChannelControl9setPausedEb; FMOD::ChannelControl::setPaused(bool) ; +0x41, 0x1003e6a91\njmp     short loc_1003E6A70                                            ; +0x46, 0x1003e6a96\nalign 20h                                                              ; +0x48, 0x1003e6a98\nmov     r14, [r14]                                                     ; +0x50, 0x1003e6aa0\ntest    r14, r14                                                       ; +0x53, 0x1003e6aa3\njz      short loc_1003E6ACF                                            ; +0x56, 0x1003e6aa6\ncmp     byte ptr [r14+41h], 0                                          ; +0x58, 0x1003e6aa8\njnz     short loc_1003E6AA0                                            ; +0x5d, 0x1003e6aad\nmov     esi, [r14+18h]                                                 ; +0x5f, 0x1003e6aaf\nmov     rdi, rbx                                                       ; +0x63, 0x1003e6ab3\ncall    FMODAudioEngine__channelForChannelID                           ; +0x66, 0x1003e6ab6\ntest    rax, rax                                                       ; +0x6b, 0x1003e6abb\njz      short loc_1003E6AA0                                            ; +0x6e, 0x1003e6abe\nmov     rdi, rax; this                                                 ; +0x70, 0x1003e6ac0\nmov     esi, 1; bool                                                   ; +0x73, 0x1003e6ac3\ncall    __ZN4FMOD14ChannelControl9setPausedEb; FMOD::ChannelControl::setPaused(bool) ; +0x78, 0x1003e6ac8\njmp     short loc_1003E6AA0                                            ; +0x7d, 0x1003e6acd\npop     rbx                                                            ; +0x7f, 0x1003e6acf\npop     r14                                                            ; +0x80, 0x1003e6ad0\npop     rbp                                                            ; +0x82, 0x1003e6ad2\nretn                                                                   ; +0x83, 0x1003e6ad3", "xrefs": ["PlayLayer::destroyPlayer @ 0x1000ba413", "PlayLayer::loadFromCheckpoint @ 0x1000bd39e", "PlayLayer::resetLevel @ 0x1000be469", "GJBaseGameLayer::pauseAudio @ 0x10015117e", "GameManager::videoAdShowed @ 0x1003801fd", "AppDelegate::applicationDidEnterBackground @ 0x10065c389", "AppDelegate::pauseSound @ 0x10065c489", "AppDelegate::checkSound @ 0x10065c6f7"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}