	.file	"extr_iss.c_iss_isp_reset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ISP5 standby timeout\n"
.LC1:
	.string	"ISP5 reset timeout\n"
	.text
	.p2align 4
	.type	iss_isp_reset, @function
iss_isp_reset:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, DWORD PTR ISP5_SYSCONFIG_STANDBYMODE_SMART[rip]
	mov	ecx, DWORD PTR ISP5_SYSCONFIG_STANDBYMODE_MASK[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edx, DWORD PTR ISP5_SYSCONFIG[rip]
	mov	esi, DWORD PTR OMAP4_ISS_MEM_ISP_SYS1[rip]
	call	iss_reg_update@PLT
	mov	ecx, DWORD PTR ISP5_CTRL_MSTANDBY[rip]
	mov	edx, DWORD PTR ISP5_CTRL[rip]
	mov	rdi, rbx
	mov	esi, DWORD PTR OMAP4_ISS_MEM_ISP_SYS1[rip]
	call	iss_reg_set@PLT
	mov	edx, DWORD PTR ISP5_CTRL[rip]
	mov	esi, DWORD PTR OMAP4_ISS_MEM_ISP_SYS1[rip]
	mov	rdi, rbx
	call	iss_reg_read@PLT
	and	eax, DWORD PTR ISP5_CTRL_MSTANDBY_WAIT[rip]
	mov	ecx, 1500
	mov	edx, 1000
	mov	edi, eax
	mov	esi, 1000000
	call	iss_poll_condition_timeout@PLT
	test	eax, eax
	jne	.L8
	mov	ecx, DWORD PTR ISP5_SYSCONFIG_SOFTRESET[rip]
	mov	edx, DWORD PTR ISP5_SYSCONFIG[rip]
	mov	rdi, rbx
	mov	esi, DWORD PTR OMAP4_ISS_MEM_ISP_SYS1[rip]
	call	iss_reg_set@PLT
	mov	edx, DWORD PTR ISP5_SYSCONFIG[rip]
	mov	esi, DWORD PTR OMAP4_ISS_MEM_ISP_SYS1[rip]
	mov	rdi, rbx
	call	iss_reg_read@PLT
	xor	edi, edi
	test	DWORD PTR ISP5_SYSCONFIG_SOFTRESET[rip], eax
	mov	ecx, 1500
	sete	dil
	mov	edx, 1000
	mov	esi, 1000000
	call	iss_poll_condition_timeout@PLT
	mov	r8d, eax
	xor	eax, eax
	test	r8d, r8d
	jne	.L9
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	iss_isp_reset, .-iss_isp_reset
	.comm	OMAP4_ISS_MEM_ISP_SYS1,4,4
	.comm	ISP5_SYSCONFIG_STANDBYMODE_SMART,4,4
	.comm	ISP5_SYSCONFIG_STANDBYMODE_MASK,4,4
	.comm	ISP5_SYSCONFIG_SOFTRESET,4,4
	.comm	ISP5_SYSCONFIG,4,4
	.comm	ISP5_CTRL_MSTANDBY_WAIT,4,4
	.comm	ISP5_CTRL_MSTANDBY,4,4
	.comm	ISP5_CTRL,4,4
	.comm	ETIMEDOUT,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.c_iss_isp_reset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ISP5 standby timeout\012\000"
	.align	2
.LC1:
	.ascii	"ISP5 reset timeout\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iss_isp_reset, %function
iss_isp_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r2, .L9
	sub	sp, sp, #12
	ldr	r2, [r2]
	ldr	r5, .L9+4
	ldr	r3, .L9+8
	ldr	r6, .L9+12
	str	r2, [sp]
	ldr	r3, [r3]
	ldr	r2, [r6]
	ldr	r1, [r5]
	bl	iss_reg_update
	ldr	r7, .L9+16
	ldr	r3, .L9+20
	ldr	r1, [r5]
	ldr	r3, [r3]
	ldr	r2, [r7]
	mov	r0, r4
	bl	iss_reg_set
	ldr	r2, [r7]
	ldr	r1, [r5]
	mov	r0, r4
	bl	iss_reg_read
	ldr	r2, .L9+24
	ldr	r3, .L9+28
	ldr	r1, [r2]
	mov	r2, #1000
	and	r0, r0, r1
	ldr	r1, .L9+32
	bl	iss_poll_condition_timeout
	cmp	r0, #0
	bne	.L7
	ldr	r7, .L9+36
	ldr	r2, [r6]
	ldr	r3, [r7]
	ldr	r1, [r5]
	mov	r0, r4
	bl	iss_reg_set
	ldr	r2, [r6]
	ldr	r1, [r5]
	mov	r0, r4
	bl	iss_reg_read
	ldr	r2, [r7]
	ldr	r3, .L9+28
	tst	r0, r2
	moveq	r0, #1
	movne	r0, #0
	mov	r2, #1000
	ldr	r1, .L9+32
	bl	iss_poll_condition_timeout
	cmp	r0, #0
	bne	.L8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	ldr	r0, [r4]
	ldr	r1, .L9+40
	bl	dev_err
	ldr	r3, .L9+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	ldr	r0, [r4]
	ldr	r1, .L9+48
	bl	dev_err
	ldr	r3, .L9+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	.align	2
.L9:
	.word	ISP5_SYSCONFIG_STANDBYMODE_SMART
	.word	OMAP4_ISS_MEM_ISP_SYS1
	.word	ISP5_SYSCONFIG_STANDBYMODE_MASK
	.word	ISP5_SYSCONFIG
	.word	ISP5_CTRL
	.word	ISP5_CTRL_MSTANDBY
	.word	ISP5_CTRL_MSTANDBY_WAIT
	.word	1500
	.word	1000000
	.word	ISP5_SYSCONFIG_SOFTRESET
	.word	.LC0
	.word	ETIMEDOUT
	.word	.LC1
	.size	iss_isp_reset, .-iss_isp_reset
	.comm	OMAP4_ISS_MEM_ISP_SYS1,4,4
	.comm	ISP5_SYSCONFIG_STANDBYMODE_SMART,4,4
	.comm	ISP5_SYSCONFIG_STANDBYMODE_MASK,4,4
	.comm	ISP5_SYSCONFIG_SOFTRESET,4,4
	.comm	ISP5_SYSCONFIG,4,4
	.comm	ISP5_CTRL_MSTANDBY_WAIT,4,4
	.comm	ISP5_CTRL_MSTANDBY,4,4
	.comm	ISP5_CTRL,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
