	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_i2c_abort
_fsi_i2c_abort:                         ## @fsi_i2c_abort
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	%esi, -44(%rbp)
	movq	_I2C_CMD_WITH_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	8(%rdi), %rbx
	movq	(%rbx), %r14
	movl	(%rdi), %esi
	movq	%rbx, %rdi
	callq	_fsi_i2c_reset_engine
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_I2C_FSI_STAT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_fsi_i2c_read_reg
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	_I2C_STAT_SDA_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_5
LBB0_3:
	movq	_I2C_STAT_PARITY@GOTPCREL(%rip), %rax
	movq	_I2C_STAT_LOST_ARB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_I2C_STAT_STOP_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_fsi_i2c_reset_bus
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_3
LBB0_6:
	movq	_I2C_FSI_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%r14, %rdi
	callq	_fsi_i2c_write_reg
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	-44(%rbp), %r12
	movq	_I2C_ABORT_TIMEOUT@GOTPCREL(%rip), %r15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_fsi_i2c_read_reg
	testl	%eax, %eax
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_I2C_STAT_CMD_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_I2C_CMD_SLEEP_MIN_US@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I2C_CMD_SLEEP_MAX_US@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usleep_range
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_9
## %bb.12:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CMD_WITH_STOP,4,2          ## @I2C_CMD_WITH_STOP
	.comm	_I2C_FSI_STAT,4,2               ## @I2C_FSI_STAT
	.comm	_I2C_STAT_SDA_IN,4,2            ## @I2C_STAT_SDA_IN
	.comm	_I2C_STAT_PARITY,4,2            ## @I2C_STAT_PARITY
	.comm	_I2C_STAT_LOST_ARB,4,2          ## @I2C_STAT_LOST_ARB
	.comm	_I2C_STAT_STOP_ERR,4,2          ## @I2C_STAT_STOP_ERR
	.comm	_I2C_FSI_CMD,4,2                ## @I2C_FSI_CMD
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_I2C_STAT_CMD_COMP,4,2          ## @I2C_STAT_CMD_COMP
	.comm	_I2C_CMD_SLEEP_MIN_US,4,2       ## @I2C_CMD_SLEEP_MIN_US
	.comm	_I2C_CMD_SLEEP_MAX_US,4,2       ## @I2C_CMD_SLEEP_MAX_US
	.comm	_I2C_ABORT_TIMEOUT,8,3          ## @I2C_ABORT_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_fsi_i2c_abort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_i2c_abort
_fsi_i2c_abort:                         ; @fsi_i2c_abort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _I2C_CMD_WITH_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_CMD_WITH_STOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w1, [sp, #8]
	ldr	x22, [x0, #8]
	ldr	x19, [x22]
	ldr	w1, [x0]
	mov	x0, x22
	bl	_fsi_i2c_reset_engine
	cbnz	w0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x23, _I2C_FSI_STAT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _I2C_FSI_STAT@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #4
	mov	x0, x19
	bl	_fsi_i2c_read_reg
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	w8, [sp, #4]
Lloh5:
	adrp	x9, _I2C_STAT_SDA_IN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I2C_STAT_SDA_IN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _I2C_STAT_PARITY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_STAT_PARITY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _I2C_STAT_LOST_ARB@GOTPAGE
Lloh12:
	ldr	x9, [x9, _I2C_STAT_LOST_ARB@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _I2C_STAT_STOP_ERR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _I2C_STAT_STOP_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w20
	b.eq	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	bl	_fsi_i2c_reset_bus
	cbnz	w0, LBB0_7
	b	LBB0_3
LBB0_6:
Lloh17:
	adrp	x8, _I2C_FSI_CMD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I2C_FSI_CMD@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_fsi_i2c_write_reg
	cbz	w0, LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
Lloh20:
	adrp	x20, _jiffies@GOTPAGE
Lloh21:
	ldr	x20, [x20, _jiffies@GOTPAGEOFF]
	ldr	x21, [x20]
Lloh22:
	adrp	x22, _I2C_STAT_CMD_COMP@GOTPAGE
Lloh23:
	ldr	x22, [x22, _I2C_STAT_CMD_COMP@GOTPAGEOFF]
Lloh24:
	adrp	x24, _I2C_CMD_SLEEP_MIN_US@GOTPAGE
Lloh25:
	ldr	x24, [x24, _I2C_CMD_SLEEP_MIN_US@GOTPAGEOFF]
Lloh26:
	adrp	x25, _I2C_CMD_SLEEP_MAX_US@GOTPAGE
Lloh27:
	ldr	x25, [x25, _I2C_CMD_SLEEP_MAX_US@GOTPAGEOFF]
Lloh28:
	adrp	x26, _I2C_ABORT_TIMEOUT@GOTPAGE
Lloh29:
	ldr	x26, [x26, _I2C_ABORT_TIMEOUT@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_fsi_i2c_read_reg
	cbnz	w0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_usleep_range
	ldr	x8, [x26]
	add	x0, x8, x21
	ldr	x1, [x20]
	bl	_time_after
	cbnz	x0, LBB0_9
; %bb.12:
Lloh30:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CMD_WITH_STOP,4,2          ; @I2C_CMD_WITH_STOP
	.comm	_I2C_FSI_STAT,4,2               ; @I2C_FSI_STAT
	.comm	_I2C_STAT_SDA_IN,4,2            ; @I2C_STAT_SDA_IN
	.comm	_I2C_STAT_PARITY,4,2            ; @I2C_STAT_PARITY
	.comm	_I2C_STAT_LOST_ARB,4,2          ; @I2C_STAT_LOST_ARB
	.comm	_I2C_STAT_STOP_ERR,4,2          ; @I2C_STAT_STOP_ERR
	.comm	_I2C_FSI_CMD,4,2                ; @I2C_FSI_CMD
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_I2C_STAT_CMD_COMP,4,2          ; @I2C_STAT_CMD_COMP
	.comm	_I2C_CMD_SLEEP_MIN_US,4,2       ; @I2C_CMD_SLEEP_MIN_US
	.comm	_I2C_CMD_SLEEP_MAX_US,4,2       ; @I2C_CMD_SLEEP_MAX_US
	.comm	_I2C_ABORT_TIMEOUT,8,3          ; @I2C_ABORT_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_fsi_i2c_abort
.subsections_via_symbols
