	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_cce_dispatch_write_span
_r128_cce_dispatch_write_span:          ## @r128_cce_dispatch_write_span
	.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
	movq	%rsi, %rbx
	movq	(%rdi), %r13
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movl	(%rbx), %r12d
	leal	-4097(%r12), %eax
	cmpl	$-4097, %eax                    ## imm = 0xEFFF
	ja	LBB0_2
## %bb.1:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_2:
	movq	32(%rbx), %rsi
	leaq	-44(%rbp), %rdi
	movl	$4, %edx
	callq	_DRM_COPY_FROM_USER
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	24(%rbx), %rsi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_DRM_COPY_FROM_USER
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:
	movl	(%rbx), %r14d
	shll	$2, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %r15
	movq	16(%rbx), %rsi
	movq	%rax, %rdi
	movl	%r14d, %edx
	callq	_DRM_COPY_FROM_USER
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%r15, %rdi
LBB0_10:
	callq	_kfree
LBB0_4:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_12:
	cmpq	$0, 8(%rbx)
	je	LBB0_16
## %bb.13:
	movl	(%rbx), %r14d
	shll	$2, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	8(%rbx), %rsi
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r14d, %edx
	callq	_DRM_COPY_FROM_USER
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movq	%r15, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	jmp	LBB0_10
LBB0_16:
	movq	_R128_GMC_WR_MSK_DIS@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	$6, %edi
	callq	_BEGIN_RING
	movq	_R128_CNTL_PAINT_MULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_CCE_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movq	_R128_GMC_BRUSH_SOLID_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r13), %edi
	shll	$8, %edi
	orl	%eax, %edi
	movq	_R128_GMC_SRC_DATATYPE_COLOR@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_R128_ROP3_P@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_R128_GMC_CLR_CMP_CNTL_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	(%r14), %edi
	callq	_OUT_RING
	movl	4(%r13), %edi
	callq	_OUT_RING
	movl	(%r15,%rbx,4), %edi
	callq	_OUT_RING
	movl	-44(%rbp), %edi
	shll	$16, %edi
	orl	-48(%rbp), %edi
	callq	_OUT_RING
	movl	$65537, %edi                    ## imm = 0x10001
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	incq	%rbx
	incl	-44(%rbp)
	cmpq	%rbx, %r12
	jne	LBB0_17
	jmp	LBB0_24
LBB0_18:
	movq	%r15, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_19:
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rbx
	incl	-44(%rbp)
	cmpq	%rbx, %r12
	je	LBB0_23
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r14,%rbx,4)
	je	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	$6, %edi
	callq	_BEGIN_RING
	movq	_R128_CNTL_PAINT_MULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_CCE_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movq	_R128_GMC_BRUSH_SOLID_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r13), %edi
	shll	$8, %edi
	orl	%eax, %edi
	movq	_R128_GMC_SRC_DATATYPE_COLOR@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_R128_ROP3_P@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_R128_GMC_CLR_CMP_CNTL_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_R128_GMC_WR_MSK_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_OUT_RING
	movl	4(%r13), %edi
	callq	_OUT_RING
	movl	(%r15,%rbx,4), %edi
	callq	_OUT_RING
	movl	-44(%rbp), %edi
	shll	$16, %edi
	orl	-48(%rbp), %edi
	callq	_OUT_RING
	movl	$65537, %edi                    ## imm = 0x10001
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	jmp	LBB0_20
LBB0_23:
	movq	%r14, %rdi
	callq	_kfree
LBB0_24:
	movq	%r15, %rdi
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_R128_CNTL_PAINT_MULTI,4,2      ## @R128_CNTL_PAINT_MULTI
	.comm	_R128_GMC_DST_PITCH_OFFSET_CNTL,4,2 ## @R128_GMC_DST_PITCH_OFFSET_CNTL
	.comm	_R128_GMC_BRUSH_SOLID_COLOR,4,2 ## @R128_GMC_BRUSH_SOLID_COLOR
	.comm	_R128_GMC_SRC_DATATYPE_COLOR,4,2 ## @R128_GMC_SRC_DATATYPE_COLOR
	.comm	_R128_ROP3_P,4,2                ## @R128_ROP3_P
	.comm	_R128_GMC_CLR_CMP_CNTL_DIS,4,2  ## @R128_GMC_CLR_CMP_CNTL_DIS
	.comm	_R128_GMC_WR_MSK_DIS,4,2        ## @R128_GMC_WR_MSK_DIS
	.no_dead_strip	_r128_cce_dispatch_write_span
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r128_cce_dispatch_write_span
_r128_cce_dispatch_write_span:          ; @r128_cce_dispatch_write_span
	.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
	mov	x21, x1
	ldr	x23, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w24, [x21]
	mov	w8, #-4097
	add	w9, w24, w8
	cmp	w9, w8
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	ldr	x1, [x21, #32]
	add	x0, sp, #12
	mov	w2, #4
	bl	_DRM_COPY_FROM_USER
	cbnz	x0, LBB0_8
; %bb.3:
	ldr	x1, [x21, #24]
	add	x0, sp, #8
	mov	w2, #4
	bl	_DRM_COPY_FROM_USER
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	w8, [x21]
	lsl	w20, w8, #2
Lloh4:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_kmalloc
	cbz	x0, LBB0_18
; %bb.5:
	mov	x19, x0
	ldr	x1, [x21, #16]
	mov	x2, x20
	bl	_DRM_COPY_FROM_USER
	cbz	x0, LBB0_11
; %bb.6:
	mov	x0, x19
LBB0_7:
	bl	_kfree
LBB0_8:
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
LBB0_11:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	w8, [x21]
	lsl	w22, w8, #2
	ldr	w1, [x25]
	mov	x0, x22
	bl	_kmalloc
	cbz	x0, LBB0_17
; %bb.13:
	mov	x20, x0
	ldr	x1, [x21, #8]
	mov	x2, x22
	bl	_DRM_COPY_FROM_USER
	cbz	x0, LBB0_19
; %bb.14:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	b	LBB0_7
LBB0_15:
Lloh8:
	adrp	x21, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGE
Lloh9:
	ldr	x21, [x21, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGEOFF]
Lloh10:
	adrp	x22, _R128_GMC_BRUSH_SOLID_COLOR@GOTPAGE
Lloh11:
	ldr	x22, [x22, _R128_GMC_BRUSH_SOLID_COLOR@GOTPAGEOFF]
Lloh12:
	adrp	x25, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGE
Lloh13:
	ldr	x25, [x25, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGEOFF]
Lloh14:
	adrp	x26, _R128_ROP3_P@GOTPAGE
Lloh15:
	ldr	x26, [x26, _R128_ROP3_P@GOTPAGEOFF]
Lloh16:
	adrp	x27, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGE
Lloh17:
	ldr	x27, [x27, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGEOFF]
	mov	x28, x19
Lloh18:
	adrp	x20, _R128_GMC_WR_MSK_DIS@GOTPAGE
Lloh19:
	ldr	x20, [x20, _R128_GMC_WR_MSK_DIS@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #6
	bl	_BEGIN_RING
Lloh20:
	adrp	x8, _R128_CNTL_PAINT_MULTI@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R128_CNTL_PAINT_MULTI@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_CCE_PACKET3
	bl	_OUT_RING
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x26]
	orr	w8, w8, w9
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x20]
	orr	w0, w8, w9
	bl	_OUT_RING
	ldr	w0, [x23, #4]
	bl	_OUT_RING
	ldr	w0, [x28], #4
	bl	_OUT_RING
	ldp	w9, w8, [sp, #8]
	orr	w0, w9, w8, lsl #16
	bl	_OUT_RING
	mov	w0, #65537
	bl	_OUT_RING
	bl	_ADVANCE_RING
	ldr	w8, [sp, #12]
	add	w8, w8, #1
	str	w8, [sp, #12]
	subs	x24, x24, #1
	b.ne	LBB0_16
	b	LBB0_24
LBB0_17:
	mov	x0, x19
	bl	_kfree
LBB0_18:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_19:
	mov	x21, #0
	lsl	x22, x24, #2
Lloh25:
	adrp	x26, _R128_GMC_BRUSH_SOLID_COLOR@GOTPAGE
Lloh26:
	ldr	x26, [x26, _R128_GMC_BRUSH_SOLID_COLOR@GOTPAGEOFF]
Lloh27:
	adrp	x27, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGE
Lloh28:
	ldr	x27, [x27, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGEOFF]
Lloh29:
	adrp	x28, _R128_ROP3_P@GOTPAGE
Lloh30:
	ldr	x28, [x28, _R128_ROP3_P@GOTPAGEOFF]
Lloh31:
	adrp	x24, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGE
Lloh32:
	ldr	x24, [x24, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGEOFF]
Lloh33:
	adrp	x25, _R128_GMC_WR_MSK_DIS@GOTPAGE
Lloh34:
	ldr	x25, [x25, _R128_GMC_WR_MSK_DIS@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [sp, #12]
	add	w8, w8, #1
	str	w8, [sp, #12]
	add	x21, x21, #4
	cmp	x22, x21
	b.eq	LBB0_23
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, x21]
	cbz	w8, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	w0, #6
	bl	_BEGIN_RING
Lloh35:
	adrp	x8, _R128_CNTL_PAINT_MULTI@GOTPAGE
Lloh36:
	ldr	x8, [x8, _R128_CNTL_PAINT_MULTI@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_CCE_PACKET3
	bl	_OUT_RING
Lloh38:
	adrp	x8, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x28]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w0, w8, w9
	bl	_OUT_RING
	ldr	w0, [x23, #4]
	bl	_OUT_RING
	ldr	w0, [x19, x21]
	bl	_OUT_RING
	ldp	w9, w8, [sp, #8]
	orr	w0, w9, w8, lsl #16
	bl	_OUT_RING
	mov	w0, #65537
	bl	_OUT_RING
	bl	_ADVANCE_RING
	b	LBB0_20
LBB0_23:
	mov	x0, x20
	bl	_kfree
LBB0_24:
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_R128_CNTL_PAINT_MULTI,4,2      ; @R128_CNTL_PAINT_MULTI
	.comm	_R128_GMC_DST_PITCH_OFFSET_CNTL,4,2 ; @R128_GMC_DST_PITCH_OFFSET_CNTL
	.comm	_R128_GMC_BRUSH_SOLID_COLOR,4,2 ; @R128_GMC_BRUSH_SOLID_COLOR
	.comm	_R128_GMC_SRC_DATATYPE_COLOR,4,2 ; @R128_GMC_SRC_DATATYPE_COLOR
	.comm	_R128_ROP3_P,4,2                ; @R128_ROP3_P
	.comm	_R128_GMC_CLR_CMP_CNTL_DIS,4,2  ; @R128_GMC_CLR_CMP_CNTL_DIS
	.comm	_R128_GMC_WR_MSK_DIS,4,2        ; @R128_GMC_WR_MSK_DIS
	.no_dead_strip	_r128_cce_dispatch_write_span
.subsections_via_symbols
