	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_modeset_lock               ## -- Begin function drm_modeset_lock
	.p2align	4, 0x90
_drm_modeset_lock:                      ## @drm_modeset_lock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	(%rsi), %edx
	xorl	%ecx, %ecx
	popq	%rbp
	jmp	_modeset_lock                   ## TAILCALL
LBB0_1:
	xorl	%esi, %esi
	callq	_ww_mutex_lock
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_modeset_lock               ; -- Begin function drm_modeset_lock
	.p2align	2
_drm_modeset_lock:                      ; @drm_modeset_lock
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w2, [x1]
	mov	w3, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_modeset_lock
LBB0_2:
	bl	_ww_mutex_lock
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
