	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_cce_dispatch_write_pixels
_r128_cce_dispatch_write_pixels:        ## @r128_cce_dispatch_write_pixels
	.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	$24, %rsp
	.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), %r12
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movl	(%rbx), %r15d
	leal	-4097(%r15), %eax
	cmpl	$-4097, %eax                    ## imm = 0xEFFF
	ja	LBB0_2
## %bb.1:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leal	(,%r15,4), %r14d
	movq	32(%rbx), %rdi
	movl	%r14d, %esi
	callq	_memdup_user
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	jmp	LBB0_4
LBB0_5:
	movq	24(%rbx), %rdi
	movl	%r14d, %esi
	callq	_memdup_user
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r13, %rdi
	jmp	LBB0_7
LBB0_8:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	shll	$2, %esi
	movq	16(%rbx), %rdi
	callq	_memdup_user
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_kfree
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_7:
	callq	_kfree
	movq	%r14, %rdi
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.13:
	movl	(%rbx), %esi
	callq	_memdup_user
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.21:
	movq	%r13, %rdi
	callq	_kfree
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	%rbx, %rdi
	jmp	LBB0_4
LBB0_11:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ## =>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	(%r12), %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(%r12), %edi
	callq	_OUT_RING
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %edi
	callq	_OUT_RING
	movl	(%r13,%rbx,4), %edi
	shll	$16, %edi
	orl	(%r14,%rbx,4), %edi
	callq	_OUT_RING
	movl	$65537, %edi                    ## imm = 0x10001
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_12
	jmp	LBB0_19
LBB0_14:
	movq	%rbx, %rdi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdi,%rbx,4)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 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	(%r12), %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(%r12), %edi
	callq	_OUT_RING
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %edi
	callq	_OUT_RING
	movl	(%r13,%rbx,4), %edi
	shll	$16, %edi
	orl	(%r14,%rbx,4), %edi
	callq	_OUT_RING
	movl	$65537, %edi                    ## imm = 0x10001
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_18:
	callq	_kfree
LBB0_19:
	movq	%r13, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_20
	.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	_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_pixels
.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_pixels
_r128_cce_dispatch_write_pixels:        ; @r128_cce_dispatch_write_pixels
	.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	x22, x1
	ldr	x23, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w24, [x22]
	mov	w8, #-4097
	add	w9, w24, w8
	cmp	w9, w8
	b.hi	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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_3:
	lsl	w20, w24, #2
	ldr	x0, [x22, #32]
	mov	x1, x20
	bl	_memdup_user
	mov	x26, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x26
	b	LBB0_9
LBB0_5:
	ldr	x0, [x22, #24]
	mov	x1, x20
	bl	_memdup_user
	mov	x27, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x26
	bl	_kfree
	mov	x0, x27
	b	LBB0_9
LBB0_7:
	ldr	w8, [x22]
	lsl	w1, w8, #2
	ldr	x0, [x22, #16]
	bl	_memdup_user
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x26
	bl	_kfree
	mov	x0, x27
	bl	_kfree
	mov	x0, x19
LBB0_9:
	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
	b	_PTR_ERR
LBB0_10:
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w1, [x22]
	bl	_memdup_user
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.12:
	mov	x0, x26
	bl	_kfree
	mov	x0, x27
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	mov	x0, x22
	b	LBB0_9
LBB0_13:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x28, x19
Lloh5:
	adrp	x21, _R128_ROP3_P@GOTPAGE
Lloh6:
	ldr	x21, [x21, _R128_ROP3_P@GOTPAGEOFF]
Lloh7:
	adrp	x22, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGEOFF]
	mov	x19, x26
	mov	x20, x27
Lloh9:
	adrp	x25, _R128_GMC_WR_MSK_DIS@GOTPAGE
Lloh10:
	ldr	x25, [x25, _R128_GMC_WR_MSK_DIS@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #6
	bl	_BEGIN_RING
Lloh11:
	adrp	x8, _R128_CNTL_PAINT_MULTI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R128_CNTL_PAINT_MULTI@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_CCE_PACKET3
	bl	_OUT_RING
Lloh14:
	adrp	x8, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _R128_GMC_BRUSH_SOLID_COLOR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _R128_GMC_BRUSH_SOLID_COLOR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w8, w8, w9, lsl #8
Lloh20:
	adrp	x9, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x21]
	orr	w8, w8, w9
	ldr	w9, [x22]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w0, w8, w9
	bl	_OUT_RING
	ldr	w0, [x23, #4]
	bl	_OUT_RING
	ldr	w0, [x28], #4
	bl	_OUT_RING
	ldr	w8, [x19], #4
	ldr	w9, [x20], #4
	orr	w0, w9, w8, lsl #16
	bl	_OUT_RING
	mov	w0, #65537
	bl	_OUT_RING
	bl	_ADVANCE_RING
	subs	x24, x24, #1
	b.ne	LBB0_14
	b	LBB0_20
LBB0_15:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x25, #0
	lsl	x24, x24, #2
Lloh23:
	adrp	x28, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGE
Lloh24:
	ldr	x28, [x28, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGEOFF]
Lloh25:
	adrp	x19, _R128_ROP3_P@GOTPAGE
Lloh26:
	ldr	x19, [x19, _R128_ROP3_P@GOTPAGEOFF]
Lloh27:
	adrp	x21, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGE
Lloh28:
	ldr	x21, [x21, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGEOFF]
Lloh29:
	adrp	x20, _R128_GMC_WR_MSK_DIS@GOTPAGE
Lloh30:
	ldr	x20, [x20, _R128_GMC_WR_MSK_DIS@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x25, x25, #4
	cmp	x24, x25
	b.eq	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22, x25]
	cbz	w8, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	w0, #6
	bl	_BEGIN_RING
Lloh31:
	adrp	x8, _R128_CNTL_PAINT_MULTI@GOTPAGE
Lloh32:
	ldr	x8, [x8, _R128_CNTL_PAINT_MULTI@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_CCE_PACKET3
	bl	_OUT_RING
Lloh34:
	adrp	x8, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _R128_GMC_BRUSH_SOLID_COLOR@GOTPAGE
Lloh38:
	ldr	x9, [x9, _R128_GMC_BRUSH_SOLID_COLOR@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [x28]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w8, w9
	ldr	w9, [x21]
	orr	w8, w8, w9
	ldr	w9, [x20]
	orr	w0, w8, w9
	bl	_OUT_RING
	ldr	w0, [x23, #4]
	bl	_OUT_RING
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8, x25]
	bl	_OUT_RING
	ldr	w8, [x26, x25]
	ldr	w9, [x27, x25]
	orr	w0, w9, w8, lsl #16
	bl	_OUT_RING
	mov	w0, #65537
	bl	_OUT_RING
	bl	_ADVANCE_RING
	b	LBB0_16
LBB0_19:
	mov	x0, x22
	bl	_kfree
LBB0_20:
	mov	x0, x26
	bl	_kfree
	mov	x0, x27
	bl	_kfree
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_kfree
	mov	w0, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.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	_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_pixels
.subsections_via_symbols
