	.file	"extr_r128_state.c_r128_cce_dispatch_read_pixels.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
	.text
	.p2align 4
	.type	r128_cce_dispatch_read_pixels, @function
r128_cce_dispatch_read_pixels:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG@PLT
	mov	r15d, DWORD PTR 0[r13]
	lea	eax, -1[r15]
	cmp	eax, 4095
	jbe	.L2
	mov	eax, DWORD PTR EMSGSIZE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	DWORD PTR [rbx], r15d
	cmovle	r15d, DWORD PTR [rbx]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	r14d, 0[0+r15*4]
	mov	edi, r14d
	call	kmalloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L14
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, r14d
	call	kmalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L16
	mov	esi, DWORD PTR 8[r13]
	mov	edx, r14d
	mov	rdi, rbp
	call	copy_from_user@PLT
	test	rax, rax
	jne	.L7
	mov	esi, DWORD PTR 4[r13]
	mov	edx, r14d
	mov	rdi, r12
	call	copy_from_user@PLT
	test	rax, rax
	jne	.L7
	lea	r13d, -1[r15]
	xor	r14d, r14d
	test	r15d, r15d
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	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 4[rbx]
	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 8[rbx]
	call	OUT_RING@PLT
	mov	edi, DWORD PTR 12[rbx]
	call	OUT_RING@PLT
	mov	edi, DWORD PTR 0[rbp+r14*4]
	sal	edi, 16
	or	edi, DWORD PTR [r12+r14*4]
	call	OUT_RING@PLT
	mov	edi, r14d
	sal	edi, 16
	call	OUT_RING@PLT
	mov	edi, 65537
	call	OUT_RING@PLT
	xor	eax, eax
	call	ADVANCE_RING@PLT
	mov	rax, r14
	add	r14, 1
	cmp	r13, rax
	jne	.L10
.L9:
	mov	rdi, rbp
	call	kfree@PLT
	mov	rdi, r12
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, rbp
	call	kfree@PLT
.L14:
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	kfree@PLT
	mov	rdi, r12
	call	kfree@PLT
	mov	eax, DWORD PTR EFAULT[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	r128_cce_dispatch_read_pixels, .-r128_cce_dispatch_read_pixels
	.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	GFP_KERNEL,4,4
	.comm	ENOMEM,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_pixels.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r128_cce_dispatch_read_pixels, %function
r128_cce_dispatch_read_pixels:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	ldr	r0, .L16
	sub	sp, sp, #20
	ldr	r4, [r3]
	bl	DRM_DEBUG
	ldr	r3, [r5]
	sub	r2, r3, #1
	cmp	r2, #4096
	bcc	.L2
	ldr	r3, .L16+4
	ldr	r2, [r3]
	rsb	r8, r2, #0
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r6, [r4]
	ldr	r8, .L16+8
	cmp	r3, r6
	movlt	r6, r3
	lsl	r7, r6, #2
	mov	r0, r7
	ldr	r1, [r8]
	bl	kmalloc
	subs	r3, r0, #0
	str	r3, [sp, #4]
	beq	.L13
	mov	r0, r7
	ldr	r1, [r8]
	bl	kmalloc
	subs	r3, r0, #0
	str	r3, [sp, #8]
	beq	.L15
	mov	r2, r7
	ldr	r1, [r5, #8]
	ldr	r0, [sp, #4]
	bl	copy_from_user
	cmp	r0, #0
	bne	.L7
	mov	r2, r7
	ldr	r1, [r5, #4]
	ldr	r0, [sp, #8]
	bl	copy_from_user
	subs	r8, r0, #0
	bne	.L7
	cmp	r6, #0
	ble	.L9
	ldr	r2, [sp, #4]
	sub	r3, r7, #4
	add	r3, r2, r3
	str	r3, [sp]
	ldr	r3, [sp, #8]
	mov	r6, r8
	sub	r3, r3, #4
	str	r8, [sp, #12]
	mov	r8, r3
	ldr	fp, .L16+12
	ldr	r10, .L16+16
	ldr	r9, .L16+20
	ldr	r7, .L16+24
	sub	r5, r2, #4
.L10:
	mov	r0, #7
	bl	BEGIN_RING
	ldr	r3, .L16+28
	mov	r1, #5
	ldr	r0, [r3]
	bl	CCE_PACKET3
	bl	OUT_RING
	ldr	r2, [r10]
	ldr	r3, [fp]
	ldr	r1, [r9]
	orr	r3, r3, r2
	ldr	r2, .L16+32
	orr	r3, r3, r1
	ldr	r2, [r2]
	ldr	r0, [r7]
	orr	r3, r3, r2
	ldr	r2, .L16+36
	ldr	r1, .L16+40
	ldr	r2, [r2]
	orr	r3, r3, r0
	orr	r3, r3, r2
	ldr	r2, .L16+44
	ldr	r0, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r0
	ldr	r0, [r4, #4]
	orr	r3, r3, r2
	orr	r0, r3, r0, lsl #8
	bl	OUT_RING
	ldr	r0, [r4, #8]
	bl	OUT_RING
	ldr	r0, [r4, #12]
	bl	OUT_RING
	ldr	r3, [r8, #4]!
	ldr	r0, [r5, #4]!
	orr	r0, r3, r0, lsl #16
	bl	OUT_RING
	mov	r0, r6
	bl	OUT_RING
	ldr	r0, .L16+48
	bl	OUT_RING
	bl	ADVANCE_RING
	ldr	r3, [sp]
	add	r6, r6, #65536
	cmp	r5, r3
	bne	.L10
	ldr	r8, [sp, #12]
.L9:
	ldr	r0, [sp, #4]
	bl	kfree
	ldr	r0, [sp, #8]
	bl	kfree
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r0, [sp, #4]
	bl	kfree
.L13:
	ldr	r3, .L16+52
	ldr	r2, [r3]
	rsb	r8, r2, #0
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r0, [sp, #4]
	bl	kfree
	ldr	r0, [sp, #8]
	bl	kfree
	ldr	r3, .L16+56
	ldr	r2, [r3]
	rsb	r8, r2, #0
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	EMSGSIZE
	.word	GFP_KERNEL
	.word	R128_GMC_SRC_PITCH_OFFSET_CNTL
	.word	R128_GMC_DST_PITCH_OFFSET_CNTL
	.word	R128_GMC_BRUSH_NONE
	.word	R128_ROP3_S
	.word	R128_CNTL_BITBLT_MULTI
	.word	R128_GMC_SRC_DATATYPE_COLOR
	.word	R128_DP_SRC_SOURCE_MEMORY
	.word	R128_GMC_CLR_CMP_CNTL_DIS
	.word	R128_GMC_WR_MSK_DIS
	.word	65537
	.word	ENOMEM
	.word	EFAULT
	.size	r128_cce_dispatch_read_pixels, .-r128_cce_dispatch_read_pixels
	.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	GFP_KERNEL,4,4
	.comm	ENOMEM,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
