	.file	"extr_i2c-st.c_st_i2c_recover_bus.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Trying to recover bus\n"
	.text
	.p2align 4
	.type	st_i2c_recover_bus, @function
st_i2c_recover_bus:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	call	i2c_get_adapdata@PLT
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR 8[rax]
	mov	rbx, rax
	call	dev_dbg@PLT
	mov	rsi, QWORD PTR SSC_IEN[rip]
	xor	edi, edi
	add	rsi, QWORD PTR [rbx]
	call	writel_relaxed@PLT
	mov	rdi, rbx
	call	st_i2c_hw_config@PLT
	mov	esi, DWORD PTR SSC_CTL_EN[rip]
	mov	rdi, QWORD PTR SSC_CTL[rip]
	or	esi, DWORD PTR SSC_CTL_MS[rip]
	add	rdi, QWORD PTR [rbx]
	or	esi, DWORD PTR SSC_CTL_EN_RX_FIFO[rip]
	or	esi, DWORD PTR SSC_CTL_EN_TX_FIFO[rip]
	call	st_i2c_set_bits@PLT
	mov	esi, DWORD PTR SSC_I2C_I2CM[rip]
	mov	rdi, QWORD PTR SSC_I2C[rip]
	add	rdi, QWORD PTR [rbx]
	call	st_i2c_clr_bits@PLT
	mov	esi, 10000
	mov	edi, 8000
	call	usleep_range@PLT
	mov	rsi, QWORD PTR SSC_TBUF[rip]
	xor	edi, edi
	add	rsi, QWORD PTR [rbx]
	call	writel_relaxed@PLT
	mov	esi, 4000
	mov	edi, 2000
	call	usleep_range@PLT
	mov	esi, DWORD PTR SSC_I2C_I2CM[rip]
	mov	rdi, QWORD PTR SSC_I2C[rip]
	add	rdi, QWORD PTR [rbx]
	call	st_i2c_set_bits@PLT
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	st_i2c_recover_bus, .-st_i2c_recover_bus
	.comm	SSC_TBUF,8,8
	.comm	SSC_IEN,8,8
	.comm	SSC_I2C_I2CM,4,4
	.comm	SSC_I2C,8,8
	.comm	SSC_CTL_MS,4,4
	.comm	SSC_CTL_EN_TX_FIFO,4,4
	.comm	SSC_CTL_EN_RX_FIFO,4,4
	.comm	SSC_CTL_EN,4,4
	.comm	SSC_CTL,8,8
	.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_i2c-st.c_st_i2c_recover_bus.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Trying to recover bus\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	st_i2c_recover_bus, %function
st_i2c_recover_bus:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	i2c_get_adapdata
	mov	r4, r0
	ldr	r1, .L4
	ldr	r0, [r0, #4]
	bl	dev_dbg
	ldr	r3, .L4+4
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, #0
	add	r1, r1, r3
	bl	writel_relaxed
	mov	r0, r4
	bl	st_i2c_hw_config
	ldr	r2, .L4+8
	ldr	r3, .L4+12
	ldr	ip, .L4+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r0, .L4+20
	ldr	r2, .L4+24
	ldr	ip, [ip]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, [r0]
	ldr	r0, [r4]
	orr	r3, r3, ip
	ldr	r6, .L4+28
	add	r0, r0, r2
	orr	r1, r3, r1
	bl	st_i2c_set_bits
	ldr	r5, .L4+32
	ldr	r3, [r6]
	ldr	r0, [r4]
	ldr	r1, [r5]
	add	r0, r0, r3
	bl	st_i2c_clr_bits
	ldr	r1, .L4+36
	mov	r0, #8000
	bl	usleep_range
	ldr	r3, .L4+40
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, #0
	add	r1, r1, r3
	bl	writel_relaxed
	mov	r1, #4000
	mov	r0, #2000
	bl	usleep_range
	ldr	r0, [r4]
	ldr	r3, [r6]
	ldr	r1, [r5]
	add	r0, r0, r3
	bl	st_i2c_set_bits
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	SSC_IEN
	.word	SSC_CTL_MS
	.word	SSC_CTL_EN
	.word	SSC_CTL_EN_RX_FIFO
	.word	SSC_CTL_EN_TX_FIFO
	.word	SSC_CTL
	.word	SSC_I2C
	.word	SSC_I2C_I2CM
	.word	10000
	.word	SSC_TBUF
	.size	st_i2c_recover_bus, .-st_i2c_recover_bus
	.comm	SSC_TBUF,4,4
	.comm	SSC_IEN,4,4
	.comm	SSC_I2C_I2CM,4,4
	.comm	SSC_I2C,4,4
	.comm	SSC_CTL_MS,4,4
	.comm	SSC_CTL_EN_TX_FIFO,4,4
	.comm	SSC_CTL_EN_RX_FIFO,4,4
	.comm	SSC_CTL_EN,4,4
	.comm	SSC_CTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
