	.file	"extr_saa6752hs.c_saa6752hs_get_fmt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	saa6752hs_get_fmt, @function
saa6752hs_get_fmt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdx
	call	to_state@PLT
	cmp	QWORD PTR [rbx], 0
	jne	.L7
	mov	rdx, QWORD PTR [rax]
	cmp	rdx, QWORD PTR SAA6752HS_VF_UNKNOWN[rip]
	je	.L8
.L4:
	mov	rax, QWORD PTR v4l2_format_table[rip]
	lea	rax, [rax+rdx*8]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR MEDIA_BUS_FMT_FIXED[rip]
	mov	DWORD PTR 24[rbx], edx
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR V4L2_FIELD_INTERLACED[rip]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR V4L2_COLORSPACE_SMPTE170M[rip]
	mov	DWORD PTR 8[rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdx, QWORD PTR SAA6752HS_VF_D1[rip]
	mov	QWORD PTR [rax], rdx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	saa6752hs_get_fmt, .-saa6752hs_get_fmt
	.comm	v4l2_format_table,8,8
	.comm	V4L2_FIELD_INTERLACED,4,4
	.comm	V4L2_COLORSPACE_SMPTE170M,4,4
	.comm	SAA6752HS_VF_UNKNOWN,8,8
	.comm	SAA6752HS_VF_D1,8,8
	.comm	MEDIA_BUS_FMT_FIXED,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_saa6752hs.c_saa6752hs_get_fmt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	saa6752hs_get_fmt, %function
saa6752hs_get_fmt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	bl	to_state
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L7
	ldr	r1, .L8
	ldr	r2, [r0]
	ldr	r1, [r1]
	ldr	r5, .L8+4
	cmp	r2, r1
	ldreq	r2, .L8+8
	ldr	r1, .L8+12
	ldreq	r2, [r2]
	ldr	r1, [r1]
	streq	r2, [r0]
	add	ip, r1, r2, lsl #3
	ldr	lr, [ip, #4]
	ldr	r0, .L8+16
	ldr	ip, [r1, r2, lsl #3]
	ldr	r2, .L8+20
	ldr	r0, [r0]
	ldr	r1, [r5]
	ldr	r2, [r2]
	str	r0, [r4, #12]
	str	lr, [r4, #20]
	mov	r0, r3
	str	ip, [r4, #16]
	str	r1, [r4, #8]
	str	r2, [r4, #4]
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L8+24
	ldr	r3, [r3]
	rsb	r3, r3, #0
	mov	r0, r3
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	SAA6752HS_VF_UNKNOWN
	.word	V4L2_FIELD_INTERLACED
	.word	SAA6752HS_VF_D1
	.word	v4l2_format_table
	.word	MEDIA_BUS_FMT_FIXED
	.word	V4L2_COLORSPACE_SMPTE170M
	.word	EINVAL
	.size	saa6752hs_get_fmt, .-saa6752hs_get_fmt
	.comm	v4l2_format_table,4,4
	.comm	V4L2_FIELD_INTERLACED,4,4
	.comm	V4L2_COLORSPACE_SMPTE170M,4,4
	.comm	SAA6752HS_VF_UNKNOWN,4,4
	.comm	SAA6752HS_VF_D1,4,4
	.comm	MEDIA_BUS_FMT_FIXED,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
