	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000e_get_eee
_e1000e_get_eee:                        ## @e1000e_get_eee
	.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	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_FLAG2_HAS_EEE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.1:
	movq	%r15, %r12
	movl	16(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_I217_EEE_PCS_STATUS@GOTPCREL(%rip), %rax
	movq	_I217_EEE_LP_ABILITY@GOTPCREL(%rip), %rcx
	movq	_I217_EEE_CAPABILITY@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_I82579_EEE_PCS_STATUS@GOTPCREL(%rip), %rax
	movq	_I82579_EEE_LP_ABILITY@GOTPCREL(%rip), %rcx
	movq	_I82579_EEE_CAPABILITY@GOTPCREL(%rip), %rdx
LBB0_6:
	addq	$8, %r15
	movl	(%rax), %r14d
	movl	(%rcx), %ebx
	movl	(%rdx), %r13d
	movq	%r15, %rdi
	callq	*32(%r12)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_8:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_e1000_read_emi_reg_locked
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movl	-44(%rbp), %edi
	callq	_mmd_eee_cap_to_ethtool_sup_t
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, 32(%r13)
	movl	4(%r12), %edi
	callq	_mmd_eee_adv_to_ethtool_adv_t
	movq	%r13, %r14
	movq	%rax, 24(%r13)
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_e1000_read_emi_reg_locked
	testq	%rax, %rax
	je	LBB0_14
LBB0_10:
	movq	%r15, %rdi
	callq	*24(%r12)
LBB0_11:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	-44(%rbp), %edi
	callq	_mmd_eee_adv_to_ethtool_adv_t
	movq	%rax, 16(%r14)
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_e1000_read_emi_reg_locked
	movq	%rax, %rbx
	cmpl	$129, 16(%r12)
	jne	LBB0_16
## %bb.15:
	shll	$8, -44(%rbp)
LBB0_16:
	movq	%r15, %rdi
	callq	*24(%r12)
	testq	%rbx, %rbx
	jne	LBB0_11
## %bb.18:
	movq	_E1000_EEE_TX_LPI_RCVD@GOTPCREL(%rip), %rax
	movq	_E1000_EEE_RX_LPI_RCVD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, -44(%rbp)
	je	LBB0_20
## %bb.19:
	movl	$1, (%r14)
LBB0_20:
	xorl	%eax, %eax
	cmpl	$0, (%r15)
	sete	%al
	movl	%eax, 4(%r14)
	movl	$1, 8(%r14)
	movq	_LPIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_LPIC_LPIET_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG2_HAS_EEE,4,2              ## @FLAG2_HAS_EEE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_I82579_EEE_CAPABILITY,4,2      ## @I82579_EEE_CAPABILITY
	.comm	_I82579_EEE_LP_ABILITY,4,2      ## @I82579_EEE_LP_ABILITY
	.comm	_I82579_EEE_PCS_STATUS,4,2      ## @I82579_EEE_PCS_STATUS
	.comm	_I217_EEE_CAPABILITY,4,2        ## @I217_EEE_CAPABILITY
	.comm	_I217_EEE_LP_ABILITY,4,2        ## @I217_EEE_LP_ABILITY
	.comm	_I217_EEE_PCS_STATUS,4,2        ## @I217_EEE_PCS_STATUS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_E1000_EEE_TX_LPI_RCVD,4,2      ## @E1000_EEE_TX_LPI_RCVD
	.comm	_E1000_EEE_RX_LPI_RCVD,4,2      ## @E1000_EEE_RX_LPI_RCVD
	.comm	_LPIC,4,2                       ## @LPIC
	.comm	_E1000_LPIC_LPIET_SHIFT,4,2     ## @E1000_LPIC_LPIET_SHIFT
	.no_dead_strip	_e1000e_get_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000e_get_eee
_e1000e_get_eee:                        ; @e1000e_get_eee
	.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	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x20], #8
Lloh0:
	adrp	x9, _FLAG2_HAS_EEE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLAG2_HAS_EEE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0, #16]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _I217_EEE_PCS_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I217_EEE_PCS_STATUS@GOTPAGEOFF]
Lloh5:
	adrp	x9, _I217_EEE_LP_ABILITY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I217_EEE_LP_ABILITY@GOTPAGEOFF]
Lloh7:
	adrp	x10, _I217_EEE_CAPABILITY@GOTPAGE
Lloh8:
	ldr	x10, [x10, _I217_EEE_CAPABILITY@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh11:
	adrp	x8, _I82579_EEE_PCS_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I82579_EEE_PCS_STATUS@GOTPAGEOFF]
Lloh13:
	adrp	x9, _I82579_EEE_LP_ABILITY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _I82579_EEE_LP_ABILITY@GOTPAGEOFF]
Lloh15:
	adrp	x10, _I82579_EEE_CAPABILITY@GOTPAGE
Lloh16:
	ldr	x10, [x10, _I82579_EEE_CAPABILITY@GOTPAGEOFF]
LBB0_6:
	ldr	w22, [x8]
	ldr	w23, [x9]
	ldr	w24, [x10]
	ldr	x8, [x21, #32]
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x24
	bl	_e1000_read_emi_reg_locked
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	w0, [sp, #12]
	bl	_mmd_eee_cap_to_ethtool_sup_t
	str	w0, [x19, #32]
	ldr	w0, [x21, #4]
	bl	_mmd_eee_adv_to_ethtool_adv_t
	str	x0, [x19, #24]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x23
	bl	_e1000_read_emi_reg_locked
	cbz	x0, LBB0_14
LBB0_10:
	ldr	x8, [x21, #24]
	mov	x0, x20
	blr	x8
LBB0_11:
Lloh19:
	adrp	x8, _ENODATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
LBB0_14:
	ldr	w0, [sp, #12]
	bl	_mmd_eee_adv_to_ethtool_adv_t
	str	x0, [x19, #16]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x22
	bl	_e1000_read_emi_reg_locked
	mov	x22, x0
	ldr	w8, [x21, #16]
	cmp	w8, #129
	b.ne	LBB0_16
; %bb.15:
	ldr	w8, [sp, #12]
	lsl	w8, w8, #8
	str	w8, [sp, #12]
LBB0_16:
	ldr	x8, [x21, #24]
	mov	x0, x20
	blr	x8
	cbnz	x22, LBB0_11
; %bb.17:
	ldr	w8, [sp, #12]
Lloh21:
	adrp	x9, _E1000_EEE_TX_LPI_RCVD@GOTPAGE
Lloh22:
	ldr	x9, [x9, _E1000_EEE_TX_LPI_RCVD@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _E1000_EEE_RX_LPI_RCVD@GOTPAGE
Lloh25:
	ldr	x10, [x10, _E1000_EEE_RX_LPI_RCVD@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
	mov	w8, #1
	str	w8, [x19]
LBB0_19:
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w8, eq
	mov	w9, #1
	stp	w8, w9, [x19, #4]
Lloh27:
	adrp	x8, _LPIC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LPIC@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_er32
	mov	x8, x0
	mov	w0, #0
Lloh30:
	adrp	x9, _E1000_LPIC_LPIET_SHIFT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _E1000_LPIC_LPIET_SHIFT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19, #12]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG2_HAS_EEE,4,2              ; @FLAG2_HAS_EEE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_I82579_EEE_CAPABILITY,4,2      ; @I82579_EEE_CAPABILITY
	.comm	_I82579_EEE_LP_ABILITY,4,2      ; @I82579_EEE_LP_ABILITY
	.comm	_I82579_EEE_PCS_STATUS,4,2      ; @I82579_EEE_PCS_STATUS
	.comm	_I217_EEE_CAPABILITY,4,2        ; @I217_EEE_CAPABILITY
	.comm	_I217_EEE_LP_ABILITY,4,2        ; @I217_EEE_LP_ABILITY
	.comm	_I217_EEE_PCS_STATUS,4,2        ; @I217_EEE_PCS_STATUS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_E1000_EEE_TX_LPI_RCVD,4,2      ; @E1000_EEE_TX_LPI_RCVD
	.comm	_E1000_EEE_RX_LPI_RCVD,4,2      ; @E1000_EEE_RX_LPI_RCVD
	.comm	_LPIC,4,2                       ; @LPIC
	.comm	_E1000_LPIC_LPIET_SHIFT,4,2     ; @E1000_LPIC_LPIET_SHIFT
	.no_dead_strip	_e1000e_get_eee
.subsections_via_symbols
