{"type": "func", "start": 6443179904, "end": 6443180058, "name": "FMOD::System::unlockDSP", "pseudocode": "// \n// FMOD::System::unlockDSP from 0x1800b1f80 to 0x1800b201a (154 bytes)\n// \n// 3 xrefs:\n// > FMOD_System_UnlockDSP @ 0x1800c6fa9\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fccb4\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::unlockDSP(__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_1800E8440(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::unlockDSP\", (__int64)v5);\n    }\n    return v2;\n  }\n  return result;\n}", "assembly": "; \n; FMOD::System::unlockDSP from 0x1800b1f80 to 0x1800b201a (154 bytes)\n; \n; 3 xrefs:\n; > FMOD_System_UnlockDSP @ 0x1800c6fa9\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fccb4\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, 0x1800b1f80\npush    rdi                                                            ; +0x5, 0x1800b1f85\nsub     rsp, 150h                                                      ; +0x6, 0x1800b1f86\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1800b1f8d\nxor     rax, rsp                                                       ; +0x14, 0x1800b1f94\nmov     [rsp+158h+var_18], rax                                         ; +0x17, 0x1800b1f97\nxor     r8d, r8d                                                       ; +0x1f, 0x1800b1f9f\nlea     rdx, [rsp+158h+var_128]                                        ; +0x22, 0x1800b1fa2\nmov     rdi, rcx                                                       ; +0x27, 0x1800b1fa7\ncall    ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x2a, 0x1800b1faa\nmov     ebx, eax                                                       ; +0x2f, 0x1800b1faf\ntest    eax, eax                                                       ; +0x31, 0x1800b1fb1\njnz     short loc_1800B1FC5                                            ; +0x33, 0x1800b1fb3\nmov     rcx, [rsp+158h+var_128]                                        ; +0x35, 0x1800b1fb5\ncall    sub_1800E8440                                                  ; +0x3a, 0x1800b1fba\nmov     ebx, eax                                                       ; +0x3f, 0x1800b1fbf\ntest    eax, eax                                                       ; +0x41, 0x1800b1fc1\njz      short loc_1800B1FF9                                            ; +0x43, 0x1800b1fc3\nmov     rax, cs:off_1801AED20                                          ; +0x45, 0x1800b1fc5\ntest    byte ptr [rax+10h], 80h                                        ; +0x4c, 0x1800b1fcc\njz      short loc_1800B1FF7                                            ; +0x50, 0x1800b1fd0\nlea     rax, [rsp+158h+var_118]                                        ; +0x52, 0x1800b1fd2\nmov     [rsp+158h+var_118], 0                                          ; +0x57, 0x1800b1fd7\nlea     r9, aSystemUnlockds; \"System::unlockDSP\"                       ; +0x5c, 0x1800b1fdc\nmov     [rsp+158h+var_138], rax                                        ; +0x63, 0x1800b1fe3\nmov     r8, rdi                                                        ; +0x68, 0x1800b1fe8\nmov     edx, 1                                                         ; +0x6b, 0x1800b1feb\nmov     ecx, ebx                                                       ; +0x70, 0x1800b1ff0\ncall    sub_1800B20E0                                                  ; +0x72, 0x1800b1ff2\nmov     eax, ebx                                                       ; +0x77, 0x1800b1ff7\nmov     rcx, [rsp+158h+var_18]                                         ; +0x79, 0x1800b1ff9\nxor     rcx, rsp; StackCookie                                          ; +0x81, 0x1800b2001\ncall    __security_check_cookie                                        ; +0x84, 0x1800b2004\nmov     rbx, [rsp+158h+arg_8]                                          ; +0x89, 0x1800b2009\nadd     rsp, 150h                                                      ; +0x91, 0x1800b2011\npop     rdi                                                            ; +0x98, 0x1800b2018\nretn                                                                   ; +0x99, 0x1800b2019", "xrefs": ["FMOD_System_UnlockDSP @ 0x1800c6fa9", "<???> @ 0x180194348", "<???> @ 0x1801fccb4"], "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"}