	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000e_has_link
_e1000e_has_link:                       ## @e1000e_has_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_7
## %bb.2:
	xorl	%r15d, %r15d
	cmpl	$131, %eax
	jne	LBB0_3
## %bb.4:
	cmpl	$0, 32(%rbx)
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movl	%eax, %r15d
	xorl	%r14d, %r14d
	cmpl	$0, 32(%rbx)
	sete	%r14b
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movl	%eax, %r15d
	movl	16(%rbx), %r14d
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movl	%eax, %r15d
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_LU@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	setne	%r14b
	jmp	LBB0_9
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_5:
	movl	$1, %r14d
LBB0_9:
	movq	_E1000_ERR_PHY@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	jne	LBB0_13
## %bb.10:
	movq	8(%rbx), %rax
	movq	_e1000_phy_igp_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_PHY_CTRL_GBE_DISABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rdi
	callq	_e_info
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_LU,4,2            ## @E1000_STATUS_LU
	.comm	_E1000_ERR_PHY,4,2              ## @E1000_ERR_PHY
	.comm	_e1000_phy_igp_3,8,3            ## @e1000_phy_igp_3
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_PHY_CTRL_GBE_DISABLE,4,2 ## @E1000_PHY_CTRL_GBE_DISABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Gigabit has been disabled, downgrading speed\n"

	.no_dead_strip	_e1000e_has_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000e_has_link
_e1000e_has_link:                       ; @e1000e_has_link
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #131
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_8
; %bb.4:
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	ldr	w8, [x19, #32]
	cmp	w8, #0
	cset	w20, eq
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	ldr	w20, [x19, #16]
	b	LBB0_9
LBB0_6:
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	mov	x21, x0
Lloh0:
	adrp	x8, _STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_er32
Lloh3:
	adrp	x8, _E1000_STATUS_LU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E1000_STATUS_LU@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w20, ne
	b	LBB0_9
LBB0_7:
	mov	w20, #0
	mov	w21, #0
	b	LBB0_9
LBB0_8:
	mov	w21, #0
	mov	w20, #1
LBB0_9:
Lloh6:
	adrp	x8, _E1000_ERR_PHY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_ERR_PHY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w21, w8
	b.ne	LBB0_13
; %bb.10:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _e1000_phy_igp_3@GOTPAGE
Lloh10:
	ldr	x9, [x9, _e1000_phy_igp_3@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
Lloh12:
	adrp	x8, _CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_er32
Lloh15:
	adrp	x8, _E1000_PHY_CTRL_GBE_DISABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E1000_PHY_CTRL_GBE_DISABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.12:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_info
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_LU,4,2            ; @E1000_STATUS_LU
	.comm	_E1000_ERR_PHY,4,2              ; @E1000_ERR_PHY
	.comm	_e1000_phy_igp_3,8,3            ; @e1000_phy_igp_3
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_PHY_CTRL_GBE_DISABLE,4,2 ; @E1000_PHY_CTRL_GBE_DISABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Gigabit has been disabled, downgrading speed\n"

	.no_dead_strip	_e1000e_has_link
.subsections_via_symbols
