	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_control                    ## -- Begin function drm_control
	.p2align	4, 0x90
_drm_control:                           ## @drm_control
	.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	%rdi, %r14
	movl	(%rsi), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_10
## %bb.2:
	movq	%rsi, %r15
	movq	_DRIVER_HAVE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movl	(%r14), %ebx
	movl	$1, %edi
	movl	$2, %esi
	callq	_DRM_IF_VERSION
	cmpl	%eax, %ebx
	jge	LBB0_6
## %bb.5:
	movl	4(%r15), %ebx
	movq	%r14, %rdi
	callq	_drm_dev_to_irq
	cmpl	%eax, %ebx
	jne	LBB0_10
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_irq_install                ## TAILCALL
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_7:
	movq	_DRIVER_HAVE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_9
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_irq_uninstall              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_HAVE_IRQ,4,2            ## @DRIVER_HAVE_IRQ
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_control                    ; -- Begin function drm_control
	.p2align	2
_drm_control:                           ; @drm_control
	.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, x0
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.2:
	mov	x20, x1
Lloh0:
	adrp	x8, _DRIVER_HAVE_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_HAVE_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbz	w0, LBB0_11
; %bb.3:
Lloh3:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w21, [x19]
	mov	w0, #1
	mov	w1, #2
	bl	_DRM_IF_VERSION
	cmp	w21, w0
	b.ge	LBB0_6
; %bb.5:
	ldr	w20, [x20, #4]
	mov	x0, x19
	bl	_drm_dev_to_irq
	cmp	w20, w0
	b.ne	LBB0_7
LBB0_6:
	mov	x0, x19
	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
	b	_drm_irq_install
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_8:
Lloh9:
	adrp	x8, _DRIVER_HAVE_IRQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRIVER_HAVE_IRQ@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbz	w0, LBB0_11
; %bb.9:
Lloh12:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbz	w0, LBB0_12
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
LBB0_12:
	mov	x0, x19
	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
	b	_drm_irq_uninstall
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_HAVE_IRQ,4,2            ; @DRIVER_HAVE_IRQ
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
