	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_read_sfp_data_byte         ## -- Begin function igb_read_sfp_data_byte
	.p2align	4, 0x90
_igb_read_sfp_data_byte:                ## @igb_read_sfp_data_byte
	.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, %rbx
	movl	$255, %edi
	callq	_E1000_I2CCMD_SFP_DIAG_ADDR
	cmpq	%rbx, %rax
	jge	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movq	_E1000_I2CCMD_REG_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rbx
	movq	_E1000_I2CCMD_OPCODE_READ@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	_E1000_I2CCMD@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_wr32
	movq	_E1000_I2CCMD_PHY_TIMEOUT@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	jle	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	movq	_E1000_I2CCMD_READY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$50, %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_rd32
	movq	(%r13), %rcx
	testq	%rax, %rcx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	(%r12), %rbx
	jl	LBB0_7
LBB0_8:
	testq	%rax, %rcx
	je	LBB0_9
LBB0_10:
	movq	_E1000_I2CCMD_ERROR@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	movq	_E1000_I2CCMD_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	testq	%rax, %rcx
	jne	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_hw_dbg
	movq	_E1000_ERR_PHY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movzbl	%al, %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2CCMD command address exceeds upper limit\n"

	.comm	_E1000_ERR_PHY,4,2              ## @E1000_ERR_PHY
	.comm	_E1000_I2CCMD_REG_ADDR_SHIFT,8,3 ## @E1000_I2CCMD_REG_ADDR_SHIFT
	.comm	_E1000_I2CCMD_OPCODE_READ,8,3   ## @E1000_I2CCMD_OPCODE_READ
	.comm	_E1000_I2CCMD,4,2               ## @E1000_I2CCMD
	.comm	_E1000_I2CCMD_PHY_TIMEOUT,8,3   ## @E1000_I2CCMD_PHY_TIMEOUT
	.comm	_E1000_I2CCMD_READY,8,3         ## @E1000_I2CCMD_READY
L_.str.1:                               ## @.str.1
	.asciz	"I2CCMD Read did not complete\n"

	.comm	_E1000_I2CCMD_ERROR,8,3         ## @E1000_I2CCMD_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"I2CCMD Error bit set\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_read_sfp_data_byte         ; -- Begin function igb_read_sfp_data_byte
	.p2align	2
_igb_read_sfp_data_byte:                ; @igb_read_sfp_data_byte
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	w0, #255
	bl	_E1000_I2CCMD_SFP_DIAG_ADDR
	cmp	x0, x20
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_2:
Lloh2:
	adrp	x8, _E1000_I2CCMD_REG_ADDR_SHIFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_I2CCMD_REG_ADDR_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _E1000_I2CCMD_OPCODE_READ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _E1000_I2CCMD_OPCODE_READ@GOTPAGEOFF]
	lsl	x8, x20, x8
Lloh7:
	ldr	x9, [x9]
	orr	x1, x8, x9
Lloh8:
	adrp	x20, _E1000_I2CCMD@GOTPAGE
Lloh9:
	ldr	x20, [x20, _E1000_I2CCMD@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_wr32
Lloh10:
	adrp	x21, _E1000_I2CCMD_PHY_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x21, [x21, _E1000_I2CCMD_PHY_TIMEOUT@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x22, #0
Lloh12:
	adrp	x23, _E1000_I2CCMD_READY@GOTPAGE
Lloh13:
	ldr	x23, [x23, _E1000_I2CCMD_READY@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #50
	bl	_udelay
	ldr	w0, [x20]
	bl	_rd32
	ldr	x8, [x23]
	tst	x8, x0
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	x9, [x21]
	cmp	x22, x9
	b.lt	LBB0_4
LBB0_6:
	tst	x8, x0
	b.eq	LBB0_10
LBB0_7:
Lloh14:
	adrp	x8, _E1000_I2CCMD_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_I2CCMD_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_13
; %bb.8:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x0, #0
Lloh19:
	adrp	x8, _E1000_I2CCMD_READY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E1000_I2CCMD_READY@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	tst	x8, x0
	b.ne	LBB0_7
LBB0_10:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	bl	_hw_dbg
Lloh24:
	adrp	x8, _E1000_ERR_PHY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _E1000_ERR_PHY@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_12:
	mov	x0, x8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w8, #0
	and	w9, w0, #0xff
	str	w9, [x19]
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2CCMD command address exceeds upper limit\n"

	.comm	_E1000_ERR_PHY,4,2              ; @E1000_ERR_PHY
	.comm	_E1000_I2CCMD_REG_ADDR_SHIFT,8,3 ; @E1000_I2CCMD_REG_ADDR_SHIFT
	.comm	_E1000_I2CCMD_OPCODE_READ,8,3   ; @E1000_I2CCMD_OPCODE_READ
	.comm	_E1000_I2CCMD,4,2               ; @E1000_I2CCMD
	.comm	_E1000_I2CCMD_PHY_TIMEOUT,8,3   ; @E1000_I2CCMD_PHY_TIMEOUT
	.comm	_E1000_I2CCMD_READY,8,3         ; @E1000_I2CCMD_READY
l_.str.1:                               ; @.str.1
	.asciz	"I2CCMD Read did not complete\n"

	.comm	_E1000_I2CCMD_ERROR,8,3         ; @E1000_I2CCMD_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"I2CCMD Error bit set\n"

.subsections_via_symbols
