	.file	"extr_cx25821-video.c_cx25821_queue_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cx25821_queue_setup, @function
cx25821_queue_setup:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rsi, QWORD PTR [rdi]
	mov	rax, QWORD PTR 8[rsi]
	mov	eax, DWORD PTR [rax]
	imul	eax, DWORD PTR [rsi]
	imul	eax, DWORD PTR 4[rsi]
	mov	esi, DWORD PTR [rdx]
	sar	eax, 3
	test	esi, esi
	jne	.L6
	mov	DWORD PTR [rdx], 1
	xor	r8d, r8d
	mov	DWORD PTR [rcx], eax
.L1:
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	xor	r8d, r8d
	cmp	DWORD PTR [rcx], eax
	jnb	.L1
	mov	r8d, DWORD PTR EINVAL[rip]
	neg	r8d
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	cx25821_queue_setup, .-cx25821_queue_setup
	.comm	EINVAL,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_cx25821-video.c_cx25821_queue_setup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx25821_queue_setup, %function
cx25821_queue_setup:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r0, [r0]
	ldr	r1, [r0, #8]
	ldr	ip, [r0]
	ldr	r1, [r1]
	ldr	r0, [r0, #4]
	mul	r1, ip, r1
	mul	r1, r0, r1
	ldr	r0, [r2]
	asr	r1, r1, #3
	cmp	r0, #0
	bne	.L6
	mov	ip, #1
	str	ip, [r2]
	str	r1, [r3]
	bx	lr
.L6:
	ldr	r3, [r3]
	cmp	r3, r1
	bcs	.L4
	ldr	r3, .L7
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L4:
	mov	r0, #0
	bx	lr
.L8:
	.align	2
.L7:
	.word	EINVAL
	.size	cx25821_queue_setup, .-cx25821_queue_setup
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
