	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movl	$0, (%rdi)
	cmpl	$0, 4(%rdi)
	je	LBB0_7
## %bb.1:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	28(%r15), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%r13d, %r13d
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$8, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %r12
	cmpl	$0, 4(%r12,%rbx,8)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_drm_core_check_feature
	movq	%rax, %rdi
	callq	_WARN_ON
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_drm_vblank_disable_and_save
	addq	%r13, %r12
	movq	%r12, %rdi
	callq	_wake_up
	movl	4(%r15), %eax
	jmp	LBB0_5
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_7:
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	8(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_DRIVER_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	24(%r15), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vga_client_register
LBB0_11:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	*%rax
LBB0_13:
	movl	8(%r15), %edi
	movq	%r15, %rsi
	callq	_free_irq
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq=%d\n"

	.comm	_DRIVER_LEGACY,4,2              ## @DRIVER_LEGACY
.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldp	w22, w8, [x0]
	str	wzr, [x0]
	cbz	w8, LBB0_7
; %bb.1:
	add	x20, x19, #28
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x21, #0
	mov	w23, #4
Lloh0:
	adrp	x24, _DRIVER_MODESET@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DRIVER_MODESET@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	add	x23, x23, #8
	cmp	x21, w8, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19, #32]
	ldr	w9, [x25, x23]
	cbz	w9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_drm_core_check_feature
	bl	_WARN_ON
	mov	x0, x19
	mov	x1, x21
	bl	_drm_vblank_disable_and_save
	add	x8, x25, x23
	sub	x0, x8, #4
	bl	_wake_up
	ldr	w8, [x19, #4]
	b	LBB0_3
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_7:
	cbz	w22, LBB0_13
; %bb.8:
	ldr	w1, [x19, #8]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
Lloh4:
	adrp	x8, _DRIVER_LEGACY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DRIVER_LEGACY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x19, #24]
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_vga_client_register
LBB0_10:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	blr	x8
LBB0_12:
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_free_irq
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq=%d\n"

	.comm	_DRIVER_LEGACY,4,2              ; @DRIVER_LEGACY
.subsections_via_symbols
