	.file	"extr_fsl-viu.c_vidioc_try_fmt_cap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Fourcc format (0x%08x) invalid."
	.text
	.p2align 4
	.type	vidioc_try_fmt_cap, @function
vidioc_try_fmt_cap:
.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	edi, DWORD PTR 24[rdx]
	mov	rbx, rdx
	call	format_by_fourcc@PLT
	test	rax, rax
	je	.L12
	mov	rbp, rax
	xor	eax, eax
	call	norm_maxw@PLT
	mov	r12d, eax
	xor	eax, eax
	call	norm_maxh@PLT
	mov	edx, DWORD PTR V4L2_FIELD_INTERLACED[rip]
	mov	DWORD PTR 20[rbx], edx
	mov	edx, DWORD PTR [rbx]
	mov	ecx, edx
	cmp	edx, 31
	jle	.L13
	cmp	eax, ecx
	jnb	.L6
.L15:
	mov	DWORD PTR [rbx], eax
	mov	edx, eax
.L6:
	mov	eax, DWORD PTR 4[rbx]
	mov	ecx, eax
	cmp	eax, 47
	jle	.L14
.L7:
	cmp	r12d, ecx
	cmovb	eax, r12d
	and	eax, -4
	mov	DWORD PTR 4[rbx], eax
	imul	eax, DWORD PTR 0[rbp]
	sar	eax, 3
	mov	DWORD PTR 8[rbx], eax
	imul	eax, edx
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR V4L2_COLORSPACE_SMPTE170M[rip]
	mov	DWORD PTR 16[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	ecx, 48
	mov	eax, 48
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	mov	ecx, 32
	mov	DWORD PTR [rbx], 32
	mov	edx, 32
	cmp	eax, ecx
	jnb	.L6
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, DWORD PTR 24[rbx]
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	dprintk@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	vidioc_try_fmt_cap, .-vidioc_try_fmt_cap
	.comm	V4L2_FIELD_INTERLACED,4,4
	.comm	V4L2_COLORSPACE_SMPTE170M,4,4
	.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_fsl-viu.c_vidioc_try_fmt_cap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Fourcc format (0x%08x) invalid.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vidioc_try_fmt_cap, %function
vidioc_try_fmt_cap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r0, [r2, #24]
	mov	r4, r2
	bl	format_by_fourcc
	subs	r6, r0, #0
	beq	.L12
	bl	norm_maxw
	mov	r5, r0
	bl	norm_maxh
	ldr	r1, [r4]
	ldr	r3, .L13
	cmp	r1, #31
	movle	r2, #32
	ldr	r3, [r3]
	strle	r2, [r4]
	str	r3, [r4, #20]
	movle	r3, r2
	movgt	r3, r1
	movle	r1, r3
	cmp	r0, r3
	movcc	r1, r0
	ldr	r3, [r4, #4]
	strcc	r1, [r4]
	cmp	r3, #47
	movgt	r2, r3
	movle	r2, #48
	movle	r3, r2
	cmp	r5, r2
	movcc	r3, r5
	ldr	r2, [r6]
	bic	r3, r3, #3
	mul	r2, r3, r2
	asr	r2, r2, #3
	mul	r1, r2, r1
	ldr	ip, .L13+4
	str	r1, [r4, #12]
	ldr	r1, [ip]
	mov	r0, #0
	str	r2, [r4, #8]
	str	r3, [r4, #4]
	str	r1, [r4, #16]
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r2, [r4, #24]
	ldr	r1, .L13+8
	mov	r0, #1
	bl	dprintk
	ldr	r3, .L13+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	V4L2_FIELD_INTERLACED
	.word	V4L2_COLORSPACE_SMPTE170M
	.word	.LC0
	.word	EINVAL
	.size	vidioc_try_fmt_cap, .-vidioc_try_fmt_cap
	.comm	V4L2_FIELD_INTERLACED,4,4
	.comm	V4L2_COLORSPACE_SMPTE170M,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
