	.file	"extr_fimc-m2m.c_fimc_m2m_g_selection.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fimc_m2m_g_selection, @function
fimc_m2m_g_selection:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	fh_to_ctx@PLT
	mov	esi, DWORD PTR 20[rbx]
	mov	rdi, rax
	call	ctx_get_frame@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L20
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 130
	jle	.L21
	lea	edx, -131[rax]
	cmp	edx, 2
	ja	.L5
	mov	ecx, DWORD PTR V4L2_BUF_TYPE_VIDEO_CAPTURE[rip]
	cmp	DWORD PTR 20[rbx], ecx
	je	.L22
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	cmp	eax, 127
	jle	.L5
	mov	ecx, DWORD PTR V4L2_BUF_TYPE_VIDEO_OUTPUT[rip]
	cmp	DWORD PTR 20[rbx], ecx
	jne	.L5
	cmp	eax, 130
	je	.L12
.L11:
	mov	QWORD PTR 12[rbx], 0
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 4[rbx], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	cmp	eax, 133
	jne	.L11
.L12:
	mov	eax, DWORD PTR 20[rbp]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR 12[rbp]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR 8[rbp]
	mov	DWORD PTR 4[rbx], eax
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	fimc_m2m_g_selection, .-fimc_m2m_g_selection
	.comm	V4L2_BUF_TYPE_VIDEO_OUTPUT,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_CAPTURE,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_fimc-m2m.c_fimc_m2m_g_selection.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fimc_m2m_g_selection, %function
fimc_m2m_g_selection:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	mov	r0, r1
	bl	fh_to_ctx
	ldr	r1, [r4, #20]
	bl	ctx_get_frame
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L16
	ldr	r3, [r4]
	cmp	r3, #130
	ble	.L17
	sub	r1, r3, #131
	cmp	r1, #2
	bhi	.L5
	ldr	r2, .L18
	ldr	r1, [r4, #20]
	ldr	r2, [r2]
	cmp	r1, r2
	beq	.L7
.L5:
	ldr	r3, .L18+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L17:
	cmp	r3, #127
	ble	.L5
	ldr	r2, .L18+8
	ldr	r1, [r4, #20]
	ldr	r2, [r2]
	cmp	r1, r2
	bne	.L5
.L7:
	sub	r3, r3, #128
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L11:
	.word	.L12
	.word	.L12
	.word	.L10
	.word	.L12
	.word	.L12
	.word	.L10
.L16:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L10:
	ldr	ip, [r5, #20]
	ldr	r1, [r5, #16]
	ldr	r2, [r5, #12]
	ldr	r3, [r5, #8]
	str	ip, [r4, #16]
	str	r1, [r4, #12]
	str	r2, [r4, #8]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L12:
	mov	r3, #0
	ldr	r1, [r5, #4]
	ldr	r2, [r5]
	str	r3, [r4, #16]
	str	r3, [r4, #12]
	str	r1, [r4, #8]
	str	r2, [r4, #4]
	pop	{r4, r5, r6, pc}
.L19:
	.align	2
.L18:
	.word	V4L2_BUF_TYPE_VIDEO_CAPTURE
	.word	EINVAL
	.word	V4L2_BUF_TYPE_VIDEO_OUTPUT
	.size	fimc_m2m_g_selection, .-fimc_m2m_g_selection
	.comm	V4L2_BUF_TYPE_VIDEO_OUTPUT,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_CAPTURE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
