	.file	"extr_ispvideo.c_isp_video_set_format.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	isp_video_set_format, @function
isp_video_set_format:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	to_isp_video_fh@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	video_drvdata@PLT
	mov	rdx, QWORD PTR [rax]
	cmp	QWORD PTR [r12], rdx
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbx, rax
	mov	eax, DWORD PTR 8[r12]
	cmp	eax, 134
	je	.L4
	jg	.L5
	cmp	eax, 131
	je	.L6
	sub	eax, 132
	cmp	eax, 1
	ja	.L7
	cmp	QWORD PTR 16[rbx], rbx
	je	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	DWORD PTR 8[r12], 131
.L6:
	lea	rbp, 4[rsp]
	lea	r14, 8[r12]
	mov	rsi, rbp
	mov	rdi, r14
	call	isp_video_pix_to_mbus@PLT
	mov	rsi, rbp
	mov	rdx, r14
	mov	rdi, rbx
	call	isp_video_mbus_to_pix@PLT
	lea	rbp, 8[rbx]
	mov	rdi, rbp
	call	mutex_lock@PLT
	movdqu	xmm0, XMMWORD PTR [r12]
	mov	rdi, rbp
	movups	XMMWORD PTR 0[r13], xmm0
	call	mutex_unlock@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	eax, 136
	jne	.L7
	cmp	rdx, QWORD PTR V4L2_BUF_TYPE_VIDEO_OUTPUT[rip]
	jne	.L6
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	DWORD PTR 8[r12], 132
	cmp	QWORD PTR 16[rbx], rbx
	jne	.L7
	jmp	.L6
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	isp_video_set_format, .-isp_video_set_format
	.comm	V4L2_BUF_TYPE_VIDEO_OUTPUT,8,8
	.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_ispvideo.c_isp_video_set_format.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isp_video_set_format, %function
isp_video_set_format:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L16
	sub	sp, sp, #12
	mov	r5, r0
	mov	r0, r1
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	to_isp_video_fh
	mov	r6, r0
	mov	r0, r5
	bl	video_drvdata
	ldr	r3, [r4]
	ldr	r2, [r0]
	cmp	r3, r2
	beq	.L2
	ldr	r3, .L16+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, [r4, #4]
	mov	r5, r0
	sub	r3, r3, #131
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L8
	.word	.L7
	.word	.L4
	.word	.L5
.L7:
	mov	r3, #132
	str	r3, [r4, #4]
.L8:
	ldr	r3, [r5, #8]
	cmp	r3, r5
	beq	.L9
.L4:
	mov	r3, #131
	str	r3, [r4, #4]
.L9:
	add	r7, r4, #4
	mov	r1, sp
	mov	r0, r7
	bl	isp_video_pix_to_mbus
	mov	r2, r7
	mov	r1, sp
	mov	r0, r5
	add	r5, r5, #4
	bl	isp_video_mbus_to_pix
	mov	r0, r5
	bl	mutex_lock
	ldm	r4, {r0, r1}
	stm	r6, {r0, r1}
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, #0
	b	.L1
.L5:
	ldr	r3, .L16+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L9
	b	.L4
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	EINVAL
	.word	V4L2_BUF_TYPE_VIDEO_OUTPUT
	.size	isp_video_set_format, .-isp_video_set_format
	.comm	V4L2_BUF_TYPE_VIDEO_OUTPUT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
