	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_check_for_copper_link   ## -- Begin function e1000e_check_for_copper_link
	.p2align	4, 0x90
_e1000e_check_for_copper_link:          ## @e1000e_check_for_copper_link
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, (%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	leaq	-20(%rbp), %rcx
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_e1000e_phy_has_link_generic
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	cmpl	$0, -20(%rbp)
	je	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_e1000e_check_downshift
	cmpl	$0, 16(%rbx)
	je	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	%rbx, %rdi
	callq	_e1000e_config_fc_after_link_up
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	jmp	LBB0_10
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_7:
	movl	$1, (%rbx)
	jmp	LBB0_10
LBB0_8:
	movq	_E1000_ERR_CONFIG@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_10:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_ERR_CONFIG,8,3           ## @E1000_ERR_CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error configuring flow control\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_check_for_copper_link   ; -- Begin function e1000e_check_for_copper_link
	.p2align	2
_e1000e_check_for_copper_link:          ; @e1000e_check_for_copper_link
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
	str	wzr, [x0]
	mov	w21, #1
	add	x3, sp, #12
	mov	w1, #1
	mov	w2, #0
	bl	_e1000e_phy_has_link_generic
	mov	x20, x0
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_e1000e_check_downshift
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_8
; %bb.4:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_e1000e_config_fc_after_link_up
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	b	LBB0_9
LBB0_6:
	mov	x20, #0
	b	LBB0_9
LBB0_7:
	str	w21, [x19]
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x8, _E1000_ERR_CONFIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_ERR_CONFIG@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x20, x8
LBB0_9:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_ERR_CONFIG,8,3           ; @E1000_ERR_CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error configuring flow control\n"

.subsections_via_symbols
