	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_read_i2c_byte_generic    ## -- Begin function ixgbe_read_i2c_byte_generic
	.p2align	4, 0x90
_ixgbe_read_i2c_byte_generic:           ## @ixgbe_read_i2c_byte_generic
	.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	%edx, %r15d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$0, (%rcx)
	movq	_IXGBE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_STATUS_LAN_ID_1@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_IXGBE_GSSR_PHY0_SM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IXGBE_GSSR_PHY1_SM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*(%rbx)
	testq	%rax, %rax
	jne	LBB0_18
## %bb.4:
	movl	%r15d, %eax
	orl	$1, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$10, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ixgbe_i2c_start
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ixgbe_clock_out_i2c_byte
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_ixgbe_get_i2c_ack
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_ixgbe_clock_out_i2c_byte
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_ixgbe_get_i2c_ack
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_ixgbe_i2c_start
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ixgbe_clock_out_i2c_byte
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_ixgbe_get_i2c_ack
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ixgbe_clock_in_i2c_byte
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ixgbe_clock_out_i2c_bit
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_ixgbe_i2c_bus_clear
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*8(%rbx)
	movl	$100, %edi
	callq	_msleep
	decq	%r12
	je	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_hw_dbg
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*(%rbx)
	testq	%rax, %rax
	je	LBB0_5
LBB0_18:
	movq	_IXGBE_ERR_SWFW_SYNC@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_19:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hw_dbg
LBB0_16:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*8(%rbx)
	jmp	LBB0_19
LBB0_13:
	movq	%rbx, %rdi
	callq	_ixgbe_i2c_stop
	xorl	%r14d, %r14d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_STATUS,4,2               ## @IXGBE_STATUS
	.comm	_IXGBE_STATUS_LAN_ID_1,4,2      ## @IXGBE_STATUS_LAN_ID_1
	.comm	_IXGBE_GSSR_PHY1_SM,4,2         ## @IXGBE_GSSR_PHY1_SM
	.comm	_IXGBE_GSSR_PHY0_SM,4,2         ## @IXGBE_GSSR_PHY0_SM
	.comm	_IXGBE_ERR_SWFW_SYNC,8,3        ## @IXGBE_ERR_SWFW_SYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C byte read error - Retrying.\n"

L_.str.1:                               ## @.str.1
	.asciz	"I2C byte read error.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_read_i2c_byte_generic    ; -- Begin function ixgbe_read_i2c_byte_generic
	.p2align	2
_ixgbe_read_i2c_byte_generic:           ; @ixgbe_read_i2c_byte_generic
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	str	wzr, [x3]
Lloh0:
	adrp	x8, _IXGBE_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_IXGBE_READ_REG
Lloh3:
	adrp	x8, _IXGBE_STATUS_LAN_ID_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IXGBE_STATUS_LAN_ID_1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IXGBE_GSSR_PHY0_SM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IXGBE_GSSR_PHY0_SM@GOTPAGEOFF]
Lloh8:
	adrp	x10, _IXGBE_GSSR_PHY1_SM@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IXGBE_GSSR_PHY1_SM@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w20, [x8]
	ldr	x8, [x19]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbnz	x0, LBB0_12
; %bb.1:
	orr	w24, w22, #0x1
	mov	w27, #10
Lloh10:
	adrp	x25, l_.str@PAGE
Lloh11:
	add	x25, x25, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ixgbe_i2c_start
	mov	x0, x19
	mov	x1, x22
	bl	_ixgbe_clock_out_i2c_byte
	mov	x26, x0
	cbnz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_ixgbe_get_i2c_ack
	mov	x26, x0
	cbnz	x0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_ixgbe_clock_out_i2c_byte
	mov	x26, x0
	cbnz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_ixgbe_get_i2c_ack
	mov	x26, x0
	cbnz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_ixgbe_i2c_start
	mov	x0, x19
	mov	x1, x24
	bl	_ixgbe_clock_out_i2c_byte
	mov	x26, x0
	cbnz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_ixgbe_get_i2c_ack
	mov	x26, x0
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_ixgbe_clock_in_i2c_byte
	mov	x26, x0
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	w1, #1
	bl	_ixgbe_clock_out_i2c_bit
	mov	x26, x0
	cbz	x0, LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_ixgbe_i2c_bus_clear
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	w0, #100
	bl	_msleep
	subs	x27, x27, #1
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_hw_dbg
	ldr	x8, [x19]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbz	x0, LBB0_2
LBB0_12:
Lloh12:
	adrp	x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGEOFF]
Lloh14:
	ldr	x26, [x8]
LBB0_13:
	mov	x0, x26
	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
LBB0_14:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
LBB0_15:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	b	LBB0_13
LBB0_16:
	mov	x0, x19
	bl	_ixgbe_i2c_stop
	b	LBB0_15
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_STATUS,4,2               ; @IXGBE_STATUS
	.comm	_IXGBE_STATUS_LAN_ID_1,4,2      ; @IXGBE_STATUS_LAN_ID_1
	.comm	_IXGBE_GSSR_PHY1_SM,4,2         ; @IXGBE_GSSR_PHY1_SM
	.comm	_IXGBE_GSSR_PHY0_SM,4,2         ; @IXGBE_GSSR_PHY0_SM
	.comm	_IXGBE_ERR_SWFW_SYNC,8,3        ; @IXGBE_ERR_SWFW_SYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C byte read error - Retrying.\n"

l_.str.1:                               ; @.str.1
	.asciz	"I2C byte read error.\n"

.subsections_via_symbols
