	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_dm_irq_unregister_interrupt ## -- Begin function amdgpu_dm_irq_unregister_interrupt
	.p2align	4, 0x90
_amdgpu_dm_irq_unregister_interrupt:    ## @amdgpu_dm_irq_unregister_interrupt
	.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	%rdx, %r13
	movq	%rdi, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	movq	%rdx, %rsi
	callq	_validate_irq_unregistration_params
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	leaq	-56(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -56(%rbp)
	movq	_INTERRUPT_CONTEXT_NUMBER@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.2:
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -52(%rbp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_remove_irq_handler
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_4
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_DRM_ERROR
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTERRUPT_CONTEXT_NUMBER,4,2   ## @INTERRUPT_CONTEXT_NUMBER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DM_IRQ: failed to find irq handler:%p for irq_source:%d!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_dm_irq_unregister_interrupt ; -- Begin function amdgpu_dm_irq_unregister_interrupt
	.p2align	2
_amdgpu_dm_irq_unregister_interrupt:    ; @amdgpu_dm_irq_unregister_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	mov	x1, x2
	bl	_validate_irq_unregistration_params
	cbz	w0, LBB0_6
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	w19, [sp, #8]
Lloh0:
	adrp	x22, _INTERRUPT_CONTEXT_NUMBER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INTERRUPT_CONTEXT_NUMBER@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w23, [sp, #12]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_remove_irq_handler
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	ldr	w8, [x22]
	cmp	w23, w8
	b.lt	LBB0_3
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_DRM_ERROR
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_INTERRUPT_CONTEXT_NUMBER,4,2   ; @INTERRUPT_CONTEXT_NUMBER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DM_IRQ: failed to find irq handler:%p for irq_source:%d!\n"

.subsections_via_symbols
