	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_setup_fiber_hw_autoneg
_tg3_setup_fiber_hw_autoneg:            ## @tg3_setup_fiber_hw_autoneg
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_tg3_chip_rev_id
	movq	_CHIPREV_ID_5704_A0@GOTPCREL(%rip), %rcx
	movl	$1, %r13d
	movb	$1, %r12b
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_tg3_chip_rev_id
	movq	_CHIPREV_ID_5704_A1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_TG3PCI_DUAL_MAC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movq	_DUAL_MAC_CTRL_ID@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	andl	(%rcx), %eax
	sete	%r13b
	movq	_MAC_SERDES_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	andl	$15757311, %eax                 ## imm = 0xF06FFF
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
LBB0_3:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	_SG_DIG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movl	%eax, %r12d
	movq	16(%r15), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	movq	_SG_DIG_USING_HW_AUTONEG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.4:
	movq	_SG_DIG_COMMON_SETUP@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	28(%r15), %edi
	callq	_tg3_advert_flowctrl_1000X
	movq	_ADVERTISE_1000XPAUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_SG_DIG_PAUSE_CAP@GOTPCREL(%rip), %rdx
	andl	%eax, %ecx
	je	LBB0_6
## %bb.5:
	movl	(%rdx), %ecx
LBB0_6:
	orl	%ecx, %ebx
	movq	_ADVERTISE_1000XPSE_ASYM@GOTPCREL(%rip), %rcx
	movq	_SG_DIG_ASYM_PAUSE@GOTPCREL(%rip), %rdx
	andl	(%rcx), %eax
	je	LBB0_8
## %bb.7:
	movl	(%rdx), %eax
LBB0_8:
	orl	%eax, %ebx
	cmpl	%ebx, %r12d
	jne	LBB0_28
## %bb.9:
	movq	_MAC_STATUS_PCS_SYNCED@GOTPCREL(%rip), %rcx
	movq	_MAC_STATUS_SIGNAL_DET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	testl	%r14d, %eax
	je	LBB0_41
## %bb.10:
	movq	_SG_DIG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movl	%eax, %r14d
	movq	_MAC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movq	_SG_DIG_AUTONEG_COMPLETE@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_32
## %bb.11:
	movq	_MAC_STATUS_PCS_SYNCED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	_ADVERTISE_1000XPSE_ASYM@GOTPCREL(%rip), %rcx
	je	LBB0_42
## %bb.12:
	movq	_SG_DIG_PAUSE_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	je	LBB0_14
## %bb.13:
	movq	_ADVERTISE_1000XPAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	movq	_SG_DIG_ASYM_PAUSE@GOTPCREL(%rip), %rdx
	andl	(%rdx), %r12d
	je	LBB0_16
## %bb.15:
	movl	(%rcx), %r12d
LBB0_16:
	movq	_SG_DIG_PARTNER_PAUSE_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	je	LBB0_18
## %bb.17:
	movq	_LPA_1000XPAUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_18:
	orl	%eax, %r12d
	movq	_SG_DIG_PARTNER_ASYM_PAUSE@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	je	LBB0_20
## %bb.19:
	movq	_LPA_1000XPAUSE_ASYM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_20:
	orl	%ecx, %r14d
	movl	%r14d, %edi
	callq	_mii_adv_to_ethtool_adv_x
	movl	%eax, 24(%r15)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_tg3_setup_flow_control
	movq	$0, 8(%r15)
	movq	_TG3_PHYFLG_PARALLEL_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
	jmp	LBB0_27
LBB0_21:
	testl	%r12d, %ebx
	je	LBB0_25
## %bb.22:
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_24
## %bb.23:
	shll	$27, %r13d
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	orl	$67174400, %r13d                ## imm = 0x4010000
	movq	_MAC_SERDES_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_tw32_f
LBB0_24:
	movq	_SG_DIG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SG_DIG_COMMON_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tw32_f
LBB0_25:
	movq	_MAC_STATUS_PCS_SYNCED@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_42
## %bb.26:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_tg3_setup_flow_control
LBB0_27:
	movl	$1, %eax
	jmp	LBB0_43
LBB0_28:
	movq	_TG3_PHYFLG_PARALLEL_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_38
## %bb.29:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_38
## %bb.30:
	movq	_MAC_STATUS_PCS_SYNCED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MAC_STATUS_RCVD_CFG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	andl	%r14d, %edx
	cmpl	%ecx, %edx
	jne	LBB0_38
## %bb.31:
	decq	%rax
	movq	%rax, 8(%r15)
	jmp	LBB0_27
LBB0_32:
	movq	_MAC_STATUS@GOTPCREL(%rip), %r14
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	decq	%rax
	movq	%rax, 8(%r15)
	jmp	LBB0_42
LBB0_34:
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_36
## %bb.35:
	shll	$27, %r13d
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	orl	$67174400, %r13d                ## imm = 0x4010000
	movq	_MAC_SERDES_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_tw32_f
LBB0_36:
	movq	_SG_DIG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SG_DIG_COMMON_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tw32_f
	movl	$40, %edi
	callq	_udelay
	movl	(%r14), %edi
	callq	_tr32
	movq	_MAC_STATUS_PCS_SYNCED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_38
## %bb.37:
	movq	_MAC_STATUS_RCVD_CFG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_44
LBB0_38:
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_40
## %bb.39:
	movq	_MAC_SERDES_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	orl	$201396224, %esi                ## imm = 0xC011000
	callq	_tw32_f
LBB0_40:
	movq	_SG_DIG_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SG_DIG_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%ebx, %esi
	callq	_tw32_f
	movl	$5, %edi
	callq	_udelay
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_tw32_f
LBB0_41:
	movq	_SERDES_AN_TIMEOUT_5704S@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	_TG3_PHYFLG_PARALLEL_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
LBB0_42:
	xorl	%eax, %eax
LBB0_43:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_tg3_setup_flow_control
	movq	_TG3_PHYFLG_PARALLEL_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	_SERDES_PARALLEL_DET_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIPREV_ID_5704_A0,8,3         ## @CHIPREV_ID_5704_A0
	.comm	_CHIPREV_ID_5704_A1,8,3         ## @CHIPREV_ID_5704_A1
	.comm	_TG3PCI_DUAL_MAC_CTRL,4,2       ## @TG3PCI_DUAL_MAC_CTRL
	.comm	_DUAL_MAC_CTRL_ID,4,2           ## @DUAL_MAC_CTRL_ID
	.comm	_MAC_SERDES_CFG,4,2             ## @MAC_SERDES_CFG
	.comm	_SG_DIG_CTRL,4,2                ## @SG_DIG_CTRL
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_SG_DIG_USING_HW_AUTONEG,4,2    ## @SG_DIG_USING_HW_AUTONEG
	.comm	_SG_DIG_COMMON_SETUP,4,2        ## @SG_DIG_COMMON_SETUP
	.comm	_MAC_STATUS_PCS_SYNCED,4,2      ## @MAC_STATUS_PCS_SYNCED
	.comm	_ADVERTISE_1000XPAUSE,4,2       ## @ADVERTISE_1000XPAUSE
	.comm	_SG_DIG_PAUSE_CAP,4,2           ## @SG_DIG_PAUSE_CAP
	.comm	_ADVERTISE_1000XPSE_ASYM,4,2    ## @ADVERTISE_1000XPSE_ASYM
	.comm	_SG_DIG_ASYM_PAUSE,4,2          ## @SG_DIG_ASYM_PAUSE
	.comm	_TG3_PHYFLG_PARALLEL_DETECT,4,2 ## @TG3_PHYFLG_PARALLEL_DETECT
	.comm	_MAC_STATUS_RCVD_CFG,4,2        ## @MAC_STATUS_RCVD_CFG
	.comm	_SG_DIG_SOFT_RESET,4,2          ## @SG_DIG_SOFT_RESET
	.comm	_SERDES_AN_TIMEOUT_5704S,8,3    ## @SERDES_AN_TIMEOUT_5704S
	.comm	_MAC_STATUS_SIGNAL_DET,4,2      ## @MAC_STATUS_SIGNAL_DET
	.comm	_SG_DIG_STATUS,4,2              ## @SG_DIG_STATUS
	.comm	_MAC_STATUS,4,2                 ## @MAC_STATUS
	.comm	_SG_DIG_AUTONEG_COMPLETE,4,2    ## @SG_DIG_AUTONEG_COMPLETE
	.comm	_SG_DIG_PARTNER_PAUSE_CAPABLE,4,2 ## @SG_DIG_PARTNER_PAUSE_CAPABLE
	.comm	_LPA_1000XPAUSE,4,2             ## @LPA_1000XPAUSE
	.comm	_SG_DIG_PARTNER_ASYM_PAUSE,4,2  ## @SG_DIG_PARTNER_ASYM_PAUSE
	.comm	_LPA_1000XPAUSE_ASYM,4,2        ## @LPA_1000XPAUSE_ASYM
	.comm	_SERDES_PARALLEL_DET_TIMEOUT,8,3 ## @SERDES_PARALLEL_DET_TIMEOUT
	.no_dead_strip	_tg3_setup_fiber_hw_autoneg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_setup_fiber_hw_autoneg
_tg3_setup_fiber_hw_autoneg:            ; @tg3_setup_fiber_hw_autoneg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_tg3_chip_rev_id
Lloh0:
	adrp	x8, _CHIPREV_ID_5704_A0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHIPREV_ID_5704_A0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_tg3_chip_rev_id
Lloh3:
	adrp	x8, _CHIPREV_ID_5704_A1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHIPREV_ID_5704_A1@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
	mov	w28, #0
	mov	w25, #1
	mov	w26, #1
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _TG3PCI_DUAL_MAC_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TG3PCI_DUAL_MAC_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_tr32
Lloh9:
	adrp	x8, _DUAL_MAC_CTRL_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DUAL_MAC_CTRL_ID@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w26, eq
Lloh12:
	adrp	x8, _MAC_SERDES_CFG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAC_SERDES_CFG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_tr32
	mov	w25, #0
	mov	w8, #28671
	movk	w8, #240, lsl #16
	and	w28, w0, w8
LBB0_4:
Lloh15:
	adrp	x21, _SG_DIG_CTRL@GOTPAGE
Lloh16:
	ldr	x21, [x21, _SG_DIG_CTRL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_tr32
	mov	x22, x0
Lloh17:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh19:
	ldr	x10, [x8]
Lloh20:
	adrp	x8, _SG_DIG_USING_HW_AUTONEG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SG_DIG_USING_HW_AUTONEG@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.5:
Lloh23:
	adrp	x9, _SG_DIG_COMMON_SETUP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SG_DIG_COMMON_SETUP@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w21, w9, w8
	ldr	w0, [x19, #28]
	bl	_tg3_advert_flowctrl_1000X
Lloh26:
	adrp	x8, _ADVERTISE_1000XPAUSE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ADVERTISE_1000XPAUSE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x27, _SG_DIG_PAUSE_CAP@GOTPAGE
Lloh30:
	ldr	x27, [x27, _SG_DIG_PAUSE_CAP@GOTPAGEOFF]
	ldr	w9, [x27]
	tst	w8, w0
	csel	w8, wzr, w9, eq
	orr	w8, w21, w8
Lloh31:
	adrp	x24, _ADVERTISE_1000XPSE_ASYM@GOTPAGE
Lloh32:
	ldr	x24, [x24, _ADVERTISE_1000XPSE_ASYM@GOTPAGEOFF]
Lloh33:
	adrp	x23, _SG_DIG_ASYM_PAUSE@GOTPAGE
Lloh34:
	ldr	x23, [x23, _SG_DIG_ASYM_PAUSE@GOTPAGEOFF]
	ldr	w9, [x24]
	ldr	w10, [x23]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w21, w8, w9
	cmp	w22, w21
	b.ne	LBB0_17
; %bb.6:
Lloh35:
	adrp	x8, _MAC_STATUS_PCS_SYNCED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MAC_STATUS_PCS_SYNCED@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _MAC_STATUS_SIGNAL_DET@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MAC_STATUS_SIGNAL_DET@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_31
; %bb.7:
Lloh41:
	adrp	x8, _SG_DIG_STATUS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SG_DIG_STATUS@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_tr32
	mov	x20, x0
Lloh44:
	adrp	x8, _MAC_STATUS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MAC_STATUS@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_tr32
Lloh47:
	adrp	x8, _SG_DIG_AUTONEG_COMPLETE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SG_DIG_AUTONEG_COMPLETE@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_22
; %bb.8:
Lloh50:
	adrp	x8, _MAC_STATUS_PCS_SYNCED@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MAC_STATUS_PCS_SYNCED@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_21
; %bb.9:
	ldr	w8, [x27]
Lloh53:
	adrp	x9, _ADVERTISE_1000XPAUSE@GOTPAGE
Lloh54:
	ldr	x9, [x9, _ADVERTISE_1000XPAUSE@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	tst	w8, w22
	csel	w8, wzr, w9, eq
	ldr	w9, [x23]
	ldr	w10, [x24]
	tst	w9, w22
	csel	w9, wzr, w10, eq
	orr	w21, w9, w8
Lloh56:
	adrp	x8, _SG_DIG_PARTNER_PAUSE_CAPABLE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _SG_DIG_PARTNER_PAUSE_CAPABLE@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _LPA_1000XPAUSE@GOTPAGE
Lloh60:
	ldr	x9, [x9, _LPA_1000XPAUSE@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	tst	w8, w20
	csel	w8, wzr, w9, eq
Lloh62:
	adrp	x9, _SG_DIG_PARTNER_ASYM_PAUSE@GOTPAGE
Lloh63:
	ldr	x9, [x9, _SG_DIG_PARTNER_ASYM_PAUSE@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
Lloh65:
	adrp	x10, _LPA_1000XPAUSE_ASYM@GOTPAGE
Lloh66:
	ldr	x10, [x10, _LPA_1000XPAUSE_ASYM@GOTPAGEOFF]
Lloh67:
	ldr	w10, [x10]
	tst	w9, w20
	csel	w9, wzr, w10, eq
	orr	w20, w9, w8
	mov	x0, x20
	bl	_mii_adv_to_ethtool_adv_x
	str	w0, [x19, #24]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_tg3_setup_flow_control
Lloh68:
	adrp	x8, _TG3_PHYFLG_PARALLEL_DETECT@GOTPAGE
Lloh69:
	ldr	x8, [x8, _TG3_PHYFLG_PARALLEL_DETECT@GOTPAGEOFF]
	str	xzr, [x19, #8]
Lloh70:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	b	LBB0_16
LBB0_10:
	tst	w8, w22
	b.eq	LBB0_14
; %bb.11:
	tbnz	w25, #0, LBB0_13
; %bb.12:
	mov	w8, #201392128
	mov	w9, #67174400
	cmp	w26, #0
	csel	w8, w9, w8, eq
	orr	w1, w8, w28
Lloh71:
	adrp	x8, _MAC_SERDES_CFG@GOTPAGE
Lloh72:
	ldr	x8, [x8, _MAC_SERDES_CFG@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	bl	_tw32_f
LBB0_13:
	ldr	w0, [x21]
Lloh74:
	adrp	x8, _SG_DIG_COMMON_SETUP@GOTPAGE
Lloh75:
	ldr	x8, [x8, _SG_DIG_COMMON_SETUP@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x8]
	bl	_tw32_f
LBB0_14:
Lloh77:
	adrp	x8, _MAC_STATUS_PCS_SYNCED@GOTPAGE
Lloh78:
	ldr	x8, [x8, _MAC_STATUS_PCS_SYNCED@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_21
; %bb.15:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_tg3_setup_flow_control
LBB0_16:
	mov	w0, #1
	b	LBB0_32
LBB0_17:
	ldr	w8, [x19]
Lloh80:
	adrp	x9, _TG3_PHYFLG_PARALLEL_DETECT@GOTPAGE
Lloh81:
	ldr	x9, [x9, _TG3_PHYFLG_PARALLEL_DETECT@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.18:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_28
; %bb.19:
Lloh83:
	adrp	x9, _MAC_STATUS_PCS_SYNCED@GOTPAGE
Lloh84:
	ldr	x9, [x9, _MAC_STATUS_PCS_SYNCED@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
Lloh86:
	adrp	x10, _MAC_STATUS_RCVD_CFG@GOTPAGE
Lloh87:
	ldr	x10, [x10, _MAC_STATUS_RCVD_CFG@GOTPAGEOFF]
Lloh88:
	ldr	w10, [x10]
	orr	w10, w10, w9
	and	w10, w10, w20
	cmp	w10, w9
	b.ne	LBB0_28
; %bb.20:
	sub	x8, x8, #1
	str	x8, [x19, #8]
	b	LBB0_16
LBB0_21:
	mov	w0, #0
	b	LBB0_32
LBB0_22:
Lloh89:
	adrp	x20, _MAC_STATUS@GOTPAGE
Lloh90:
	ldr	x20, [x20, _MAC_STATUS@GOTPAGEOFF]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_24
; %bb.23:
	mov	w0, #0
	sub	x8, x8, #1
	str	x8, [x19, #8]
	b	LBB0_32
LBB0_24:
	tbnz	w25, #0, LBB0_26
; %bb.25:
	mov	w8, #201392128
	mov	w9, #67174400
	cmp	w26, #0
	csel	w8, w9, w8, eq
	orr	w1, w8, w28
Lloh91:
	adrp	x8, _MAC_SERDES_CFG@GOTPAGE
Lloh92:
	ldr	x8, [x8, _MAC_SERDES_CFG@GOTPAGEOFF]
Lloh93:
	ldr	w0, [x8]
	bl	_tw32_f
LBB0_26:
Lloh94:
	adrp	x8, _SG_DIG_CTRL@GOTPAGE
Lloh95:
	ldr	x8, [x8, _SG_DIG_CTRL@GOTPAGEOFF]
Lloh96:
	ldr	w0, [x8]
Lloh97:
	adrp	x8, _SG_DIG_COMMON_SETUP@GOTPAGE
Lloh98:
	ldr	x8, [x8, _SG_DIG_COMMON_SETUP@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x8]
	bl	_tw32_f
	mov	w0, #40
	bl	_udelay
	ldr	w0, [x20]
	bl	_tr32
Lloh100:
	adrp	x8, _MAC_STATUS_PCS_SYNCED@GOTPAGE
Lloh101:
	ldr	x8, [x8, _MAC_STATUS_PCS_SYNCED@GOTPAGEOFF]
Lloh102:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_28
; %bb.27:
Lloh103:
	adrp	x8, _MAC_STATUS_RCVD_CFG@GOTPAGE
Lloh104:
	ldr	x8, [x8, _MAC_STATUS_RCVD_CFG@GOTPAGEOFF]
Lloh105:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_33
LBB0_28:
	tbnz	w25, #0, LBB0_30
; %bb.29:
Lloh106:
	adrp	x8, _MAC_SERDES_CFG@GOTPAGE
Lloh107:
	ldr	x8, [x8, _MAC_SERDES_CFG@GOTPAGEOFF]
Lloh108:
	ldr	w0, [x8]
	mov	w8, #4096
	movk	w8, #3073, lsl #16
	orr	w1, w28, w8
	bl	_tw32_f
LBB0_30:
Lloh109:
	adrp	x20, _SG_DIG_CTRL@GOTPAGE
Lloh110:
	ldr	x20, [x20, _SG_DIG_CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh111:
	adrp	x8, _SG_DIG_SOFT_RESET@GOTPAGE
Lloh112:
	ldr	x8, [x8, _SG_DIG_SOFT_RESET@GOTPAGEOFF]
Lloh113:
	ldr	w8, [x8]
	orr	w1, w8, w21
	bl	_tw32_f
	mov	w0, #5
	bl	_udelay
	ldr	w0, [x20]
	mov	x1, x21
	bl	_tw32_f
LBB0_31:
	mov	w0, #0
Lloh114:
	adrp	x8, _SERDES_AN_TIMEOUT_5704S@GOTPAGE
Lloh115:
	ldr	x8, [x8, _SERDES_AN_TIMEOUT_5704S@GOTPAGEOFF]
Lloh116:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh117:
	adrp	x8, _TG3_PHYFLG_PARALLEL_DETECT@GOTPAGE
Lloh118:
	ldr	x8, [x8, _TG3_PHYFLG_PARALLEL_DETECT@GOTPAGEOFF]
Lloh119:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_32:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_33:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_tg3_setup_flow_control
Lloh120:
	adrp	x8, _TG3_PHYFLG_PARALLEL_DETECT@GOTPAGE
Lloh121:
	ldr	x8, [x8, _TG3_PHYFLG_PARALLEL_DETECT@GOTPAGEOFF]
Lloh122:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh123:
	adrp	x8, _SERDES_PARALLEL_DET_TIMEOUT@GOTPAGE
Lloh124:
	ldr	x8, [x8, _SERDES_PARALLEL_DET_TIMEOUT@GOTPAGEOFF]
Lloh125:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGot	Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIPREV_ID_5704_A0,8,3         ; @CHIPREV_ID_5704_A0
	.comm	_CHIPREV_ID_5704_A1,8,3         ; @CHIPREV_ID_5704_A1
	.comm	_TG3PCI_DUAL_MAC_CTRL,4,2       ; @TG3PCI_DUAL_MAC_CTRL
	.comm	_DUAL_MAC_CTRL_ID,4,2           ; @DUAL_MAC_CTRL_ID
	.comm	_MAC_SERDES_CFG,4,2             ; @MAC_SERDES_CFG
	.comm	_SG_DIG_CTRL,4,2                ; @SG_DIG_CTRL
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_SG_DIG_USING_HW_AUTONEG,4,2    ; @SG_DIG_USING_HW_AUTONEG
	.comm	_SG_DIG_COMMON_SETUP,4,2        ; @SG_DIG_COMMON_SETUP
	.comm	_MAC_STATUS_PCS_SYNCED,4,2      ; @MAC_STATUS_PCS_SYNCED
	.comm	_ADVERTISE_1000XPAUSE,4,2       ; @ADVERTISE_1000XPAUSE
	.comm	_SG_DIG_PAUSE_CAP,4,2           ; @SG_DIG_PAUSE_CAP
	.comm	_ADVERTISE_1000XPSE_ASYM,4,2    ; @ADVERTISE_1000XPSE_ASYM
	.comm	_SG_DIG_ASYM_PAUSE,4,2          ; @SG_DIG_ASYM_PAUSE
	.comm	_TG3_PHYFLG_PARALLEL_DETECT,4,2 ; @TG3_PHYFLG_PARALLEL_DETECT
	.comm	_MAC_STATUS_RCVD_CFG,4,2        ; @MAC_STATUS_RCVD_CFG
	.comm	_SG_DIG_SOFT_RESET,4,2          ; @SG_DIG_SOFT_RESET
	.comm	_SERDES_AN_TIMEOUT_5704S,8,3    ; @SERDES_AN_TIMEOUT_5704S
	.comm	_MAC_STATUS_SIGNAL_DET,4,2      ; @MAC_STATUS_SIGNAL_DET
	.comm	_SG_DIG_STATUS,4,2              ; @SG_DIG_STATUS
	.comm	_MAC_STATUS,4,2                 ; @MAC_STATUS
	.comm	_SG_DIG_AUTONEG_COMPLETE,4,2    ; @SG_DIG_AUTONEG_COMPLETE
	.comm	_SG_DIG_PARTNER_PAUSE_CAPABLE,4,2 ; @SG_DIG_PARTNER_PAUSE_CAPABLE
	.comm	_LPA_1000XPAUSE,4,2             ; @LPA_1000XPAUSE
	.comm	_SG_DIG_PARTNER_ASYM_PAUSE,4,2  ; @SG_DIG_PARTNER_ASYM_PAUSE
	.comm	_LPA_1000XPAUSE_ASYM,4,2        ; @LPA_1000XPAUSE_ASYM
	.comm	_SERDES_PARALLEL_DET_TIMEOUT,8,3 ; @SERDES_PARALLEL_DET_TIMEOUT
	.no_dead_strip	_tg3_setup_fiber_hw_autoneg
.subsections_via_symbols
