	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_eee
_bnx2x_set_eee:                         ## @bnx2x_set_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_MF
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	movq	_eee_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_BP_PORT
	movl	(%rbx,%rax,4), %esi
	movq	%r13, %rdi
	callq	_SHMEM2_HAS
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	4(%r13), %ebx
	movq	_SHMEM_EEE_SUPPORTED_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.3:
	movl	24(%r12), %edi
	movq	_SHMEM_EEE_ADV_STATUS_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bnx2x_adv_to_eee
	movq	_SHMEM_EEE_ADV_STATUS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	cmpl	%ebx, %eax
	jne	LBB0_9
## %bb.4:
	movl	(%r12), %eax
	movq	_EEE_MODE_TIMER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jle	LBB0_10
## %bb.5:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_13
LBB0_6:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DP
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DP
	jmp	LBB0_14
LBB0_10:
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.11:
	movq	_EEE_MODE_NVRAM_AGGRESSIVE_TIME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %eax
	jge	LBB0_17
## %bb.12:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_13:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DP
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	subl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	cmpq	$0, 16(%r12)
	movq	_EEE_MODE_ADV_LPI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	je	LBB0_19
## %bb.18:
	orl	(%r13), %edx
	jmp	LBB0_20
LBB0_19:
	notl	%edx
	andl	(%r13), %edx
LBB0_20:
	movl	%edx, (%r13)
	movq	_EEE_MODE_ENABLE_LPI@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.21:
	orl	%edi, %edx
	jmp	LBB0_23
LBB0_22:
	notl	%edi
	andl	%edi, %edx
LBB0_23:
	movl	%edx, (%r13)
	movl	(%rcx), %esi
	notl	%esi
	andl	%edx, %esi
	movl	%esi, (%r13)
	andl	(%rcx), %eax
	movq	_EEE_MODE_OVERRIDE_NVRAM@GOTPCREL(%rip), %rcx
	movq	_EEE_MODE_OUTPUT_TIME@GOTPCREL(%rip), %rdx
	orl	(%rcx), %esi
	orl	%eax, %esi
	orl	(%rdx), %esi
	movl	%esi, (%r13)
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_16
## %bb.24:
	movq	_STATS_EVENT_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_bnx2x_stats_handle
	movq	%r13, %rdi
	callq	_bnx2x_force_link_reset
	movq	%r13, %rdi
	callq	_bnx2x_link_set
	jmp	LBB0_16
	.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
L_.str.1:                               ## @.str.1
	.asciz	"Board does not support EEE!\n"

	.comm	_SHMEM_EEE_ADV_STATUS_SHIFT,4,2 ## @SHMEM_EEE_ADV_STATUS_SHIFT
	.comm	_SHMEM_EEE_ADV_STATUS_MASK,4,2  ## @SHMEM_EEE_ADV_STATUS_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Direct manipulation of EEE advertisement is not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EEE_MODE_TIMER_MASK,4,2        ## @EEE_MODE_TIMER_MASK
L_.str.3:                               ## @.str.3
	.asciz	"Maximal Tx Lpi timer supported is %x(u)\n"

	.comm	_EEE_MODE_NVRAM_AGGRESSIVE_TIME,4,2 ## @EEE_MODE_NVRAM_AGGRESSIVE_TIME
L_.str.4:                               ## @.str.4
	.asciz	"Minimal Tx Lpi timer supported is %d(u)\n"

	.comm	_EEE_MODE_ADV_LPI,4,2           ## @EEE_MODE_ADV_LPI
	.comm	_EEE_MODE_ENABLE_LPI,4,2        ## @EEE_MODE_ENABLE_LPI
	.comm	_EEE_MODE_OVERRIDE_NVRAM,4,2    ## @EEE_MODE_OVERRIDE_NVRAM
	.comm	_EEE_MODE_OUTPUT_TIME,4,2       ## @EEE_MODE_OUTPUT_TIME
	.comm	_STATS_EVENT_STOP,4,2           ## @STATS_EVENT_STOP
	.no_dead_strip	_bnx2x_set_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_eee
_bnx2x_set_eee:                         ; @bnx2x_set_eee
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_IS_MF
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_13
LBB0_2:
Lloh0:
	adrp	x8, _eee_status@GOTPAGE
Lloh1:
	ldr	x8, [x8, _eee_status@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	x0, x19
	bl	_BP_PORT
	ldr	w1, [x22, x0, lsl #2]
	mov	x0, x19
	bl	_SHMEM2_HAS
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w22, [x19, #4]
Lloh3:
	adrp	x8, _SHMEM_EEE_SUPPORTED_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHMEM_EEE_SUPPORTED_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.4:
	ldr	w0, [x21, #24]
Lloh6:
	adrp	x8, _SHMEM_EEE_ADV_STATUS_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SHMEM_EEE_ADV_STATUS_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_bnx2x_adv_to_eee
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, w22
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.5:
	ldr	w8, [x21]
Lloh12:
	adrp	x9, _EEE_MODE_TIMER_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EEE_MODE_TIMER_MASK@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w8, w10
	b.le	LBB0_14
; %bb.6:
Lloh14:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	str	x10, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh19:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh24:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	bl	_DP
Lloh29:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh31:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	bl	_DP
Lloh36:
	adrp	x8, _EINVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
LBB0_14:
	ldr	x10, [x21, #8]
	cbz	x10, LBB0_17
; %bb.15:
Lloh38:
	adrp	x11, _EEE_MODE_NVRAM_AGGRESSIVE_TIME@GOTPAGE
Lloh39:
	ldr	x11, [x11, _EEE_MODE_NVRAM_AGGRESSIVE_TIME@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
	cmp	w8, w11
	b.ge	LBB0_17
; %bb.16:
Lloh41:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	str	x11, [sp]
Lloh44:
	adrp	x1, l_.str.4@PAGE
Lloh45:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_17:
	ldr	x12, [x21, #16]
Lloh46:
	adrp	x11, _EEE_MODE_ADV_LPI@GOTPAGE
Lloh47:
	ldr	x11, [x11, _EEE_MODE_ADV_LPI@GOTPAGEOFF]
Lloh48:
	ldr	w11, [x11]
	cbz	x12, LBB0_19
; %bb.18:
	ldr	w12, [x19]
	orr	w11, w12, w11
	b	LBB0_20
LBB0_19:
	ldr	w12, [x19]
	bic	w11, w12, w11
LBB0_20:
	str	w11, [x19]
Lloh49:
	adrp	x12, _EEE_MODE_ENABLE_LPI@GOTPAGE
Lloh50:
	ldr	x12, [x12, _EEE_MODE_ENABLE_LPI@GOTPAGEOFF]
Lloh51:
	ldr	w12, [x12]
	cbz	x10, LBB0_22
; %bb.21:
	orr	w10, w11, w12
	b	LBB0_23
LBB0_22:
	bic	w10, w11, w12
LBB0_23:
	str	w10, [x19]
	ldr	w11, [x9]
	bic	w10, w10, w11
	str	w10, [x19]
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh52:
	adrp	x9, _EEE_MODE_OVERRIDE_NVRAM@GOTPAGE
Lloh53:
	ldr	x9, [x9, _EEE_MODE_OVERRIDE_NVRAM@GOTPAGEOFF]
Lloh54:
	adrp	x11, _EEE_MODE_OUTPUT_TIME@GOTPAGE
Lloh55:
	ldr	x11, [x11, _EEE_MODE_OUTPUT_TIME@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
Lloh57:
	ldr	w11, [x11]
	orr	w9, w9, w10
	orr	w8, w9, w8
	orr	w8, w8, w11
	str	w8, [x19]
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_13
; %bb.24:
Lloh58:
	adrp	x8, _STATS_EVENT_STOP@GOTPAGE
Lloh59:
	ldr	x8, [x8, _STATS_EVENT_STOP@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2x_stats_handle
	mov	x0, x19
	bl	_bnx2x_force_link_reset
	mov	x0, x19
	bl	_bnx2x_link_set
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh56
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.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
l_.str.1:                               ; @.str.1
	.asciz	"Board does not support EEE!\n"

	.comm	_SHMEM_EEE_ADV_STATUS_SHIFT,4,2 ; @SHMEM_EEE_ADV_STATUS_SHIFT
	.comm	_SHMEM_EEE_ADV_STATUS_MASK,4,2  ; @SHMEM_EEE_ADV_STATUS_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Direct manipulation of EEE advertisement is not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EEE_MODE_TIMER_MASK,4,2        ; @EEE_MODE_TIMER_MASK
l_.str.3:                               ; @.str.3
	.asciz	"Maximal Tx Lpi timer supported is %x(u)\n"

	.comm	_EEE_MODE_NVRAM_AGGRESSIVE_TIME,4,2 ; @EEE_MODE_NVRAM_AGGRESSIVE_TIME
l_.str.4:                               ; @.str.4
	.asciz	"Minimal Tx Lpi timer supported is %d(u)\n"

	.comm	_EEE_MODE_ADV_LPI,4,2           ; @EEE_MODE_ADV_LPI
	.comm	_EEE_MODE_ENABLE_LPI,4,2        ; @EEE_MODE_ENABLE_LPI
	.comm	_EEE_MODE_OVERRIDE_NVRAM,4,2    ; @EEE_MODE_OVERRIDE_NVRAM
	.comm	_EEE_MODE_OUTPUT_TIME,4,2       ; @EEE_MODE_OUTPUT_TIME
	.comm	_STATS_EVENT_STOP,4,2           ; @STATS_EVENT_STOP
	.no_dead_strip	_bnx2x_set_eee
.subsections_via_symbols
