	.file	"extr_cx88-video.c_vidioc_try_fmt_vid_cap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vidioc_try_fmt_vid_cap, @function
vidioc_try_fmt_vid_cap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	call	video_drvdata@PLT
	mov	edi, DWORD PTR 24[rbx]
	mov	rbp, QWORD PTR [rax]
	call	format_by_fourcc@PLT
	test	rax, rax
	je	.L11
	mov	edi, DWORD PTR 0[rbp]
	mov	r12, rax
	call	norm_maxw@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r14d, eax
	call	norm_maxh@PLT
	mov	r13d, DWORD PTR [rbx]
	mov	ebp, eax
	lea	eax, -128[r13]
	cmp	eax, 4
	ja	.L12
.L4:
	mov	edi, r13d
	call	V4L2_FIELD_HAS_T_OR_B@PLT
	lea	rdi, 8[rbx]
	mov	edx, r14d
	mov	r9d, 32
	mov	r8, rax
	mov	eax, ebp
	mov	ecx, 2
	mov	esi, 48
	shr	eax
	test	r8, r8
	lea	r8, 4[rbx]
	cmovne	ebp, eax
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	push	0
	.cfi_def_cfa_offset 64
	push	0
	.cfi_def_cfa_offset 72
	push	rbp
	.cfi_def_cfa_offset 80
	call	v4l_bound_align_image@PLT
	mov	eax, DWORD PTR 8[rbx]
	imul	eax, DWORD PTR [r12]
	mov	DWORD PTR [rbx], r13d
	add	rsp, 32
	.cfi_def_cfa_offset 48
	sar	eax, 3
	mov	DWORD PTR 12[rbx], eax
	imul	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR V4L2_COLORSPACE_SMPTE170M[rip]
	mov	DWORD PTR 20[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, ebp
	xor	r13d, r13d
	shr	eax
	cmp	DWORD PTR 4[rbx], eax
	setbe	r13b
	add	r13d, 131
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vidioc_try_fmt_vid_cap, .-vidioc_try_fmt_vid_cap
	.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_cx88-video.c_vidioc_try_fmt_vid_cap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vidioc_try_fmt_vid_cap, %function
vidioc_try_fmt_vid_cap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #28
	mov	r4, r2
	bl	video_drvdata
	mov	r3, r0
	ldr	r0, [r4, #24]
	ldr	r5, [r3]
	bl	format_by_fourcc
	subs	r8, r0, #0
	beq	.L12
	ldr	r0, [r5]
	bl	norm_maxw
	mov	r9, r0
	ldr	r0, [r5]
	bl	norm_maxh
	ldr	r7, [r4]
	mov	r6, r0
	sub	r3, r7, #128
	cmp	r3, #4
	bhi	.L13
.L4:
	mov	r0, r7
	bl	V4L2_FIELD_HAS_T_OR_B
	mov	r5, #0
	mov	r1, #32
	cmp	r0, #0
	lsrne	r6, r6, #1
	add	r3, r4, #4
	mov	r2, r9
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r1, #48
	mov	r3, #2
	str	r6, [sp, #8]
	str	r5, [sp, #16]
	str	r5, [sp, #12]
	add	r0, r4, #8
	bl	v4l_bound_align_image
	ldmib	r4, {r2, r3}
	mov	r0, r5
	ldr	r1, [r8]
	str	r7, [r4]
	mul	r3, r1, r3
	asr	r3, r3, #3
	mul	r2, r3, r2
	ldr	r1, .L14
	str	r3, [r4, #12]
	ldr	r1, [r1]
	str	r2, [r4, #16]
	str	r1, [r4, #20]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	ldr	r3, [r4, #4]
	cmp	r3, r0, lsr #1
	movhi	r7, #131
	movls	r7, #132
	b	.L4
.L12:
	ldr	r3, .L14+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L15:
	.align	2
.L14:
	.word	V4L2_COLORSPACE_SMPTE170M
	.word	EINVAL
	.size	vidioc_try_fmt_vid_cap, .-vidioc_try_fmt_vid_cap
	.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
