	.file	"extr_vim2m.c_vidioc_try_fmt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vidioc_try_fmt, @function
vidioc_try_fmt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR MIN_H[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	cmp	eax, edx
	jl	.L8
	mov	edx, DWORD PTR MAX_H[rip]
	cmp	eax, edx
	jg	.L8
.L3:
	mov	eax, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR MIN_W[rip]
	cmp	eax, edx
	jl	.L9
	mov	edx, DWORD PTR MAX_W[rip]
	cmp	eax, edx
	jg	.L9
.L5:
	mov	edi, DWORD PTR 20[rbx]
	lea	rdx, 4[rsp]
	mov	rsi, rsp
	call	get_alignment@PLT
	mov	eax, DWORD PTR [rsp]
	mov	edx, DWORD PTR 4[rsp]
	neg	eax
	and	eax, DWORD PTR 4[rbx]
	neg	edx
	and	edx, DWORD PTR [rbx]
	mov	DWORD PTR 4[rbx], eax
	imul	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR [rbx], edx
	sar	eax, 3
	mov	DWORD PTR 8[rbx], eax
	imul	eax, edx
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR V4L2_FIELD_NONE[rip]
	mov	DWORD PTR 16[rbx], eax
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	DWORD PTR 4[rbx], edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	DWORD PTR [rbx], edx
	jmp	.L3
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vidioc_try_fmt, .-vidioc_try_fmt
	.comm	V4L2_FIELD_NONE,4,4
	.comm	MIN_W,4,4
	.comm	MIN_H,4,4
	.comm	MAX_W,4,4
	.comm	MAX_H,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_vim2m.c_vidioc_try_fmt.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vidioc_try_fmt, %function
vidioc_try_fmt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r2, .L12
	ldr	r3, [r0]
	ldr	r2, [r2]
	mov	r5, r1
	ldr	r1, .L12+4
	sub	sp, sp, #20
	cmp	r3, r2
	mov	r4, r0
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	blt	.L8
	ldr	r2, .L12+8
	ldr	r2, [r2]
	cmp	r3, r2
	bgt	.L8
.L3:
	ldr	r2, .L12+12
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	blt	.L9
	ldr	r2, .L12+16
	ldr	r2, [r2]
	cmp	r3, r2
	bgt	.L9
.L5:
	add	r2, sp, #8
	add	r1, sp, #4
	ldr	r0, [r4, #20]
	bl	get_alignment
	ldr	r2, [sp, #4]
	ldr	r3, [r4, #4]
	ldr	r1, [r5]
	rsb	r2, r2, #0
	and	r2, r2, r3
	mul	r1, r2, r1
	ldr	r3, [sp, #8]
	ldr	r0, [r4]
	rsb	r3, r3, #0
	asr	r1, r1, #3
	and	r3, r3, r0
	mul	r0, r1, r3
	ldr	ip, .L12+20
	str	r1, [r4, #8]
	ldr	r1, [ip]
	str	r3, [r4]
	ldr	r3, .L12+4
	str	r2, [r4, #4]
	str	r0, [r4, #12]
	str	r1, [r4, #16]
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	str	r2, [r4, #4]
	b	.L5
.L8:
	str	r2, [r4]
	b	.L3
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	MIN_H
	.word	.LC0
	.word	MAX_H
	.word	MIN_W
	.word	MAX_W
	.word	V4L2_FIELD_NONE
	.size	vidioc_try_fmt, .-vidioc_try_fmt
	.comm	V4L2_FIELD_NONE,4,4
	.comm	MIN_W,4,4
	.comm	MIN_H,4,4
	.comm	MAX_W,4,4
	.comm	MAX_H,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
