	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_setup_phy_link_tnx       ## -- Begin function ixgbe_setup_phy_link_tnx
	.p2align	4, 0x90
_ixgbe_setup_phy_link_tnx:              ## @ixgbe_setup_phy_link_tnx
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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, -36(%rbp)
	movl	$0, -44(%rbp)
	leaq	-40(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_ixgbe_get_copper_link_capabilities_generic
	movl	-40(%rbp), %eax
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.1:
	movq	_MDIO_AN_10GBT_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-36(%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	-36(%rbp), %edx
	andl	%edx, %ecx
	movl	%ecx, -36(%rbp)
	movl	(%r12), %esi
	testl	%esi, (%rbx)
	je	LBB0_3
## %bb.2:
	orl	%eax, %edx
	movl	%edx, -36(%rbp)
	movl	%edx, %ecx
LBB0_3:
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	-40(%rbp), %eax
LBB0_4:
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_8
## %bb.5:
	movq	_IXGBE_MII_AUTONEG_XNP_TX_REG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	_IXGBE_MII_1GBASE_T_ADVERTISE_XNP_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	movl	-36(%rbp), %edx
	andl	%edx, %ecx
	movl	%ecx, -36(%rbp)
	movl	(%r12), %esi
	testl	%esi, (%rbx)
	je	LBB0_7
## %bb.6:
	orl	%eax, %edx
	movl	%edx, -36(%rbp)
	movl	%edx, %ecx
LBB0_7:
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	-40(%rbp), %eax
LBB0_8:
	movq	_IXGBE_LINK_SPEED_100_FULL@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.9:
	movq	_MDIO_AN_ADVERTISE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-36(%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	-36(%rbp), %ecx
	movl	%ecx, -36(%rbp)
	movl	(%r12), %edx
	testl	%edx, (%rbx)
	je	LBB0_11
## %bb.10:
	orl	%eax, %ecx
	movl	%ecx, -36(%rbp)
LBB0_11:
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	*8(%rbx)
LBB0_12:
	movq	%rbx, %rdi
	callq	_ixgbe_check_reset_blocked
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	_MDIO_CTRL1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	_MDIO_AN_CTRL1_RESTART@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -36(%rbp)
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	*8(%rbx)
LBB0_14:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_MII_AUTONEG_REG,4,2      ## @IXGBE_MII_AUTONEG_REG
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ## @IXGBE_LINK_SPEED_10GB_FULL
	.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_1GB_FULL,4,2  ## @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_IXGBE_MII_AUTONEG_XNP_TX_REG,4,2 ## @IXGBE_MII_AUTONEG_XNP_TX_REG
	.comm	_IXGBE_MII_1GBASE_T_ADVERTISE_XNP_TX,4,2 ## @IXGBE_MII_1GBASE_T_ADVERTISE_XNP_TX
	.comm	_IXGBE_LINK_SPEED_100_FULL,4,2  ## @IXGBE_LINK_SPEED_100_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	_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_tnx       ; -- Begin function ixgbe_setup_phy_link_tnx
	.p2align	2
_ixgbe_setup_phy_link_tnx:              ; @ixgbe_setup_phy_link_tnx
	.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	w8, [sp, #4]
Lloh3:
	adrp	x22, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh5:
	adrp	x20, _MDIO_MMD_AN@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MDIO_MMD_AN@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
Lloh7:
	adrp	x21, _MDIO_AN_10GBT_CTRL@GOTPAGE
Lloh8:
	ldr	x21, [x21, _MDIO_AN_10GBT_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x20]
	add	x3, sp, #12
	mov	x0, x19
	blr	x8
Lloh9:
	adrp	x8, _MDIO_AN_10GBT_CTRL_ADV10G@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDIO_AN_10GBT_CTRL_ADV10G@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w3, w9, w8
	str	w3, [sp, #12]
	ldr	w10, [x19]
	ldr	w11, [x22]
	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	w8, [sp, #4]
LBB0_4:
Lloh12:
	adrp	x22, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh13:
	ldr	x22, [x22, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	ldr	x8, [x19, #16]
Lloh14:
	adrp	x21, _IXGBE_MII_AUTONEG_XNP_TX_REG@GOTPAGE
Lloh15:
	ldr	x21, [x21, _IXGBE_MII_AUTONEG_XNP_TX_REG@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x20]
	add	x3, sp, #12
	mov	x0, x19
	blr	x8
Lloh16:
	adrp	x8, _IXGBE_MII_1GBASE_T_ADVERTISE_XNP_TX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IXGBE_MII_1GBASE_T_ADVERTISE_XNP_TX@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w3, w9, w8
	str	w3, [sp, #12]
	ldr	w10, [x19]
	ldr	w11, [x22]
	tst	w11, w10
	b.eq	LBB0_7
; %bb.6:
	orr	w3, w9, w8
	str	w3, [sp, #12]
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #4]
LBB0_8:
Lloh19:
	adrp	x22, _IXGBE_LINK_SPEED_100_FULL@GOTPAGE
Lloh20:
	ldr	x22, [x22, _IXGBE_LINK_SPEED_100_FULL@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	ldr	x8, [x19, #16]
Lloh21:
	adrp	x21, _MDIO_AN_ADVERTISE@GOTPAGE
Lloh22:
	ldr	x21, [x21, _MDIO_AN_ADVERTISE@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x20]
	add	x3, sp, #12
	mov	x0, x19
	blr	x8
Lloh23:
	adrp	x8, _ADVERTISE_100FULL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ADVERTISE_100FULL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _ADVERTISE_100HALF@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ADVERTISE_100HALF@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w9, w9, w8
	ldr	w10, [sp, #12]
	bic	w3, w10, w9
	str	w3, [sp, #12]
	ldr	w9, [x19]
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
	orr	w3, w3, w8
	str	w3, [sp, #12]
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	blr	x8
LBB0_12:
	mov	x0, x19
	bl	_ixgbe_check_reset_blocked
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x19, #16]
Lloh29:
	adrp	x21, _MDIO_CTRL1@GOTPAGE
Lloh30:
	ldr	x21, [x21, _MDIO_CTRL1@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x20]
	add	x3, sp, #12
	mov	x0, x19
	blr	x8
Lloh31:
	adrp	x8, _MDIO_AN_CTRL1_RESTART@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MDIO_AN_CTRL1_RESTART@GOTPAGEOFF]
Lloh33:
	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_14:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_MII_AUTONEG_REG,4,2      ; @IXGBE_MII_AUTONEG_REG
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ; @IXGBE_LINK_SPEED_10GB_FULL
	.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_1GB_FULL,4,2  ; @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_IXGBE_MII_AUTONEG_XNP_TX_REG,4,2 ; @IXGBE_MII_AUTONEG_XNP_TX_REG
	.comm	_IXGBE_MII_1GBASE_T_ADVERTISE_XNP_TX,4,2 ; @IXGBE_MII_1GBASE_T_ADVERTISE_XNP_TX
	.comm	_IXGBE_LINK_SPEED_100_FULL,4,2  ; @IXGBE_LINK_SPEED_100_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	_MDIO_CTRL1,4,2                 ; @MDIO_CTRL1
	.comm	_MDIO_AN_CTRL1_RESTART,4,2      ; @MDIO_AN_CTRL1_RESTART
.subsections_via_symbols
