{"type": "func", "start": 4296264948, "end": 4296265060, "name": "FMODAudioEngine::unloadAllEffects", "pseudocode": "// \n// FMODAudioEngine::unloadAllEffects from 0x10013ccf4 to 0x10013cd64 (112 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::onQuit @ 0x10011958c\n// > EditorPauseLayer::playStep2 @ 0x10039e6d0\n// > EditorPauseLayer::onExitEditor @ 0x10039e7d4\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::unloadAllEffects(FMODAudioEngine *a1)\n{\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<std::string, FMODSound>, void *> *>::__next_pointer i; // x20\n\n  FMODAudioEngine::stopAllEffects(a1);\n  for ( i = a1->m_fmodSounds.__table_.__p1_.__value_.__next_;\n        i;\n        i = (std::__hash_node_base<std::__hash_node<std::__hash_value_type<std::string, FMODSound>, void *> *>::__next_pointer)sub_10014186C(&a1->m_fmodSounds, i) )\n  {\n    while ( (BYTE4(i[10].__next_) & 1) != 0 )\n    {\n      i = i->__next_;\n      if ( !i )\n        goto LABEL_6;\n    }\n    sub_1000115B8((__int64)&a1->m_removedSounds, &i[5].__next_);\n    sub_1001416F8(&a1->m_temporarySoundPaths, &i[2]);\n  }\nLABEL_6:\n  dword_10086B568 = 0;\n}", "assembly": "; \n; FMODAudioEngine::unloadAllEffects from 0x10013ccf4 to 0x10013cd64 (112 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::onQuit @ 0x10011958c\n; > EditorPauseLayer::playStep2 @ 0x10039e6d0\n; > EditorPauseLayer::onExitEditor @ 0x10039e7d4\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, 0x10013ccf4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10013ccf8\nADD             X29, SP, #0x10                                         ; +0x8, 0x10013ccfc\nMOV             X19, X0                                                ; +0xc, 0x10013cd00\nBL              FMODAudioEngine__stopAllEffects                        ; +0x10, 0x10013cd04\nLDR             X20, [X19,#0x178]                                      ; +0x14, 0x10013cd08\nCBZ             X20, loc_10013CD50                                     ; +0x18, 0x10013cd0c\nLDRB            W8, [X20,#0x54]                                        ; +0x1c, 0x10013cd10\nTBZ             W8, #0, loc_10013CD24                                  ; +0x20, 0x10013cd14\nLDR             X20, [X20]                                             ; +0x24, 0x10013cd18\nCBNZ            X20, loc_10013CD10                                     ; +0x28, 0x10013cd1c\nB               loc_10013CD50                                          ; +0x2c, 0x10013cd20\nADD             X0, X19, #0x488                                        ; +0x30, 0x10013cd24\nADD             X1, X20, #0x28 ; '('                                   ; +0x34, 0x10013cd28\nBL              sub_1000115B8                                          ; +0x38, 0x10013cd2c\nADD             X0, X19, #0x190                                        ; +0x3c, 0x10013cd30\nADD             X1, X20, #0x10                                         ; +0x40, 0x10013cd34\nBL              sub_1001416F8                                          ; +0x44, 0x10013cd38\nADD             X0, X19, #0x168                                        ; +0x48, 0x10013cd3c\nMOV             X1, X20                                                ; +0x4c, 0x10013cd40\nBL              sub_10014186C                                          ; +0x50, 0x10013cd44\nMOV             X20, X0                                                ; +0x54, 0x10013cd48\nCBNZ            X20, loc_10013CD10                                     ; +0x58, 0x10013cd4c\nADRP            X8, #dword_10086B568@PAGE                              ; +0x5c, 0x10013cd50\nSTR             WZR, [X8,#dword_10086B568@PAGEOFF]                     ; +0x60, 0x10013cd54\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x64, 0x10013cd58\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x68, 0x10013cd5c\nRET                                                                    ; +0x6c, 0x10013cd60", "xrefs": ["PlayLayer::onQuit @ 0x10011958c", "EditorPauseLayer::playStep2 @ 0x10039e6d0", "EditorPauseLayer::onExitEditor @ 0x10039e7d4"], "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"}