{"type": "func", "start": 5369246400, "end": 5369246655, "name": "AppDelegate::resumeSound", "pseudocode": "// \n// AppDelegate::resumeSound from 0x1400832c0 to 0x1400833bf (255 bytes)\n// \n// 2 xrefs:\n// > FMODAudioEngine::start @ 0x1400552e8\n// > <???> @ 0x1406c6a98\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=4\nvoid AppDelegate::resumeSound(AppDelegate *a1)\n{\n  GameManager *v1; // rcx\n  FMODAudioEngine *v2; // rcx\n  __int64 v3; // rcx\n  void *v4; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v5; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v6; // [rsp+30h] [rbp+8h]\n\n  if ( !AppDelegate::musicTest(a1) )\n  {\n    v1 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v4 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00(v4);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v1 = (GameManager *)qword_1406C2ED8;\n    }\n    if ( v1->m_playLayer || !GameManager::getGameVariable(v1, \"0122\") )\n    {\n      v2 = (FMODAudioEngine *)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 = (FMODAudioEngine *)qword_1406C2E88;\n      }\n      FMODAudioEngine::resumeAllMusic(v2);\n    }\n    v3 = qword_1406C2E88;\n    if ( !qword_1406C2E88 )\n    {\n      v6 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v6);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v3 = qword_1406C2E88;\n    }\n    FMOD::ChannelControl::setPaused(*(FMOD::ChannelControl **)(v3 + 584), 0);\n  }\n}", "assembly": "; \n; AppDelegate::resumeSound from 0x1400832c0 to 0x1400833bf (255 bytes)\n; \n; 2 xrefs:\n; > FMODAudioEngine::start @ 0x1400552e8\n; > <???> @ 0x1406c6a98\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, 0x1400832c0\nsub     rsp, 28h                                                       ; +0x5, 0x1400832c5\ncall    AppDelegate__musicTest                                         ; +0x9, 0x1400832c9\ntest    al, al                                                         ; +0xe, 0x1400832ce\njnz     loc_1400833BA                                                  ; +0x10, 0x1400832d0\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x16, 0x1400832d6\ntest    rcx, rcx                                                       ; +0x1d, 0x1400832dd\njnz     short loc_140083311                                            ; +0x20, 0x1400832e0\nmov     ecx, 668h; Size                                                ; +0x22, 0x1400832e2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27, 0x1400832e7\nmov     [rsp+28h+arg_0], rax                                           ; +0x2c, 0x1400832ec\nmov     rcx, rax                                                       ; +0x31, 0x1400832f1\ncall    sub_14017AB00                                                  ; +0x34, 0x1400832f4\nnop                                                                    ; +0x39, 0x1400832f9\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3a, 0x1400832fa\nmov     rdx, [rax]                                                     ; +0x41, 0x140083301\nmov     rcx, rax                                                       ; +0x44, 0x140083304\ncall    qword ptr [rdx+48h]                                            ; +0x47, 0x140083307\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x4a, 0x14008330a\ncmp     qword ptr [rcx+208h], 0                                        ; +0x51, 0x140083311\njnz     short loc_14008332B                                            ; +0x59, 0x140083319\nlea     rdx, a0122; \"0122\"                                             ; +0x5b, 0x14008331b\ncall    GameManager__getGameVariable                                   ; +0x62, 0x140083322\ntest    al, al                                                         ; +0x67, 0x140083327\njnz     short loc_14008336B                                            ; +0x69, 0x140083329\nmov     rcx, cs:qword_1406C2E88                                        ; +0x6b, 0x14008332b\ntest    rcx, rcx                                                       ; +0x72, 0x140083332\njnz     short loc_140083366                                            ; +0x75, 0x140083335\nmov     ecx, 888h; Size                                                ; +0x77, 0x140083337\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7c, 0x14008333c\nmov     [rsp+28h+arg_0], rax                                           ; +0x81, 0x140083341\nmov     rcx, rax                                                       ; +0x86, 0x140083346\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x89, 0x140083349\nnop                                                                    ; +0x8e, 0x14008334e\nmov     cs:qword_1406C2E88, rax                                        ; +0x8f, 0x14008334f\nmov     rdx, [rax]                                                     ; +0x96, 0x140083356\nmov     rcx, rax                                                       ; +0x99, 0x140083359\ncall    qword ptr [rdx+48h]                                            ; +0x9c, 0x14008335c\nmov     rcx, cs:qword_1406C2E88                                        ; +0x9f, 0x14008335f\ncall    FMODAudioEngine__resumeAllMusic                                ; +0xa6, 0x140083366\nmov     rcx, cs:qword_1406C2E88                                        ; +0xab, 0x14008336b\ntest    rcx, rcx                                                       ; +0xb2, 0x140083372\njnz     short loc_1400833A6                                            ; +0xb5, 0x140083375\nmov     ecx, 888h; Size                                                ; +0xb7, 0x140083377\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xbc, 0x14008337c\nmov     [rsp+28h+arg_0], rax                                           ; +0xc1, 0x140083381\nmov     rcx, rax                                                       ; +0xc6, 0x140083386\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xc9, 0x140083389\nnop                                                                    ; +0xce, 0x14008338e\nmov     cs:qword_1406C2E88, rax                                        ; +0xcf, 0x14008338f\nmov     rdx, [rax]                                                     ; +0xd6, 0x140083396\nmov     rcx, rax                                                       ; +0xd9, 0x140083399\ncall    qword ptr [rdx+48h]                                            ; +0xdc, 0x14008339c\nmov     rcx, cs:qword_1406C2E88                                        ; +0xdf, 0x14008339f\nxor     edx, edx                                                       ; +0xe6, 0x1400833a6\nmov     rcx, [rcx+248h]                                                ; +0xe8, 0x1400833a8\nadd     rsp, 28h                                                       ; +0xef, 0x1400833af\njmp     cs:?setPaused@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@_N@Z; FMOD::ChannelControl::setPaused(bool) ; +0xf3, 0x1400833b3\nadd     rsp, 28h                                                       ; +0xfa, 0x1400833ba\nretn                                                                   ; +0xfe, 0x1400833be", "xrefs": ["FMODAudioEngine::start @ 0x1400552e8", "<???> @ 0x1406c6a98"], "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"}