	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v10_0_set_pageflip_irq_state
_dce_v10_0_set_pageflip_irq_state:      ## @dce_v10_0_set_pageflip_irq_state
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%edx, (%rdi)
	jbe	LBB0_1
## %bb.2:
	movl	%ecx, %r12d
	movq	_mmGRPH_INTERRUPT_CONTROL@GOTPCREL(%rip), %r14
	movq	_crtc_offsets@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	%edx, %ebx
	movq	(%rax,%rbx,8), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_AMDGPU_IRQ_STATE_DISABLE@GOTPCREL(%rip), %rcx
	movq	(%r15), %rdx
	movq	(%rdx,%rbx,8), %rdi
	addq	(%r14), %rdi
	movq	_GRPH_INTERRUPT_CONTROL__GRPH_PFLIP_INT_MASK_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpl	%r12d, (%rcx)
	jne	LBB0_4
## %bb.3:
	notl	%esi
	andl	%esi, %eax
	movl	%eax, %esi
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	orl	%eax, %esi
LBB0_5:
	callq	_WREG32
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	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_CONTROL,8,3   ## @mmGRPH_INTERRUPT_CONTROL
	.comm	_crtc_offsets,8,3               ## @crtc_offsets
	.comm	_AMDGPU_IRQ_STATE_DISABLE,4,2   ## @AMDGPU_IRQ_STATE_DISABLE
	.comm	_GRPH_INTERRUPT_CONTROL__GRPH_PFLIP_INT_MASK_MASK,4,2 ## @GRPH_INTERRUPT_CONTROL__GRPH_PFLIP_INT_MASK_MASK
	.no_dead_strip	_dce_v10_0_set_pageflip_irq_state
.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_set_pageflip_irq_state
_dce_v10_0_set_pageflip_irq_state:      ; @dce_v10_0_set_pageflip_irq_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cmp	w8, w2
	b.ls	LBB0_3
; %bb.1:
	mov	x19, x3
Lloh0:
	adrp	x20, _mmGRPH_INTERRUPT_CONTROL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mmGRPH_INTERRUPT_CONTROL@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _crtc_offsets@GOTPAGE
Lloh3:
	ldr	x21, [x21, _crtc_offsets@GOTPAGEOFF]
	ldr	x9, [x21]
	mov	w10, w2
	lsl	x22, x10, #3
	ldr	x9, [x9, x22]
	add	x0, x9, x8
	bl	_RREG32
Lloh4:
	adrp	x8, _AMDGPU_IRQ_STATE_DISABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AMDGPU_IRQ_STATE_DISABLE@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x8]
	ldr	x8, [x21]
	ldr	x8, [x8, x22]
	ldr	x9, [x20]
	add	x8, x8, x9
Lloh7:
	adrp	x9, _GRPH_INTERRUPT_CONTROL__GRPH_PFLIP_INT_MASK_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GRPH_INTERRUPT_CONTROL__GRPH_PFLIP_INT_MASK_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w10, w19
	b.ne	LBB0_4
; %bb.2:
	bic	w1, w0, w9
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_DRM_ERROR
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	orr	w1, w9, w0
LBB0_5:
	mov	x0, x8
	bl	_WREG32
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.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_CONTROL,8,3   ; @mmGRPH_INTERRUPT_CONTROL
	.comm	_crtc_offsets,8,3               ; @crtc_offsets
	.comm	_AMDGPU_IRQ_STATE_DISABLE,4,2   ; @AMDGPU_IRQ_STATE_DISABLE
	.comm	_GRPH_INTERRUPT_CONTROL__GRPH_PFLIP_INT_MASK_MASK,4,2 ; @GRPH_INTERRUPT_CONTROL__GRPH_PFLIP_INT_MASK_MASK
	.no_dead_strip	_dce_v10_0_set_pageflip_irq_state
.subsections_via_symbols
