	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_irq_uninstall              ## -- Begin function drm_irq_uninstall
	.p2align	4, 0x90
_drm_irq_uninstall:                     ## @drm_irq_uninstall
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_DRIVER_HAVE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	48(%r15), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	(%r15), %r12d
	movl	$0, (%r15)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	cmpl	$0, 4(%r15)
	je	LBB0_7
## %bb.3:
	leaq	20(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 4(%r15)
	jle	LBB0_6
## %bb.4:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rdi
	addq	%r13, %rdi
	callq	_DRM_WAKEUP
	movq	32(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	movq	8(%r15), %rax
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	*8(%rax)
	movq	24(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	4(%r15), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.8:
	movq	%r15, %rdi
	callq	_drm_dev_to_irq
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	16(%r15), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vga_client_register
LBB0_10:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	*%rax
LBB0_12:
	movq	%r15, %rdi
	callq	_drm_dev_to_irq
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_free_irq
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_HAVE_IRQ,4,2            ## @DRIVER_HAVE_IRQ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq=%d\n"

	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_irq_uninstall              ; -- Begin function drm_irq_uninstall
	.p2align	2
_drm_irq_uninstall:                     ; @drm_irq_uninstall
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _DRIVER_HAVE_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_HAVE_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drm_core_check_feature
	cbz	w0, LBB0_12
; %bb.1:
	add	x20, x19, #48
	mov	x0, x20
	bl	_mutex_lock
	ldr	w22, [x19]
	str	wzr, [x19]
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_6
; %bb.2:
	add	x20, x19, #20
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, #0
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x0, x8, x23
	bl	_DRM_WAKEUP
	ldr	x8, [x19, #32]
	str	xzr, [x8, x21, lsl #3]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x21
	blr	x8
	ldr	x8, [x19, #24]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	add	x23, x23, #4
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_6:
	cbz	w22, LBB0_12
; %bb.7:
	mov	x0, x19
	bl	_drm_dev_to_irq
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
Lloh5:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	w0, [x19, #16]
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_vga_client_register
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	blr	x8
LBB0_11:
	mov	x0, x19
	bl	_drm_dev_to_irq
	mov	x1, x19
	bl	_free_irq
	mov	w0, #0
	b	LBB0_13
LBB0_12:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_HAVE_IRQ,4,2            ; @DRIVER_HAVE_IRQ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq=%d\n"

	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
.subsections_via_symbols
