{"type": "func", "start": 5371033088, "end": 5371033348, "name": "GJBaseGameLayer::resumeAudio", "pseudocode": "// \n// GJBaseGameLayer::resumeAudio from 0x140237600 to 0x140237704 (260 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onPlaytest @ 0x1401123cd\n// > GJBaseGameLayer::update @ 0x140237917\n// > LevelEditorLayer::updateEditor @ 0x1402d8b1e\n// > <???> @ 0x1406ce124\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=3\nvoid GJBaseGameLayer::resumeAudio(GJBaseGameLayer *a1)\n{\n  FMODAudioEngine *v1; // rbx\n  __int64 v2; // rcx\n  FMODAudioEngine *v3; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v4; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v5; // [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  if ( v1->m_allAudioPaused )\n  {\n    v1->m_allAudioPaused = 0;\n    FMOD::ChannelControl::setPaused(v1->m_backgroundMusicChannel, 0);\n    FMOD::ChannelControl::setPaused(v1->m_globalChannel, 0);\n    v1 = (FMODAudioEngine *)qword_1406C2E88;\n  }\n  if ( !v1 )\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    v1 = (FMODAudioEngine *)qword_1406C2E88;\n  }\n  FMODAudioEngine::resumeAllMusic(v1);\n  v2 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v5 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v5);\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::resumeAudio from 0x140237600 to 0x140237704 (260 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onPlaytest @ 0x1401123cd\n; > GJBaseGameLayer::update @ 0x140237917\n; > LevelEditorLayer::updateEditor @ 0x1402d8b1e\n; > <???> @ 0x1406ce124\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, 0x140237600\npush    rbx                                                            ; +0x5, 0x140237605\nsub     rsp, 20h                                                       ; +0x6, 0x140237606\nmov     rbx, cs:qword_1406C2E88                                        ; +0xa, 0x14023760a\ntest    rbx, rbx                                                       ; +0x11, 0x140237611\njnz     short loc_140237645                                            ; +0x14, 0x140237614\nmov     ecx, 888h; Size                                                ; +0x16, 0x140237616\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1b, 0x14023761b\nmov     [rsp+28h+arg_0], rax                                           ; +0x20, 0x140237620\nmov     rcx, rax                                                       ; +0x25, 0x140237625\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x28, 0x140237628\nnop                                                                    ; +0x2d, 0x14023762d\nmov     cs:qword_1406C2E88, rax                                        ; +0x2e, 0x14023762e\nmov     rdx, [rax]                                                     ; +0x35, 0x140237635\nmov     rcx, rax                                                       ; +0x38, 0x140237638\ncall    qword ptr [rdx+48h]                                            ; +0x3b, 0x14023763b\nmov     rbx, cs:qword_1406C2E88                                        ; +0x3e, 0x14023763e\ncmp     byte ptr [rbx+261h], 0                                         ; +0x45, 0x140237645\njz      short loc_14023767A                                            ; +0x4c, 0x14023764c\nmov     byte ptr [rbx+261h], 0                                         ; +0x4e, 0x14023764e\nxor     edx, edx                                                       ; +0x55, 0x140237655\nmov     rcx, [rbx+228h]                                                ; +0x57, 0x140237657\ncall    cs:?setPaused@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@_N@Z; FMOD::ChannelControl::setPaused(bool) ; +0x5e, 0x14023765e\nxor     edx, edx                                                       ; +0x64, 0x140237664\nmov     rcx, [rbx+248h]                                                ; +0x66, 0x140237666\ncall    cs:?setPaused@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@_N@Z; FMOD::ChannelControl::setPaused(bool) ; +0x6d, 0x14023766d\nmov     rbx, cs:qword_1406C2E88                                        ; +0x73, 0x140237673\ntest    rbx, rbx                                                       ; +0x7a, 0x14023767a\njnz     short loc_1402376AE                                            ; +0x7d, 0x14023767d\nmov     ecx, 888h; Size                                                ; +0x7f, 0x14023767f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x84, 0x140237684\nmov     [rsp+28h+arg_0], rax                                           ; +0x89, 0x140237689\nmov     rcx, rax                                                       ; +0x8e, 0x14023768e\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x91, 0x140237691\nnop                                                                    ; +0x96, 0x140237696\nmov     cs:qword_1406C2E88, rax                                        ; +0x97, 0x140237697\nmov     rdx, [rax]                                                     ; +0x9e, 0x14023769e\nmov     rcx, rax                                                       ; +0xa1, 0x1402376a1\ncall    qword ptr [rdx+48h]                                            ; +0xa4, 0x1402376a4\nmov     rbx, cs:qword_1406C2E88                                        ; +0xa7, 0x1402376a7\nmov     rcx, rbx                                                       ; +0xae, 0x1402376ae\ncall    FMODAudioEngine__resumeAllMusic                                ; +0xb1, 0x1402376b1\nmov     rcx, cs:qword_1406C2E88                                        ; +0xb6, 0x1402376b6\ntest    rcx, rcx                                                       ; +0xbd, 0x1402376bd\njnz     short loc_1402376F1                                            ; +0xc0, 0x1402376c0\nmov     ecx, 888h; Size                                                ; +0xc2, 0x1402376c2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xc7, 0x1402376c7\nmov     [rsp+28h+arg_0], rax                                           ; +0xcc, 0x1402376cc\nmov     rcx, rax                                                       ; +0xd1, 0x1402376d1\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xd4, 0x1402376d4\nnop                                                                    ; +0xd9, 0x1402376d9\nmov     cs:qword_1406C2E88, rax                                        ; +0xda, 0x1402376da\nmov     rdx, [rax]                                                     ; +0xe1, 0x1402376e1\nmov     rcx, rax                                                       ; +0xe4, 0x1402376e4\ncall    qword ptr [rdx+48h]                                            ; +0xe7, 0x1402376e7\nmov     rcx, cs:qword_1406C2E88                                        ; +0xea, 0x1402376ea\nmov     rcx, [rcx+230h]                                                ; +0xf1, 0x1402376f1\nadd     rsp, 20h                                                       ; +0xf8, 0x1402376f8\npop     rbx                                                            ; +0xfc, 0x1402376fc\njmp     cs:?update@System@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::System::update(void) ; +0xfd, 0x1402376fd", "xrefs": ["EditorUI::onPlaytest @ 0x1401123cd", "GJBaseGameLayer::update @ 0x140237917", "LevelEditorLayer::updateEditor @ 0x1402d8b1e", "<???> @ 0x1406ce124"], "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"}