	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_read_i2c_phy_82598
_ixgbe_read_i2c_phy_82598:              ## @ixgbe_read_i2c_phy_82598
	.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
	movq	%rcx, %r14
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	$0, -52(%rbp)
	movl	$0, -44(%rbp)
	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_2
## %bb.1:
	movq	_IXGBE_GSSR_PHY0_SM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_IXGBE_GSSR_PHY1_SM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_IXGBE_ERR_SWFW_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_16
LBB0_5:
	movq	16(%rbx), %rax
	movq	_ixgbe_phy_nl@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.6:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	shll	$8, %r12d
	addl	%r13d, %r12d
	movq	_IXGBE_I2C_EEPROM_READ_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_IXGBE_MDIO_PMA_PMD_SDA_SCL_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	callq	*32(%rbx)
	movl	$100, %r14d
	leaq	-44(%rbp), %r12
	movq	_IXGBE_I2C_EEPROM_STATUS_MASK@GOTPCREL(%rip), %r13
	movq	_IXGBE_I2C_EEPROM_STATUS_IN_PROGRESS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IXGBE_MDIO_PMA_PMD_SDA_SCL_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rcx
	callq	*24(%rbx)
	movl	(%r13), %eax
	andl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	cmpl	(%r15), %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	decl	%r14d
	jne	LBB0_7
## %bb.9:
	movl	-44(%rbp), %eax
LBB0_10:
	movq	_IXGBE_I2C_EEPROM_STATUS_PASS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.11:
	movq	_IXGBE_MDIO_PMA_PMD_SDA_SCL_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movl	-52(%rbp), %eax
	sarl	$8, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_12:
	movq	_IXGBE_ERR_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hw_dbg
	movq	_IXGBE_ERR_SFP_NOT_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_14:
	movl	-48(%rbp), %r15d                ## 4-byte Reload
LBB0_15:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*8(%rbx)
LBB0_16:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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,4,2        ## @IXGBE_ERR_SWFW_SYNC
	.comm	_ixgbe_phy_nl,8,3               ## @ixgbe_phy_nl
	.comm	_IXGBE_I2C_EEPROM_READ_MASK,4,2 ## @IXGBE_I2C_EEPROM_READ_MASK
	.comm	_IXGBE_MDIO_PMA_PMD_SDA_SCL_ADDR,4,2 ## @IXGBE_MDIO_PMA_PMD_SDA_SCL_ADDR
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_IXGBE_MDIO_PMA_PMD_SDA_SCL_STAT,4,2 ## @IXGBE_MDIO_PMA_PMD_SDA_SCL_STAT
	.comm	_IXGBE_I2C_EEPROM_STATUS_MASK,4,2 ## @IXGBE_I2C_EEPROM_STATUS_MASK
	.comm	_IXGBE_I2C_EEPROM_STATUS_IN_PROGRESS,4,2 ## @IXGBE_I2C_EEPROM_STATUS_IN_PROGRESS
	.comm	_IXGBE_I2C_EEPROM_STATUS_PASS,4,2 ## @IXGBE_I2C_EEPROM_STATUS_PASS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM read did not pass.\n"

	.comm	_IXGBE_ERR_SFP_NOT_PRESENT,4,2  ## @IXGBE_ERR_SFP_NOT_PRESENT
	.comm	_IXGBE_MDIO_PMA_PMD_SDA_SCL_DATA,4,2 ## @IXGBE_MDIO_PMA_PMD_SDA_SCL_DATA
	.comm	_IXGBE_ERR_PHY,4,2              ## @IXGBE_ERR_PHY
	.no_dead_strip	_ixgbe_read_i2c_phy_82598
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_read_i2c_phy_82598
_ixgbe_read_i2c_phy_82598:              ; @ixgbe_read_i2c_phy_82598
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	str	xzr, [sp, #8]
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
	cbz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	b	LBB0_13
LBB0_2:
	ldr	x8, [x19, #16]
Lloh13:
	adrp	x9, _ixgbe_phy_nl@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ixgbe_phy_nl@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
	add	w8, w22, w23, lsl #8
Lloh16:
	adrp	x9, _IXGBE_I2C_EEPROM_READ_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IXGBE_I2C_EEPROM_READ_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldr	x8, [x19, #32]
Lloh19:
	adrp	x9, _IXGBE_MDIO_PMA_PMD_SDA_SCL_ADDR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IXGBE_MDIO_PMA_PMD_SDA_SCL_ADDR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x9]
Lloh22:
	adrp	x22, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh23:
	ldr	x22, [x22, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	blr	x8
	mov	w23, #100
Lloh24:
	adrp	x24, _IXGBE_MDIO_PMA_PMD_SDA_SCL_STAT@GOTPAGE
Lloh25:
	ldr	x24, [x24, _IXGBE_MDIO_PMA_PMD_SDA_SCL_STAT@GOTPAGEOFF]
Lloh26:
	adrp	x25, _IXGBE_I2C_EEPROM_STATUS_MASK@GOTPAGE
Lloh27:
	ldr	x25, [x25, _IXGBE_I2C_EEPROM_STATUS_MASK@GOTPAGEOFF]
Lloh28:
	adrp	x26, _IXGBE_I2C_EEPROM_STATUS_IN_PROGRESS@GOTPAGE
Lloh29:
	ldr	x26, [x26, _IXGBE_I2C_EEPROM_STATUS_IN_PROGRESS@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w1, [x24]
	ldr	w2, [x22]
	add	x3, sp, #8
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	and	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	subs	w23, w23, #1
	b.ne	LBB0_4
; %bb.6:
	ldr	w8, [sp, #8]
LBB0_7:
Lloh30:
	adrp	x9, _IXGBE_I2C_EEPROM_STATUS_PASS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IXGBE_I2C_EEPROM_STATUS_PASS@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x19, #24]
Lloh33:
	adrp	x9, _IXGBE_MDIO_PMA_PMD_SDA_SCL_DATA@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IXGBE_MDIO_PMA_PMD_SDA_SCL_DATA@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x9]
	ldr	w2, [x22]
	add	x3, sp, #12
	mov	x0, x19
	blr	x8
	mov	w22, #0
	ldr	w8, [sp, #12]
	asr	w8, w8, #8
	str	w8, [x21]
	b	LBB0_12
LBB0_9:
Lloh36:
	adrp	x8, _IXGBE_ERR_PHY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IXGBE_ERR_PHY@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
Lloh40:
	adrp	x8, _IXGBE_ERR_SFP_NOT_PRESENT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IXGBE_ERR_SFP_NOT_PRESENT@GOTPAGEOFF]
LBB0_11:
	ldr	w22, [x8]
LBB0_12:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_13:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.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,4,2        ; @IXGBE_ERR_SWFW_SYNC
	.comm	_ixgbe_phy_nl,8,3               ; @ixgbe_phy_nl
	.comm	_IXGBE_I2C_EEPROM_READ_MASK,4,2 ; @IXGBE_I2C_EEPROM_READ_MASK
	.comm	_IXGBE_MDIO_PMA_PMD_SDA_SCL_ADDR,4,2 ; @IXGBE_MDIO_PMA_PMD_SDA_SCL_ADDR
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_IXGBE_MDIO_PMA_PMD_SDA_SCL_STAT,4,2 ; @IXGBE_MDIO_PMA_PMD_SDA_SCL_STAT
	.comm	_IXGBE_I2C_EEPROM_STATUS_MASK,4,2 ; @IXGBE_I2C_EEPROM_STATUS_MASK
	.comm	_IXGBE_I2C_EEPROM_STATUS_IN_PROGRESS,4,2 ; @IXGBE_I2C_EEPROM_STATUS_IN_PROGRESS
	.comm	_IXGBE_I2C_EEPROM_STATUS_PASS,4,2 ; @IXGBE_I2C_EEPROM_STATUS_PASS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM read did not pass.\n"

	.comm	_IXGBE_ERR_SFP_NOT_PRESENT,4,2  ; @IXGBE_ERR_SFP_NOT_PRESENT
	.comm	_IXGBE_MDIO_PMA_PMD_SDA_SCL_DATA,4,2 ; @IXGBE_MDIO_PMA_PMD_SDA_SCL_DATA
	.comm	_IXGBE_ERR_PHY,4,2              ; @IXGBE_ERR_PHY
	.no_dead_strip	_ixgbe_read_i2c_phy_82598
.subsections_via_symbols
