{"type": "func", "start": 6443170544, "end": 6443170698, "name": "FMOD::System::lockDSP", "pseudocode": "// \n// FMOD::System::lockDSP from 0x1800afaf0 to 0x1800afb8a (154 bytes)\n// \n// 3 xrefs:\n// > FMOD_System_LockDSP @ 0x1800c6d59\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fc888\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__int64 __fastcall FMOD::System::lockDSP(__int64 a1)\n{\n  int v1; // edi\n  unsigned int v2; // ebx\n  __int64 result; // rax\n  __int64 v4; // [rsp+30h] [rbp-128h] BYREF\n  _BYTE v5[256]; // [rsp+40h] [rbp-118h] BYREF\n\n  v1 = a1;\n  v2 = FMOD::SystemI::validate(a1, &v4, 0);\n  if ( v2 || (result = sub_1800E5CB0(v4), (v2 = result) != 0) )\n  {\n    if ( *((char *)off_1801AED20 + 16) < 0 )\n    {\n      v5[0] = 0;\n      sub_1800B20E0(v2, 1, v1, (unsigned int)\"System::lockDSP\", (__int64)v5);\n    }\n    return v2;\n  }\n  return result;\n}", "assembly": "; \n; FMOD::System::lockDSP from 0x1800afaf0 to 0x1800afb8a (154 bytes)\n; \n; 3 xrefs:\n; > FMOD_System_LockDSP @ 0x1800c6d59\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fc888\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, 0x1800afaf0\npush    rdi                                                            ; +0x5, 0x1800afaf5\nsub     rsp, 150h                                                      ; +0x6, 0x1800afaf6\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1800afafd\nxor     rax, rsp                                                       ; +0x14, 0x1800afb04\nmov     [rsp+158h+var_18], rax                                         ; +0x17, 0x1800afb07\nxor     r8d, r8d                                                       ; +0x1f, 0x1800afb0f\nlea     rdx, [rsp+158h+var_128]                                        ; +0x22, 0x1800afb12\nmov     rdi, rcx                                                       ; +0x27, 0x1800afb17\ncall    ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x2a, 0x1800afb1a\nmov     ebx, eax                                                       ; +0x2f, 0x1800afb1f\ntest    eax, eax                                                       ; +0x31, 0x1800afb21\njnz     short loc_1800AFB35                                            ; +0x33, 0x1800afb23\nmov     rcx, [rsp+158h+var_128]                                        ; +0x35, 0x1800afb25\ncall    sub_1800E5CB0                                                  ; +0x3a, 0x1800afb2a\nmov     ebx, eax                                                       ; +0x3f, 0x1800afb2f\ntest    eax, eax                                                       ; +0x41, 0x1800afb31\njz      short loc_1800AFB69                                            ; +0x43, 0x1800afb33\nmov     rax, cs:off_1801AED20                                          ; +0x45, 0x1800afb35\ntest    byte ptr [rax+10h], 80h                                        ; +0x4c, 0x1800afb3c\njz      short loc_1800AFB67                                            ; +0x50, 0x1800afb40\nlea     rax, [rsp+158h+var_118]                                        ; +0x52, 0x1800afb42\nmov     [rsp+158h+var_118], 0                                          ; +0x57, 0x1800afb47\nlea     r9, aSystemLockdsp; \"System::lockDSP\"                          ; +0x5c, 0x1800afb4c\nmov     [rsp+158h+var_138], rax                                        ; +0x63, 0x1800afb53\nmov     r8, rdi                                                        ; +0x68, 0x1800afb58\nmov     edx, 1                                                         ; +0x6b, 0x1800afb5b\nmov     ecx, ebx                                                       ; +0x70, 0x1800afb60\ncall    sub_1800B20E0                                                  ; +0x72, 0x1800afb62\nmov     eax, ebx                                                       ; +0x77, 0x1800afb67\nmov     rcx, [rsp+158h+var_18]                                         ; +0x79, 0x1800afb69\nxor     rcx, rsp; StackCookie                                          ; +0x81, 0x1800afb71\ncall    __security_check_cookie                                        ; +0x84, 0x1800afb74\nmov     rbx, [rsp+158h+arg_8]                                          ; +0x89, 0x1800afb79\nadd     rsp, 150h                                                      ; +0x91, 0x1800afb81\npop     rdi                                                            ; +0x98, 0x1800afb88\nretn                                                                   ; +0x99, 0x1800afb89", "xrefs": ["FMOD_System_LockDSP @ 0x1800c6d59", "<???> @ 0x180194348", "<???> @ 0x1801fc888"], "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"}