	.file	"extr_imx-media-capture.c_capture_validate_fmt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	capture_validate_fmt, @function
capture_validate_fmt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	ecx, ecx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 80
	.cfi_def_cfa_offset 112
	mov	edx, DWORD PTR get_fmt[rip]
	mov	esi, DWORD PTR pad[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 44[rdi]
	lea	rbp, 20[rsp]
	mov	edi, DWORD PTR 40[rdi]
	mov	r8, rbp
	mov	DWORD PTR 28[rsp], eax
	mov	eax, DWORD PTR V4L2_SUBDEV_FORMAT_ACTIVE[rip]
	mov	DWORD PTR 24[rsp], eax
	call	v4l2_subdev_call@PLT
	test	eax, eax
	je	.L7
.L1:
	mov	rdx, QWORD PTR 72[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L7:
	.cfi_restore_state
	lea	r12, 48[rsp]
	mov	rsi, rbp
	mov	rdi, r12
	call	v4l2_fill_pix_format@PLT
	lea	rcx, 8[rsp]
	mov	rdx, r12
	mov	rsi, rbp
	lea	r8, 32[rsp]
	mov	rdi, rbx
	call	__capture_try_fmt_vid_cap@PLT
	test	eax, eax
	jne	.L1
	mov	rsi, QWORD PTR 48[rsp]
	cmp	QWORD PTR 24[rbx], rsi
	je	.L9
.L3:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rcx, QWORD PTR 56[rsp]
	cmp	QWORD PTR 32[rbx], rcx
	jne	.L3
	mov	rdx, QWORD PTR 8[rsp]
	mov	rcx, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR [rdx]
	cmp	QWORD PTR [rcx], rdx
	jne	.L3
	mov	rsi, QWORD PTR 32[rsp]
	cmp	QWORD PTR [rbx], rsi
	jne	.L3
	mov	rdx, QWORD PTR 40[rsp]
	cmp	QWORD PTR 8[rbx], rdx
	jne	.L3
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	capture_validate_fmt, .-capture_validate_fmt
	.comm	pad,4,4
	.comm	get_fmt,4,4
	.comm	V4L2_SUBDEV_FORMAT_ACTIVE,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_imx-media-capture.c_capture_validate_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	capture_validate_fmt, %function
capture_validate_fmt:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	sub	sp, sp, #48
	ldr	r0, .L10
	ldr	r2, .L10+4
	ldr	r1, .L10+8
	ldr	r3, [r4, #24]
	ldr	lr, .L10+12
	add	r5, sp, #32
	ldr	ip, [r0]
	ldr	r2, [r2]
	ldr	r1, [r1]
	str	r5, [sp]
	ldr	lr, [lr]
	str	lr, [sp, #44]
	mov	lr,#0
	ldr	r0, [r4, #20]
	str	r3, [sp, #40]
	mov	r3, #0
	str	ip, [sp, #36]
	bl	v4l2_subdev_call
	cmp	r0, #0
	beq	.L7
.L1:
	ldr	r3, .L10+12
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	mov	r1, r5
	add	r0, sp, #24
	bl	v4l2_fill_pix_format
	add	r3, sp, #16
	str	r3, [sp]
	mov	r1, r5
	mov	r0, r4
	add	r2, sp, #24
	add	r3, sp, #12
	bl	__capture_try_fmt_vid_cap
	cmp	r0, #0
	bne	.L1
	ldr	r2, [r4, #12]
	ldr	r3, [sp, #24]
	cmp	r2, r3
	beq	.L9
.L3:
	ldr	r3, .L10+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L9:
	ldr	r2, [r4, #16]
	ldr	r3, [sp, #28]
	cmp	r2, r3
	bne	.L3
	ldr	r2, [r4, #8]
	ldr	r3, [sp, #12]
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
	ldr	r2, [r4]
	ldr	r3, [sp, #16]
	cmp	r2, r3
	bne	.L3
	ldr	r2, [r4, #4]
	ldr	r3, [sp, #20]
	cmp	r2, r3
	bne	.L3
	b	.L1
.L8:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	V4L2_SUBDEV_FORMAT_ACTIVE
	.word	get_fmt
	.word	pad
	.word	.LC0
	.word	EINVAL
	.size	capture_validate_fmt, .-capture_validate_fmt
	.comm	pad,4,4
	.comm	get_fmt,4,4
	.comm	V4L2_SUBDEV_FORMAT_ACTIVE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
