	.file	"extr_fimc-is.c_fimc_is_cpu_set_power.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fimc_is_cpu_set_power
	.type	fimc_is_cpu_set_power, @function
fimc_is_cpu_set_power:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	esi, esi
	je	.L2
	mov	edx, DWORD PTR REG_WDT_ISP[rip]
	mov	rsi, rdi
	xor	edi, edi
	call	mcuctl_write@PLT
	mov	edx, DWORD PTR MCUCTL_REG_BBOAR[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, rbp
	call	mcuctl_write@PLT
	mov	edx, DWORD PTR REG_PMU_ISP_ARM_OPTION[rip]
	mov	rsi, rbp
	mov	edi, 98304
	call	pmuisp_write@PLT
	mov	edx, DWORD PTR REG_PMU_ISP_ARM_CONFIGURATION[rip]
	mov	rsi, rbp
	mov	edi, 1
	call	pmuisp_write@PLT
	xor	eax, 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
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR REG_PMU_ISP_ARM_OPTION[rip]
	mov	rsi, rdi
	mov	edi, 65536
	mov	ebx, DWORD PTR FIMC_IS_POWER_ON_TIMEOUT[rip]
	call	pmuisp_write@PLT
	mov	edx, DWORD PTR REG_PMU_ISP_ARM_CONFIGURATION[rip]
	mov	rsi, rbp
	xor	edi, edi
	call	pmuisp_write@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, 1
	sub	ebx, 1
	call	udelay@PLT
.L4:
	mov	esi, DWORD PTR REG_PMU_ISP_ARM_STATUS[rip]
	mov	rdi, rbp
	call	pmuisp_read@PLT
	and	eax, 1
	je	.L1
	test	ebx, ebx
	jne	.L5
	mov	eax, DWORD PTR ETIME[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	fimc_is_cpu_set_power, .-fimc_is_cpu_set_power
	.comm	REG_WDT_ISP,4,4
	.comm	REG_PMU_ISP_ARM_STATUS,4,4
	.comm	REG_PMU_ISP_ARM_OPTION,4,4
	.comm	REG_PMU_ISP_ARM_CONFIGURATION,4,4
	.comm	MCUCTL_REG_BBOAR,4,4
	.comm	FIMC_IS_POWER_ON_TIMEOUT,4,4
	.comm	ETIME,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_cpu_set_power.c"
	.text
	.align	2
	.global	fimc_is_cpu_set_power
	.syntax unified
	.arm
	.fpu softvfp
	.type	fimc_is_cpu_set_power, %function
fimc_is_cpu_set_power:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r6, r1, #0
	mov	r5, r0
	beq	.L2
	ldr	r3, .L9
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, #0
	bl	mcuctl_write
	ldr	r3, .L9+4
	mov	r1, r5
	ldr	r2, [r3]
	ldr	r0, [r5]
	bl	mcuctl_write
	ldr	r3, .L9+8
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, #98304
	bl	pmuisp_write
	ldr	r3, .L9+12
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, #1
	bl	pmuisp_write
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r2, .L9+8
	ldr	r3, .L9+16
	mov	r1, r0
	ldr	r2, [r2]
	mov	r0, #65536
	ldr	r4, [r3]
	bl	pmuisp_write
	ldr	r3, .L9+12
	mov	r0, r6
	mov	r1, r5
	ldr	r2, [r3]
	bl	pmuisp_write
	ldr	r6, .L9+20
	b	.L4
.L5:
	mov	r0, #1
	sub	r4, r4, #1
	bl	udelay
.L4:
	mov	r0, r5
	ldr	r1, [r6]
	bl	pmuisp_read
	ands	r0, r0, #1
	popeq	{r4, r5, r6, pc}
	cmp	r4, #0
	bne	.L5
	ldr	r3, .L9+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	REG_WDT_ISP
	.word	MCUCTL_REG_BBOAR
	.word	REG_PMU_ISP_ARM_OPTION
	.word	REG_PMU_ISP_ARM_CONFIGURATION
	.word	FIMC_IS_POWER_ON_TIMEOUT
	.word	REG_PMU_ISP_ARM_STATUS
	.word	ETIME
	.size	fimc_is_cpu_set_power, .-fimc_is_cpu_set_power
	.comm	REG_WDT_ISP,4,4
	.comm	REG_PMU_ISP_ARM_STATUS,4,4
	.comm	REG_PMU_ISP_ARM_OPTION,4,4
	.comm	REG_PMU_ISP_ARM_CONFIGURATION,4,4
	.comm	MCUCTL_REG_BBOAR,4,4
	.comm	FIMC_IS_POWER_ON_TIMEOUT,4,4
	.comm	ETIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
