	.file	"extr_r128_state.c_r128_cce_dispatch_read_span.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
	.text
	.p2align 4
	.type	r128_cce_dispatch_read_span, @function
r128_cce_dispatch_read_span:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	DRM_DEBUG@PLT
	mov	ebp, DWORD PTR [rbx]
	lea	eax, -1[rbp]
	cmp	eax, 4095
	jbe	.L2
	mov	eax, DWORD PTR EMSGSIZE[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, rsp
	mov	edx, 4
	call	copy_from_user@PLT
	test	rax, rax
	jne	.L8
	mov	esi, DWORD PTR 4[rbx]
	lea	rdi, 4[rsp]
	mov	edx, 4
	call	copy_from_user@PLT
	test	rax, rax
	je	.L5
.L8:
	mov	eax, DWORD PTR EFAULT[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, 7
	call	BEGIN_RING@PLT
	mov	edi, DWORD PTR R128_CNTL_BITBLT_MULTI[rip]
	mov	esi, 5
	call	CCE_PACKET3@PLT
	mov	edi, eax
	call	OUT_RING@PLT
	mov	eax, DWORD PTR [r12]
	mov	edi, DWORD PTR R128_GMC_SRC_PITCH_OFFSET_CNTL[rip]
	or	edi, DWORD PTR R128_GMC_DST_PITCH_OFFSET_CNTL[rip]
	or	edi, DWORD PTR R128_GMC_BRUSH_NONE[rip]
	sal	eax, 8
	or	edi, DWORD PTR R128_GMC_SRC_DATATYPE_COLOR[rip]
	or	edi, DWORD PTR R128_ROP3_S[rip]
	or	edi, DWORD PTR R128_DP_SRC_SOURCE_MEMORY[rip]
	or	edi, DWORD PTR R128_GMC_CLR_CMP_CNTL_DIS[rip]
	or	edi, DWORD PTR R128_GMC_WR_MSK_DIS[rip]
	or	edi, eax
	call	OUT_RING@PLT
	mov	edi, DWORD PTR 4[r12]
	call	OUT_RING@PLT
	mov	edi, DWORD PTR 8[r12]
	call	OUT_RING@PLT
	mov	edi, DWORD PTR [rsp]
	sal	edi, 16
	or	edi, DWORD PTR 4[rsp]
	call	OUT_RING@PLT
	xor	edi, edi
	call	OUT_RING@PLT
	mov	edi, ebp
	sal	edi, 16
	or	edi, 1
	call	OUT_RING@PLT
	xor	eax, eax
	call	ADVANCE_RING@PLT
	xor	eax, eax
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	r128_cce_dispatch_read_span, .-r128_cce_dispatch_read_span
	.comm	RING_LOCALS,4,4
	.comm	R128_ROP3_S,4,4
	.comm	R128_GMC_WR_MSK_DIS,4,4
	.comm	R128_GMC_SRC_PITCH_OFFSET_CNTL,4,4
	.comm	R128_GMC_SRC_DATATYPE_COLOR,4,4
	.comm	R128_GMC_DST_PITCH_OFFSET_CNTL,4,4
	.comm	R128_GMC_CLR_CMP_CNTL_DIS,4,4
	.comm	R128_GMC_BRUSH_NONE,4,4
	.comm	R128_DP_SRC_SOURCE_MEMORY,4,4
	.comm	R128_CNTL_BITBLT_MULTI,4,4
	.comm	EMSGSIZE,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_r128_state.c_r128_cce_dispatch_read_span.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r128_cce_dispatch_read_span, %function
r128_cce_dispatch_read_span:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r6, [r3]
	ldr	r3, .L11
	sub	sp, sp, #16
	ldr	r0, .L11+4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	DRM_DEBUG
	ldr	r5, [r4]
	sub	r3, r5, #1
	cmp	r3, #4096
	bcc	.L2
	ldr	r3, .L11+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r2, #4
	ldr	r1, [r4, #8]
	add	r0, sp, r2
	bl	copy_from_user
	cmp	r0, #0
	bne	.L8
	ldr	r1, [r4, #4]
	mov	r2, #4
	add	r0, sp, #8
	bl	copy_from_user
	subs	r4, r0, #0
	beq	.L5
.L8:
	ldr	r3, .L11+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L5:
	mov	r0, #7
	bl	BEGIN_RING
	ldr	r3, .L11+16
	mov	r1, #5
	ldr	r0, [r3]
	bl	CCE_PACKET3
	bl	OUT_RING
	ldr	r3, .L11+20
	ldr	r2, .L11+24
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L11+28
	orr	r3, r3, r2
	ldr	r2, .L11+32
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, .L11+36
	orr	r3, r3, r2
	ldr	r2, .L11+40
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, .L11+44
	orr	r3, r3, r2
	ldr	r2, .L11+48
	ldr	r0, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r0
	ldr	r0, [r6]
	orr	r3, r3, r2
	orr	r0, r3, r0, lsl #8
	bl	OUT_RING
	ldr	r0, [r6, #4]
	bl	OUT_RING
	ldr	r0, [r6, #8]
	bl	OUT_RING
	ldmib	sp, {r0, r3}
	orr	r0, r3, r0, lsl #16
	bl	OUT_RING
	mov	r0, r4
	bl	OUT_RING
	lsl	r0, r5, #16
	orr	r0, r0, #1
	bl	OUT_RING
	bl	ADVANCE_RING
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	.LC0
	.word	EMSGSIZE
	.word	EFAULT
	.word	R128_CNTL_BITBLT_MULTI
	.word	R128_GMC_SRC_PITCH_OFFSET_CNTL
	.word	R128_GMC_DST_PITCH_OFFSET_CNTL
	.word	R128_GMC_BRUSH_NONE
	.word	R128_GMC_SRC_DATATYPE_COLOR
	.word	R128_ROP3_S
	.word	R128_DP_SRC_SOURCE_MEMORY
	.word	R128_GMC_CLR_CMP_CNTL_DIS
	.word	R128_GMC_WR_MSK_DIS
	.size	r128_cce_dispatch_read_span, .-r128_cce_dispatch_read_span
	.comm	RING_LOCALS,4,4
	.comm	R128_ROP3_S,4,4
	.comm	R128_GMC_WR_MSK_DIS,4,4
	.comm	R128_GMC_SRC_PITCH_OFFSET_CNTL,4,4
	.comm	R128_GMC_SRC_DATATYPE_COLOR,4,4
	.comm	R128_GMC_DST_PITCH_OFFSET_CNTL,4,4
	.comm	R128_GMC_CLR_CMP_CNTL_DIS,4,4
	.comm	R128_GMC_BRUSH_NONE,4,4
	.comm	R128_DP_SRC_SOURCE_MEMORY,4,4
	.comm	R128_CNTL_BITBLT_MULTI,4,4
	.comm	EMSGSIZE,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
