	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v6_0_pageflip_irq
_dce_v6_0_pageflip_irq:                 ## @dce_v6_0_pageflip_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdx), %ebx
	addl	$-8, %ebx
	sarl	%ebx
	cmpl	8(%rdi), %ebx
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax,%rbx,8), %r15
	movq	_mmGRPH_INTERRUPT_STATUS@GOTPCREL(%rip), %r12
	movq	_crtc_offsets@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	(%r12), %rdi
	callq	_RREG32
	movq	_GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_OCCURRED_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	(%r12), %rdi
	movq	_GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_CLEAR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WREG32
LBB0_4:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_10
## %bb.5:
	movq	(%r14), %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rsi
	movq	_AMDGPU_FLIP_SUBMITTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_6
## %bb.7:
	movq	16(%r15), %r12
	movq	_AMDGPU_FLIP_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	$0, 16(%r15)
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	leaq	8(%r15), %rdi
	callq	_drm_crtc_send_vblank_event
LBB0_9:
	movq	(%r14), %rdi
	callq	_spin_unlock_irqrestore
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_drm_crtc_vblank_put
	movq	%r12, %rdi
	callq	_schedule_work
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	(%r14), %rdi
	callq	_spin_unlock_irqrestore
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid pageflip crtc %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mmGRPH_INTERRUPT_STATUS,8,3    ## @mmGRPH_INTERRUPT_STATUS
	.comm	_crtc_offsets,8,3               ## @crtc_offsets
	.comm	_GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_OCCURRED_MASK,4,2 ## @GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_OCCURRED_MASK
	.comm	_GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_CLEAR_MASK,4,2 ## @GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_CLEAR_MASK
	.comm	_AMDGPU_FLIP_SUBMITTED,8,3      ## @AMDGPU_FLIP_SUBMITTED
L_.str.1:                               ## @.str.1
	.asciz	"amdgpu_crtc->pflip_status = %d != AMDGPU_FLIP_SUBMITTED(%d)\n"

	.comm	_AMDGPU_FLIP_NONE,8,3           ## @AMDGPU_FLIP_NONE
	.no_dead_strip	_dce_v6_0_pageflip_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_v6_0_pageflip_irq
_dce_v6_0_pageflip_irq:                 ; @dce_v6_0_pageflip_irq
	.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
	ldr	w8, [x2]
	sub	w8, w8, #8
	asr	w20, w8, #1
	ldr	w8, [x0, #8]
	cmp	w20, w8
	b.hs	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8, w20, uxtw #3]
Lloh0:
	adrp	x22, _mmGRPH_INTERRUPT_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mmGRPH_INTERRUPT_STATUS@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _crtc_offsets@GOTPAGE
Lloh3:
	ldr	x23, [x23, _crtc_offsets@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	x9, [x9, x20, lsl #3]
	add	x0, x9, x8
	bl	_RREG32
Lloh4:
	adrp	x8, _GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_OCCURRED_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_OCCURRED_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x22]
	ldr	x9, [x23]
	ldr	x9, [x9, x20, lsl #3]
	add	x0, x9, x8
Lloh7:
	adrp	x8, _GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_CLEAR_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_CLEAR_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_WREG32
LBB0_3:
	cbz	x21, LBB0_10
; %bb.4:
	ldr	x0, [x19]
	bl	_spin_lock_irqsave
	ldr	x1, [x21]
Lloh10:
	adrp	x8, _AMDGPU_FLIP_SUBMITTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AMDGPU_FLIP_SUBMITTED@GOTPAGEOFF]
Lloh12:
	ldr	x2, [x8]
	cmp	x1, x2
	b.ne	LBB0_9
; %bb.5:
	ldr	x20, [x21, #16]
Lloh13:
	adrp	x8, _AMDGPU_FLIP_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AMDGPU_FLIP_NONE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x21]
	str	xzr, [x21, #16]
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_7
; %bb.6:
	add	x0, x21, #8
	bl	_drm_crtc_send_vblank_event
LBB0_7:
	ldr	x0, [x19]
	bl	_spin_unlock_irqrestore
	add	x0, x21, #8
	bl	_drm_crtc_vblank_put
	mov	x0, x20
	bl	_schedule_work
	b	LBB0_10
LBB0_8:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_ERROR
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_9:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	x0, [x19]
	bl	_spin_unlock_irqrestore
LBB0_10:
	mov	w0, #0
LBB0_11:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid pageflip crtc %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mmGRPH_INTERRUPT_STATUS,8,3    ; @mmGRPH_INTERRUPT_STATUS
	.comm	_crtc_offsets,8,3               ; @crtc_offsets
	.comm	_GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_OCCURRED_MASK,4,2 ; @GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_OCCURRED_MASK
	.comm	_GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_CLEAR_MASK,4,2 ; @GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_CLEAR_MASK
	.comm	_AMDGPU_FLIP_SUBMITTED,8,3      ; @AMDGPU_FLIP_SUBMITTED
l_.str.1:                               ; @.str.1
	.asciz	"amdgpu_crtc->pflip_status = %d != AMDGPU_FLIP_SUBMITTED(%d)\n"

	.comm	_AMDGPU_FLIP_NONE,8,3           ; @AMDGPU_FLIP_NONE
	.no_dead_strip	_dce_v6_0_pageflip_irq
.subsections_via_symbols
