	.file	"extr_venc.c_venc_enum_frameintervals.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	venc_enum_frameintervals, @function
venc_enum_frameintervals:
.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	rbx, rdx
	call	to_inst@PLT
	mov	esi, DWORD PTR 64[rbx]
	mov	edx, DWORD PTR V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE[rip]
	mov	rbp, rax
	mov	eax, DWORD PTR V4L2_FRMIVAL_TYPE_STEPWISE[rip]
	mov	rdi, rbp
	mov	DWORD PTR 68[rbx], eax
	call	find_format@PLT
	test	rax, rax
	je	.L13
.L2:
	cmp	QWORD PTR 56[rbx], 0
	jne	.L7
	mov	r12, QWORD PTR [rbx]
	test	r12, r12
	je	.L7
	cmp	QWORD PTR 8[rbx], 0
	je	.L7
	mov	rdi, rbp
	call	frame_width_max@PLT
	cmp	r12, rax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r12, QWORD PTR [rbx]
	mov	rdi, rbp
	call	frame_width_min@PLT
	cmp	r12, rax
	jl	.L7
	mov	r12, QWORD PTR 8[rbx]
	mov	rdi, rbp
	call	frame_height_max@PLT
	cmp	r12, rax
	jg	.L7
	mov	r12, QWORD PTR 8[rbx]
	mov	rdi, rbp
	call	frame_height_min@PLT
	cmp	r12, rax
	jl	.L7
	mov	DWORD PTR 40[rbx], 1
	mov	rdi, rbp
	call	frate_max@PLT
	mov	DWORD PTR 32[rbx], 1
	mov	rdi, rbp
	mov	QWORD PTR 48[rbx], rax
	call	frate_min@PLT
	mov	DWORD PTR 16[rbx], 1
	mov	rdi, rbp
	mov	DWORD PTR 36[rbx], eax
	call	frate_max@PLT
	mov	QWORD PTR 24[rbx], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR 64[rbx]
	mov	edx, DWORD PTR V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE[rip]
	mov	rdi, rbp
	call	find_format@PLT
	test	rax, rax
	jne	.L2
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	venc_enum_frameintervals, .-venc_enum_frameintervals
	.comm	V4L2_FRMIVAL_TYPE_STEPWISE,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,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_venc.c_venc_enum_frameintervals.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	venc_enum_frameintervals, %function
venc_enum_frameintervals:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	bl	to_inst
	ldr	r3, .L17
	ldr	r2, .L17+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r4, #36]
	str	r3, [r4, #40]
	mov	r7, r0
	bl	find_format
	cmp	r0, #0
	beq	.L16
.L2:
	ldr	r5, [r4, #32]
	cmp	r5, #0
	bne	.L7
	ldr	r6, [r4]
	cmp	r6, #0
	beq	.L7
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L7
	mov	r0, r7
	bl	frame_width_max
	cmp	r6, r0
	ble	.L6
.L7:
	ldr	r3, .L17+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r7
	ldr	r6, [r4]
	bl	frame_width_min
	cmp	r6, r0
	blt	.L7
	mov	r0, r7
	ldr	r6, [r4, #4]
	bl	frame_height_max
	cmp	r6, r0
	bgt	.L7
	mov	r0, r7
	ldr	r6, [r4, #4]
	bl	frame_height_min
	cmp	r6, r0
	blt	.L7
	mov	r6, #1
	mov	r0, r7
	str	r6, [r4, #24]
	bl	frate_max
	str	r6, [r4, #16]
	str	r0, [r4, #28]
	mov	r0, r7
	bl	frate_min
	str	r6, [r4, #8]
	str	r0, [r4, #20]
	mov	r0, r7
	bl	frate_max
	str	r0, [r4, #12]
	b	.L1
.L16:
	ldr	r3, .L17+12
	mov	r0, r7
	ldr	r1, [r4, #36]
	ldr	r2, [r3]
	bl	find_format
	cmp	r0, #0
	bne	.L2
	b	.L7
.L18:
	.align	2
.L17:
	.word	V4L2_FRMIVAL_TYPE_STEPWISE
	.word	V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.word	EINVAL
	.word	V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.size	venc_enum_frameintervals, .-venc_enum_frameintervals
	.comm	V4L2_FRMIVAL_TYPE_STEPWISE,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
