	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_i2c_wait
_fsi_i2c_wait:                          ## @fsi_i2c_wait
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	_I2C_FSI_STAT@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 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
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	movq	%r12, %rdx
	callq	_fsi_i2c_read_reg
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edx
	movq	_I2C_STAT_ANY_RESP@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_fsi_i2c_handle_status
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	(%r15), %eax
	jne	LBB0_7
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_I2C_FSI_STAT,4,2               ## @I2C_FSI_STAT
	.comm	_I2C_STAT_ANY_RESP,4,2          ## @I2C_STAT_ANY_RESP
	.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	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_fsi_i2c_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_i2c_wait
_fsi_i2c_wait:                          ; @fsi_i2c_wait
	.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	x19, x1
	mov	x20, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x21, x8, x2
Lloh2:
	adrp	x23, _I2C_FSI_STAT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _I2C_FSI_STAT@GOTPAGEOFF]
Lloh4:
	adrp	x24, _I2C_STAT_ANY_RESP@GOTPAGE
Lloh5:
	ldr	x24, [x24, _I2C_STAT_ANY_RESP@GOTPAGEOFF]
Lloh6:
	adrp	x25, _I2C_CMD_SLEEP_MIN_US@GOTPAGE
Lloh7:
	ldr	x25, [x25, _I2C_CMD_SLEEP_MIN_US@GOTPAGEOFF]
Lloh8:
	adrp	x26, _I2C_CMD_SLEEP_MAX_US@GOTPAGE
Lloh9:
	ldr	x26, [x26, _I2C_CMD_SLEEP_MAX_US@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	ldr	w1, [x26]
	bl	_usleep_range
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x22]
	mov	x0, x21
	bl	_time_after
	cbz	x0, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_fsi_i2c_read_reg
	cbnz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [sp, #12]
	ldr	w8, [x24]
	tst	w8, w2
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_fsi_i2c_handle_status
	tbnz	w0, #31, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_I2C_FSI_STAT,4,2               ; @I2C_FSI_STAT
	.comm	_I2C_STAT_ANY_RESP,4,2          ; @I2C_STAT_ANY_RESP
	.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	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_fsi_i2c_wait
.subsections_via_symbols
