	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_phy_copper_an_config_ok
_tg3_phy_copper_an_config_ok:           ## @tg3_phy_copper_an_config_ok
	.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
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	8(%rdi), %r15d
	movl	%r15d, %edi
	callq	_ethtool_adv_to_mii_adv_t
	movl	%eax, %ebx
	movq	_ADVERTISE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	%r14d, %ebx
	movq	16(%r13), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	24(%r13), %edi
	callq	_mii_advertise_flowctrl
	orl	%eax, %ebx
	movq	_ADVERTISE_PAUSE_CAP@GOTPCREL(%rip), %rax
	movq	_ADVERTISE_PAUSE_ASYM@GOTPCREL(%rip), %rcx
	orl	(%rax), %r14d
	orl	(%rcx), %r14d
LBB0_2:
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_tg3_readphy
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:
	andl	(%r12), %r14d
	cmpl	%ebx, %r14d
	jne	LBB0_14
## %bb.4:
	movq	_TG3_PHYFLG_10_100_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_5
LBB0_12:
	movl	$1, %ecx
	jmp	LBB0_14
LBB0_5:
	movl	%r15d, %edi
	callq	_ethtool_adv_to_mii_ctrl1000_t
	movl	%eax, %r15d
	movq	_MII_CTRL1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_tg3_readphy
	testq	%rax, %rax
	je	LBB0_6
## %bb.13:
	xorl	%ecx, %ecx
	jmp	LBB0_14
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.7:
	movq	%r13, %rdi
	callq	_tg3_chip_rev_id
	movq	_CHIPREV_ID_5701_A0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_tg3_chip_rev_id
	movq	_CHIPREV_ID_5701_B0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_9:
	movq	_CTL1000_AS_MASTER@GOTPCREL(%rip), %rcx
	movq	_CTL1000_ENABLE_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	orl	%eax, %r15d
	movq	_ADVERTISE_1000HALF@GOTPCREL(%rip), %rcx
	movq	_ADVERTISE_1000FULL@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	jmp	LBB0_11
LBB0_10:
	movq	_ADVERTISE_1000HALF@GOTPCREL(%rip), %rcx
	movq	_ADVERTISE_1000FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_11:
	andl	-44(%rbp), %eax
	xorl	%ecx, %ecx
	cmpl	%r15d, %eax
	je	LBB0_12
LBB0_14:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADVERTISE_ALL,4,2              ## @ADVERTISE_ALL
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ## @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ## @ADVERTISE_PAUSE_ASYM
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_TG3_PHYFLG_10_100_ONLY,4,2     ## @TG3_PHYFLG_10_100_ONLY
	.comm	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.comm	_CHIPREV_ID_5701_A0,8,3         ## @CHIPREV_ID_5701_A0
	.comm	_CHIPREV_ID_5701_B0,8,3         ## @CHIPREV_ID_5701_B0
	.comm	_CTL1000_AS_MASTER,4,2          ## @CTL1000_AS_MASTER
	.comm	_CTL1000_ENABLE_MASTER,4,2      ## @CTL1000_ENABLE_MASTER
	.comm	_ADVERTISE_1000HALF,4,2         ## @ADVERTISE_1000HALF
	.comm	_ADVERTISE_1000FULL,4,2         ## @ADVERTISE_1000FULL
	.no_dead_strip	_tg3_phy_copper_an_config_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_phy_copper_an_config_ok
_tg3_phy_copper_an_config_ok:           ; @tg3_phy_copper_an_config_ok
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	w20, [x0, #8]
	mov	x0, x20
	bl	_ethtool_adv_to_mii_adv_t
Lloh0:
	adrp	x8, _ADVERTISE_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADVERTISE_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	and	w22, w23, w0
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_mii_advertise_flowctrl
	orr	w22, w0, w22
Lloh6:
	adrp	x8, _ADVERTISE_PAUSE_CAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADVERTISE_PAUSE_CAP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ADVERTISE_PAUSE_ASYM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ADVERTISE_PAUSE_ASYM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w23
	orr	w23, w8, w9
LBB0_2:
Lloh12:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_tg3_readphy
	cbnz	x0, LBB0_13
; %bb.3:
	ldr	w8, [x21]
	and	w8, w8, w23
	cmp	w8, w22
	b.ne	LBB0_13
; %bb.4:
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _TG3_PHYFLG_10_100_ONLY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TG3_PHYFLG_10_100_ONLY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_5:
	mov	w0, #1
	b	LBB0_14
LBB0_6:
	mov	x0, x20
	bl	_ethtool_adv_to_mii_ctrl1000_t
	mov	x20, x0
Lloh18:
	adrp	x8, _MII_CTRL1000@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MII_CTRL1000@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_tg3_readphy
	cbnz	x0, LBB0_13
; %bb.7:
	cbz	w20, LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_tg3_chip_rev_id
Lloh21:
	adrp	x8, _CHIPREV_ID_5701_A0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CHIPREV_ID_5701_A0@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_tg3_chip_rev_id
Lloh24:
	adrp	x8, _CHIPREV_ID_5701_B0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CHIPREV_ID_5701_B0@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_10:
Lloh27:
	adrp	x8, _CTL1000_AS_MASTER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CTL1000_AS_MASTER@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _CTL1000_ENABLE_MASTER@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CTL1000_ENABLE_MASTER@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
	orr	w20, w8, w20
Lloh33:
	adrp	x9, _ADVERTISE_1000HALF@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ADVERTISE_1000HALF@GOTPAGEOFF]
Lloh35:
	adrp	x10, _ADVERTISE_1000FULL@GOTPAGE
Lloh36:
	ldr	x10, [x10, _ADVERTISE_1000FULL@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	ldr	w10, [x10]
	orr	w8, w8, w9
	orr	w8, w8, w10
	ldr	w9, [sp, #12]
	and	w8, w8, w9
	b	LBB0_12
LBB0_11:
Lloh39:
	adrp	x8, _ADVERTISE_1000HALF@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ADVERTISE_1000HALF@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _ADVERTISE_1000FULL@GOTPAGE
Lloh43:
	ldr	x9, [x9, _ADVERTISE_1000FULL@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	and	w8, w9, w8
LBB0_12:
	cmp	w8, w20
	b.eq	LBB0_5
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_ADVERTISE_ALL,4,2              ; @ADVERTISE_ALL
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ; @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ; @ADVERTISE_PAUSE_ASYM
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_TG3_PHYFLG_10_100_ONLY,4,2     ; @TG3_PHYFLG_10_100_ONLY
	.comm	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.comm	_CHIPREV_ID_5701_A0,8,3         ; @CHIPREV_ID_5701_A0
	.comm	_CHIPREV_ID_5701_B0,8,3         ; @CHIPREV_ID_5701_B0
	.comm	_CTL1000_AS_MASTER,4,2          ; @CTL1000_AS_MASTER
	.comm	_CTL1000_ENABLE_MASTER,4,2      ; @CTL1000_ENABLE_MASTER
	.comm	_ADVERTISE_1000HALF,4,2         ; @ADVERTISE_1000HALF
	.comm	_ADVERTISE_1000FULL,4,2         ; @ADVERTISE_1000FULL
	.no_dead_strip	_tg3_phy_copper_an_config_ok
.subsections_via_symbols
