	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_phy_probe
_tg3_phy_probe:                         ## @tg3_phy_probe
	.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	%rdi, %r15
	movq	_PAUSE_AUTONEG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tg3_flag_set
	movq	_FLOW_CTRL_TX@GOTPCREL(%rip), %rax
	movq	_FLOW_CTRL_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 12(%r15)
	movq	_ENABLE_APE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movslq	(%r15), %rax
	cmpq	$3, %rax
	ja	LBB0_3
## %bb.2:
	leaq	l_switch.table.tg3_phy_probe(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
LBB0_3:
	movq	_ENABLE_ASF@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movl	4(%r15), %eax
	movq	_TG3_PHYFLG_ANY_SERDES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.5:
	movq	_TG3_PHYFLG_10_100_ONLY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	_TG3_PHYFLG_1G_ON_VAUX_OK@GOTPCREL(%rip), %rcx
	movq	_TG3_PHYFLG_KEEP_LINK_ON_PWRDN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, 4(%r15)
LBB0_7:
	movq	_USE_PHYLIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_8
## %bb.52:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tg3_phy_init                   ## TAILCALL
LBB0_8:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	movq	_TG3_PHY_ID_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %r14d
LBB0_13:
	movl	%ebx, %edi
	callq	_TG3_KNOWN_PHY_ID
	testq	%rax, %rax
	je	LBB0_14
## %bb.18:
	movl	%r14d, 8(%r15)
	movq	_TG3_PHY_ID_BCM8002@GOTPCREL(%rip), %rcx
	movq	_TG3_PHYFLG_PHY_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%rcx), %ebx
	jne	LBB0_26
## %bb.19:
	orl	%eax, 4(%r15)
	jmp	LBB0_27
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_26:
	notl	%eax
	andl	%eax, 4(%r15)
LBB0_27:
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_11:
	movq	_MII_PHYSID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	callq	_tg3_readphy
	movl	%eax, %ebx
	movq	_MII_PHYSID2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_tg3_readphy
	movl	%eax, %r14d
	orl	%ebx, %r14d
	je	LBB0_12
LBB0_15:
	movl	8(%r15), %eax
	movq	_TG3_PHY_ID_INVALID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_28
## %bb.16:
	movq	%r15, %rdi
	callq	_tg3_lookup_by_subsys
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	jne	LBB0_23
	jmp	LBB0_24
LBB0_20:
	movq	_IS_SSB_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:
	movl	8(%r15), %eax
	testl	%eax, %eax
	je	LBB0_24
LBB0_23:
	movq	_TG3_PHY_ID_BCM8002@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_28
LBB0_24:
	movq	_TG3_PHYFLG_PHY_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
LBB0_28:
	movq	_TG3_PHYFLG_ANY_SERDES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, 4(%r15)
	jne	LBB0_38
## %bb.29:
	movq	%r15, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5719@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_37
## %bb.30:
	movq	%r15, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5720@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_37
## %bb.31:
	movq	%r15, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_57766@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_37
## %bb.32:
	movq	%r15, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5762@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_37
## %bb.33:
	movq	%r15, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5717@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_35
## %bb.34:
	movq	%r15, %rdi
	callq	_tg3_chip_rev_id
	movq	_CHIPREV_ID_5717_A0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_37
LBB0_35:
	movq	%r15, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_57765@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_38
## %bb.36:
	movq	%r15, %rdi
	callq	_tg3_chip_rev_id
	movq	_CHIPREV_ID_57765_A0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_38
LBB0_37:
	movq	_TG3_PHYFLG_EEE_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 20(%r15)
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rax
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 24(%r15)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 28(%r15)
	movq	_TG3_CPMU_DBTMR1_LNKIDLE_2047US@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
LBB0_38:
	movq	%r15, %rdi
	callq	_tg3_phy_init_link_config
	movl	4(%r15), %eax
	movq	_TG3_PHYFLG_KEEP_LINK_ON_PWRDN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_47
## %bb.39:
	testl	%eax, (%rbx)
	jne	LBB0_47
## %bb.40:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	jne	LBB0_47
## %bb.41:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_42
LBB0_47:
	movq	_TG3_PHY_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%r15), %eax
	movq	_TG3_PHY_ID_BCM5401@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_51
## %bb.48:
	movq	%r15, %rdi
	callq	_tg3_init_5401phy_dsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_51
## %bb.49:
	movq	%r15, %rdi
	callq	_tg3_init_5401phy_dsp
LBB0_50:
	movl	%eax, %r14d
LBB0_51:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	-52(%rbp), %eax
	movzwl	%ax, %eax
	shll	$10, %eax
	movl	-48(%rbp), %r14d
	movl	%r14d, %ecx
	shll	$16, %ecx
	andl	$-67108864, %ecx                ## imm = 0xFC000000
	andl	$1023, %r14d                    ## imm = 0x3FF
	orl	%eax, %r14d
	orl	%ecx, %r14d
	movq	_TG3_PHY_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r14d, %ebx
	jmp	LBB0_13
LBB0_25:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_51
LBB0_42:
	movq	_MII_BMSR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_tg3_readphy
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_tg3_readphy
	testl	%eax, %eax
	je	LBB0_43
LBB0_44:
	movq	%r15, %rdi
	callq	_tg3_phy_reset
	testl	%eax, %eax
	jne	LBB0_50
## %bb.45:
	movq	%r15, %rdi
	callq	_tg3_phy_set_wirespeed
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_tg3_phy_copper_an_config_ok
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_47
## %bb.46:
	movl	12(%r15), %edx
	movl	16(%r15), %esi
	movq	%r15, %rdi
	callq	_tg3_phy_autoneg_cfg
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_tg3_writephy
	jmp	LBB0_47
LBB0_43:
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_47
	jmp	LBB0_44
	.cfi_endproc
                                        ## -- End function
	.comm	_PAUSE_AUTONEG,4,2              ## @PAUSE_AUTONEG
	.comm	_FLOW_CTRL_TX,4,2               ## @FLOW_CTRL_TX
	.comm	_FLOW_CTRL_RX,4,2               ## @FLOW_CTRL_RX
	.comm	_ENABLE_APE,4,2                 ## @ENABLE_APE
	.comm	_TG3_APE_LOCK_PHY0,4,2          ## @TG3_APE_LOCK_PHY0
	.comm	_TG3_APE_LOCK_PHY1,4,2          ## @TG3_APE_LOCK_PHY1
	.comm	_TG3_APE_LOCK_PHY2,4,2          ## @TG3_APE_LOCK_PHY2
	.comm	_TG3_APE_LOCK_PHY3,4,2          ## @TG3_APE_LOCK_PHY3
	.comm	_ENABLE_ASF,4,2                 ## @ENABLE_ASF
	.comm	_TG3_PHYFLG_ANY_SERDES,4,2      ## @TG3_PHYFLG_ANY_SERDES
	.comm	_TG3_PHYFLG_10_100_ONLY,4,2     ## @TG3_PHYFLG_10_100_ONLY
	.comm	_TG3_PHYFLG_1G_ON_VAUX_OK,4,2   ## @TG3_PHYFLG_1G_ON_VAUX_OK
	.comm	_TG3_PHYFLG_KEEP_LINK_ON_PWRDN,4,2 ## @TG3_PHYFLG_KEEP_LINK_ON_PWRDN
	.comm	_USE_PHYLIB,4,2                 ## @USE_PHYLIB
	.comm	_TG3_PHY_ID_INVALID,4,2         ## @TG3_PHY_ID_INVALID
	.comm	_MII_PHYSID1,4,2                ## @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ## @MII_PHYSID2
	.comm	_TG3_PHY_ID_MASK,4,2            ## @TG3_PHY_ID_MASK
	.comm	_TG3_PHY_ID_BCM8002,4,2         ## @TG3_PHY_ID_BCM8002
	.comm	_TG3_PHYFLG_PHY_SERDES,4,2      ## @TG3_PHYFLG_PHY_SERDES
	.comm	_IS_SSB_CORE,4,2                ## @IS_SSB_CORE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ASIC_REV_5719,8,3              ## @ASIC_REV_5719
	.comm	_ASIC_REV_5720,8,3              ## @ASIC_REV_5720
	.comm	_ASIC_REV_57766,8,3             ## @ASIC_REV_57766
	.comm	_ASIC_REV_5762,8,3              ## @ASIC_REV_5762
	.comm	_ASIC_REV_5717,8,3              ## @ASIC_REV_5717
	.comm	_CHIPREV_ID_5717_A0,8,3         ## @CHIPREV_ID_5717_A0
	.comm	_ASIC_REV_57765,8,3             ## @ASIC_REV_57765
	.comm	_CHIPREV_ID_57765_A0,8,3        ## @CHIPREV_ID_57765_A0
	.comm	_TG3_PHYFLG_EEE_CAP,4,2         ## @TG3_PHYFLG_EEE_CAP
	.comm	_SUPPORTED_100baseT_Full,4,2    ## @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_1000baseT_Full,4,2   ## @SUPPORTED_1000baseT_Full
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_TG3_CPMU_DBTMR1_LNKIDLE_2047US,4,2 ## @TG3_CPMU_DBTMR1_LNKIDLE_2047US
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_BMSR_LSTATUS,4,2               ## @BMSR_LSTATUS
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.comm	_TG3_PHY_ID_BCM5401,4,2         ## @TG3_PHY_ID_BCM5401
	.no_dead_strip	_tg3_phy_probe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.tg3_phy_probe
l_switch.table.tg3_phy_probe:
	.quad	_TG3_APE_LOCK_PHY0
	.quad	_TG3_APE_LOCK_PHY1
	.quad	_TG3_APE_LOCK_PHY2
	.quad	_TG3_APE_LOCK_PHY3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_phy_probe
_tg3_phy_probe:                         ; @tg3_phy_probe
	.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	x19, x0
Lloh0:
	adrp	x8, _PAUSE_AUTONEG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAUSE_AUTONEG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tg3_flag_set
Lloh3:
	adrp	x8, _FLOW_CTRL_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLOW_CTRL_TX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FLOW_CTRL_RX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FLOW_CTRL_RX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #12]
Lloh9:
	adrp	x22, _ENABLE_APE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ENABLE_APE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_tg3_flag
	cbz	x0, LBB0_3
; %bb.1:
	ldrsw	x8, [x19]
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.2:
Lloh11:
	adrp	x9, l_switch.table.tg3_phy_probe@PAGE
Lloh12:
	add	x9, x9, l_switch.table.tg3_phy_probe@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	w8, [x8]
	str	w8, [x19, #40]
LBB0_3:
Lloh13:
	adrp	x23, _ENABLE_ASF@GOTPAGE
Lloh14:
	ldr	x23, [x23, _ENABLE_ASF@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_tg3_flag
	cbnz	x0, LBB0_7
; %bb.4:
	ldr	w8, [x19, #4]
Lloh15:
	adrp	x9, _TG3_PHYFLG_ANY_SERDES@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TG3_PHYFLG_ANY_SERDES@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.5:
Lloh18:
	adrp	x9, _TG3_PHYFLG_10_100_ONLY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TG3_PHYFLG_10_100_ONLY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
Lloh21:
	adrp	x9, _TG3_PHYFLG_1G_ON_VAUX_OK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TG3_PHYFLG_1G_ON_VAUX_OK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _TG3_PHYFLG_KEEP_LINK_ON_PWRDN@GOTPAGE
Lloh25:
	ldr	x10, [x10, _TG3_PHYFLG_KEEP_LINK_ON_PWRDN@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w8, w8, w9
	str	w8, [x19, #4]
LBB0_7:
Lloh27:
	adrp	x8, _USE_PHYLIB@GOTPAGE
Lloh28:
	ldr	x8, [x8, _USE_PHYLIB@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	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
	b	_tg3_phy_init
LBB0_9:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_tg3_flag
Lloh30:
	adrp	x24, _TG3_PHY_ID_INVALID@GOTPAGE
Lloh31:
	ldr	x24, [x24, _TG3_PHY_ID_INVALID@GOTPAGEOFF]
Lloh32:
	adrp	x21, _TG3_PHY_ID_MASK@GOTPAGE
Lloh33:
	ldr	x21, [x21, _TG3_PHY_ID_MASK@GOTPAGEOFF]
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_tg3_flag
	cbz	x0, LBB0_17
LBB0_11:
	ldr	w20, [x24]
	mov	x25, x20
LBB0_12:
	mov	x0, x20
	bl	_TG3_KNOWN_PHY_ID
	cbz	x0, LBB0_15
; %bb.13:
Lloh34:
	adrp	x8, _TG3_PHY_ID_BCM8002@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TG3_PHY_ID_BCM8002@GOTPAGEOFF]
	str	w25, [x19, #8]
Lloh36:
	ldr	w9, [x8]
Lloh37:
	adrp	x8, _TG3_PHYFLG_PHY_SERDES@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TG3_PHYFLG_PHY_SERDES@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w20, w9
	b.ne	LBB0_16
; %bb.14:
	mov	w20, #0
	b	LBB0_25
LBB0_15:
	mov	w20, #0
	b	LBB0_18
LBB0_16:
	mov	w20, #0
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	b	LBB0_26
LBB0_17:
Lloh40:
	adrp	x8, _MII_PHYSID1@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MII_PHYSID1@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_tg3_readphy
	mov	x20, x0
Lloh43:
	adrp	x8, _MII_PHYSID2@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MII_PHYSID2@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_tg3_readphy
	orr	w20, w0, w20
	cbz	w20, LBB0_46
LBB0_18:
	ldr	w8, [x19, #8]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_27
; %bb.19:
	mov	x0, x19
	bl	_tg3_lookup_by_subsys
	cbz	x0, LBB0_21
; %bb.20:
	ldr	w8, [x0]
	str	w8, [x19, #8]
	cbnz	w8, LBB0_23
	b	LBB0_24
LBB0_21:
Lloh46:
	adrp	x8, _IS_SSB_CORE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _IS_SSB_CORE@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag
	cbz	x0, LBB0_47
; %bb.22:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_24
LBB0_23:
Lloh49:
	adrp	x9, _TG3_PHY_ID_BCM8002@GOTPAGE
Lloh50:
	ldr	x9, [x9, _TG3_PHY_ID_BCM8002@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_27
LBB0_24:
Lloh52:
	adrp	x8, _TG3_PHYFLG_PHY_SERDES@GOTPAGE
Lloh53:
	ldr	x8, [x8, _TG3_PHYFLG_PHY_SERDES@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
LBB0_25:
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
LBB0_26:
	str	w8, [x19, #4]
LBB0_27:
	ldr	w8, [x19, #4]
Lloh55:
	adrp	x24, _TG3_PHYFLG_ANY_SERDES@GOTPAGE
Lloh56:
	ldr	x24, [x24, _TG3_PHYFLG_ANY_SERDES@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_37
; %bb.28:
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh57:
	adrp	x8, _ASIC_REV_5719@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ASIC_REV_5719@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_36
; %bb.29:
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh60:
	adrp	x8, _ASIC_REV_5720@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ASIC_REV_5720@GOTPAGEOFF]
Lloh62:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_36
; %bb.30:
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh63:
	adrp	x8, _ASIC_REV_57766@GOTPAGE
Lloh64:
	ldr	x8, [x8, _ASIC_REV_57766@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_36
; %bb.31:
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh66:
	adrp	x8, _ASIC_REV_5762@GOTPAGE
Lloh67:
	ldr	x8, [x8, _ASIC_REV_5762@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_36
; %bb.32:
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh69:
	adrp	x8, _ASIC_REV_5717@GOTPAGE
Lloh70:
	ldr	x8, [x8, _ASIC_REV_5717@GOTPAGEOFF]
Lloh71:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_34
; %bb.33:
	mov	x0, x19
	bl	_tg3_chip_rev_id
Lloh72:
	adrp	x8, _CHIPREV_ID_5717_A0@GOTPAGE
Lloh73:
	ldr	x8, [x8, _CHIPREV_ID_5717_A0@GOTPAGEOFF]
Lloh74:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_36
LBB0_34:
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh75:
	adrp	x8, _ASIC_REV_57765@GOTPAGE
Lloh76:
	ldr	x8, [x8, _ASIC_REV_57765@GOTPAGEOFF]
Lloh77:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_37
; %bb.35:
	mov	x0, x19
	bl	_tg3_chip_rev_id
Lloh78:
	adrp	x8, _CHIPREV_ID_57765_A0@GOTPAGE
Lloh79:
	ldr	x8, [x8, _CHIPREV_ID_57765_A0@GOTPAGEOFF]
Lloh80:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_37
LBB0_36:
Lloh81:
	adrp	x8, _TG3_PHYFLG_EEE_CAP@GOTPAGE
Lloh82:
	ldr	x8, [x8, _TG3_PHYFLG_EEE_CAP@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
Lloh84:
	adrp	x8, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh85:
	ldr	x8, [x8, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh86:
	adrp	x9, _SUPPORTED_1000baseT_Full@GOTPAGE
Lloh87:
	ldr	x9, [x9, _SUPPORTED_1000baseT_Full@GOTPAGEOFF]
Lloh88:
	ldr	w8, [x8]
Lloh89:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh90:
	adrp	x9, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh91:
	ldr	x9, [x9, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
Lloh93:
	adrp	x10, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh94:
	ldr	x10, [x10, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh95:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w8, w9, [x19, #20]
	movi.2s	v0, #1
	stur	d0, [x19, #28]
Lloh96:
	adrp	x8, _TG3_CPMU_DBTMR1_LNKIDLE_2047US@GOTPAGE
Lloh97:
	ldr	x8, [x8, _TG3_CPMU_DBTMR1_LNKIDLE_2047US@GOTPAGEOFF]
Lloh98:
	ldr	w8, [x8]
	str	w8, [x19, #36]
LBB0_37:
	mov	x0, x19
	bl	_tg3_phy_init_link_config
	ldr	w8, [x19, #4]
Lloh99:
	adrp	x9, _TG3_PHYFLG_KEEP_LINK_ON_PWRDN@GOTPAGE
Lloh100:
	ldr	x9, [x9, _TG3_PHYFLG_KEEP_LINK_ON_PWRDN@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_41
; %bb.38:
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_41
; %bb.39:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_tg3_flag
	cbnz	x0, LBB0_41
; %bb.40:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_tg3_flag
	cbz	x0, LBB0_48
LBB0_41:
	ldr	w8, [x19, #8]
	ldr	w9, [x21]
	and	w8, w9, w8
Lloh102:
	adrp	x9, _TG3_PHY_ID_BCM5401@GOTPAGE
Lloh103:
	ldr	x9, [x9, _TG3_PHY_ID_BCM5401@GOTPAGEOFF]
Lloh104:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_45
; %bb.42:
	mov	x0, x19
	bl	_tg3_init_5401phy_dsp
	mov	x20, x0
	cbnz	w0, LBB0_45
; %bb.43:
	mov	x0, x19
	bl	_tg3_init_5401phy_dsp
LBB0_44:
	mov	x20, x0
LBB0_45:
	mov	x0, x20
	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
LBB0_46:
	ldp	w25, w8, [sp, #8]
	lsr	w9, w25, #10
	bfi	w25, w8, #10, #16
	bfi	w25, w9, #26, #6
	ldr	w8, [x21]
	and	w20, w25, w8
	b	LBB0_12
LBB0_47:
Lloh105:
	adrp	x8, _ENODEV@GOTPAGE
Lloh106:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh107:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_45
LBB0_48:
Lloh108:
	adrp	x22, _MII_BMSR@GOTPAGE
Lloh109:
	ldr	x22, [x22, _MII_BMSR@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #4
	mov	x0, x19
	bl	_tg3_readphy
	ldr	w1, [x22]
	add	x2, sp, #4
	mov	x0, x19
	bl	_tg3_readphy
	cbz	w0, LBB0_53
LBB0_49:
	mov	x0, x19
	bl	_tg3_phy_reset
	cbnz	w0, LBB0_44
; %bb.50:
	mov	x0, x19
	bl	_tg3_phy_set_wirespeed
	mov	x1, sp
	mov	x0, x19
	bl	_tg3_phy_copper_an_config_ok
	cbnz	w0, LBB0_52
; %bb.51:
	ldp	w2, w1, [x19, #12]
	mov	x0, x19
	bl	_tg3_phy_autoneg_cfg
Lloh110:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh111:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh112:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh113:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh114:
	ldr	w1, [x8]
Lloh115:
	ldr	w8, [x9]
Lloh116:
	adrp	x9, _BMCR_ANRESTART@GOTPAGE
Lloh117:
	ldr	x9, [x9, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh118:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_tg3_writephy
LBB0_52:
	mov	w20, #0
	b	LBB0_41
LBB0_53:
	ldr	w8, [sp, #4]
Lloh119:
	adrp	x9, _BMSR_LSTATUS@GOTPAGE
Lloh120:
	ldr	x9, [x9, _BMSR_LSTATUS@GOTPAGEOFF]
Lloh121:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_41
	b	LBB0_49
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh88
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh114
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.cfi_endproc
                                        ; -- End function
	.comm	_PAUSE_AUTONEG,4,2              ; @PAUSE_AUTONEG
	.comm	_FLOW_CTRL_TX,4,2               ; @FLOW_CTRL_TX
	.comm	_FLOW_CTRL_RX,4,2               ; @FLOW_CTRL_RX
	.comm	_ENABLE_APE,4,2                 ; @ENABLE_APE
	.comm	_TG3_APE_LOCK_PHY0,4,2          ; @TG3_APE_LOCK_PHY0
	.comm	_TG3_APE_LOCK_PHY1,4,2          ; @TG3_APE_LOCK_PHY1
	.comm	_TG3_APE_LOCK_PHY2,4,2          ; @TG3_APE_LOCK_PHY2
	.comm	_TG3_APE_LOCK_PHY3,4,2          ; @TG3_APE_LOCK_PHY3
	.comm	_ENABLE_ASF,4,2                 ; @ENABLE_ASF
	.comm	_TG3_PHYFLG_ANY_SERDES,4,2      ; @TG3_PHYFLG_ANY_SERDES
	.comm	_TG3_PHYFLG_10_100_ONLY,4,2     ; @TG3_PHYFLG_10_100_ONLY
	.comm	_TG3_PHYFLG_1G_ON_VAUX_OK,4,2   ; @TG3_PHYFLG_1G_ON_VAUX_OK
	.comm	_TG3_PHYFLG_KEEP_LINK_ON_PWRDN,4,2 ; @TG3_PHYFLG_KEEP_LINK_ON_PWRDN
	.comm	_USE_PHYLIB,4,2                 ; @USE_PHYLIB
	.comm	_TG3_PHY_ID_INVALID,4,2         ; @TG3_PHY_ID_INVALID
	.comm	_MII_PHYSID1,4,2                ; @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ; @MII_PHYSID2
	.comm	_TG3_PHY_ID_MASK,4,2            ; @TG3_PHY_ID_MASK
	.comm	_TG3_PHY_ID_BCM8002,4,2         ; @TG3_PHY_ID_BCM8002
	.comm	_TG3_PHYFLG_PHY_SERDES,4,2      ; @TG3_PHYFLG_PHY_SERDES
	.comm	_IS_SSB_CORE,4,2                ; @IS_SSB_CORE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ASIC_REV_5719,8,3              ; @ASIC_REV_5719
	.comm	_ASIC_REV_5720,8,3              ; @ASIC_REV_5720
	.comm	_ASIC_REV_57766,8,3             ; @ASIC_REV_57766
	.comm	_ASIC_REV_5762,8,3              ; @ASIC_REV_5762
	.comm	_ASIC_REV_5717,8,3              ; @ASIC_REV_5717
	.comm	_CHIPREV_ID_5717_A0,8,3         ; @CHIPREV_ID_5717_A0
	.comm	_ASIC_REV_57765,8,3             ; @ASIC_REV_57765
	.comm	_CHIPREV_ID_57765_A0,8,3        ; @CHIPREV_ID_57765_A0
	.comm	_TG3_PHYFLG_EEE_CAP,4,2         ; @TG3_PHYFLG_EEE_CAP
	.comm	_SUPPORTED_100baseT_Full,4,2    ; @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_1000baseT_Full,4,2   ; @SUPPORTED_1000baseT_Full
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_TG3_CPMU_DBTMR1_LNKIDLE_2047US,4,2 ; @TG3_CPMU_DBTMR1_LNKIDLE_2047US
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_BMSR_LSTATUS,4,2               ; @BMSR_LSTATUS
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.comm	_TG3_PHY_ID_BCM5401,4,2         ; @TG3_PHY_ID_BCM5401
	.no_dead_strip	_tg3_phy_probe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.tg3_phy_probe
l_switch.table.tg3_phy_probe:
	.quad	_TG3_APE_LOCK_PHY0
	.quad	_TG3_APE_LOCK_PHY1
	.quad	_TG3_APE_LOCK_PHY2
	.quad	_TG3_APE_LOCK_PHY3

.subsections_via_symbols
