	.file	"extr_via_dma.c_via_dispatch_pci_cmdbuffer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	via_dispatch_pci_cmdbuffer, @function
via_dispatch_pci_cmdbuffer:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rsi]
	cmp	edx, DWORD PTR VIA_PCI_BUF_SIZE[rip]
	jle	.L2
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR [rdi]
	mov	rbx, rsi
	mov	esi, DWORD PTR 4[rsi]
	mov	rdi, QWORD PTR [r12]
	call	DRM_COPY_FROM_USER@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR EFAULT[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR [rbx]
	mov	rdi, QWORD PTR [r12]
	xor	ecx, ecx
	mov	rdx, rbp
	call	via_verify_command_stream@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR [rbx]
	mov	rsi, QWORD PTR [r12]
	mov	rdi, rbp
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	via_parse_command_stream@PLT
	.cfi_endproc
.LFE0:
	.size	via_dispatch_pci_cmdbuffer, .-via_dispatch_pci_cmdbuffer
	.comm	VIA_PCI_BUF_SIZE,4,4
	.comm	ENOMEM,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_via_dma.c_via_dispatch_pci_cmdbuffer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	via_dispatch_pci_cmdbuffer, %function
via_dispatch_pci_cmdbuffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	ldr	r2, [r1]
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L2
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L2:
	push	{r4, r5, r6, lr}
	ldr	r6, [r0]
	mov	r4, r1
	mov	r5, r0
	ldr	r1, [r1, #4]
	ldr	r0, [r6]
	bl	DRM_COPY_FROM_USER
	subs	r3, r0, #0
	beq	.L4
	ldr	r3, .L9+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L4:
	mov	r2, r5
	ldr	r1, [r4]
	ldr	r0, [r6]
	bl	via_verify_command_stream
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r0, r5
	ldr	r2, [r4]
	ldr	r1, [r6]
	pop	{r4, r5, r6, lr}
	b	via_parse_command_stream
.L10:
	.align	2
.L9:
	.word	VIA_PCI_BUF_SIZE
	.word	ENOMEM
	.word	EFAULT
	.size	via_dispatch_pci_cmdbuffer, .-via_dispatch_pci_cmdbuffer
	.comm	VIA_PCI_BUF_SIZE,4,4
	.comm	ENOMEM,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
