	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_setclientcap
_drm_setclientcap:                      ## @drm_setclientcap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_17
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	cmpl	$0, 8(%r14)
	je	LBB0_17
## %bb.4:
	movl	4(%r15), %eax
	cmpl	$2, %eax
	jge	LBB0_17
## %bb.5:
	movl	%eax, 16(%r14)
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_6:
	movl	4(%r15), %eax
	cmpl	$2, %eax
	jge	LBB0_17
## %bb.7:
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_8:
	movl	4(%r15), %eax
	cmpl	$2, %eax
	jge	LBB0_17
## %bb.9:
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_10:
	movq	_DRIVER_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpb	$88, (%rax)
	movl	4(%r15), %eax
	jne	LBB0_16
## %bb.12:
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.13:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
LBB0_14:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_15:
	movl	4(%r15), %eax
	cmpl	$2, %eax
	jge	LBB0_17
	jmp	LBB0_21
LBB0_16:
	cmpl	$3, %eax
	jl	LBB0_20
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_18:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%eax, 8(%r14)
	movl	%eax, 4(%r14)
LBB0_21:
	movl	%eax, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRIVER_ATOMIC,4,2              ## @DRIVER_ATOMIC
	.comm	_current,8,3                    ## @current
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"broken atomic modeset userspace detected, disabling atomic\n"

	.no_dead_strip	_drm_setclientcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_setclientcap
_drm_setclientcap:                      ; @drm_setclientcap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drm_core_check_feature
	cbz	w0, LBB0_18
; %bb.1:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_15
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_15
; %bb.4:
	ldr	w8, [x20, #4]
	cmp	w8, #2
	b.ge	LBB0_15
; %bb.5:
	mov	w0, #0
	str	w8, [x19, #16]
	b	LBB0_20
LBB0_6:
	ldr	w8, [x20, #4]
	cmp	w8, #2
	b.ge	LBB0_15
; %bb.7:
	mov	w0, #0
	str	w8, [x19, #4]
	b	LBB0_20
LBB0_8:
	ldr	w8, [x20, #4]
	cmp	w8, #2
	b.ge	LBB0_15
; %bb.9:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_20
LBB0_10:
Lloh5:
	adrp	x8, _DRIVER_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRIVER_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_drm_core_check_feature
	cbz	w0, LBB0_18
; %bb.11:
Lloh8:
	adrp	x8, _current@GOTPAGE
Lloh9:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldrb	w9, [x8]
	ldr	w8, [x20, #4]
	cmp	w9, #88
	ccmp	w8, #1, #0, eq
	b.eq	LBB0_17
; %bb.12:
	cmp	w8, #3
	b.ge	LBB0_15
; %bb.13:
	mov	w0, #0
	stp	w8, w8, [x19, #4]
	str	w8, [x19, #12]
	b	LBB0_20
LBB0_14:
	ldr	w8, [x20, #4]
	cmp	w8, #2
	b.lt	LBB0_16
LBB0_15:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_16:
	mov	w0, #0
	str	w8, [x19, #12]
	b	LBB0_20
LBB0_17:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_18:
Lloh15:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
                                        ; -- End function
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRIVER_ATOMIC,4,2              ; @DRIVER_ATOMIC
	.comm	_current,8,3                    ; @current
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"broken atomic modeset userspace detected, disabling atomic\n"

	.no_dead_strip	_drm_setclientcap
.subsections_via_symbols
