{"type": "func", "start": 4299057680, "end": 4299057738, "name": "FMODAudioEngine::isMusicPlaying_1", "pseudocode": "// \n// FMODAudioEngine::isMusicPlaying_1 from 0x1003e6a10 to 0x1003e6a4a (58 bytes)\n// \n// 13 xrefs:\n// > DrawGridLayer::update @ 0x100101001\n// > GJBaseGameLayer::update @ 0x100153139\n// > SongOptionsLayer::onPlayback @ 0x1002173aa\n// > SongOptionsLayer::onPlayback @ 0x100217479\n// > SongOptionsLayer::updatePlaybackBtn @ 0x100217504\n// > SetupSongTriggerPopup::onSavePlaybackPos @ 0x1002d3d22\n// > SetupSongTriggerPopup::onPlayback @ 0x1002d3f51\n// > SetupSongTriggerPopup::onClose @ 0x1002d4317\n// > GameManager::videoAdShowed @ 0x1003801e7\n// > MusicBrowser::update @ 0x10060f008\n// > MusicBrowser::sliderEnded @ 0x10060f183\n// > CustomSongWidget::onPlayback @ 0x10061bf7e\n// > CustomSongWidget::onPlayback @ 0x10061bff9\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\nbool __fastcall FMODAudioEngine::isMusicPlaying_1(FMODAudioEngine *a1, int a2)\n{\n  FMOD::Channel *ActiveMusicChannel; // rax\n  _BOOL8 v3; // rax\n  bool v5; // [rsp+Fh] [rbp-1h] BYREF\n\n  v5 = 1;\n  ActiveMusicChannel = FMODAudioEngine::getActiveMusicChannel(a1, a2);\n  if ( ActiveMusicChannel )\n  {\n    FMOD::ChannelControl::getPaused(ActiveMusicChannel, &v5);\n    LOBYTE(v3) = !v5;\n  }\n  else\n  {\n    return 0;\n  }\n  return v3;\n}", "assembly": "; \n; FMODAudioEngine::isMusicPlaying_1 from 0x1003e6a10 to 0x1003e6a4a (58 bytes)\n; \n; 13 xrefs:\n; > DrawGridLayer::update @ 0x100101001\n; > GJBaseGameLayer::update @ 0x100153139\n; > SongOptionsLayer::onPlayback @ 0x1002173aa\n; > SongOptionsLayer::onPlayback @ 0x100217479\n; > SongOptionsLayer::updatePlaybackBtn @ 0x100217504\n; > SetupSongTriggerPopup::onSavePlaybackPos @ 0x1002d3d22\n; > SetupSongTriggerPopup::onPlayback @ 0x1002d3f51\n; > SetupSongTriggerPopup::onClose @ 0x1002d4317\n; > GameManager::videoAdShowed @ 0x1003801e7\n; > MusicBrowser::update @ 0x10060f008\n; > MusicBrowser::sliderEnded @ 0x10060f183\n; > CustomSongWidget::onPlayback @ 0x10061bf7e\n; > CustomSongWidget::onPlayback @ 0x10061bff9\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, 0x1003e6a10\nmov     rbp, rsp                                                       ; +0x1, 0x1003e6a11\nsub     rsp, 10h                                                       ; +0x4, 0x1003e6a14\nmov     [rbp+var_1], 1                                                 ; +0x8, 0x1003e6a18\ncall    FMODAudioEngine__getActiveMusicChannel                         ; +0xc, 0x1003e6a1c\ntest    rax, rax                                                       ; +0x11, 0x1003e6a21\njz      short loc_1003E6A40                                            ; +0x14, 0x1003e6a24\nlea     rsi, [rbp+var_1]; bool *                                       ; +0x16, 0x1003e6a26\nmov     rdi, rax; this                                                 ; +0x1a, 0x1003e6a2a\ncall    __ZN4FMOD14ChannelControl9getPausedEPb; FMOD::ChannelControl::getPaused(bool *) ; +0x1d, 0x1003e6a2d\nmovzx   eax, [rbp+var_1]                                               ; +0x22, 0x1003e6a32\nxor     al, 1                                                          ; +0x26, 0x1003e6a36\nand     al, 1                                                          ; +0x28, 0x1003e6a38\nadd     rsp, 10h                                                       ; +0x2a, 0x1003e6a3a\npop     rbp                                                            ; +0x2e, 0x1003e6a3e\nretn                                                                   ; +0x2f, 0x1003e6a3f\nxor     eax, eax                                                       ; +0x30, 0x1003e6a40\nand     al, 1                                                          ; +0x32, 0x1003e6a42\nadd     rsp, 10h                                                       ; +0x34, 0x1003e6a44\npop     rbp                                                            ; +0x38, 0x1003e6a48\nretn                                                                   ; +0x39, 0x1003e6a49", "xrefs": ["DrawGridLayer::update @ 0x100101001", "GJBaseGameLayer::update @ 0x100153139", "SongOptionsLayer::onPlayback @ 0x1002173aa", "SongOptionsLayer::onPlayback @ 0x100217479", "SongOptionsLayer::updatePlaybackBtn @ 0x100217504", "SetupSongTriggerPopup::onSavePlaybackPos @ 0x1002d3d22", "SetupSongTriggerPopup::onPlayback @ 0x1002d3f51", "SetupSongTriggerPopup::onClose @ 0x1002d4317", "GameManager::videoAdShowed @ 0x1003801e7", "MusicBrowser::update @ 0x10060f008", "MusicBrowser::sliderEnded @ 0x10060f183", "CustomSongWidget::onPlayback @ 0x10061bf7e", "CustomSongWidget::onPlayback @ 0x10061bff9"], "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"}