	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_cce_dispatch_read_pixels
_r128_cce_dispatch_read_pixels:         ## @r128_cce_dispatch_read_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, %r13
	movq	(%rdi), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movl	(%r13), %eax
	leal	-4097(%rax), %ecx
	cmpl	$-4097, %ecx                    ## imm = 0xEFFF
	ja	LBB0_2
## %bb.1:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r14d
	cmpl	%r14d, %eax
	cmovll	%eax, %r14d
	leal	(,%r14,4), %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r12d, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r15
	movl	(%rbx), %esi
	movl	%r12d, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %rbx
	movl	8(%r13), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_DRM_COPY_FROM_USER
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	4(%r13), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_DRM_COPY_FROM_USER
	testq	%rax, %rax
	je	LBB0_12
LBB0_6:
	movq	%r15, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	%r15, %rdi
	callq	_kfree
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	testl	%r14d, %r14d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_15
## %bb.13:
	movl	%r14d, %r14d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	$7, %edi
	callq	_BEGIN_RING
	movq	_R128_CNTL_BITBLT_MULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$5, %esi
	callq	_CCE_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movq	_R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_R128_GMC_SRC_PITCH_OFFSET_CNTL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_R128_GMC_BRUSH_NONE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	4(%r13), %edi
	shll	$8, %edi
	orl	%eax, %edi
	movq	_R128_GMC_SRC_DATATYPE_COLOR@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_R128_ROP3_S@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_R128_DP_SRC_SOURCE_MEMORY@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	8(%r13), %edi
	callq	_OUT_RING
	movl	12(%r13), %edi
	callq	_OUT_RING
	movl	(%r15,%r12,4), %edi
	shll	$16, %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	orl	(%rax,%r12,4), %edi
	callq	_OUT_RING
	movl	%ebx, %edi
	callq	_OUT_RING
	movl	$65537, %edi                    ## imm = 0x10001
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	incq	%r12
	addl	$65536, %ebx                    ## imm = 0x10000
	cmpq	%r12, %r14
	jne	LBB0_14
LBB0_15:
	movq	%r15, %rdi
	callq	_kfree
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_11
	.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	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_R128_CNTL_BITBLT_MULTI,4,2     ## @R128_CNTL_BITBLT_MULTI
	.comm	_R128_GMC_SRC_PITCH_OFFSET_CNTL,4,2 ## @R128_GMC_SRC_PITCH_OFFSET_CNTL
	.comm	_R128_GMC_DST_PITCH_OFFSET_CNTL,4,2 ## @R128_GMC_DST_PITCH_OFFSET_CNTL
	.comm	_R128_GMC_BRUSH_NONE,4,2        ## @R128_GMC_BRUSH_NONE
	.comm	_R128_GMC_SRC_DATATYPE_COLOR,4,2 ## @R128_GMC_SRC_DATATYPE_COLOR
	.comm	_R128_ROP3_S,4,2                ## @R128_ROP3_S
	.comm	_R128_DP_SRC_SOURCE_MEMORY,4,2  ## @R128_DP_SRC_SOURCE_MEMORY
	.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_read_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_read_pixels
_r128_cce_dispatch_read_pixels:         ; @r128_cce_dispatch_read_pixels
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w8, [x21]
	mov	w9, #-4097
	add	w10, w8, w9
	cmp	w10, w9
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	ldr	w9, [x23]
	cmp	w8, w9
	csel	w19, w8, w9, lt
	lsl	w22, w19, #2
Lloh4:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x22
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x27, x0
	ldr	w1, [x20]
	mov	x0, x22
	bl	_kmalloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x28, x0
	ldr	w1, [x21, #8]
	mov	x0, x27
	mov	x2, x22
	bl	_DRM_COPY_FROM_USER
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x21, #4]
	mov	x0, x28
	mov	x2, x22
	bl	_DRM_COPY_FROM_USER
	cbz	x0, LBB0_11
LBB0_6:
	mov	x0, x27
	bl	_kfree
	mov	x0, x28
	bl	_kfree
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	x0, x27
	bl	_kfree
LBB0_8:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	cmp	w19, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x21, #0
	lsl	x22, x19, #16
Lloh10:
	adrp	x25, _R128_DP_SRC_SOURCE_MEMORY@GOTPAGE
Lloh11:
	ldr	x25, [x25, _R128_DP_SRC_SOURCE_MEMORY@GOTPAGEOFF]
Lloh12:
	adrp	x26, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGE
Lloh13:
	ldr	x26, [x26, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGEOFF]
	mov	x19, x27
	mov	x20, x28
Lloh14:
	adrp	x24, _R128_GMC_WR_MSK_DIS@GOTPAGE
Lloh15:
	ldr	x24, [x24, _R128_GMC_WR_MSK_DIS@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #7
	bl	_BEGIN_RING
Lloh16:
	adrp	x8, _R128_CNTL_BITBLT_MULTI@GOTPAGE
Lloh17:
	ldr	x8, [x8, _R128_CNTL_BITBLT_MULTI@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	w1, #5
	bl	_CCE_PACKET3
	bl	_OUT_RING
Lloh19:
	adrp	x8, _R128_GMC_SRC_PITCH_OFFSET_CNTL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _R128_GMC_SRC_PITCH_OFFSET_CNTL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh25:
	adrp	x9, _R128_GMC_BRUSH_NONE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _R128_GMC_BRUSH_NONE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x23, #4]
	orr	w8, w8, w9, lsl #8
Lloh28:
	adrp	x9, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGE
Lloh29:
	ldr	x9, [x9, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _R128_ROP3_S@GOTPAGE
Lloh32:
	ldr	x9, [x9, _R128_ROP3_S@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x26]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w0, w8, w9
	bl	_OUT_RING
	ldr	w0, [x23, #8]
	bl	_OUT_RING
	ldr	w0, [x23, #12]
	bl	_OUT_RING
	ldr	w8, [x19], #4
	ldr	w9, [x20], #4
	orr	w0, w9, w8, lsl #16
	bl	_OUT_RING
	mov	x0, x21
	bl	_OUT_RING
	mov	w0, #65537
	bl	_OUT_RING
	bl	_ADVANCE_RING
	add	x21, x21, #16, lsl #12          ; =65536
	cmp	x22, x21
	b.ne	LBB0_13
LBB0_14:
	mov	x0, x27
	bl	_kfree
	mov	x0, x28
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_R128_CNTL_BITBLT_MULTI,4,2     ; @R128_CNTL_BITBLT_MULTI
	.comm	_R128_GMC_SRC_PITCH_OFFSET_CNTL,4,2 ; @R128_GMC_SRC_PITCH_OFFSET_CNTL
	.comm	_R128_GMC_DST_PITCH_OFFSET_CNTL,4,2 ; @R128_GMC_DST_PITCH_OFFSET_CNTL
	.comm	_R128_GMC_BRUSH_NONE,4,2        ; @R128_GMC_BRUSH_NONE
	.comm	_R128_GMC_SRC_DATATYPE_COLOR,4,2 ; @R128_GMC_SRC_DATATYPE_COLOR
	.comm	_R128_ROP3_S,4,2                ; @R128_ROP3_S
	.comm	_R128_DP_SRC_SOURCE_MEMORY,4,2  ; @R128_DP_SRC_SOURCE_MEMORY
	.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_read_pixels
.subsections_via_symbols
