	.file	"extr_sh_mobile_ceu_camera.c_sh_mobile_ceu_try_fmt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Format %x not found\n"
.LC1:
	.string	"FIXME: try_fmt() returned %d\n"
	.text
	.p2align 4
	.type	sh_mobile_ceu_try_fmt, @function
sh_mobile_ceu_try_fmt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	soc_camera_to_subdev@PLT
	mov	r14d, DWORD PTR [rbx]
	mov	rdi, rbp
	mov	r12, rax
	mov	esi, r14d
	call	soc_camera_xlate_by_fourcc@PLT
	test	rax, rax
	je	.L10
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	lea	r8, 8[rbx]
	mov	ecx, 1
	mov	r15, rax
	push	0
	.cfi_def_cfa_offset 96
	mov	edx, 2560
	lea	rdi, 4[rbx]
	mov	esi, 2
	push	2
	.cfi_def_cfa_offset 104
	mov	r9d, 4
	push	1920
	.cfi_def_cfa_offset 112
	call	v4l_bound_align_image@PLT
	mov	eax, DWORD PTR 8[rbx]
	mov	r13d, DWORD PTR 4[rbx]
	mov	esi, 8
	mov	DWORD PTR 36[rsp], eax
	mov	rax, QWORD PTR 8[r15]
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rax]
	call	DIV_ROUND_UP@PLT
	mov	edx, DWORD PTR try_fmt[rip]
	mov	rcx, rbx
	mov	rdi, r12
	imul	eax, r13d
	mov	esi, DWORD PTR video[rip]
	mov	DWORD PTR 12[rbx], eax
	imul	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 16[rbx], eax
	mov	rax, QWORD PTR [r15]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rbx], eax
	call	v4l2_subdev_call@PLT
	mov	DWORD PTR [rbx], r14d
	mov	r15d, eax
	test	eax, eax
	js	.L1
	lea	r10d, -128[r14]
	cmp	r10d, 3
	ja	.L1
	mov	r8d, DWORD PTR 4[rbx]
	mov	r9d, DWORD PTR 8[rbx]
	cmp	r8d, r13d
	jl	.L4
	cmp	DWORD PTR 4[rsp], r9d
	jle	.L5
.L4:
	movabs	rax, 8246337210880
	mov	edx, DWORD PTR try_fmt[rip]
	mov	rcx, rbx
	mov	rdi, r12
	mov	QWORD PTR 4[rbx], rax
	mov	esi, DWORD PTR video[rip]
	mov	DWORD PTR 12[rsp], r9d
	mov	DWORD PTR 8[rsp], r8d
	call	v4l2_subdev_call@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	r9d, DWORD PTR 12[rsp]
	test	eax, eax
	mov	r15d, eax
	js	.L6
	mov	r8d, DWORD PTR 4[rbx]
	mov	r9d, DWORD PTR 8[rbx]
.L5:
	cmp	r13d, r8d
	jge	.L7
	mov	DWORD PTR 4[rbx], r13d
.L7:
	mov	eax, DWORD PTR 4[rsp]
	cmp	eax, r9d
	jge	.L1
	mov	DWORD PTR 8[rbx], eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, eax
	mov	DWORD PTR 12[rsp], r9d
	lea	rsi, .LC1[rip]
	mov	DWORD PTR 8[rsp], r8d
	call	dev_err@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	r9d, DWORD PTR 12[rsp]
	mov	DWORD PTR 4[rbx], r8d
	mov	DWORD PTR 8[rbx], r9d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	mov	r15d, DWORD PTR EINVAL[rip]
	neg	r15d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sh_mobile_ceu_try_fmt, .-sh_mobile_ceu_try_fmt
	.comm	video,4,4
	.comm	try_fmt,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_sh_mobile_ceu_camera.c_sh_mobile_ceu_try_fmt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Format %x not found\012\000"
	.align	2
.LC1:
	.ascii	"FIXME: try_fmt() returned %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sh_mobile_ceu_try_fmt, %function
sh_mobile_ceu_try_fmt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	sub	sp, sp, #36
	mov	r5, r0
	bl	soc_camera_to_subdev
	ldr	fp, [r4]
	mov	r6, r0
	mov	r1, fp
	mov	r0, r5
	bl	soc_camera_xlate_by_fourcc
	subs	r8, r0, #0
	beq	.L10
	mov	ip, #0
	mov	r1, #2
	mov	r0, #1920
	mov	r2, #4
	add	r3, r4, #8
	str	ip, [sp, #16]
	str	r1, [sp, #12]
	str	r0, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #2560
	mov	r3, #1
	add	r0, r4, #4
	bl	v4l_bound_align_image
	ldmib	r4, {r7, r10}
	ldr	r3, [r8, #4]
	mov	r1, #8
	ldr	r0, [r3]
	bl	DIV_ROUND_UP
	mul	r0, r7, r0
	ldr	r3, [r4, #8]
	ldr	r2, [r8]
	mul	r3, r0, r3
	ldr	r2, [r2]
	ldr	r9, .L11
	ldr	r8, .L11+4
	str	r0, [r4, #12]
	str	r2, [r4]
	str	r3, [r4, #16]
	ldr	r2, [r9]
	mov	r3, r4
	mov	r0, r6
	ldr	r1, [r8]
	bl	v4l2_subdev_call
	subs	r2, r0, #0
	str	fp, [r4]
	blt	.L1
	sub	fp, fp, #128
	cmp	fp, #3
	bhi	.L1
	ldr	fp, [r4, #4]
	ldr	r3, [r4, #8]
	cmp	fp, r7
	str	r3, [sp, #24]
	blt	.L4
	cmp	r10, r3
	ble	.L5
.L4:
	mov	ip, #2560
	mov	r3, #1920
	ldr	r2, [r9]
	str	r3, [r4, #8]
	mov	r0, r6
	mov	r3, r4
	ldr	r1, [r8]
	str	ip, [r4, #4]
	bl	v4l2_subdev_call
	subs	r2, r0, #0
	blt	.L6
	ldr	r3, [r4, #8]
	ldr	fp, [r4, #4]
	str	r3, [sp, #24]
.L5:
	ldr	r3, [sp, #24]
	cmp	r7, fp
	strlt	r7, [r4, #4]
	cmp	r10, r3
	strlt	r10, [r4, #8]
.L1:
	mov	r0, r2
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r0, [r5]
	ldr	r1, .L11+8
	str	r2, [sp, #28]
	bl	dev_err
	ldr	r3, [sp, #24]
	ldr	r2, [sp, #28]
	str	fp, [r4, #4]
	str	r3, [r4, #8]
	b	.L5
.L10:
	mov	r2, fp
	ldr	r0, [r5]
	ldr	r1, .L11+12
	bl	dev_warn
	ldr	r3, .L11+16
	ldr	r0, [r3]
	rsb	r2, r0, #0
	mov	r0, r2
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	.align	2
.L11:
	.word	try_fmt
	.word	video
	.word	.LC1
	.word	.LC0
	.word	EINVAL
	.size	sh_mobile_ceu_try_fmt, .-sh_mobile_ceu_try_fmt
	.comm	video,4,4
	.comm	try_fmt,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
