	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_generic_scl_recovery       ## -- Begin function i2c_generic_scl_recovery
	.p2align	4, 0x90
_i2c_generic_scl_recovery:              ## @i2c_generic_scl_recovery
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	32(%r12), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	*%rax
LBB0_2:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	*16(%r12)
	movq	_RECOVERY_NDELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	callq	_ndelay
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_4:
	movq	_RECOVERY_NDELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	callq	_ndelay
	movq	_RECOVERY_CLK_CNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_14
## %bb.5:
	movl	$1, %ebx
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_RECOVERY_CLK_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	incl	%r13d
	movl	%r14d, %ebx
	cmpl	%eax, %r13d
	jge	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	*24(%r12)
	testl	%eax, %eax
	je	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %r14d
	xorl	$1, %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	*16(%r12)
	movq	_RECOVERY_NDELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	callq	_ndelay
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	*%rax
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_RECOVERY_NDELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	callq	_ndelay
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_i2c_generic_bus_free
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_6
LBB0_14:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_16:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	callq	*%rax
LBB0_18:
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, %ebx
	cmovnel	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RECOVERY_NDELAY,4,2            ## @RECOVERY_NDELAY
	.comm	_RECOVERY_CLK_CNT,4,2           ## @RECOVERY_CLK_CNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCL is stuck low, exit recovery\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_generic_scl_recovery       ; -- Begin function i2c_generic_scl_recovery
	.p2align	2
_i2c_generic_scl_recovery:              ; @i2c_generic_scl_recovery
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	blr	x8
LBB0_2:
	ldr	x8, [x22, #16]
	mov	x0, x19
	mov	w1, #1
	blr	x8
Lloh0:
	adrp	x23, _RECOVERY_NDELAY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RECOVERY_NDELAY@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	bl	_ndelay
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_4:
	ldr	w8, [x23]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	bl	_ndelay
Lloh2:
	adrp	x24, _RECOVERY_CLK_CNT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _RECOVERY_CLK_CNT@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.5:
	mov	w25, #0
	mov	w20, #0
	mov	w26, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x24]
	add	w25, w25, #1
	cmp	w25, w8, lsl #1
	mov	x26, x21
	b.ge	LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w26, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #24]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	eor	w21, w26, #0x1
	ldr	x8, [x22, #16]
	mov	x0, x19
	mov	x1, x21
	blr	x8
	ldr	w8, [x23]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	bl	_ndelay
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x21
	blr	x8
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x23]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	bl	_ndelay
	cbnz	w26, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_i2c_generic_bus_free
	mov	x20, x0
	cbnz	w0, LBB0_6
	b	LBB0_15
LBB0_13:
	mov	w20, #0
	b	LBB0_15
LBB0_14:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	ldr	x8, [x22]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	blr	x8
LBB0_17:
	cmn	w20, w21
	csel	w0, wzr, w20, eq
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RECOVERY_NDELAY,4,2            ; @RECOVERY_NDELAY
	.comm	_RECOVERY_CLK_CNT,4,2           ; @RECOVERY_CLK_CNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCL is stuck low, exit recovery\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
.subsections_via_symbols
