	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i810_dma_dispatch_clear
_i810_dma_dispatch_clear:               ## @i810_dma_dispatch_clear
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rcx
	movq	24(%rcx), %rax
	movl	(%rax), %r14d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$1, 4(%rcx)
	jne	LBB0_1
## %bb.2:
	movq	_I810_FRONT@GOTPCREL(%rip), %rcx
	movl	%esi, %ebx
	movl	(%rcx), %r8d
	movq	_I810_BACK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	orl	%r8d, %esi
	notl	%esi
	andl	%ebx, %esi
	movl	%r8d, %ecx
	andl	%ebx, %ecx
	cmovnel	%edx, %ecx
	orl	%esi, %ecx
	andl	%ebx, %edx
	cmovnel	%r8d, %edx
	orl	%ecx, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
LBB0_3:
	movq	8(%rax), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	callq	_i810_kernel_lost_context
	movq	_I810_NR_SAREA_CLIPRECTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	cmpl	%r12d, %r14d
	cmovll	%r14d, %r12d
	testl	%r12d, %r12d
	jg	LBB0_4
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %r15
	decl	%r12d
	je	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	movl	4(%r15), %ecx
	movl	8(%r15), %esi
	movl	%esi, %r13d
	subl	%eax, %r13d
	movl	12(%r15), %edx
	movl	%edx, %r14d
	subl	%ecx, %r14d
	setb	%bl
	cmpl	%eax, %esi
	jb	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%bl, %bl
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpl	8(%rdi), %esi
	ja	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpl	12(%rsi), %edx
	ja	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%r13d, %r13d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	imull	%ebx, %ecx
	leal	(%rcx,%rax,2), %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_I810_FRONT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	$6, %edi
	callq	_BEGIN_LP_RING
	movq	_BR00_BITBLT_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BR00_OP_COLOR_BLT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	$3, %edi
	callq	_OUT_RING
	movq	_BR13_SOLID_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	%ebx, %edi
	orl	$15728640, %edi                 ## imm = 0xF00000
	callq	_OUT_RING
	movl	%r14d, %edi
	shll	$16, %edi
	orl	%r13d, %edi
	callq	_OUT_RING
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_OUT_RING
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_OUT_RING
	xorl	%edi, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_LP_RING
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_I810_BACK@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	movl	%edx, %ebx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$6, %edi
	callq	_BEGIN_LP_RING
	movq	_BR00_BITBLT_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BR00_OP_COLOR_BLT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	$3, %edi
	callq	_OUT_RING
	movq	_BR13_SOLID_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	-48(%rbp), %edi                 ## 4-byte Folded Reload
	orl	$15728640, %edi                 ## imm = 0xF00000
	callq	_OUT_RING
	movl	%r14d, %edi
	shll	$16, %edi
	orl	%r13d, %edi
	callq	_OUT_RING
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	addl	%ebx, %edi
	callq	_OUT_RING
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_OUT_RING
	xorl	%edi, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_LP_RING
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_I810_DEPTH@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$6, %edi
	callq	_BEGIN_LP_RING
	movq	_BR00_BITBLT_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BR00_OP_COLOR_BLT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	$3, %edi
	callq	_OUT_RING
	movq	_BR13_SOLID_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	-48(%rbp), %edi                 ## 4-byte Folded Reload
	orl	$15728640, %edi                 ## imm = 0xF00000
	callq	_OUT_RING
	shll	$16, %r14d
	orl	%r13d, %r14d
	movl	%r14d, %edi
	callq	_OUT_RING
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	20(%rax), %ebx
	movl	%ebx, %edi
	callq	_OUT_RING
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_OUT_RING
	xorl	%edi, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_LP_RING
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.comm	_I810_FRONT,4,2                 ## @I810_FRONT
	.comm	_I810_BACK,4,2                  ## @I810_BACK
	.comm	_I810_NR_SAREA_CLIPRECTS,4,2    ## @I810_NR_SAREA_CLIPRECTS
	.comm	_BR00_BITBLT_CLIENT,4,2         ## @BR00_BITBLT_CLIENT
	.comm	_BR00_OP_COLOR_BLT,4,2          ## @BR00_OP_COLOR_BLT
	.comm	_BR13_SOLID_PATTERN,4,2         ## @BR13_SOLID_PATTERN
	.comm	_I810_DEPTH,4,2                 ## @I810_DEPTH
	.no_dead_strip	_i810_dma_dispatch_clear
.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_clear
_i810_dma_dispatch_clear:               ; @i810_dma_dispatch_clear
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	mov	x20, x2
	mov	x21, x1
	ldr	x24, [x0]
	ldr	x8, [x24, #24]
	ldr	w19, [x8]
	ldr	w9, [x24, #4]
Lloh0:
	adrp	x10, _I810_FRONT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I810_FRONT@GOTPAGEOFF]
Lloh2:
	adrp	x11, _I810_BACK@GOTPAGE
Lloh3:
	ldr	x11, [x11, _I810_BACK@GOTPAGEOFF]
	cmp	w9, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x10]
	mov	x26, x11
	ldr	w10, [x11]
	orr	w11, w10, w9
	bic	w11, w21, w11
	tst	w9, w21
	csel	w12, wzr, w10, eq
	orr	w11, w11, w12
	tst	w10, w21
	csel	w9, wzr, w9, eq
	orr	w21, w11, w9
	b	LBB0_3
LBB0_2:
	mov	x26, x11
LBB0_3:
	ldr	x27, [x8, #8]
	ldr	w28, [x24]
	bl	_i810_kernel_lost_context
Lloh4:
	adrp	x8, _I810_NR_SAREA_CLIPRECTS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _I810_NR_SAREA_CLIPRECTS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w19, w8
	csel	w25, w19, w8, lt
	cmp	w25, #1
	b.lt	LBB0_15
; %bb.4:
Lloh7:
	adrp	x19, _BR13_SOLID_PATTERN@GOTPAGE
Lloh8:
	ldr	x19, [x19, _BR13_SOLID_PATTERN@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, #16
	subs	w25, w25, #1
	b.eq	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x27]
	ldp	w12, w10, [x27, #8]
	subs	w11, w12, w8
	ccmp	w10, w9, #0, hs
	b.lo	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w13, [x24, #8]
	cmp	w12, w13
	b.hi	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w12, [x24, #12]
	cmp	w10, w12
	b.hi	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w10, w10, w9
	lsl	w11, w11, #1
	mul	w9, w9, w28
	add	w22, w9, w8, lsl #1
Lloh9:
	adrp	x8, _I810_FRONT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I810_FRONT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w23, w11, w10, lsl #16
	tst	w8, w21
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #6
	bl	_BEGIN_LP_RING
Lloh12:
	adrp	x8, _BR00_BITBLT_CLIENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BR00_BITBLT_CLIENT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _BR00_OP_COLOR_BLT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BR00_OP_COLOR_BLT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	orr	w0, w8, #0x3
	bl	_OUT_RING
	ldr	w8, [x19]
	orr	w8, w28, w8
	orr	w0, w8, #0xf00000
	bl	_OUT_RING
	mov	x0, x23
	bl	_OUT_RING
	mov	x0, x22
	bl	_OUT_RING
	mov	x0, x20
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
	bl	_ADVANCE_LP_RING
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #6
	bl	_BEGIN_LP_RING
Lloh18:
	adrp	x8, _BR00_BITBLT_CLIENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BR00_BITBLT_CLIENT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _BR00_OP_COLOR_BLT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BR00_OP_COLOR_BLT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
	orr	w0, w8, #0x3
	bl	_OUT_RING
	ldr	w8, [x19]
	orr	w8, w28, w8
	orr	w0, w8, #0xf00000
	bl	_OUT_RING
	mov	x0, x23
	bl	_OUT_RING
	ldr	w8, [x24, #16]
	add	w0, w8, w22
	bl	_OUT_RING
	mov	x0, x20
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
	bl	_ADVANCE_LP_RING
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh24:
	adrp	x8, _I810_DEPTH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _I810_DEPTH@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #6
	bl	_BEGIN_LP_RING
Lloh27:
	adrp	x8, _BR00_BITBLT_CLIENT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BR00_BITBLT_CLIENT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _BR00_OP_COLOR_BLT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _BR00_OP_COLOR_BLT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
	orr	w0, w8, #0x3
	bl	_OUT_RING
	ldr	w8, [x19]
	orr	w8, w28, w8
	orr	w0, w8, #0xf00000
	bl	_OUT_RING
	mov	x0, x23
	bl	_OUT_RING
	ldr	w8, [x24, #20]
	add	w0, w8, w22
	bl	_OUT_RING
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
	bl	_ADVANCE_LP_RING
	b	LBB0_5
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.comm	_I810_FRONT,4,2                 ; @I810_FRONT
	.comm	_I810_BACK,4,2                  ; @I810_BACK
	.comm	_I810_NR_SAREA_CLIPRECTS,4,2    ; @I810_NR_SAREA_CLIPRECTS
	.comm	_BR00_BITBLT_CLIENT,4,2         ; @BR00_BITBLT_CLIENT
	.comm	_BR00_OP_COLOR_BLT,4,2          ; @BR00_OP_COLOR_BLT
	.comm	_BR13_SOLID_PATTERN,4,2         ; @BR13_SOLID_PATTERN
	.comm	_I810_DEPTH,4,2                 ; @I810_DEPTH
	.no_dead_strip	_i810_dma_dispatch_clear
.subsections_via_symbols
