{"type": "func", "start": 6443240560, "end": 6443240625, "name": "FMOD_OS_CriticalSection_IsLocked", "pseudocode": "// \n// FMOD_OS_CriticalSection_IsLocked from 0x1800c0c70 to 0x1800c0cb1 (65 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fdb0c\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_OS_CriticalSection_IsLocked(__int64 a1, bool *a2)\n{\n  *a2 = *(_DWORD *)(a1 + 8) != -1 && GetCurrentThreadId() == *(_DWORD *)(a1 + 16);\n  return 0;\n}", "assembly": "; \n; FMOD_OS_CriticalSection_IsLocked from 0x1800c0c70 to 0x1800c0cb1 (65 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fdb0c\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_0], rbx                                               ; +0x0, 0x1800c0c70\npush    rdi                                                            ; +0x5, 0x1800c0c75\nsub     rsp, 20h                                                       ; +0x6, 0x1800c0c76\ncmp     dword ptr [rcx+8], 0FFFFFFFFh                                  ; +0xa, 0x1800c0c7a\nmov     rbx, rdx                                                       ; +0xe, 0x1800c0c7e\nmov     rdi, rcx                                                       ; +0x11, 0x1800c0c81\njz      short loc_1800C0CA1                                            ; +0x14, 0x1800c0c84\ncall    cs:GetCurrentThreadId                                          ; +0x16, 0x1800c0c86\ncmp     eax, [rdi+10h]                                                 ; +0x1c, 0x1800c0c8c\nsetz    al                                                             ; +0x1f, 0x1800c0c8f\nmov     [rbx], al                                                      ; +0x22, 0x1800c0c92\nxor     eax, eax                                                       ; +0x24, 0x1800c0c94\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x26, 0x1800c0c96\nadd     rsp, 20h                                                       ; +0x2b, 0x1800c0c9b\npop     rdi                                                            ; +0x2f, 0x1800c0c9f\nretn                                                                   ; +0x30, 0x1800c0ca0\nmov     byte ptr [rdx], 0                                              ; +0x31, 0x1800c0ca1\nxor     eax, eax                                                       ; +0x34, 0x1800c0ca4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x36, 0x1800c0ca6\nadd     rsp, 20h                                                       ; +0x3b, 0x1800c0cab\npop     rdi                                                            ; +0x3f, 0x1800c0caf\nretn                                                                   ; +0x40, 0x1800c0cb0", "xrefs": ["<???> @ 0x180194348", "<???> @ 0x1801fdb0c"], "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"}