	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_cce_dispatch_read_span
_r128_cce_dispatch_read_span:           ## @r128_cce_dispatch_read_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movl	(%rbx), %r14d
	leal	-4097(%r14), %eax
	cmpl	$-4097, %eax                    ## imm = 0xEFFF
	ja	LBB0_3
## %bb.1:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movl	8(%rbx), %esi
	leaq	-32(%rbp), %rdi
	movl	$4, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movl	4(%rbx), %esi
	leaq	-28(%rbp), %rdi
	movl	$4, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	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_SRC_PITCH_OFFSET_CNTL@GOTPCREL(%rip), %rax
	movq	_R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_R128_GMC_BRUSH_NONE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	(%r15), %edi
	shll	$8, %edi
	orl	%ecx, %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	4(%r15), %edi
	callq	_OUT_RING
	movl	8(%r15), %edi
	callq	_OUT_RING
	movl	-32(%rbp), %edi
	shll	$16, %edi
	orl	-28(%rbp), %edi
	callq	_OUT_RING
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_OUT_RING
	shll	$16, %r14d
	orl	$1, %r14d
	movl	%r14d, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	jmp	LBB0_7
	.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	_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_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_read_span
_r128_cce_dispatch_read_span:           ; @r128_cce_dispatch_read_span
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	ldr	x21, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w20, [x19]
	mov	w8, #-4097
	add	w9, w20, w8
	cmp	w9, w8
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	w1, [x19, #8]
	add	x0, sp, #12
	mov	w2, #4
	bl	_copy_from_user
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x19, #4]
	add	x0, sp, #8
	mov	w2, #4
	bl	_copy_from_user
	cbz	x0, LBB0_7
LBB0_4:
Lloh4:
	adrp	x8, _EFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	mov	w0, #7
	bl	_BEGIN_RING
Lloh6:
	adrp	x8, _R128_CNTL_BITBLT_MULTI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R128_CNTL_BITBLT_MULTI@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #5
	bl	_CCE_PACKET3
	bl	_OUT_RING
Lloh9:
	adrp	x8, _R128_GMC_SRC_PITCH_OFFSET_CNTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R128_GMC_SRC_PITCH_OFFSET_CNTL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _R128_GMC_BRUSH_NONE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _R128_GMC_BRUSH_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x21]
	orr	w8, w8, w9, lsl #8
Lloh18:
	adrp	x9, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _R128_ROP3_S@GOTPAGE
Lloh22:
	ldr	x9, [x9, _R128_ROP3_S@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _R128_DP_SRC_SOURCE_MEMORY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _R128_DP_SRC_SOURCE_MEMORY@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _R128_GMC_WR_MSK_DIS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _R128_GMC_WR_MSK_DIS@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_OUT_RING
	ldr	w0, [x21, #4]
	bl	_OUT_RING
	ldr	w0, [x21, #8]
	bl	_OUT_RING
	ldp	w9, w8, [sp, #8]
	orr	w0, w9, w8, lsl #16
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
	mov	w0, #1
	bfi	w0, w20, #16, #16
	bl	_OUT_RING
	bl	_ADVANCE_RING
	mov	w0, #0
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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	_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_span
.subsections_via_symbols
