	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_get_eee
_bnx2x_get_eee:                         ## @bnx2x_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_eee_status@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_BP_PORT
	movl	(%r15,%rax,4), %esi
	movq	%rbx, %rdi
	callq	_SHMEM2_HAS
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %ebx
	movq	_SHMEM_EEE_SUPPORTED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	movq	_SHMEM_EEE_SUPPORTED_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edi
	callq	_bnx2x_eee_to_adv
	movq	%rax, 32(%r14)
	movq	_SHMEM_EEE_ADV_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	movq	_SHMEM_EEE_ADV_STATUS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edi
	callq	_bnx2x_eee_to_adv
	movq	%rax, 24(%r14)
	movq	_SHMEM_EEE_LP_ADV_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	movq	_SHMEM_EEE_LP_ADV_STATUS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edi
	callq	_bnx2x_eee_to_adv
	movq	%rax, 16(%r14)
	movq	_SHMEM_EEE_TIMER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	shll	$4, %eax
	movl	%eax, (%r14)
	movq	_SHMEM_EEE_REQUESTED_BIT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%cl
	movl	%ecx, 4(%r14)
	movq	_SHMEM_EEE_ACTIVE_BIT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%cl
	movl	%ecx, 8(%r14)
	movq	_SHMEM_EEE_LPI_REQUESTED_BIT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	andl	(%rax), %ebx
	setne	%cl
	movl	%ecx, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eee_status,8,3                 ## @eee_status
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ## @BNX2X_MSG_ETHTOOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BC Version does not support EEE\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_SHMEM_EEE_SUPPORTED_MASK,4,2   ## @SHMEM_EEE_SUPPORTED_MASK
	.comm	_SHMEM_EEE_SUPPORTED_SHIFT,4,2  ## @SHMEM_EEE_SUPPORTED_SHIFT
	.comm	_SHMEM_EEE_ADV_STATUS_MASK,4,2  ## @SHMEM_EEE_ADV_STATUS_MASK
	.comm	_SHMEM_EEE_ADV_STATUS_SHIFT,4,2 ## @SHMEM_EEE_ADV_STATUS_SHIFT
	.comm	_SHMEM_EEE_LP_ADV_STATUS_MASK,4,2 ## @SHMEM_EEE_LP_ADV_STATUS_MASK
	.comm	_SHMEM_EEE_LP_ADV_STATUS_SHIFT,4,2 ## @SHMEM_EEE_LP_ADV_STATUS_SHIFT
	.comm	_SHMEM_EEE_TIMER_MASK,4,2       ## @SHMEM_EEE_TIMER_MASK
	.comm	_SHMEM_EEE_REQUESTED_BIT,4,2    ## @SHMEM_EEE_REQUESTED_BIT
	.comm	_SHMEM_EEE_ACTIVE_BIT,4,2       ## @SHMEM_EEE_ACTIVE_BIT
	.comm	_SHMEM_EEE_LPI_REQUESTED_BIT,4,2 ## @SHMEM_EEE_LPI_REQUESTED_BIT
	.no_dead_strip	_bnx2x_get_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_get_eee
_bnx2x_get_eee:                         ; @bnx2x_get_eee
	.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, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _eee_status@GOTPAGE
Lloh1:
	ldr	x8, [x8, _eee_status@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	bl	_BP_PORT
	ldr	w1, [x21, x0, lsl #2]
	mov	x0, x20
	bl	_SHMEM2_HAS
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w20, [x20]
Lloh3:
	adrp	x8, _SHMEM_EEE_SUPPORTED_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHMEM_EEE_SUPPORTED_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh6:
	adrp	x9, _SHMEM_EEE_SUPPORTED_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SHMEM_EEE_SUPPORTED_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w0, w8, w9
	bl	_bnx2x_eee_to_adv
	str	x0, [x19, #32]
Lloh9:
	adrp	x8, _SHMEM_EEE_ADV_STATUS_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SHMEM_EEE_ADV_STATUS_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh12:
	adrp	x9, _SHMEM_EEE_ADV_STATUS_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SHMEM_EEE_ADV_STATUS_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w0, w8, w9
	bl	_bnx2x_eee_to_adv
	str	x0, [x19, #24]
Lloh15:
	adrp	x8, _SHMEM_EEE_LP_ADV_STATUS_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SHMEM_EEE_LP_ADV_STATUS_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh18:
	adrp	x9, _SHMEM_EEE_LP_ADV_STATUS_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SHMEM_EEE_LP_ADV_STATUS_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	asr	w0, w8, w9
	bl	_bnx2x_eee_to_adv
	mov	x8, x0
	mov	w0, #0
Lloh21:
	adrp	x9, _SHMEM_EEE_TIMER_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SHMEM_EEE_TIMER_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w9, w9, w20
	lsl	w9, w9, #4
Lloh24:
	adrp	x10, _SHMEM_EEE_REQUESTED_BIT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _SHMEM_EEE_REQUESTED_BIT@GOTPAGEOFF]
	str	w9, [x19]
Lloh26:
	ldr	w9, [x10]
	tst	w9, w20
	cset	w9, ne
Lloh27:
	adrp	x10, _SHMEM_EEE_ACTIVE_BIT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _SHMEM_EEE_ACTIVE_BIT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w10, w20
	cset	w10, ne
Lloh30:
	adrp	x11, _SHMEM_EEE_LPI_REQUESTED_BIT@GOTPAGE
Lloh31:
	ldr	x11, [x11, _SHMEM_EEE_LPI_REQUESTED_BIT@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
	tst	w11, w20
	str	x8, [x19, #16]
	stp	w9, w10, [x19, #4]
	cset	w8, ne
	str	w8, [x19, #12]
	b	LBB0_3
LBB0_2:
Lloh33:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh38:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_eee_status,8,3                 ; @eee_status
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ; @BNX2X_MSG_ETHTOOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BC Version does not support EEE\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_SHMEM_EEE_SUPPORTED_MASK,4,2   ; @SHMEM_EEE_SUPPORTED_MASK
	.comm	_SHMEM_EEE_SUPPORTED_SHIFT,4,2  ; @SHMEM_EEE_SUPPORTED_SHIFT
	.comm	_SHMEM_EEE_ADV_STATUS_MASK,4,2  ; @SHMEM_EEE_ADV_STATUS_MASK
	.comm	_SHMEM_EEE_ADV_STATUS_SHIFT,4,2 ; @SHMEM_EEE_ADV_STATUS_SHIFT
	.comm	_SHMEM_EEE_LP_ADV_STATUS_MASK,4,2 ; @SHMEM_EEE_LP_ADV_STATUS_MASK
	.comm	_SHMEM_EEE_LP_ADV_STATUS_SHIFT,4,2 ; @SHMEM_EEE_LP_ADV_STATUS_SHIFT
	.comm	_SHMEM_EEE_TIMER_MASK,4,2       ; @SHMEM_EEE_TIMER_MASK
	.comm	_SHMEM_EEE_REQUESTED_BIT,4,2    ; @SHMEM_EEE_REQUESTED_BIT
	.comm	_SHMEM_EEE_ACTIVE_BIT,4,2       ; @SHMEM_EEE_ACTIVE_BIT
	.comm	_SHMEM_EEE_LPI_REQUESTED_BIT,4,2 ; @SHMEM_EEE_LPI_REQUESTED_BIT
	.no_dead_strip	_bnx2x_get_eee
.subsections_via_symbols
