	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_setup_phy_link_generic   ## -- Begin function ixgbe_setup_phy_link_generic
	.p2align	4, 0x90
_ixgbe_setup_phy_link_generic:          ## @ixgbe_setup_phy_link_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_IXGBE_MII_AUTONEG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	$0, -36(%rbp)
	leaq	-32(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	callq	_ixgbe_get_copper_link_capabilities_generic
	movq	_MDIO_AN_10GBT_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	_MDIO_AN_10GBT_CTRL_ADV10G@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	movl	-28(%rbp), %edx
	andl	%edx, %ecx
	movl	%ecx, -28(%rbp)
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rbx)
	je	LBB0_3
## %bb.1:
	testl	%esi, -32(%rbp)
	je	LBB0_3
## %bb.2:
	orl	%eax, %edx
	movl	%edx, -28(%rbp)
	movl	%edx, %ecx
LBB0_3:
	movl	(%r15), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_IXGBE_MII_AUTONEG_VENDOR_PROVISION_1_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%r14), %edx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	24(%rbx), %rax
	movq	_ixgbe_mac_X550@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_IXGBE_MII_5GBASE_T_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %ecx
	notl	%ecx
	movl	-28(%rbp), %esi
	andl	%esi, %ecx
	movl	(%rbx), %eax
	movq	_IXGBE_LINK_SPEED_5GB_FULL@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%eax, %edi
	je	LBB0_7
## %bb.6:
	orl	%edx, %esi
	testl	%edi, -32(%rbp)
	cmovnel	%esi, %ecx
LBB0_7:
	movq	_IXGBE_MII_2_5GBASE_T_ADVERTISE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %edx
	notl	%edx
	andl	%ecx, %edx
	movq	_IXGBE_LINK_SPEED_2_5GB_FULL@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%eax, %edi
	je	LBB0_9
## %bb.8:
	orl	%esi, %ecx
	testl	%edi, -32(%rbp)
	cmovnel	%ecx, %edx
	jmp	LBB0_9
LBB0_4:
	movl	-28(%rbp), %edx
	movl	(%rbx), %eax
LBB0_9:
	movq	_IXGBE_MII_1GBASE_T_ADVERTISE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	notl	%ecx
	andl	%edx, %ecx
	movl	%ecx, -28(%rbp)
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%eax, %edi
	je	LBB0_12
## %bb.10:
	testl	%edi, -32(%rbp)
	je	LBB0_12
## %bb.11:
	orl	%esi, %edx
	movl	%edx, -28(%rbp)
	movl	%edx, %ecx
LBB0_12:
	movl	(%r15), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_MDIO_AN_ADVERTISE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%r14), %edx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	_ADVERTISE_100FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ADVERTISE_100HALF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	notl	%ecx
	andl	-28(%rbp), %ecx
	movl	%ecx, -28(%rbp)
	movq	_IXGBE_LINK_SPEED_100_FULL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rbx)
	je	LBB0_15
## %bb.13:
	testl	%edx, -32(%rbp)
	je	LBB0_15
## %bb.14:
	orl	%eax, %ecx
	movl	%ecx, -28(%rbp)
LBB0_15:
	movl	(%r15), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	%rbx, %rdi
	callq	_ixgbe_check_reset_blocked
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	_MDIO_CTRL1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%r14), %edx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	_MDIO_AN_CTRL1_RESTART@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -28(%rbp)
	movl	(%r15), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	*8(%rbx)
LBB0_17:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_MII_AUTONEG_REG,4,2      ## @IXGBE_MII_AUTONEG_REG
	.comm	_MDIO_AN_10GBT_CTRL,4,2         ## @MDIO_AN_10GBT_CTRL
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_AN_10GBT_CTRL_ADV10G,4,2  ## @MDIO_AN_10GBT_CTRL_ADV10G
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ## @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_MII_AUTONEG_VENDOR_PROVISION_1_REG,4,2 ## @IXGBE_MII_AUTONEG_VENDOR_PROVISION_1_REG
	.comm	_ixgbe_mac_X550,8,3             ## @ixgbe_mac_X550
	.comm	_IXGBE_MII_5GBASE_T_ADVERTISE,4,2 ## @IXGBE_MII_5GBASE_T_ADVERTISE
	.comm	_IXGBE_LINK_SPEED_5GB_FULL,4,2  ## @IXGBE_LINK_SPEED_5GB_FULL
	.comm	_IXGBE_MII_2_5GBASE_T_ADVERTISE,4,2 ## @IXGBE_MII_2_5GBASE_T_ADVERTISE
	.comm	_IXGBE_LINK_SPEED_2_5GB_FULL,4,2 ## @IXGBE_LINK_SPEED_2_5GB_FULL
	.comm	_IXGBE_MII_1GBASE_T_ADVERTISE,4,2 ## @IXGBE_MII_1GBASE_T_ADVERTISE
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ## @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_MDIO_AN_ADVERTISE,4,2          ## @MDIO_AN_ADVERTISE
	.comm	_ADVERTISE_100FULL,4,2          ## @ADVERTISE_100FULL
	.comm	_ADVERTISE_100HALF,4,2          ## @ADVERTISE_100HALF
	.comm	_IXGBE_LINK_SPEED_100_FULL,4,2  ## @IXGBE_LINK_SPEED_100_FULL
	.comm	_MDIO_CTRL1,4,2                 ## @MDIO_CTRL1
	.comm	_MDIO_AN_CTRL1_RESTART,4,2      ## @MDIO_AN_CTRL1_RESTART
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_setup_phy_link_generic   ; -- Begin function ixgbe_setup_phy_link_generic
	.p2align	2
_ixgbe_setup_phy_link_generic:          ; @ixgbe_setup_phy_link_generic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _IXGBE_MII_AUTONEG_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_MII_AUTONEG_REG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	add	x1, sp, #4
	add	x2, sp, #8
	bl	_ixgbe_get_copper_link_capabilities_generic
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x21, _MDIO_AN_10GBT_CTRL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MDIO_AN_10GBT_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x20, _MDIO_MMD_AN@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MDIO_MMD_AN@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x3, sp, #12
	mov	x0, x19
	blr	x8
Lloh7:
	adrp	x8, _MDIO_AN_10GBT_CTRL_ADV10G@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MDIO_AN_10GBT_CTRL_ADV10G@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w3, w9, w8
	str	w3, [sp, #12]
	ldr	w11, [x19]
Lloh10:
	adrp	x10, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w10, w11
	b.eq	LBB0_3
; %bb.1:
	ldr	w11, [sp, #4]
	tst	w11, w10
	b.eq	LBB0_3
; %bb.2:
	orr	w3, w9, w8
	str	w3, [sp, #12]
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
Lloh13:
	adrp	x21, _IXGBE_MII_AUTONEG_VENDOR_PROVISION_1_REG@GOTPAGE
Lloh14:
	ldr	x21, [x21, _IXGBE_MII_AUTONEG_VENDOR_PROVISION_1_REG@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x20]
	add	x3, sp, #12
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #24]
Lloh15:
	adrp	x9, _ixgbe_mac_X550@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ixgbe_mac_X550@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
Lloh18:
	adrp	x8, _IXGBE_MII_5GBASE_T_ADVERTISE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IXGBE_MII_5GBASE_T_ADVERTISE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x8]
	ldr	w11, [sp, #12]
	bic	w10, w11, w9
	ldr	w8, [x19]
Lloh21:
	adrp	x12, _IXGBE_LINK_SPEED_5GB_FULL@GOTPAGE
Lloh22:
	ldr	x12, [x12, _IXGBE_LINK_SPEED_5GB_FULL@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	tst	w12, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w13, [sp, #4]
	orr	w9, w11, w9
	tst	w13, w12
	csel	w10, w10, w9, eq
LBB0_6:
Lloh24:
	adrp	x9, _IXGBE_MII_2_5GBASE_T_ADVERTISE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IXGBE_MII_2_5GBASE_T_ADVERTISE@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x9]
	bic	w9, w10, w11
Lloh27:
	adrp	x12, _IXGBE_LINK_SPEED_2_5GB_FULL@GOTPAGE
Lloh28:
	ldr	x12, [x12, _IXGBE_LINK_SPEED_2_5GB_FULL@GOTPAGEOFF]
Lloh29:
	ldr	w12, [x12]
	tst	w12, w8
	b.eq	LBB0_9
; %bb.7:
	ldr	w13, [sp, #4]
	orr	w10, w10, w11
	tst	w13, w12
	csel	w9, w9, w10, eq
	b	LBB0_9
LBB0_8:
	ldr	w9, [sp, #12]
	ldr	w8, [x19]
LBB0_9:
Lloh30:
	adrp	x10, _IXGBE_MII_1GBASE_T_ADVERTISE@GOTPAGE
Lloh31:
	ldr	x10, [x10, _IXGBE_MII_1GBASE_T_ADVERTISE@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	bic	w3, w9, w10
	str	w3, [sp, #12]
Lloh33:
	adrp	x11, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh34:
	ldr	x11, [x11, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_12
; %bb.10:
	ldr	w8, [sp, #4]
	tst	w8, w11
	b.eq	LBB0_12
; %bb.11:
	orr	w3, w9, w10
	str	w3, [sp, #12]
LBB0_12:
	ldr	x8, [x19, #8]
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
Lloh36:
	adrp	x21, _MDIO_AN_ADVERTISE@GOTPAGE
Lloh37:
	ldr	x21, [x21, _MDIO_AN_ADVERTISE@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x20]
	add	x3, sp, #12
	mov	x0, x19
	blr	x8
Lloh38:
	adrp	x8, _ADVERTISE_100FULL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ADVERTISE_100FULL@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _ADVERTISE_100HALF@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ADVERTISE_100HALF@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w9, w9, w8
	ldr	w10, [sp, #12]
	bic	w3, w10, w9
	str	w3, [sp, #12]
	ldr	w10, [x19]
Lloh44:
	adrp	x9, _IXGBE_LINK_SPEED_100_FULL@GOTPAGE
Lloh45:
	ldr	x9, [x9, _IXGBE_LINK_SPEED_100_FULL@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_15
; %bb.13:
	ldr	w10, [sp, #4]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.14:
	orr	w3, w3, w8
	str	w3, [sp, #12]
LBB0_15:
	ldr	x8, [x19, #8]
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_ixgbe_check_reset_blocked
	cbnz	x0, LBB0_17
; %bb.16:
	ldr	x8, [x19, #16]
Lloh47:
	adrp	x21, _MDIO_CTRL1@GOTPAGE
Lloh48:
	ldr	x21, [x21, _MDIO_CTRL1@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x20]
	add	x3, sp, #12
	mov	x0, x19
	blr	x8
Lloh49:
	adrp	x8, _MDIO_AN_CTRL1_RESTART@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MDIO_AN_CTRL1_RESTART@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w3, w9, w8
	str	w3, [sp, #12]
	ldr	x8, [x19, #8]
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	blr	x8
LBB0_17:
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_MII_AUTONEG_REG,4,2      ; @IXGBE_MII_AUTONEG_REG
	.comm	_MDIO_AN_10GBT_CTRL,4,2         ; @MDIO_AN_10GBT_CTRL
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_AN_10GBT_CTRL_ADV10G,4,2  ; @MDIO_AN_10GBT_CTRL_ADV10G
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ; @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_MII_AUTONEG_VENDOR_PROVISION_1_REG,4,2 ; @IXGBE_MII_AUTONEG_VENDOR_PROVISION_1_REG
	.comm	_ixgbe_mac_X550,8,3             ; @ixgbe_mac_X550
	.comm	_IXGBE_MII_5GBASE_T_ADVERTISE,4,2 ; @IXGBE_MII_5GBASE_T_ADVERTISE
	.comm	_IXGBE_LINK_SPEED_5GB_FULL,4,2  ; @IXGBE_LINK_SPEED_5GB_FULL
	.comm	_IXGBE_MII_2_5GBASE_T_ADVERTISE,4,2 ; @IXGBE_MII_2_5GBASE_T_ADVERTISE
	.comm	_IXGBE_LINK_SPEED_2_5GB_FULL,4,2 ; @IXGBE_LINK_SPEED_2_5GB_FULL
	.comm	_IXGBE_MII_1GBASE_T_ADVERTISE,4,2 ; @IXGBE_MII_1GBASE_T_ADVERTISE
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ; @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_MDIO_AN_ADVERTISE,4,2          ; @MDIO_AN_ADVERTISE
	.comm	_ADVERTISE_100FULL,4,2          ; @ADVERTISE_100FULL
	.comm	_ADVERTISE_100HALF,4,2          ; @ADVERTISE_100HALF
	.comm	_IXGBE_LINK_SPEED_100_FULL,4,2  ; @IXGBE_LINK_SPEED_100_FULL
	.comm	_MDIO_CTRL1,4,2                 ; @MDIO_CTRL1
	.comm	_MDIO_AN_CTRL1_RESTART,4,2      ; @MDIO_AN_CTRL1_RESTART
.subsections_via_symbols
