	.file	"extr_ivtv-ioctl.c_ivtv_try_fmt_vid_out.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ivtv_try_fmt_vid_out, @function
ivtv_try_fmt_vid_out:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	fh2id@PLT
	mov	r13, QWORD PTR 16[rbx]
	mov	rdx, rbx
	mov	rsi, rbp
	mov	r14, rax
	mov	eax, DWORD PTR [rbx]
	mov	rdi, r12
	mov	r15, QWORD PTR 8[rbx]
	mov	DWORD PTR 12[rsp], eax
	call	ivtv_g_fmt_vid_out@PLT
	mov	esi, 720
	mov	rdi, r13
	mov	r12d, eax
	call	min@PLT
	mov	esi, 2
	mov	rdi, rax
	call	max@PLT
	mov	esi, 576
	mov	rdi, r15
	mov	rbp, rax
	call	min@PLT
	mov	esi, 2
	mov	rdi, rax
	call	max@PLT
	mov	rcx, QWORD PTR IVTV_DEC_STREAM_TYPE_YUV[rip]
	cmp	QWORD PTR [r14], rcx
	jne	.L2
	mov	ecx, DWORD PTR 12[rsp]
	mov	DWORD PTR [rbx], ecx
.L2:
	mov	QWORD PTR 16[rbx], rbp
	mov	QWORD PTR 8[rbx], rax
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ivtv_try_fmt_vid_out, .-ivtv_try_fmt_vid_out
	.comm	IVTV_DEC_STREAM_TYPE_YUV,8,8
	.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_ivtv-ioctl.c_ivtv_try_fmt_vid_out.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ivtv_try_fmt_vid_out, %function
ivtv_try_fmt_vid_out:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r0, r1
	mov	r4, r2
	mov	r5, r1
	bl	fh2id
	ldm	r4, {r8, r9}
	mov	r2, r4
	mov	r7, r0
	mov	r1, r5
	mov	r0, r6
	ldr	r6, [r4, #8]
	bl	ivtv_g_fmt_vid_out
	mov	r1, #720
	mov	r5, r0
	mov	r0, r6
	bl	min
	mov	r1, #2
	bl	max
	mov	r1, #576
	mov	r6, r0
	mov	r0, r9
	bl	min
	mov	r1, #2
	bl	max
	ldr	r3, .L5
	ldr	r2, [r7]
	ldr	r3, [r3]
	stmib	r4, {r0, r6}
	cmp	r2, r3
	mov	r0, r5
	streq	r8, [r4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	.align	2
.L5:
	.word	IVTV_DEC_STREAM_TYPE_YUV
	.size	ivtv_try_fmt_vid_out, .-ivtv_try_fmt_vid_out
	.comm	IVTV_DEC_STREAM_TYPE_YUV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
