	.file	"extr_sh_mobile_ceu_camera.c_sh_mobile_ceu_get_formats.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Providing format %s using %s\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Providing format %s in pass-through mode\n"
	.text
	.p2align 4
	.type	sh_mobile_ceu_get_formats, @function
sh_mobile_ceu_get_formats:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR 16[rdi]
	call	sh_mobile_ceu_try_bus_param@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L25
.L3:
	movsx	rdx, r13d
	lea	rbp, [rdx+rdx*2]
	mov	rdx, QWORD PTR [rbx]
	sal	rbp, 2
	mov	edx, DWORD PTR [rdx+rbp]
	add	edx, -128
	test	r13d, r13d
	je	.L26
	cmp	edx, 3
	ja	.L6
	cmp	QWORD PTR [rax], 0
	je	.L11
.L6:
	mov	r15d, 1
.L10:
	test	r12, r12
	je	.L1
.L12:
	add	rbp, QWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	mov	eax, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 4[rbp]
	mov	QWORD PTR 16[r12], rbp
	mov	QWORD PTR 8[r12], rbp
	mov	DWORD PTR [r12], eax
	xor	eax, eax
	call	dev_dbg@PLT
.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
.L26:
	.cfi_restore_state
	mov	QWORD PTR [rax], 0
	cmp	edx, 3
	ja	.L6
.L11:
	mov	rdi, QWORD PTR sh_mobile_ceu_formats[rip]
	mov	QWORD PTR [rax], rdi
	call	ARRAY_SIZE@PLT
	mov	DWORD PTR 12[rsp], eax
	test	eax, eax
	jle	.L9
	mov	r15, r12
	xor	r13d, r13d
	test	r12, r12
	je	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR sh_mobile_ceu_formats[rip]
	lea	rdx, 0[r13+r13*2]
	mov	rdi, r14
	add	r15, 24
	lea	rsi, .LC0[rip]
	add	r13, 1
	lea	rdx, [rax+rdx*4]
	mov	QWORD PTR -8[r15], rdx
	mov	rax, QWORD PTR [rbx]
	add	rax, rbp
	mov	ecx, DWORD PTR 8[rax]
	mov	QWORD PTR -16[r15], rax
	mov	DWORD PTR -24[r15], ecx
	mov	ecx, DWORD PTR 4[rax]
	xor	eax, eax
	mov	edx, DWORD PTR 4[rdx]
	call	dev_dbg@PLT
	cmp	DWORD PTR 12[rsp], r13d
	jg	.L7
	mov	ecx, DWORD PTR 12[rsp]
	mov	edx, 24
	lea	eax, -1[rcx]
	lea	r15d, 1[rcx]
	lea	rax, 3[rax+rax*2]
	sal	rax, 3
	test	ecx, ecx
	cmovle	rax, rdx
	add	r12, rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 8
	call	kzalloc@PLT
	mov	r15d, DWORD PTR ENOMEM[rip]
	neg	r15d
	test	rax, rax
	je	.L1
	mov	QWORD PTR 8[rbx], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r15d, DWORD PTR 12[rsp]
	add	r15d, 1
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	sh_mobile_ceu_get_formats, .-sh_mobile_ceu_get_formats
	.comm	sh_mobile_ceu_formats,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_get_formats.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Providing format %s using %s\012\000"
	.align	2
.LC1:
	.ascii	"Providing format %s in pass-through mode\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sh_mobile_ceu_get_formats, %function
sh_mobile_ceu_get_formats:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r4, r0
	mov	r7, r1
	mov	r6, r2
	ldr	r10, [r0, #8]
	bl	sh_mobile_ceu_try_bus_param
	cmp	r0, #0
	movlt	r8, #0
	blt	.L1
	ldr	r2, [r4, #4]
	cmp	r2, #0
	beq	.L21
.L3:
	ldr	r3, [r4]
	add	r5, r7, r7, lsl #1
	lsl	r5, r5, #2
	ldr	r3, [r3, r5]
	cmp	r7, #0
	sub	r3, r3, #128
	beq	.L22
	cmp	r3, #3
	bhi	.L6
	ldr	r3, [r2]
	cmp	r3, #0
	beq	.L10
.L6:
	mov	r8, #1
.L9:
	cmp	r6, #0
	beq	.L1
.L12:
	ldr	r3, [r4]
	mov	r0, r10
	add	r5, r3, r5
	ldr	r3, [r5, #8]
	ldr	r2, [r5, #4]
	stm	r6, {r3, r5}
	ldr	r1, .L24
	str	r5, [r6, #8]
	bl	dev_dbg
.L1:
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	cmp	r3, #3
	str	r7, [r2]
	bhi	.L6
.L10:
	ldr	fp, .L24+4
	ldr	r0, [fp]
	str	r0, [r2]
	bl	ARRAY_SIZE
	cmp	r6, #0
	cmpne	r0, #0
	str	r0, [sp]
	ble	.L23
	mvn	r3, #11
	sub	r3, r3, r6
	add	r7, r6, #12
	str	r6, [sp, #4]
	mov	r9, #0
	mov	r6, r3
	ldr	r8, .L24+8
.L11:
	ldr	r2, [fp]
	add	r3, r6, r7
	add	r2, r2, r3
	str	r2, [r7, #-4]
	ldr	r3, [r4]
	mov	r0, r10
	add	r3, r3, r5
	ldr	r1, [r3, #8]
	str	r3, [r7, #-8]
	str	r1, [r7, #-12]
	ldr	r3, [r3, #4]
	mov	r1, r8
	ldr	r2, [r2, #4]
	bl	dev_dbg
	ldr	r3, [sp]
	add	r9, r9, #1
	cmp	r3, r9
	add	r7, r7, #12
	bgt	.L11
	mov	r2, r3
	cmp	r3, #0
	add	r3, r3, r3, lsl #1
	movle	r3, #12
	movgt	r3, r3, lsl #2
	ldr	r6, [sp, #4]
	add	r8, r2, #1
	add	r6, r6, r3
	b	.L12
.L21:
	ldr	r3, .L24+12
	mov	r0, #4
	ldr	r1, [r3]
	bl	kzalloc
	subs	r2, r0, #0
	strne	r2, [r4, #4]
	bne	.L3
	ldr	r3, .L24+16
	ldr	r8, [r3]
	rsb	r8, r8, #0
	b	.L1
.L23:
	ldr	r3, [sp]
	add	r8, r3, #1
	b	.L9
.L25:
	.align	2
.L24:
	.word	.LC1
	.word	sh_mobile_ceu_formats
	.word	.LC0
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	sh_mobile_ceu_get_formats, .-sh_mobile_ceu_get_formats
	.comm	sh_mobile_ceu_formats,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
