	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i810_dma_dispatch_flip
_i810_dma_dispatch_flip:                ## @i810_dma_dispatch_flip
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movl	(%r15), %r14d
	movl	4(%r15), %esi
	movq	16(%r15), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	%rbx, %rdi
	callq	_i810_kernel_lost_context
	movl	$2, %edi
	callq	_BEGIN_LP_RING
	movq	_INST_PARSER_CLIENT@GOTPCREL(%rip), %rax
	movq	_INST_OP_FLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_INST_FLUSH_MAP_CACHE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_OUT_RING
	xorl	%edi, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_LP_RING
	movq	_I810_DEST_SETUP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	$2, %edi
	callq	_BEGIN_LP_RING
	movq	_CMD_OP_FRONTBUFFER_INFO@GOTPCREL(%rip), %rax
	shll	$5, %r14d
	orl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_OUT_RING
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	cmpl	$0, 4(%r15)
	sete	%bl
	setne	%al
	movl	8(%r15,%rax,4), %edi
	callq	_OUT_RING
	movl	%ebx, 4(%r15)
	xorl	%edi, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_LP_RING
	movl	$2, %edi
	callq	_BEGIN_LP_RING
	movq	_CMD_OP_WAIT_FOR_EVENT@GOTPCREL(%rip), %rax
	movq	_WAIT_FOR_PLANE_A_FLIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_OUT_RING
	xorl	%edi, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_LP_RING
	movl	4(%r15), %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"page=%d pfCurrentPage=%d\n"

	.comm	_INST_PARSER_CLIENT,4,2         ## @INST_PARSER_CLIENT
	.comm	_INST_OP_FLUSH,4,2              ## @INST_OP_FLUSH
	.comm	_INST_FLUSH_MAP_CACHE,4,2       ## @INST_FLUSH_MAP_CACHE
	.comm	_I810_DEST_SETUP_SIZE,4,2       ## @I810_DEST_SETUP_SIZE
	.comm	_CMD_OP_FRONTBUFFER_INFO,4,2    ## @CMD_OP_FRONTBUFFER_INFO
	.comm	_CMD_OP_WAIT_FOR_EVENT,4,2      ## @CMD_OP_WAIT_FOR_EVENT
	.comm	_WAIT_FOR_PLANE_A_FLIP,4,2      ## @WAIT_FOR_PLANE_A_FLIP
	.no_dead_strip	_i810_dma_dispatch_flip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i810_dma_dispatch_flip
_i810_dma_dispatch_flip:                ; @i810_dma_dispatch_flip
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldp	w21, w1, [x20]
	ldr	x8, [x20, #16]
	ldr	w2, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	mov	x0, x19
	bl	_i810_kernel_lost_context
	mov	w0, #2
	bl	_BEGIN_LP_RING
Lloh2:
	adrp	x8, _INST_PARSER_CLIENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INST_PARSER_CLIENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _INST_OP_FLUSH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INST_OP_FLUSH@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _INST_FLUSH_MAP_CACHE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INST_FLUSH_MAP_CACHE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
	bl	_ADVANCE_LP_RING
Lloh11:
	adrp	x8, _I810_DEST_SETUP_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I810_DEST_SETUP_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	add	w0, w8, #2
	bl	_BEGIN_LP_RING
Lloh14:
	adrp	x8, _CMD_OP_FRONTBUFFER_INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMD_OP_FRONTBUFFER_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w0, w8, w21, lsl #5
	bl	_OUT_RING
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cset	w19, eq
	mov	w8, #12
	mov	w9, #8
	csel	x8, x9, x8, eq
	ldr	w0, [x20, x8]
	bl	_OUT_RING
	str	w19, [x20, #4]
	mov	w0, #0
	bl	_OUT_RING
	bl	_ADVANCE_LP_RING
	mov	w0, #2
	bl	_BEGIN_LP_RING
Lloh17:
	adrp	x8, _CMD_OP_WAIT_FOR_EVENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CMD_OP_WAIT_FOR_EVENT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _WAIT_FOR_PLANE_A_FLIP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WAIT_FOR_PLANE_A_FLIP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
	bl	_ADVANCE_LP_RING
	ldr	w8, [x20, #4]
	ldr	x9, [x20, #16]
	str	w8, [x9]
	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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"page=%d pfCurrentPage=%d\n"

	.comm	_INST_PARSER_CLIENT,4,2         ; @INST_PARSER_CLIENT
	.comm	_INST_OP_FLUSH,4,2              ; @INST_OP_FLUSH
	.comm	_INST_FLUSH_MAP_CACHE,4,2       ; @INST_FLUSH_MAP_CACHE
	.comm	_I810_DEST_SETUP_SIZE,4,2       ; @I810_DEST_SETUP_SIZE
	.comm	_CMD_OP_FRONTBUFFER_INFO,4,2    ; @CMD_OP_FRONTBUFFER_INFO
	.comm	_CMD_OP_WAIT_FOR_EVENT,4,2      ; @CMD_OP_WAIT_FOR_EVENT
	.comm	_WAIT_FOR_PLANE_A_FLIP,4,2      ; @WAIT_FOR_PLANE_A_FLIP
	.no_dead_strip	_i810_dma_dispatch_flip
.subsections_via_symbols
