	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_i2c_xfer
_fsi_i2c_xfer:                          ## @fsi_i2c_xfer
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	movq	(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_fsi_i2c_set_port
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_2
## %bb.5:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leal	-1(%r12), %eax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %ecx
	shlq	$2, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_jiffies@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rsi
	movq	(%rcx), %r12
	xorl	%edx, %edx
	cmpq	%r13, -72(%rbp)                 ## 8-byte Folded Reload
	sete	%dl
	movq	%rbx, %rdi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	movq	%rcx, %rbx
	callq	_fsi_i2c_start
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %r12
	subq	(%rbx), %r12
	movq	%r15, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_fsi_i2c_wait
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rbx
	addq	$4, %r13
	cmpq	%r13, -64(%rbp)                 ## 8-byte Folded Reload
	movq	_jiffies@GOTPCREL(%rip), %rcx
	jne	LBB0_6
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r14d
	jmp	LBB0_9
LBB0_8:
	movl	%eax, %r14d
LBB0_9:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_2:
	movl	%r12d, %r14d
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_fsi_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_i2c_xfer
_fsi_i2c_xfer:                          ; @fsi_i2c_xfer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
	ldr	x19, [x23]
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x23
	bl	_fsi_i2c_set_port
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.1:
	subs	w25, w20, #1
	b.lt	LBB0_6
; %bb.2:
	mov	w26, w20
Lloh0:
	adrp	x27, _jiffies@GOTPAGE
Lloh1:
	ldr	x27, [x27, _jiffies@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x27]
	cmp	x25, #0
	cset	w2, eq
	mov	x0, x23
	mov	x1, x21
	bl	_fsi_i2c_start
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x27]
	add	x8, x8, x28
	sub	x2, x8, x9
	mov	x0, x23
	mov	x1, x21
	bl	_fsi_i2c_wait
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x25, x25, #1
	add	x21, x21, #4
	subs	x26, x26, #1
	b.ne	LBB0_3
LBB0_6:
	mov	x24, x20
	b	LBB0_8
LBB0_7:
	mov	x24, x0
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x24
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_fsi_i2c_xfer
.subsections_via_symbols
