{"type": "func", "start": 4296248248, "end": 4296248380, "name": "FMODAudioEngine::clearAllAudio", "pseudocode": "// \n// FMODAudioEngine::clearAllAudio from 0x100138bb8 to 0x100138c3c (132 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::resetAudio @ 0x1001fe4e0\n// > EndLevelLayer::onReplay @ 0x1002f7258\n// > EndLevelLayer::onRestartCheckpoint @ 0x1002f74e0\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::clearAllAudio(FMODAudioEngine *a1)\n{\n  FMODAudioEngine::stopAllEffects(a1);\n  FMODAudioEngine::stopAllMusic(a1, 1);\n  sub_100017D70(\n    (__int64)&a1->m_audioState.m_tweensForEffectChannels,\n    (_QWORD *)a1->m_audioState.m_tweensForEffectChannels.__tree_.__pair1_.__value_.__left_);\n  a1->m_audioState.m_tweensForEffectChannels.__tree_.__begin_node_ = &a1->m_audioState.m_tweensForEffectChannels.__tree_.__pair1_.__value_;\n  *(_OWORD *)&a1->m_audioState.m_tweensForEffectChannels.__tree_.__pair1_.__value_.__left_ = 0u;\n  sub_100017D70(\n    (__int64)&a1->m_audioState.m_tweensForEffectGroups,\n    (_QWORD *)a1->m_audioState.m_tweensForEffectGroups.__tree_.__pair1_.__value_.__left_);\n  a1->m_audioState.m_tweensForEffectGroups.__tree_.__begin_node_ = &a1->m_audioState.m_tweensForEffectGroups.__tree_.__pair1_.__value_;\n  *(_OWORD *)&a1->m_audioState.m_tweensForEffectGroups.__tree_.__pair1_.__value_.__left_ = 0u;\n  sub_100017D70(\n    (__int64)&a1->m_audioState.m_tweensForMusicChannels,\n    (_QWORD *)a1->m_audioState.m_tweensForMusicChannels.__tree_.__pair1_.__value_.__left_);\n  a1->m_audioState.m_tweensForMusicChannels.__tree_.__begin_node_ = &a1->m_audioState.m_tweensForMusicChannels.__tree_.__pair1_.__value_;\n  *(_OWORD *)&a1->m_audioState.m_tweensForMusicChannels.__tree_.__pair1_.__value_.__left_ = 0u;\n  FMODAudioEngine::resumeAllAudio(a1);\n}", "assembly": "; \n; FMODAudioEngine::clearAllAudio from 0x100138bb8 to 0x100138c3c (132 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::resetAudio @ 0x1001fe4e0\n; > EndLevelLayer::onReplay @ 0x1002f7258\n; > EndLevelLayer::onRestartCheckpoint @ 0x1002f74e0\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100138bb8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100138bbc\nADD             X29, SP, #0x10                                         ; +0x8, 0x100138bc0\nMOV             X19, X0                                                ; +0xc, 0x100138bc4\nBL              FMODAudioEngine__stopAllEffects                        ; +0x10, 0x100138bc8\nMOV             X0, X19                                                ; +0x14, 0x100138bcc\nMOV             W1, #1                                                 ; +0x18, 0x100138bd0\nBL              FMODAudioEngine__stopAllMusic                          ; +0x1c, 0x100138bd4\nADD             X20, X19, #0x238                                       ; +0x20, 0x100138bd8\nLDR             X1, [X19,#0x238]                                       ; +0x24, 0x100138bdc\nADD             X0, X19, #0x230                                        ; +0x28, 0x100138be0\nBL              sub_100017D70                                          ; +0x2c, 0x100138be4\nSTR             X20, [X19,#0x230]                                      ; +0x30, 0x100138be8\nMOVI            V0.16B, #0                                             ; +0x34, 0x100138bec\nSTR             Q0, [X20]                                              ; +0x38, 0x100138bf0\nADD             X20, X19, #0x250                                       ; +0x3c, 0x100138bf4\nLDR             X1, [X19,#0x250]                                       ; +0x40, 0x100138bf8\nADD             X0, X19, #0x248                                        ; +0x44, 0x100138bfc\nBL              sub_100017D70                                          ; +0x48, 0x100138c00\nSTR             X20, [X19,#0x248]                                      ; +0x4c, 0x100138c04\nMOVI            V0.16B, #0                                             ; +0x50, 0x100138c08\nSTR             Q0, [X19,#0x250]                                       ; +0x54, 0x100138c0c\nADD             X20, X19, #0x268                                       ; +0x58, 0x100138c10\nLDR             X1, [X19,#0x268]                                       ; +0x5c, 0x100138c14\nADD             X0, X19, #0x260                                        ; +0x60, 0x100138c18\nBL              sub_100017D70                                          ; +0x64, 0x100138c1c\nSTR             X20, [X19,#0x260]                                      ; +0x68, 0x100138c20\nMOVI            V0.16B, #0                                             ; +0x6c, 0x100138c24\nSTR             Q0, [X20]                                              ; +0x70, 0x100138c28\nMOV             X0, X19                                                ; +0x74, 0x100138c2c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x78, 0x100138c30\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x7c, 0x100138c34\nB               FMODAudioEngine__resumeAllAudio                        ; +0x80, 0x100138c38", "xrefs": ["GJBaseGameLayer::resetAudio @ 0x1001fe4e0", "EndLevelLayer::onReplay @ 0x1002f7258", "EndLevelLayer::onRestartCheckpoint @ 0x1002f74e0"], "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"}