	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_unlock                     ## -- Begin function drm_unlock
	.p2align	4, 0x90
_drm_unlock:                            ## @drm_unlock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	_DRM_KERNEL_CONTEXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_task_pid_nr
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	(%rdx), %r14
	movq	__DRM_STAT_UNLOCKS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	(%rdi), %rax
	movq	%rax, %rdi
	callq	_atomic_inc
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_drm_lock_free
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_unblock_all_signals
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_KERNEL_CONTEXT,8,3         ## @DRM_KERNEL_CONTEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Process %d using kernel context %d\n"

	.comm	_current,4,2                    ## @current
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	__DRM_STAT_UNLOCKS,8,3          ## @_DRM_STAT_UNLOCKS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_unlock                     ; -- Begin function drm_unlock
	.p2align	2
_drm_unlock:                            ; @drm_unlock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _DRM_KERNEL_CONTEXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_KERNEL_CONTEXT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _current@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_task_pid_nr
	mov	x1, x0
	ldr	x2, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	x20, [x2]
	ldr	x8, [x0]
Lloh11:
	adrp	x9, __DRM_STAT_UNLOCKS@GOTPAGE
Lloh12:
	ldr	x9, [x9, __DRM_STAT_UNLOCKS@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_inc
	ldr	x1, [x19]
	mov	x0, x20
	bl	_drm_lock_free
	bl	_unblock_all_signals
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_KERNEL_CONTEXT,8,3         ; @DRM_KERNEL_CONTEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Process %d using kernel context %d\n"

	.comm	_current,4,2                    ; @current
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	__DRM_STAT_UNLOCKS,8,3          ; @_DRM_STAT_UNLOCKS
.subsections_via_symbols
