	.file	"extr_fimc-capture.c_fimc_capture_hw_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fimc_capture_hw_init, @function
fimc_capture_hw_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	r12, QWORD PTR 16[rdi]
	test	r12, r12
	je	.L2
	cmp	QWORD PTR [r12], 0
	je	.L2
	mov	rax, QWORD PTR FIMC_BUS_TYPE_ISP_WRITEBACK[rip]
	mov	rbp, rdi
	cmp	QWORD PTR 24[rdi], rax
	je	.L5
.L8:
	xor	esi, esi
	mov	rdi, rbp
	lea	r13, 24[rbp]
	call	spin_lock_irqsave@PLT
	lea	rsi, 8[r12]
	mov	rdi, r12
	call	fimc_prepare_dma_offset@PLT
	mov	rdi, r12
	call	fimc_set_yuv_order@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	fimc_hw_set_camera_polarity@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	fimc_hw_set_camera_type@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	fimc_hw_set_camera_source@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	fimc_hw_set_camera_offset@PLT
	mov	rdi, r12
	call	fimc_set_scaler_info@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L15
.L7:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	call	fimc_hw_camblk_cfg_writeback@PLT
	mov	r13d, eax
	test	eax, eax
	jns	.L8
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r12
	call	fimc_hw_set_input_path@PLT
	mov	rdi, r12
	call	fimc_hw_set_prescaler@PLT
	mov	rdi, r12
	call	fimc_hw_set_mainscaler@PLT
	mov	rdi, r12
	call	fimc_hw_set_target_format@PLT
	mov	rdi, r12
	call	fimc_hw_set_rotation@PLT
	mov	rdi, r12
	call	fimc_hw_set_effect@PLT
	mov	rdi, r12
	call	fimc_hw_set_output_path@PLT
	mov	rdi, r12
	call	fimc_hw_set_out_dma@PLT
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR [rax], 0
	jne	.L16
.L9:
	mov	edi, DWORD PTR ST_CAPT_APPLY_CFG[rip]
	lea	rsi, 4[rbp]
	call	clear_bit@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r13d, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	neg	r13d
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, r12
	call	fimc_hw_set_rgb_alpha@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	fimc_capture_hw_init, .-fimc_capture_hw_init
	.comm	ST_CAPT_APPLY_CFG,4,4
	.comm	FIMC_BUS_TYPE_ISP_WRITEBACK,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_fimc-capture.c_fimc_capture_hw_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fimc_capture_hw_init, %function
fimc_capture_hw_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r0, #12]
	cmp	r6, #0
	beq	.L2
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L20
	ldr	r2, [r0, #16]
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r2, r3
	beq	.L5
.L8:
	mov	r1, #0
	mov	r0, r4
	bl	spin_lock_irqsave
	add	r1, r6, #4
	mov	r0, r6
	bl	fimc_prepare_dma_offset
	add	r5, r4, #16
	mov	r0, r6
	bl	fimc_set_yuv_order
	mov	r1, r5
	mov	r0, r4
	bl	fimc_hw_set_camera_polarity
	mov	r1, r5
	mov	r0, r4
	bl	fimc_hw_set_camera_type
	mov	r1, r5
	mov	r0, r4
	bl	fimc_hw_set_camera_source
	mov	r1, r6
	mov	r0, r4
	bl	fimc_hw_set_camera_offset
	mov	r0, r6
	bl	fimc_set_scaler_info
	subs	r5, r0, #0
	beq	.L18
.L7:
	mov	r0, r4
	mov	r1, #0
	bl	spin_unlock_irqrestore
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L5:
	bl	fimc_hw_camblk_cfg_writeback
	subs	r5, r0, #0
	bge	.L8
	b	.L1
.L18:
	mov	r0, r6
	bl	fimc_hw_set_input_path
	mov	r0, r6
	bl	fimc_hw_set_prescaler
	mov	r0, r6
	bl	fimc_hw_set_mainscaler
	mov	r0, r6
	bl	fimc_hw_set_target_format
	mov	r0, r6
	bl	fimc_hw_set_rotation
	mov	r0, r6
	bl	fimc_hw_set_effect
	mov	r0, r6
	bl	fimc_hw_set_output_path
	mov	r0, r6
	bl	fimc_hw_set_out_dma
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
.L9:
	ldr	r3, .L20+4
	add	r1, r4, #4
	ldr	r0, [r3]
	bl	clear_bit
	b	.L7
.L2:
	ldr	r3, .L20+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L19:
	mov	r0, r6
	bl	fimc_hw_set_rgb_alpha
	b	.L9
.L21:
	.align	2
.L20:
	.word	FIMC_BUS_TYPE_ISP_WRITEBACK
	.word	ST_CAPT_APPLY_CFG
	.word	EINVAL
	.size	fimc_capture_hw_init, .-fimc_capture_hw_init
	.comm	ST_CAPT_APPLY_CFG,4,4
	.comm	FIMC_BUS_TYPE_ISP_WRITEBACK,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
