	.file	"extr_iss_csiphy.c_csiphy_set_power.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CSI2 CIO set power failed!\n"
	.text
	.p2align 4
	.type	csiphy_set_power, @function
csiphy_set_power:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, DWORD PTR CSI2_COMPLEXIO_CFG_PWR_AUTO[rip]
	mov	ecx, DWORD PTR CSI2_COMPLEXIO_CFG_PWD_CMD_MASK[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	edx, DWORD PTR CSI2_COMPLEXIO_CFG[rip]
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	esi, DWORD PTR 8[rdi]
	or	r8d, r12d
	xor	ebx, ebx
	mov	rdi, QWORD PTR [rdi]
	sar	r12d, 2
	call	iss_reg_update@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	add	ebx, 1
	cmp	ebx, 250
	je	.L8
.L3:
	mov	edi, 1
	call	udelay@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR CSI2_COMPLEXIO_CFG[rip]
	mov	rdi, QWORD PTR 0[rbp]
	call	iss_reg_read@PLT
	and	eax, DWORD PTR CSI2_COMPLEXIO_CFG_PWD_STATUS_MASK[rip]
	cmp	r12d, eax
	jne	.L9
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	dev_err@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	csiphy_set_power, .-csiphy_set_power
	.comm	EBUSY,4,4
	.comm	CSI2_COMPLEXIO_CFG_PWR_AUTO,4,4
	.comm	CSI2_COMPLEXIO_CFG_PWD_STATUS_MASK,4,4
	.comm	CSI2_COMPLEXIO_CFG_PWD_CMD_MASK,4,4
	.comm	CSI2_COMPLEXIO_CFG,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_iss_csiphy.c_csiphy_set_power.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CSI2 CIO set power failed!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	csiphy_set_power, %function
csiphy_set_power:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	ldr	r3, .L10
	ldr	r2, .L10+4
	ldr	r3, [r3]
	sub	sp, sp, #8
	orr	r3, r1, r3
	ldr	r7, .L10+8
	str	r3, [sp]
	ldr	r3, [r2]
	mov	r5, r0
	ldm	r0, {r0, r1}
	ldr	r2, [r7]
	bl	iss_reg_update
	mov	r4, #0
	ldr	r8, .L10+12
	asr	r6, r6, #2
	b	.L3
.L9:
	cmp	r4, #250
	beq	.L8
.L3:
	mov	r0, #1
	bl	udelay
	ldm	r5, {r0, r1}
	ldr	r2, [r7]
	bl	iss_reg_read
	ldr	r3, [r8]
	add	r4, r4, #1
	and	r0, r0, r3
	cmp	r6, r0
	bne	.L9
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, [r5]
	ldr	r1, .L10+16
	ldr	r0, [r3]
	bl	dev_err
	ldr	r3, .L10+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	CSI2_COMPLEXIO_CFG_PWR_AUTO
	.word	CSI2_COMPLEXIO_CFG_PWD_CMD_MASK
	.word	CSI2_COMPLEXIO_CFG
	.word	CSI2_COMPLEXIO_CFG_PWD_STATUS_MASK
	.word	.LC0
	.word	EBUSY
	.size	csiphy_set_power, .-csiphy_set_power
	.comm	EBUSY,4,4
	.comm	CSI2_COMPLEXIO_CFG_PWR_AUTO,4,4
	.comm	CSI2_COMPLEXIO_CFG_PWD_STATUS_MASK,4,4
	.comm	CSI2_COMPLEXIO_CFG_PWD_CMD_MASK,4,4
	.comm	CSI2_COMPLEXIO_CFG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
