	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_phy_init_link_config
_tg3_phy_init_link_config:              ## @tg3_phy_init_link_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rdi), %ecx
	movq	_TG3_PHYFLG_10_100_ONLY@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_4
## %bb.1:
	movq	_TG3_PHYFLG_DISABLE_1G_HD_ADV@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	testl	%ecx, (%rsi)
	jne	LBB0_3
## %bb.2:
	movq	_ADVERTISED_1000baseT_Half@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_3:
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	orl	%edx, %eax
LBB0_4:
	movq	_TG3_PHYFLG_ANY_SERDES@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.6:
	movq	_ADVERTISED_FIBRE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_7
LBB0_5:
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rdx
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_ADVERTISED_TP@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
LBB0_7:
	orl	%eax, %ecx
	movl	%ecx, 8(%rdi)
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rdi)
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 40(%rdi)
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 32(%rdi)
	movq	%rax, 24(%rdi)
	movq	%rcx, 16(%rdi)
	movl	$-1, 4(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.comm	_TG3_PHYFLG_10_100_ONLY,4,2     ## @TG3_PHYFLG_10_100_ONLY
	.comm	_TG3_PHYFLG_DISABLE_1G_HD_ADV,4,2 ## @TG3_PHYFLG_DISABLE_1G_HD_ADV
	.comm	_ADVERTISED_1000baseT_Half,4,2  ## @ADVERTISED_1000baseT_Half
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_TG3_PHYFLG_ANY_SERDES,4,2      ## @TG3_PHYFLG_ANY_SERDES
	.comm	_ADVERTISED_100baseT_Half,4,2   ## @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_TP,4,2              ## @ADVERTISED_TP
	.comm	_ADVERTISED_FIBRE,4,2           ## @ADVERTISED_FIBRE
	.comm	_SPEED_UNKNOWN,8,3              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,8,3             ## @DUPLEX_UNKNOWN
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.no_dead_strip	_tg3_phy_init_link_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_phy_init_link_config
_tg3_phy_init_link_config:              ; @tg3_phy_init_link_config
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ADVERTISED_Autoneg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
Lloh3:
	adrp	x10, _TG3_PHYFLG_10_100_ONLY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TG3_PHYFLG_10_100_ONLY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x10, _TG3_PHYFLG_DISABLE_1G_HD_ADV@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TG3_PHYFLG_DISABLE_1G_HD_ADV@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _ADVERTISED_1000baseT_Half@GOTPAGE
Lloh10:
	ldr	x11, [x11, _ADVERTISED_1000baseT_Half@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, w11, wzr, eq
Lloh12:
	adrp	x11, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh13:
	ldr	x11, [x11, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w8, w11, w8
	orr	w8, w8, w10
LBB0_2:
Lloh15:
	adrp	x10, _TG3_PHYFLG_ANY_SERDES@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TG3_PHYFLG_ANY_SERDES@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
Lloh18:
	adrp	x9, _ADVERTISED_FIBRE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ADVERTISED_FIBRE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x9, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh27:
	adrp	x10, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh28:
	ldr	x10, [x10, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh30:
	adrp	x10, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh31:
	ldr	x10, [x10, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh33:
	adrp	x10, _ADVERTISED_TP@GOTPAGE
Lloh34:
	ldr	x10, [x10, _ADVERTISED_TP@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w9, w9, w10
LBB0_5:
	orr	w8, w9, w8
Lloh36:
	adrp	x9, _SPEED_UNKNOWN@GOTPAGE
Lloh37:
	ldr	x9, [x9, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
Lloh39:
	adrp	x10, _AUTONEG_ENABLE@GOTPAGE
Lloh40:
	ldr	x10, [x10, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	str	w10, [x0, #32]
Lloh42:
	adrp	x10, _DUPLEX_UNKNOWN@GOTPAGE
Lloh43:
	ldr	x10, [x10, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh44:
	ldr	x10, [x10]
	stp	x10, x9, [x0, #40]
	stp	x10, x9, [x0, #16]
	mov	w9, #-1
	stp	w9, w8, [x0, #4]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.comm	_TG3_PHYFLG_10_100_ONLY,4,2     ; @TG3_PHYFLG_10_100_ONLY
	.comm	_TG3_PHYFLG_DISABLE_1G_HD_ADV,4,2 ; @TG3_PHYFLG_DISABLE_1G_HD_ADV
	.comm	_ADVERTISED_1000baseT_Half,4,2  ; @ADVERTISED_1000baseT_Half
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_TG3_PHYFLG_ANY_SERDES,4,2      ; @TG3_PHYFLG_ANY_SERDES
	.comm	_ADVERTISED_100baseT_Half,4,2   ; @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_TP,4,2              ; @ADVERTISED_TP
	.comm	_ADVERTISED_FIBRE,4,2           ; @ADVERTISED_FIBRE
	.comm	_SPEED_UNKNOWN,8,3              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,8,3             ; @DUPLEX_UNKNOWN
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.no_dead_strip	_tg3_phy_init_link_config
.subsections_via_symbols
