	.file	"extr_vpbe_venc.c_venc_s_dv_timings.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"venc_s_dv_timings\n"
	.text
	.p2align 4
	.type	venc_s_dv_timings, @function
venc_s_dv_timings:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	to_state@PLT
	mov	ebx, DWORD PTR [rbx]
	mov	edi, DWORD PTR debug[rip]
	mov	rdx, rbp
	lea	rcx, .LC0[rip]
	mov	esi, 1
	mov	r12, rax
	call	v4l2_dbg@PLT
	cmp	ebx, 576
	je	.L9
	cmp	ebx, 480
	je	.L10
	cmp	ebx, 720
	je	.L11
	cmp	ebx, 1080
	je	.L12
.L5:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	eax, r12d
	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
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR VPBE_VERSION_2[rip]
	cmp	QWORD PTR [r12], rax
	jne	.L5
	mov	rdi, rbp
	call	venc_set_1080i30_internal@PLT
	mov	esi, DWORD PTR VDAC_CONFIG_HD_V2[rip]
	mov	rdi, rbp
	mov	r12d, eax
	call	vdaccfg_write@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR VPBE_VERSION_2[rip]
	cmp	QWORD PTR [r12], rax
	jne	.L5
	mov	rdi, rbp
	call	venc_set_720p60_internal@PLT
	mov	esi, DWORD PTR VDAC_CONFIG_HD_V2[rip]
	mov	rdi, rbp
	mov	r12d, eax
	call	vdaccfg_write@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	venc_set_576p50@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	venc_set_480p59_94@PLT
	.cfi_endproc
.LFE0:
	.size	venc_s_dv_timings, .-venc_s_dv_timings
	.comm	debug,4,4
	.comm	VPBE_VERSION_2,8,8
	.comm	VDAC_CONFIG_HD_V2,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_vpbe_venc.c_venc_s_dv_timings.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"venc_s_dv_timings\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	venc_s_dv_timings, %function
venc_s_dv_timings:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	bl	to_state
	ldr	r3, .L14
	ldr	r5, [r5]
	mov	r6, r0
	mov	r2, r4
	ldr	r0, [r3]
	mov	r1, #1
	ldr	r3, .L14+4
	bl	v4l2_dbg
	cmp	r5, #576
	beq	.L10
	cmp	r5, #480
	beq	.L11
	cmp	r5, #720
	beq	.L12
	ldr	r3, .L14+8
	cmp	r5, r3
	beq	.L13
.L5:
	ldr	r3, .L14+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L14+16
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L5
	mov	r0, r4
	bl	venc_set_1080i30_internal
	b	.L8
.L12:
	ldr	r3, .L14+16
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L5
	mov	r0, r4
	bl	venc_set_720p60_internal
.L8:
	mov	r3, r0
	ldr	r2, .L14+20
	mov	r0, r4
	ldr	r1, [r2]
	mov	r4, r3
	bl	vdaccfg_write
	b	.L1
.L10:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	venc_set_576p50
.L11:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	venc_set_480p59_94
.L15:
	.align	2
.L14:
	.word	debug
	.word	.LC0
	.word	1080
	.word	EINVAL
	.word	VPBE_VERSION_2
	.word	VDAC_CONFIG_HD_V2
	.size	venc_s_dv_timings, .-venc_s_dv_timings
	.comm	debug,4,4
	.comm	VPBE_VERSION_2,4,4
	.comm	VDAC_CONFIG_HD_V2,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
