	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sfp_i2c_read
_sfp_i2c_read:                          ## @sfp_i2c_read
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$1, %esi
	movl	$81, %eax
	sbbq	$0, %rax
	movq	%rdx, -128(%rbp)
	movq	%rax, -112(%rbp)
	movq	$0, -88(%rbp)
	movl	$1, -104(%rbp)
	leaq	-128(%rbp), %rdx
	movq	%rdx, -96(%rbp)
	movq	%rax, -80(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%rcx, -64(%rbp)
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movq	%r8, %r12
	movq	%rdi, %r15
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	leaq	-112(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$16, %r12
	movl	$16, %r14d
	cmovbq	%r12, %r14
	movl	%r14d, -72(%rbp)
	movl	(%r15), %ebx
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_i2c_transfer
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	movq	-64(%rbp), %rbx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%r14,8), %rbx
	movq	%rbx, -64(%rbp)
	addq	%r14, -128(%rbp)
	subq	%r14, %r12
	jne	LBB0_3
LBB0_6:
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	jmp	LBB0_7
LBB0_1:
	movq	%rcx, %rbx
LBB0_7:
	subq	%rcx, %rbx
	shrq	$3, %rbx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,8,3                   ## @I2C_M_RD
	.no_dead_strip	_sfp_i2c_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sfp_i2c_read
_sfp_i2c_read:                          ; @sfp_i2c_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x3
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w1, #0
	mov	w8, #80
	cinc	x8, x8, ne
	stp	x2, x8, [sp]
	mov	w9, #1
	str	w9, [sp, #16]
	mov	x9, sp
	stp	x9, xzr, [sp, #24]
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	stp	x3, x9, [sp, #56]
	str	x8, [sp, #40]
	cbz	x4, LBB0_5
; %bb.1:
	mov	x20, x4
	mov	x21, x0
	mov	w23, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x20, #16
	csel	x24, x20, x23, lo
	str	w24, [sp, #48]
	ldr	w22, [x21]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x22
	bl	_i2c_transfer
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	ldr	x8, [sp, #56]
	cmp	w22, w0
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, x24, lsl #3
	str	x8, [sp, #56]
	ldr	x9, [sp]
	add	x9, x9, x24
	str	x9, [sp]
	subs	x20, x20, x24
	b.ne	LBB0_2
	b	LBB0_6
LBB0_5:
	mov	x8, x19
LBB0_6:
	sub	x8, x8, x19
	lsr	x22, x8, #3
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,8,3                   ; @I2C_M_RD
	.no_dead_strip	_sfp_i2c_read
.subsections_via_symbols
