	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_FLAG2_HAS_EEE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_1
## %bb.3:
	leaq	8(%r13), %r12
	movl	(%r12), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.6:
	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_7
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	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_7:
	movl	(%rax), %r15d
	movl	(%rcx), %ebx
	movl	(%rdx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	(%r14), %edi
	callq	_pm_runtime_get_sync
	movq	%r12, %rdi
	callq	*16(%r13)
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	callq	_pm_runtime_put_sync
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_e1000_read_emi_reg_locked
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	movl	-44(%rbp), %edi
	callq	_mmd_eee_cap_to_ethtool_sup_t
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 32(%rbx)
	movl	4(%r13), %edi
	callq	_mmd_eee_adv_to_ethtool_adv_t
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 24(%rbx)
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_e1000_read_emi_reg_locked
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movl	-44(%rbp), %edi
	callq	_mmd_eee_adv_to_ethtool_adv_t
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_e1000_read_emi_reg_locked
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.12:
	cmpl	$129, (%r12)
	movl	-44(%rbp), %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_14
## %bb.13:
	shll	$8, %eax
	movl	%eax, -44(%rbp)
LBB0_14:
	movq	_E1000_EEE_TX_LPI_RCVD@GOTPCREL(%rip), %rcx
	movq	_E1000_EEE_RX_LPI_RCVD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_16
## %bb.15:
	movl	$1, (%rbx)
LBB0_16:
	xorl	%eax, %eax
	cmpl	$0, 32(%r13)
	sete	%al
	movl	%eax, 4(%rbx)
	movl	$1, 8(%rbx)
	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(%rbx)
	xorl	%r15d, %r15d
LBB0_17:
	movq	%r12, %rdi
	callq	*24(%r13)
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%r15d, %r15d
	cmovel	%r15d, %ebx
	movl	(%r14), %edi
	callq	_pm_runtime_put_sync
	jmp	LBB0_18
	.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	_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
	.comm	_ENODATA,4,2                    ## @ENODATA
	.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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	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	x22, x0
	ldr	w8, [x20]
	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_8
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	w23, [x8]
	ldr	w24, [x9]
	ldr	w25, [x10]
	ldr	w0, [x19]
	bl	_pm_runtime_get_sync
	ldr	x8, [x22, #16]
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_10
; %bb.7:
	ldr	w0, [x19]
	bl	_pm_runtime_put_sync
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x25
	bl	_e1000_read_emi_reg_locked
	mov	x25, x0
	cbnz	w0, LBB0_18
; %bb.11:
	ldr	w0, [sp, #12]
	bl	_mmd_eee_cap_to_ethtool_sup_t
	str	w0, [x21, #32]
	ldr	w0, [x22, #4]
	bl	_mmd_eee_adv_to_ethtool_adv_t
	str	x0, [x21, #24]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x24
	bl	_e1000_read_emi_reg_locked
	mov	x25, x0
	cbnz	w0, LBB0_18
; %bb.12:
	ldr	w0, [sp, #12]
	bl	_mmd_eee_adv_to_ethtool_adv_t
	str	x0, [x21, #16]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x23
	bl	_e1000_read_emi_reg_locked
	mov	x25, x0
	cbnz	w0, LBB0_18
; %bb.13:
	ldr	w9, [x20]
	ldr	w8, [sp, #12]
	cmp	w9, #129
	b.ne	LBB0_15
; %bb.14:
	lsl	w8, w8, #8
	str	w8, [sp, #12]
LBB0_15:
Lloh19:
	adrp	x9, _E1000_EEE_TX_LPI_RCVD@GOTPAGE
Lloh20:
	ldr	x9, [x9, _E1000_EEE_TX_LPI_RCVD@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _E1000_EEE_RX_LPI_RCVD@GOTPAGE
Lloh23:
	ldr	x10, [x10, _E1000_EEE_RX_LPI_RCVD@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	mov	w8, #1
	str	w8, [x21]
LBB0_17:
	ldr	w8, [x22, #32]
	cmp	w8, #0
	cset	w8, eq
	mov	w9, #1
	stp	w8, w9, [x21, #4]
Lloh25:
	adrp	x8, _LPIC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LPIC@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_er32
	mov	w25, #0
Lloh28:
	adrp	x8, _E1000_LPIC_LPIET_SHIFT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _E1000_LPIC_LPIET_SHIFT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	asr	w8, w0, w8
	str	w8, [x21, #12]
LBB0_18:
	ldr	x8, [x22, #24]
	mov	x0, x20
	blr	x8
Lloh31:
	adrp	x8, _ENODATA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w25, #0
	csneg	w20, wzr, w8, eq
	ldr	w0, [x19]
	bl	_pm_runtime_put_sync
	b	LBB0_9
	.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 AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.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	_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
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_e1000e_get_eee
.subsections_via_symbols
