	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v8_0_crtc_irq
_dce_v8_0_crtc_irq:                     ## @dce_v8_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	_mmLB_VBLANK_STATUS@GOTPCREL(%rip), %rax
	movq	_crtc_offsets@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rdi
	addq	(%rax), %rdi
	movq	_LB_VBLANK_STATUS__VBLANK_ACK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WREG32
	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	_mmLB_VLINE_STATUS@GOTPCREL(%rip), %rax
	movq	_crtc_offsets@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rdi
	addq	(%rax), %rdi
	movq	_LB_VLINE_STATUS__VLINE_ACK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WREG32
	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
	.comm	_mmLB_VBLANK_STATUS,8,3         ## @mmLB_VBLANK_STATUS
	.comm	_crtc_offsets,8,3               ## @crtc_offsets
	.comm	_LB_VBLANK_STATUS__VBLANK_ACK_MASK,4,2 ## @LB_VBLANK_STATUS__VBLANK_ACK_MASK
	.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"

	.comm	_mmLB_VLINE_STATUS,8,3          ## @mmLB_VLINE_STATUS
	.comm	_LB_VLINE_STATUS__VLINE_ACK_MASK,4,2 ## @LB_VLINE_STATUS__VLINE_ACK_MASK
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_v8_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_v8_0_crtc_irq
_dce_v8_0_crtc_irq:                     ; @dce_v8_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:
Lloh2:
	adrp	x8, _mmLB_VBLANK_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmLB_VBLANK_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _crtc_offsets@GOTPAGE
Lloh6:
	ldr	x9, [x9, _crtc_offsets@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x9, [x9, x19, lsl #3]
	add	x0, x9, x8
Lloh8:
	adrp	x8, _LB_VBLANK_STATUS__VBLANK_ACK_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LB_VBLANK_STATUS__VBLANK_ACK_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_WREG32
	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:
Lloh11:
	adrp	x8, _mmLB_VLINE_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mmLB_VLINE_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _crtc_offsets@GOTPAGE
Lloh15:
	ldr	x9, [x9, _crtc_offsets@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x9, [x9, x19, lsl #3]
	add	x0, x9, x8
Lloh17:
	adrp	x8, _LB_VLINE_STATUS__VLINE_ACK_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LB_VLINE_STATUS__VLINE_ACK_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_WREG32
	b	LBB0_12
LBB0_6:
	ldr	w9, [x23]
	stp	x9, x8, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_7:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	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]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
LBB0_12:
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	str	x25, [sp]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_interrupt_status_offsets,8,3   ; @interrupt_status_offsets
	.comm	_mmLB_VBLANK_STATUS,8,3         ; @mmLB_VBLANK_STATUS
	.comm	_crtc_offsets,8,3               ; @crtc_offsets
	.comm	_LB_VBLANK_STATUS__VBLANK_ACK_MASK,4,2 ; @LB_VBLANK_STATUS__VBLANK_ACK_MASK
	.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"

	.comm	_mmLB_VLINE_STATUS,8,3          ; @mmLB_VLINE_STATUS
	.comm	_LB_VLINE_STATUS__VLINE_ACK_MASK,4,2 ; @LB_VLINE_STATUS__VLINE_ACK_MASK
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_v8_0_crtc_irq
.subsections_via_symbols
