{"type": "func", "start": 5369245984, "end": 5369246394, "name": "AppDelegate::pauseSound", "pseudocode": "// \n// AppDelegate::pauseSound from 0x140083120 to 0x1400832ba (410 bytes)\n// \n// 2 xrefs:\n// > AppDelegate::applicationDidEnterBackground @ 0x140082df9\n// > <???> @ 0x1406c6a8c\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::pauseSound(AppDelegate *a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rdi\n  __int64 *v4; // rbx\n  FMOD::Channel *v5; // rax\n  FMODAudioEngine *v6; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v7; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v8; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v9; // [rsp+30h] [rbp+8h]\n\n  v2 = 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    v2 = qword_1406C2E88;\n  }\n  FMOD::ChannelControl::setPaused(*(FMOD::ChannelControl **)(v2 + 584), 1);\n  v3 = qword_1406C2E88;\n  if ( a1[2].m_resourceRootPath.m_data.m_smallStorage._Elems[0] )\n  {\n    if ( !qword_1406C2E88 )\n    {\n      v7 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v3 = qword_1406C2E88;\n    }\n    v4 = **(__int64 ***)(v3 + 328);\n    if ( v4 != *(__int64 **)(v3 + 328) )\n    {\n      do\n      {\n        v5 = FMODAudioEngine::channelForChannelID((FMODAudioEngine *)v3, *((_DWORD *)v4 + 6));\n        if ( v5 )\n          FMOD::ChannelControl::setPaused(v5, 1);\n        v4 = (__int64 *)*v4;\n      }\n      while ( v4 != *(__int64 **)(v3 + 328) );\n      v3 = qword_1406C2E88;\n    }\n  }\n  if ( !v3 )\n  {\n    v8 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v3 = qword_1406C2E88;\n  }\n  if ( !*(_BYTE *)(v3 + 616) )\n  {\n    *(_BYTE *)(v3 + 616) = 1;\n    FMOD::System::mixerSuspend(*(FMOD::System **)(v3 + 560));\n    FMOD::System::update(*(FMOD::System **)(v3 + 560));\n    cocos2d::CCNode::pauseSchedulerAndActions((cocos2d::CCNode *)v3);\n    v3 = qword_1406C2E88;\n  }\n  if ( !v3 )\n  {\n    v9 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v3 = qword_1406C2E88;\n  }\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 32LL))(v3);\n}", "assembly": "; \n; AppDelegate::pauseSound from 0x140083120 to 0x1400832ba (410 bytes)\n; \n; 2 xrefs:\n; > AppDelegate::applicationDidEnterBackground @ 0x140082df9\n; > <???> @ 0x1406c6a8c\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_8], rbx                                               ; +0x0, 0x140083120\npush    rdi                                                            ; +0x5, 0x140083125\nsub     rsp, 20h                                                       ; +0x6, 0x140083126\nmov     rbx, rcx                                                       ; +0xa, 0x14008312a\nmov     rcx, cs:qword_1406C2E88                                        ; +0xd, 0x14008312d\ntest    rcx, rcx                                                       ; +0x14, 0x140083134\njnz     short loc_140083168                                            ; +0x17, 0x140083137\nmov     ecx, 888h; Size                                                ; +0x19, 0x140083139\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x14008313e\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x140083143\nmov     rcx, rax                                                       ; +0x28, 0x140083148\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x2b, 0x14008314b\nnop                                                                    ; +0x30, 0x140083150\nmov     cs:qword_1406C2E88, rax                                        ; +0x31, 0x140083151\nmov     rdx, [rax]                                                     ; +0x38, 0x140083158\nmov     rcx, rax                                                       ; +0x3b, 0x14008315b\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x14008315e\nmov     rcx, cs:qword_1406C2E88                                        ; +0x41, 0x140083161\nmov     dl, 1                                                          ; +0x48, 0x140083168\nmov     rcx, [rcx+248h]                                                ; +0x4a, 0x14008316a\ncall    cs:?setPaused@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@_N@Z; FMOD::ChannelControl::setPaused(bool) ; +0x51, 0x140083171\nmov     rdi, cs:qword_1406C2E88                                        ; +0x57, 0x140083177\ncmp     byte ptr [rbx+0E8h], 0                                         ; +0x5e, 0x14008317e\njz      short loc_140083201                                            ; +0x65, 0x140083185\ntest    rdi, rdi                                                       ; +0x67, 0x140083187\njnz     short loc_1400831BB                                            ; +0x6a, 0x14008318a\nmov     ecx, 888h; Size                                                ; +0x6c, 0x14008318c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x71, 0x140083191\nmov     [rsp+28h+arg_0], rax                                           ; +0x76, 0x140083196\nmov     rcx, rax                                                       ; +0x7b, 0x14008319b\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x7e, 0x14008319e\nnop                                                                    ; +0x83, 0x1400831a3\nmov     cs:qword_1406C2E88, rax                                        ; +0x84, 0x1400831a4\nmov     rdx, [rax]                                                     ; +0x8b, 0x1400831ab\nmov     rcx, rax                                                       ; +0x8e, 0x1400831ae\ncall    qword ptr [rdx+48h]                                            ; +0x91, 0x1400831b1\nmov     rdi, cs:qword_1406C2E88                                        ; +0x94, 0x1400831b4\nmov     rbx, [rdi+148h]                                                ; +0x9b, 0x1400831bb\nmov     rbx, [rbx]                                                     ; +0xa2, 0x1400831c2\ncmp     rbx, [rdi+148h]                                                ; +0xa5, 0x1400831c5\njz      short loc_140083201                                            ; +0xac, 0x1400831cc\nxchg    ax, ax                                                         ; +0xae, 0x1400831ce\nmov     edx, [rbx+18h]                                                 ; +0xb0, 0x1400831d0\nmov     rcx, rdi                                                       ; +0xb3, 0x1400831d3\ncall    FMODAudioEngine__channelForChannelID                           ; +0xb6, 0x1400831d6\ntest    rax, rax                                                       ; +0xbb, 0x1400831db\njz      short loc_1400831EB                                            ; +0xbe, 0x1400831de\nmov     dl, 1                                                          ; +0xc0, 0x1400831e0\nmov     rcx, rax                                                       ; +0xc2, 0x1400831e2\ncall    cs:?setPaused@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@_N@Z; FMOD::ChannelControl::setPaused(bool) ; +0xc5, 0x1400831e5\nmov     rax, [rbx]                                                     ; +0xcb, 0x1400831eb\nmov     rbx, rax                                                       ; +0xce, 0x1400831ee\ncmp     rax, [rdi+148h]                                                ; +0xd1, 0x1400831f1\njnz     short loc_1400831D0                                            ; +0xd8, 0x1400831f8\nmov     rdi, cs:qword_1406C2E88                                        ; +0xda, 0x1400831fa\ntest    rdi, rdi                                                       ; +0xe1, 0x140083201\njnz     short loc_140083235                                            ; +0xe4, 0x140083204\nmov     ecx, 888h; Size                                                ; +0xe6, 0x140083206\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xeb, 0x14008320b\nmov     [rsp+28h+arg_0], rax                                           ; +0xf0, 0x140083210\nmov     rcx, rax                                                       ; +0xf5, 0x140083215\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xf8, 0x140083218\nnop                                                                    ; +0xfd, 0x14008321d\nmov     cs:qword_1406C2E88, rax                                        ; +0xfe, 0x14008321e\nmov     rdx, [rax]                                                     ; +0x105, 0x140083225\nmov     rcx, rax                                                       ; +0x108, 0x140083228\ncall    qword ptr [rdx+48h]                                            ; +0x10b, 0x14008322b\nmov     rdi, cs:qword_1406C2E88                                        ; +0x10e, 0x14008322e\ncmp     byte ptr [rdi+268h], 0                                         ; +0x115, 0x140083235\njnz     short loc_14008326F                                            ; +0x11c, 0x14008323c\nmov     byte ptr [rdi+268h], 1                                         ; +0x11e, 0x14008323e\nmov     rcx, [rdi+230h]                                                ; +0x125, 0x140083245\ncall    cs:?mixerSuspend@System@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::System::mixerSuspend(void) ; +0x12c, 0x14008324c\nmov     rcx, [rdi+230h]                                                ; +0x132, 0x140083252\ncall    cs:?update@System@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::System::update(void) ; +0x139, 0x140083259\nmov     rcx, rdi                                                       ; +0x13f, 0x14008325f\ncall    cs:?pauseSchedulerAndActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::pauseSchedulerAndActions(void) ; +0x142, 0x140083262\nmov     rdi, cs:qword_1406C2E88                                        ; +0x148, 0x140083268\ntest    rdi, rdi                                                       ; +0x14f, 0x14008326f\njnz     short loc_1400832A3                                            ; +0x152, 0x140083272\nmov     ecx, 888h; Size                                                ; +0x154, 0x140083274\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x159, 0x140083279\nmov     [rsp+28h+arg_0], rax                                           ; +0x15e, 0x14008327e\nmov     rcx, rax                                                       ; +0x163, 0x140083283\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x166, 0x140083286\nnop                                                                    ; +0x16b, 0x14008328b\nmov     cs:qword_1406C2E88, rax                                        ; +0x16c, 0x14008328c\nmov     rdx, [rax]                                                     ; +0x173, 0x140083293\nmov     rcx, rax                                                       ; +0x176, 0x140083296\ncall    qword ptr [rdx+48h]                                            ; +0x179, 0x140083299\nmov     rdi, cs:qword_1406C2E88                                        ; +0x17c, 0x14008329c\nmov     rax, [rdi]                                                     ; +0x183, 0x1400832a3\nxorps   xmm1, xmm1                                                     ; +0x186, 0x1400832a6\nmov     rcx, rdi                                                       ; +0x189, 0x1400832a9\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x18c, 0x1400832ac\nadd     rsp, 20h                                                       ; +0x191, 0x1400832b1\npop     rdi                                                            ; +0x195, 0x1400832b5\njmp     qword ptr [rax+20h]                                            ; +0x196, 0x1400832b6", "xrefs": ["AppDelegate::applicationDidEnterBackground @ 0x140082df9", "<???> @ 0x1406c6a8c"], "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"}