{"type": "func", "start": 5371033360, "end": 5371033510, "name": "GJBaseGameLayer::resetAudio", "pseudocode": "// \n// GJBaseGameLayer::resetAudio from 0x140237710 to 0x1402377a6 (150 bytes)\n// \n// 5 xrefs:\n// > EndLevelLayer::goEdit @ 0x140135347\n// > PauseLayer::onEdit @ 0x14037e89d\n// > PlayLayer::resumeAndRestart @ 0x1403ba480\n// > PlayLayer::onQuit @ 0x1403bacd7\n// > <???> @ 0x1406ce130\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\n// Hidden C++ exception states: #wind=2\nvoid GJBaseGameLayer::resetAudio(GJBaseGameLayer *a1)\n{\n  FMODAudioEngine *v1; // rcx\n  __int64 v2; // rcx\n  FMODAudioEngine *v3; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v4; // [rsp+30h] [rbp+8h]\n\n  v1 = (FMODAudioEngine *)qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v3 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v3);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v1 = (FMODAudioEngine *)qword_1406C2E88;\n  }\n  FMODAudioEngine::clearAllAudio(v1);\n  v2 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v4 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v2 = qword_1406C2E88;\n  }\n  FMOD::System::update(*(FMOD::System **)(v2 + 560));\n}", "assembly": "; \n; GJBaseGameLayer::resetAudio from 0x140237710 to 0x1402377a6 (150 bytes)\n; \n; 5 xrefs:\n; > EndLevelLayer::goEdit @ 0x140135347\n; > PauseLayer::onEdit @ 0x14037e89d\n; > PlayLayer::resumeAndRestart @ 0x1403ba480\n; > PlayLayer::onQuit @ 0x1403bacd7\n; > <???> @ 0x1406ce130\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\nmov     [rsp+arg_0], rcx                                               ; +0x0, 0x140237710\nsub     rsp, 28h                                                       ; +0x5, 0x140237715\nmov     rcx, cs:qword_1406C2E88                                        ; +0x9, 0x140237719\ntest    rcx, rcx                                                       ; +0x10, 0x140237720\njnz     short loc_140237754                                            ; +0x13, 0x140237723\nmov     ecx, 888h; Size                                                ; +0x15, 0x140237725\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x14023772a\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x14023772f\nmov     rcx, rax                                                       ; +0x24, 0x140237734\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x27, 0x140237737\nnop                                                                    ; +0x2c, 0x14023773c\nmov     cs:qword_1406C2E88, rax                                        ; +0x2d, 0x14023773d\nmov     rdx, [rax]                                                     ; +0x34, 0x140237744\nmov     rcx, rax                                                       ; +0x37, 0x140237747\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x14023774a\nmov     rcx, cs:qword_1406C2E88                                        ; +0x3d, 0x14023774d\ncall    FMODAudioEngine__clearAllAudio                                 ; +0x44, 0x140237754\nmov     rcx, cs:qword_1406C2E88                                        ; +0x49, 0x140237759\ntest    rcx, rcx                                                       ; +0x50, 0x140237760\njnz     short loc_140237794                                            ; +0x53, 0x140237763\nmov     ecx, 888h; Size                                                ; +0x55, 0x140237765\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5a, 0x14023776a\nmov     [rsp+28h+arg_0], rax                                           ; +0x5f, 0x14023776f\nmov     rcx, rax                                                       ; +0x64, 0x140237774\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x67, 0x140237777\nnop                                                                    ; +0x6c, 0x14023777c\nmov     cs:qword_1406C2E88, rax                                        ; +0x6d, 0x14023777d\nmov     rdx, [rax]                                                     ; +0x74, 0x140237784\nmov     rcx, rax                                                       ; +0x77, 0x140237787\ncall    qword ptr [rdx+48h]                                            ; +0x7a, 0x14023778a\nmov     rcx, cs:qword_1406C2E88                                        ; +0x7d, 0x14023778d\nmov     rcx, [rcx+230h]                                                ; +0x84, 0x140237794\nadd     rsp, 28h                                                       ; +0x8b, 0x14023779b\njmp     cs:?update@System@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::System::update(void) ; +0x8f, 0x14023779f", "xrefs": ["EndLevelLayer::goEdit @ 0x140135347", "PauseLayer::onEdit @ 0x14037e89d", "PlayLayer::resumeAndRestart @ 0x1403ba480", "PlayLayer::onQuit @ 0x1403bacd7", "<???> @ 0x1406ce130"], "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"}