	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_read_phy_reg_generic     ## -- Begin function ixgbe_read_phy_reg_generic
	.p2align	4, 0x90
_ixgbe_read_phy_reg_generic:            ## @ixgbe_read_phy_reg_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
	pushq	%rax
	.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, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	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
	je	LBB0_4
## %bb.5:
	movq	_IXGBE_ERR_SWFW_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_ixgbe_read_phy_reg_mdi
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*8(%rbx)
	movl	%r14d, %eax
LBB0_6:
	addq	$8, %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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_read_phy_reg_generic     ; -- Begin function ixgbe_read_phy_reg_generic
	.p2align	2
_ixgbe_read_phy_reg_generic:            ; @ixgbe_read_phy_reg_generic
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
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	w23, [x8]
	ldr	x8, [x19]
	mov	x0, x19
	mov	x1, x23
	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	w0, [x8]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_ixgbe_read_phy_reg_mdi
	mov	x20, x0
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x23
	blr	x8
	mov	x0, x20
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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
.subsections_via_symbols
