	.file	"extr_i2c-core-base.c_i2c_generic_scl_recovery.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SCL is stuck low, exit recovery\n"
	.text
	.p2align 4
	.globl	i2c_generic_scl_recovery
	.type	i2c_generic_scl_recovery, @function
i2c_generic_scl_recovery:
.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	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR 32[r12]
	test	rax, rax
	je	.L2
	call	rax
.L2:
	mov	esi, 1
	mov	rdi, rbp
	call	[QWORD PTR 16[r12]]
	mov	eax, DWORD PTR RECOVERY_NDELAY[rip]
	mov	edi, eax
	shr	edi, 31
	add	edi, eax
	sar	edi
	call	ndelay@PLT
	mov	rax, QWORD PTR 8[r12]
	test	rax, rax
	je	.L3
	mov	esi, 1
	mov	rdi, rbp
	call	rax
.L3:
	mov	eax, DWORD PTR RECOVERY_NDELAY[rip]
	mov	edi, eax
	shr	edi, 31
	add	edi, eax
	sar	edi
	call	ndelay@PLT
	mov	eax, DWORD PTR RECOVERY_CLK_CNT[rip]
	test	eax, eax
	jle	.L4
	xor	ebx, ebx
	xor	r13d, r13d
	mov	edx, 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, rbp
	call	[QWORD PTR 24[r12]]
	test	eax, eax
	je	.L34
	xor	esi, esi
	mov	rdi, rbp
	call	[QWORD PTR 16[r12]]
	mov	eax, DWORD PTR RECOVERY_NDELAY[rip]
	mov	edi, eax
	shr	edi, 31
	add	edi, eax
	sar	edi
	call	ndelay@PLT
	mov	rax, QWORD PTR 8[r12]
	test	rax, rax
	je	.L32
	xor	esi, esi
	mov	rdi, rbp
	call	rax
.L32:
	mov	eax, DWORD PTR RECOVERY_NDELAY[rip]
	add	ebx, 1
	mov	edi, eax
	shr	edi, 31
	add	edi, eax
	sar	edi
	call	ndelay@PLT
	mov	eax, DWORD PTR RECOVERY_CLK_CNT[rip]
	xor	edx, edx
	add	eax, eax
	cmp	eax, ebx
	jle	.L7
.L8:
	test	edx, edx
	jne	.L35
	mov	esi, 1
	mov	rdi, rbp
	call	[QWORD PTR 16[r12]]
	mov	eax, DWORD PTR RECOVERY_NDELAY[rip]
	mov	edi, eax
	shr	edi, 31
	add	edi, eax
	sar	edi
	call	ndelay@PLT
	mov	rax, QWORD PTR 8[r12]
	test	rax, rax
	je	.L31
	mov	esi, 1
	mov	rdi, rbp
	call	rax
.L31:
	mov	eax, DWORD PTR RECOVERY_NDELAY[rip]
	mov	edi, eax
	shr	edi, 31
	add	edi, eax
	sar	edi
	call	ndelay@PLT
	mov	rdi, rbp
	call	i2c_generic_bus_free@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR RECOVERY_CLK_CNT[rip]
	add	ebx, 1
	mov	edx, 1
	add	eax, eax
	cmp	eax, ebx
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, r13d
	add	eax, DWORD PTR EOPNOTSUPP[rip]
	mov	eax, 0
	cmove	r13d, eax
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	call	rax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L34:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	r13d, DWORD PTR EBUSY[rip]
	neg	r13d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	xor	r13d, r13d
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	i2c_generic_scl_recovery, .-i2c_generic_scl_recovery
	.comm	RECOVERY_NDELAY,4,4
	.comm	RECOVERY_CLK_CNT,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EBUSY,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_i2c-core-base.c_i2c_generic_scl_recovery.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SCL is stuck low, exit recovery\012\000"
	.text
	.align	2
	.global	i2c_generic_scl_recovery
	.syntax unified
	.arm
	.fpu softvfp
	.type	i2c_generic_scl_recovery, %function
i2c_generic_scl_recovery:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, [r0, #4]
	mov	r7, r0
	ldr	r3, [r6, #16]
	cmp	r3, #0
	beq	.L2
	blx	r3
.L2:
	ldr	r8, .L36
	ldr	r3, [r6, #8]
	mov	r1, #1
	mov	r0, r7
	blx	r3
	ldr	r0, [r8]
	add	r0, r0, r0, lsr #31
	asr	r0, r0, #1
	bl	ndelay
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L3
	mov	r1, #1
	mov	r0, r7
	blx	r3
.L3:
	ldr	r0, [r8]
	ldr	r9, .L36+4
	add	r0, r0, r0, lsr #31
	asr	r0, r0, #1
	bl	ndelay
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L4
	mov	r5, #0
	mov	r3, #1
	mov	r10, r5
	b	.L8
.L35:
	mov	r0, r7
	ldr	r3, [r6, #12]
	blx	r3
	cmp	r0, #0
	beq	.L34
	mov	r1, #0
	ldr	r3, [r6, #8]
	mov	r0, r7
	blx	r3
	ldr	r0, [r8]
	add	r0, r0, r0, lsr #31
	asr	r0, r0, #1
	bl	ndelay
	ldr	r4, [r6, #4]
	cmp	r4, #0
	beq	.L32
	mov	r1, #0
	mov	r0, r7
	blx	r4
.L32:
	ldr	r0, [r8]
	add	r5, r5, #1
	add	r0, r0, r0, lsr #31
	asr	r0, r0, #1
	bl	ndelay
	ldr	r2, [r9]
	mov	r3, #0
	cmp	r5, r2, lsl #1
	bge	.L7
.L8:
	cmp	r3, #0
	bne	.L35
	ldr	r3, [r6, #8]
	mov	r1, #1
	mov	r0, r7
	blx	r3
	ldr	r0, [r8]
	add	r0, r0, r0, lsr #31
	asr	r0, r0, #1
	bl	ndelay
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L31
	mov	r1, #1
	mov	r0, r7
	blx	r3
.L31:
	ldr	r0, [r8]
	add	r0, r0, r0, lsr #31
	asr	r0, r0, #1
	bl	ndelay
	mov	r0, r7
	bl	i2c_generic_bus_free
	subs	r10, r0, #0
	beq	.L4
	ldr	r2, [r9]
	add	r5, r5, #1
	cmp	r5, r2, lsl #1
	mov	r3, #1
	blt	.L8
.L7:
	ldr	r2, .L36+8
	ldr	r3, [r6]
	ldr	r2, [r2]
	cmn	r10, r2
	moveq	r10, #0
	cmp	r3, #0
	beq	.L1
	mov	r0, r7
	blx	r3
.L1:
	mov	r0, r10
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L34:
	mov	r0, r7
	ldr	r1, .L36+12
	bl	dev_err
	ldr	r3, .L36+16
	ldr	r10, [r3]
	rsb	r10, r10, #0
	b	.L7
.L4:
	mov	r10, #0
	b	.L7
.L37:
	.align	2
.L36:
	.word	RECOVERY_NDELAY
	.word	RECOVERY_CLK_CNT
	.word	EOPNOTSUPP
	.word	.LC0
	.word	EBUSY
	.size	i2c_generic_scl_recovery, .-i2c_generic_scl_recovery
	.comm	RECOVERY_NDELAY,4,4
	.comm	RECOVERY_CLK_CNT,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
