	.file	"extr_fimc-is.c_fimc_is_hw_initialize.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"get setfile address timed out\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"setfile.base: %#x\n"
.LC2:
	.string	"loading setfile timed out\n"
.LC3:
	.string	"setfile: base: %#x, size: %d\n"
.LC4:
	.string	"FIMC-IS Setfile info: %s\n"
.LC5:
	.string	"magic number error!\n"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"shared region: %pad, parameter region: %pad\n"
	.section	.rodata.str1.1
.LC7:
	.string	"stream off timeout\n"
	.section	.rodata.str1.8
	.align 8
.LC8:
	.string	"initialization sequence completed (%d)\n"
	.text
	.p2align 4
	.globl	fimc_is_hw_initialize
	.type	fimc_is_hw_initialize, @function
fimc_is_hw_initialize:
.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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rsi, QWORD PTR 56[rdi]
	mov	r13, QWORD PTR 64[rdi]
	call	fimc_is_hw_open_sensor@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rdi, rbx
	call	fimc_is_hw_get_setfile_addr@PLT
	mov	ecx, DWORD PTR FIMC_IS_CONFIG_TIMEOUT[rip]
	mov	edx, 1
	mov	rdi, rbx
	mov	esi, DWORD PTR IS_ST_SETFILE_LOADED[rip]
	call	fimc_is_wait_event@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L12
	mov	rsi, QWORD PTR 24[rbx]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	lea	r14, 4[rbx]
	call	pr_debug@PLT
	mov	esi, DWORD PTR FIMC_IS_SETFILE_6A3[rip]
	mov	rdi, rbx
	call	fimc_is_load_setfile@PLT
	mov	edi, DWORD PTR IS_ST_SETFILE_LOADED[rip]
	mov	rsi, r14
	call	clear_bit@PLT
	mov	rdi, rbx
	call	fimc_is_hw_load_setfile@PLT
	mov	ecx, DWORD PTR FIMC_IS_CONFIG_TIMEOUT[rip]
	mov	edx, 1
	mov	rdi, rbx
	mov	esi, DWORD PTR IS_ST_SETFILE_LOADED[rip]
	call	fimc_is_wait_event@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L13
	mov	rdx, QWORD PTR 16[rbx]
	mov	rsi, QWORD PTR 24[rbx]
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	pr_debug@PLT
	mov	esi, DWORD PTR 48[rbx]
	lea	rdi, .LC4[rip]
	call	pr_info@PLT
	mov	rax, QWORD PTR 40[rbx]
	movsx	rdx, DWORD PTR MAX_SHARED_COUNT[rip]
	mov	rcx, QWORD PTR FIMC_IS_MAGIC_NUMBER[rip]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -8[rax+rdx*8], rcx
	jne	.L14
	movsx	rax, DWORD PTR FIMC_IS_SHARED_REGION_OFFSET[rip]
	lea	rdx, 32[rbx]
	lea	rdi, .LC6[rip]
	lea	rsi, 36[rbx+rax*4]
	xor	eax, eax
	call	pr_debug@PLT
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, rbx
	call	fimc_is_hw_stream_off@PLT
	mov	ecx, DWORD PTR FIMC_IS_CONFIG_TIMEOUT[rip]
	mov	edx, 1
	mov	rdi, rbx
	mov	esi, DWORD PTR IS_ST_STREAM_OFF[rip]
	call	fimc_is_wait_event@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L15
	mov	eax, DWORD PTR [rbx]
	xor	r15d, r15d
	lea	rbp, config_ids.2000[rip]
	mov	DWORD PTR 12[rsp], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 0[rbp+r15*4]
	mov	rdi, rbx
	add	r15, 1
	mov	DWORD PTR [rbx], eax
	call	fimc_is_set_initial_params@PLT
	mov	esi, 1
	mov	rdi, rbx
	call	fimc_is_itf_s_param@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L16
.L7:
	mov	rdi, rbp
	call	ARRAY_SIZE@PLT
	cmp	eax, r15d
	jg	.L8
	mov	eax, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR IS_ST_INIT_DONE[rip]
	mov	rsi, r14
	xor	r12d, r12d
	mov	DWORD PTR [rbx], eax
	call	set_bit@PLT
	mov	edx, DWORD PTR [rbx]
	lea	rsi, .LC8[rip]
	mov	rdi, r13
	call	dev_info@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L14:
	.cfi_restore_state
	lea	rsi, .LC5[rip]
	mov	rdi, r13
	call	dev_err@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rsi, .LC7[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	fimc_is_hw_initialize, .-fimc_is_hw_initialize
	.section	.rodata
	.align 16
	.type	config_ids.2000, @object
	.size	config_ids.2000, 16
config_ids.2000:
	.long	129
	.long	128
	.long	131
	.long	130
	.comm	MAX_SHARED_COUNT,4,4
	.comm	IS_ST_STREAM_OFF,4,4
	.comm	IS_ST_SETFILE_LOADED,4,4
	.comm	IS_ST_INIT_DONE,4,4
	.comm	FIMC_IS_SHARED_REGION_OFFSET,4,4
	.comm	FIMC_IS_SETFILE_6A3,4,4
	.comm	FIMC_IS_MAGIC_NUMBER,8,8
	.comm	FIMC_IS_CONFIG_TIMEOUT,4,4
	.comm	EIO,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-is.c_fimc_is_hw_initialize.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"get setfile address timed out\012\000"
	.align	2
.LC1:
	.ascii	"setfile.base: %#x\012\000"
	.align	2
.LC2:
	.ascii	"loading setfile timed out\012\000"
	.align	2
.LC3:
	.ascii	"setfile: base: %#x, size: %d\012\000"
	.align	2
.LC4:
	.ascii	"FIMC-IS Setfile info: %s\012\000"
	.align	2
.LC5:
	.ascii	"magic number error!\012\000"
	.align	2
.LC6:
	.ascii	"shared region: %pad, parameter region: %pad\012\000"
	.align	2
.LC7:
	.ascii	"stream off timeout\012\000"
	.align	2
.LC8:
	.ascii	"initialization sequence completed (%d)\012\000"
	.text
	.align	2
	.global	fimc_is_hw_initialize
	.syntax unified
	.arm
	.fpu softvfp
	.type	fimc_is_hw_initialize, %function
fimc_is_hw_initialize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r1, [r0, #36]
	mov	r5, r0
	ldr	r8, [r0, #40]
	bl	fimc_is_hw_open_sensor
	subs	r4, r0, #0
	blt	.L1
	ldr	r7, .L17
	ldr	r6, .L17+4
	mov	r0, r5
	bl	fimc_is_hw_get_setfile_addr
	mov	r2, #1
	mov	r0, r5
	ldr	r3, [r7]
	ldr	r1, [r6]
	bl	fimc_is_wait_event
	subs	r4, r0, #0
	blt	.L12
	ldr	r1, [r5, #16]
	ldr	r0, .L17+8
	bl	pr_debug
	ldr	r3, .L17+12
	mov	r0, r5
	ldr	r1, [r3]
	add	r10, r5, #4
	bl	fimc_is_load_setfile
	mov	r1, r10
	ldr	r0, [r6]
	bl	clear_bit
	mov	r0, r5
	bl	fimc_is_hw_load_setfile
	mov	r2, #1
	mov	r0, r5
	ldr	r1, [r6]
	ldr	r3, [r7]
	bl	fimc_is_wait_event
	subs	r4, r0, #0
	blt	.L13
	ldr	r2, [r5, #12]
	ldr	r1, [r5, #16]
	ldr	r0, .L17+16
	bl	pr_debug
	ldr	r1, [r5, #32]
	ldr	r0, .L17+20
	bl	pr_info
	ldr	r3, .L17+24
	ldr	r2, [r5, #28]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L17+28
	sub	r3, r3, #-1073741823
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [r1]
	cmp	r2, r3
	bne	.L14
	mov	r6, #0
	ldr	r3, .L17+32
	add	r1, r5, #24
	ldr	r3, [r3]
	add	r2, r5, #20
	add	r1, r1, r3, lsl #2
	ldr	r0, .L17+36
	bl	pr_debug
	mov	r0, r5
	str	r6, [r5, #8]
	bl	fimc_is_hw_stream_off
	ldr	r2, .L17+40
	mov	r0, r5
	ldr	r1, [r2]
	ldr	r3, [r7]
	mov	r2, #1
	bl	fimc_is_wait_event
	subs	r4, r0, #0
	blt	.L15
	ldr	r7, .L17+44
	ldr	fp, [r5]
	mov	r9, r7
	b	.L7
.L9:
	ldr	r3, [r7], #4
	mov	r0, r5
	str	r3, [r5]
	bl	fimc_is_set_initial_params
	mov	r1, #1
	mov	r0, r5
	bl	fimc_is_itf_s_param
	subs	r4, r0, #0
	blt	.L16
	add	r6, r6, #1
.L7:
	mov	r0, r9
	bl	ARRAY_SIZE
	cmp	r0, r6
	bgt	.L9
	ldr	r3, .L17+48
	mov	r1, r10
	ldr	r0, [r3]
	str	fp, [r5]
	bl	set_bit
	mov	r0, r8
	ldr	r2, [r5]
	ldr	r1, .L17+52
	bl	dev_info
	mov	r4, #0
.L1:
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r0, r8
	ldr	r1, .L17+56
	bl	dev_err
	ldr	r3, .L17+60
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r0, r8
	ldr	r1, .L17+64
	bl	dev_err
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r0, r8
	ldr	r1, .L17+68
	bl	dev_err
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	str	fp, [r5]
	b	.L1
.L15:
	mov	r0, r8
	ldr	r1, .L17+72
	bl	dev_err
	b	.L1
.L18:
	.align	2
.L17:
	.word	FIMC_IS_CONFIG_TIMEOUT
	.word	IS_ST_SETFILE_LOADED
	.word	.LC1
	.word	FIMC_IS_SETFILE_6A3
	.word	.LC3
	.word	.LC4
	.word	MAX_SHARED_COUNT
	.word	FIMC_IS_MAGIC_NUMBER
	.word	FIMC_IS_SHARED_REGION_OFFSET
	.word	.LC6
	.word	IS_ST_STREAM_OFF
	.word	.LANCHOR0
	.word	IS_ST_INIT_DONE
	.word	.LC8
	.word	.LC5
	.word	EIO
	.word	.LC0
	.word	.LC2
	.word	.LC7
	.size	fimc_is_hw_initialize, .-fimc_is_hw_initialize
	.comm	MAX_SHARED_COUNT,4,4
	.comm	IS_ST_STREAM_OFF,4,4
	.comm	IS_ST_SETFILE_LOADED,4,4
	.comm	IS_ST_INIT_DONE,4,4
	.comm	FIMC_IS_SHARED_REGION_OFFSET,4,4
	.comm	FIMC_IS_SETFILE_6A3,4,4
	.comm	FIMC_IS_MAGIC_NUMBER,4,4
	.comm	FIMC_IS_CONFIG_TIMEOUT,4,4
	.comm	EIO,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	config_ids.4284, %object
	.size	config_ids.4284, 16
config_ids.4284:
	.word	129
	.word	128
	.word	131
	.word	130
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
