	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v10_0_crtc_irq
_dce_v10_0_crtc_irq:                    ## @dce_v10_0_crtc_irq
	.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, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	(%rdx), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leal	-1(%rax), %ebx
	movq	_interrupt_status_offsets@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rbx,2), %r13
	movl	8(%rax,%r13,4), %edi
	callq	_RREG32
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_amdgpu_display_crtc_idx_to_irq_type
	movq	8(%r12), %rcx
	movl	(%rcx), %edx
	cmpl	$1, %edx
	je	LBB0_4
## %bb.1:
	testl	%edx, %edx
	jne	LBB0_6
## %bb.2:
	movl	%eax, %r12d
	movq	_interrupt_status_offsets@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testl	%r14d, (%rax,%r13,4)
	je	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_dce_v10_0_crtc_vblank_int_ack
	jmp	LBB0_8
LBB0_4:
	movq	_interrupt_status_offsets@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testl	%r14d, 4(%rax,%r13,4)
	je	LBB0_11
## %bb.5:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_dce_v10_0_crtc_vline_int_ack
	jmp	LBB0_12
LBB0_6:
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_14
LBB0_7:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
LBB0_8:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_amdgpu_irq_enabled
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_drm_handle_vblank
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
LBB0_13:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
LBB0_14:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_interrupt_status_offsets,8,3   ## @interrupt_status_offsets
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IH: IH event w/o asserted irq bit?\n"

L_.str.1:                               ## @.str.1
	.asciz	"IH: D%d vblank\n"

L_.str.2:                               ## @.str.2
	.asciz	"IH: D%d vline\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unhandled interrupt: %d %d\n"

	.no_dead_strip	_dce_v10_0_crtc_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_v10_0_crtc_irq
_dce_v10_0_crtc_irq:                    ; @dce_v10_0_crtc_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w25, [x2]
	sub	w19, w25, #1
Lloh0:
	adrp	x26, _interrupt_status_offsets@GOTPAGE
Lloh1:
	ldr	x26, [x26, _interrupt_status_offsets@GOTPAGEOFF]
	ldr	x8, [x26]
	mov	w9, #12
	umaddl	x8, w19, w9, x8
	ldr	w0, [x8, #8]
	bl	_RREG32
	mov	x24, x0
	mov	x0, x20
	mov	x1, x19
	bl	_amdgpu_display_crtc_idx_to_irq_type
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	w8, LBB0_6
; %bb.2:
	mov	x22, x0
	ldr	x8, [x26]
	mov	w9, #12
	mul	x9, x19, x9
	ldr	w8, [x8, x9]
	tst	w8, w24
	b.eq	LBB0_7
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_dce_v10_0_crtc_vblank_int_ack
	b	LBB0_8
LBB0_4:
	ldr	x8, [x26]
	mov	w9, #12
	madd	x8, x19, x9, x8
	ldr	w8, [x8, #4]
	tst	w8, w24
	b.eq	LBB0_11
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_dce_v10_0_crtc_vline_int_ack
	b	LBB0_12
LBB0_6:
	ldr	w9, [x23]
	stp	x9, x8, [sp]
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_7:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_amdgpu_irq_enabled
	cbz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_drm_handle_vblank
LBB0_10:
	str	x25, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
LBB0_12:
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	str	x25, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_DRM_DEBUG
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_interrupt_status_offsets,8,3   ; @interrupt_status_offsets
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IH: IH event w/o asserted irq bit?\n"

l_.str.1:                               ; @.str.1
	.asciz	"IH: D%d vblank\n"

l_.str.2:                               ; @.str.2
	.asciz	"IH: D%d vline\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unhandled interrupt: %d %d\n"

	.no_dead_strip	_dce_v10_0_crtc_irq
.subsections_via_symbols
