{"type": "func", "start": 5369117136, "end": 5369117483, "name": "FMODAudioEngine::isPersistentMatchPlaying", "pseudocode": "// \n// FMODAudioEngine::isPersistentMatchPlaying from 0x1400639d0 to 0x140063b2b (347 bytes)\n// \n// 4 xrefs:\n// > FMODAudioEngine::loadMusic @ 0x140062f51\n// > FMODAudioEngine::queueStartMusic @ 0x140063759\n// > FMODAudioEngine::updateQueuedMusic @ 0x14006439e\n// > <???> @ 0x140910c7c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:44 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall FMODAudioEngine::isPersistentMatchPlaying(_QWORD *a1, _QWORD *a2, int a3)\n{\n  char v5; // bl\n  _QWORD *v6; // rdi\n  _QWORD *v7; // rax\n  unsigned __int8 v8; // di\n  void *v9; // rcx\n  int v11; // [rsp+30h] [rbp-68h] BYREF\n  int v12; // [rsp+38h] [rbp-60h] BYREF\n  _BYTE v13[16]; // [rsp+40h] [rbp-58h] BYREF\n  _QWORD *v14; // [rsp+50h] [rbp-48h]\n  void *Block[2]; // [rsp+58h] [rbp-40h] BYREF\n  __m128i si128; // [rsp+68h] [rbp-30h]\n\n  v14 = a2;\n  v12 = a3;\n  v5 = 0;\n  v11 = 0;\n  if ( !FMODAudioEngine::isMusicPlaying_1(a1, a3) )\n    goto LABEL_8;\n  v11 = v12;\n  v6 = a1 + 40;\n  if ( sub_140066B50(v6, &v11) )\n  {\n    v7 = (_QWORD *)sub_140068620(v6, v13, &v11);\n    sub_14003F4F0((__int64)Block, *v7 + 40LL);\n  }\n  else\n  {\n    *(_OWORD *)Block = 0;\n    si128 = _mm_load_si128((const __m128i *)&Size);\n    LOBYTE(Block[0]) = 0;\n  }\n  v5 = 3;\n  v11 = 3;\n  if ( !sub_14003D160(Block, a2) && *(_BYTE *)(*(_QWORD *)sub_140068620(v6, v13, &v12) + 73LL) )\n    v8 = 1;\n  else\nLABEL_8:\n    v8 = 0;\n  if ( (v5 & 1) != 0 && si128.m128i_i64[1] > 0xFuLL )\n  {\n    v9 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v9 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v9);\n  }\n  sub_14003D310((__int64)a2);\n  return v8;\n}", "assembly": "; \n; FMODAudioEngine::isPersistentMatchPlaying from 0x1400639d0 to 0x140063b2b (347 bytes)\n; \n; 4 xrefs:\n; > FMODAudioEngine::loadMusic @ 0x140062f51\n; > FMODAudioEngine::queueStartMusic @ 0x140063759\n; > FMODAudioEngine::updateQueuedMusic @ 0x14006439e\n; > <???> @ 0x140910c7c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:44 +0000\n; \npush    rbx                                                            ; +0x0, 0x1400639d0\npush    rsi                                                            ; +0x2, 0x1400639d2\npush    rdi                                                            ; +0x3, 0x1400639d3\nsub     rsp, 80h                                                       ; +0x4, 0x1400639d4\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x1400639db\nxor     rax, rsp                                                       ; +0x12, 0x1400639e2\nmov     [rsp+98h+var_20], rax                                          ; +0x15, 0x1400639e5\nmov     rsi, rdx                                                       ; +0x1a, 0x1400639ea\nmov     rdi, rcx                                                       ; +0x1d, 0x1400639ed\nmov     [rsp+98h+var_48], rdx                                          ; +0x20, 0x1400639f0\nmov     [rsp+98h+var_60], r8d                                          ; +0x25, 0x1400639f5\nxor     ebx, ebx                                                       ; +0x2a, 0x1400639fa\nmov     [rsp+98h+var_68], ebx                                          ; +0x2c, 0x1400639fc\nmov     edx, r8d                                                       ; +0x30, 0x140063a00\ncall    FMODAudioEngine__isMusicPlaying_1                              ; +0x33, 0x140063a03\ntest    al, al                                                         ; +0x38, 0x140063a08\njz      loc_140063AAB                                                  ; +0x3a, 0x140063a0a\nmov     eax, [rsp+98h+var_60]                                          ; +0x40, 0x140063a10\nmov     [rsp+98h+var_68], eax                                          ; +0x44, 0x140063a14\nadd     rdi, 140h                                                      ; +0x48, 0x140063a18\nlea     rdx, [rsp+98h+var_68]                                          ; +0x4f, 0x140063a1f\nmov     rcx, rdi                                                       ; +0x54, 0x140063a24\ncall    sub_140066B50                                                  ; +0x57, 0x140063a27\ntest    rax, rax                                                       ; +0x5c, 0x140063a2c\njz      short loc_140063A56                                            ; +0x5f, 0x140063a2f\nlea     r8, [rsp+98h+var_68]                                           ; +0x61, 0x140063a31\nlea     rdx, [rsp+98h+var_58]                                          ; +0x66, 0x140063a36\nmov     rcx, rdi                                                       ; +0x6b, 0x140063a3b\ncall    sub_140068620                                                  ; +0x6e, 0x140063a3e\nmov     rdx, [rax]                                                     ; +0x73, 0x140063a43\nadd     rdx, 28h ; '('                                                 ; +0x76, 0x140063a46\nlea     rcx, [rsp+98h+Block]                                           ; +0x7a, 0x140063a4a\ncall    sub_14003F4F0                                                  ; +0x7f, 0x140063a4f\njmp     short loc_140063A71                                            ; +0x84, 0x140063a54\nxorps   xmm0, xmm0                                                     ; +0x86, 0x140063a56\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0x89, 0x140063a59\nmovdqa  xmm1, cs:Size                                                  ; +0x8e, 0x140063a5e\nmovdqu  [rsp+98h+var_30], xmm1                                         ; +0x96, 0x140063a66\nmov     byte ptr [rsp+98h+Block], 0                                    ; +0x9c, 0x140063a6c\nmov     ebx, 3                                                         ; +0xa1, 0x140063a71\nmov     [rsp+98h+var_68], ebx                                          ; +0xa6, 0x140063a76\nmov     rdx, rsi; Buf2                                                 ; +0xaa, 0x140063a7a\nlea     rcx, [rsp+98h+Block]; Buf1                                     ; +0xad, 0x140063a7d\ncall    sub_14003D160                                                  ; +0xb2, 0x140063a82\ntest    eax, eax                                                       ; +0xb7, 0x140063a87\njnz     short loc_140063AAB                                            ; +0xb9, 0x140063a89\nlea     r8, [rsp+98h+var_60]                                           ; +0xbb, 0x140063a8b\nlea     rdx, [rsp+98h+var_58]                                          ; +0xc0, 0x140063a90\nmov     rcx, rdi                                                       ; +0xc5, 0x140063a95\ncall    sub_140068620                                                  ; +0xc8, 0x140063a98\nmov     rcx, [rax]                                                     ; +0xcd, 0x140063a9d\ncmp     byte ptr [rcx+49h], 0                                          ; +0xd0, 0x140063aa0\njz      short loc_140063AAB                                            ; +0xd4, 0x140063aa4\nmov     dil, 1                                                         ; +0xd6, 0x140063aa6\njmp     short loc_140063AAE                                            ; +0xd9, 0x140063aa9\nxor     dil, dil                                                       ; +0xdb, 0x140063aab\ntest    bl, 1                                                          ; +0xde, 0x140063aae\njz      short loc_140063B07                                            ; +0xe1, 0x140063ab1\nmov     rdx, qword ptr [rsp+98h+var_30+8]                              ; +0xe3, 0x140063ab3\ncmp     rdx, 0Fh                                                       ; +0xe8, 0x140063ab8\njbe     short loc_140063B07                                            ; +0xec, 0x140063abc\ninc     rdx                                                            ; +0xee, 0x140063abe\nmov     rcx, [rsp+98h+Block]; Block                                    ; +0xf1, 0x140063ac1\nmov     rax, rcx                                                       ; +0xf6, 0x140063ac6\ncmp     rdx, 1000h                                                     ; +0xf9, 0x140063ac9\njb      short loc_140063B01                                            ; +0x100, 0x140063ad0\nadd     rdx, 27h ; '''                                                 ; +0x102, 0x140063ad2\nmov     rcx, [rcx-8]                                                   ; +0x106, 0x140063ad6\nsub     rax, rcx                                                       ; +0x10a, 0x140063ada\nsub     rax, 8                                                         ; +0x10d, 0x140063add\ncmp     rax, 1Fh                                                       ; +0x111, 0x140063ae1\njbe     short loc_140063B01                                            ; +0x115, 0x140063ae5\nmov     [rsp+98h+Reserved], 0; Reserved                                ; +0x117, 0x140063ae7\nxor     r9d, r9d; LineNo                                               ; +0x120, 0x140063af0\nxor     r8d, r8d; FileName                                             ; +0x123, 0x140063af3\nxor     edx, edx; FunctionName                                         ; +0x126, 0x140063af6\nxor     ecx, ecx; Expression                                           ; +0x128, 0x140063af8\ncall    cs:_invoke_watson                                              ; +0x12a, 0x140063afa\ndb 0CCh                                                                ; +0x130, 0x140063b00\ncall    j_j_free                                                       ; +0x131, 0x140063b01\nnop                                                                    ; +0x136, 0x140063b06\nmov     rcx, rsi                                                       ; +0x137, 0x140063b07\ncall    sub_14003D310                                                  ; +0x13a, 0x140063b0a\nmovzx   eax, dil                                                       ; +0x13f, 0x140063b0f\nmov     rcx, [rsp+98h+var_20]                                          ; +0x143, 0x140063b13\nxor     rcx, rsp; StackCookie                                          ; +0x148, 0x140063b18\ncall    __security_check_cookie                                        ; +0x14b, 0x140063b1b\nadd     rsp, 80h                                                       ; +0x150, 0x140063b20\npop     rdi                                                            ; +0x157, 0x140063b27\npop     rsi                                                            ; +0x158, 0x140063b28\npop     rbx                                                            ; +0x159, 0x140063b29\nretn                                                                   ; +0x15a, 0x140063b2a", "xrefs": ["FMODAudioEngine::loadMusic @ 0x140062f51", "FMODAudioEngine::queueStartMusic @ 0x140063759", "FMODAudioEngine::updateQueuedMusic @ 0x14006439e", "<???> @ 0x140910c7c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}