; ; FMOD::System::lockDSP from 0x1800afaf0 to 0x1800afb8a (154 bytes) ; ; 3 xrefs: ; > FMOD_System_LockDSP @ 0x1800c6d59 ; > @ 0x180194348 ; > @ 0x1801fc888 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x1800afaf0 push rdi ; +0x5, 0x1800afaf5 sub rsp, 150h ; +0x6, 0x1800afaf6 mov rax, cs:__security_cookie ; +0xd, 0x1800afafd xor rax, rsp ; +0x14, 0x1800afb04 mov [rsp+158h+var_18], rax ; +0x17, 0x1800afb07 xor r8d, r8d ; +0x1f, 0x1800afb0f lea rdx, [rsp+158h+var_128] ; +0x22, 0x1800afb12 mov rdi, rcx ; +0x27, 0x1800afb17 call ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x2a, 0x1800afb1a mov ebx, eax ; +0x2f, 0x1800afb1f test eax, eax ; +0x31, 0x1800afb21 jnz short loc_1800AFB35 ; +0x33, 0x1800afb23 mov rcx, [rsp+158h+var_128] ; +0x35, 0x1800afb25 call sub_1800E5CB0 ; +0x3a, 0x1800afb2a mov ebx, eax ; +0x3f, 0x1800afb2f test eax, eax ; +0x41, 0x1800afb31 jz short loc_1800AFB69 ; +0x43, 0x1800afb33 mov rax, cs:off_1801AED20 ; +0x45, 0x1800afb35 test byte ptr [rax+10h], 80h ; +0x4c, 0x1800afb3c jz short loc_1800AFB67 ; +0x50, 0x1800afb40 lea rax, [rsp+158h+var_118] ; +0x52, 0x1800afb42 mov [rsp+158h+var_118], 0 ; +0x57, 0x1800afb47 lea r9, aSystemLockdsp; "System::lockDSP" ; +0x5c, 0x1800afb4c mov [rsp+158h+var_138], rax ; +0x63, 0x1800afb53 mov r8, rdi ; +0x68, 0x1800afb58 mov edx, 1 ; +0x6b, 0x1800afb5b mov ecx, ebx ; +0x70, 0x1800afb60 call sub_1800B20E0 ; +0x72, 0x1800afb62 mov eax, ebx ; +0x77, 0x1800afb67 mov rcx, [rsp+158h+var_18] ; +0x79, 0x1800afb69 xor rcx, rsp; StackCookie ; +0x81, 0x1800afb71 call __security_check_cookie ; +0x84, 0x1800afb74 mov rbx, [rsp+158h+arg_8] ; +0x89, 0x1800afb79 add rsp, 150h ; +0x91, 0x1800afb81 pop rdi ; +0x98, 0x1800afb88 retn ; +0x99, 0x1800afb89