	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_eee_set_timers
_bnx2x_eee_set_timers:                  ## @bnx2x_eee_set_timers
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	callq	_bnx2x_eee_calc_timer
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_MISC_REG_CPMU_LP_IDLE_THR_P0@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	shll	$2, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_REG_WR
	movl	4(%rbx), %eax
LBB0_2:
	movq	_SHMEM_EEE_TIMER_MASK@GOTPCREL(%rip), %rsi
	movq	_SHMEM_EEE_TIME_OUTPUT_BIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	orl	(%rsi), %ecx
	notl	%ecx
	andl	(%r14), %ecx
	movl	%ecx, (%r14)
	movq	_EEE_MODE_OUTPUT_TIME@GOTPCREL(%rip), %rdi
	testl	%eax, (%rdi)
	je	LBB0_8
## %bb.3:
	sarl	$4, %r15d
	andl	(%rsi), %r15d
	orl	(%rdx), %ecx
	orl	%r15d, %ecx
LBB0_11:
	movl	%ecx, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_4:
	movl	4(%rbx), %eax
	movq	_EEE_MODE_ENABLE_LPI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.5:
	movq	_EEE_MODE_OVERRIDE_NVRAM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.6:
	movq	_EEE_MODE_OUTPUT_TIME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.7:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	jmp	LBB0_9
LBB0_8:
	leaq	-36(%rbp), %rsi
	movl	%r15d, %edi
	callq	_bnx2x_eee_time_to_nvram
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r14), %ecx
	orl	-36(%rbp), %ecx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MISC_REG_CPMU_LP_IDLE_THR_P0,8,3 ## @MISC_REG_CPMU_LP_IDLE_THR_P0
	.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	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: Tx LPI is enabled with timer 0\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SHMEM_EEE_TIMER_MASK,4,2       ## @SHMEM_EEE_TIMER_MASK
	.comm	_SHMEM_EEE_TIME_OUTPUT_BIT,4,2  ## @SHMEM_EEE_TIME_OUTPUT_BIT
	.no_dead_strip	_bnx2x_eee_set_timers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_eee_set_timers
_bnx2x_eee_set_timers:                  ; @bnx2x_eee_set_timers
	.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
	mov	x21, x0
	ldr	x22, [x0, #8]
	bl	_bnx2x_eee_calc_timer
	mov	x20, x0
Lloh0:
	adrp	x23, _EEE_MODE_OUTPUT_TIME@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EEE_MODE_OUTPUT_TIME@GOTPAGEOFF]
	cbz	w0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _MISC_REG_CPMU_LP_IDLE_THR_P0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MISC_REG_CPMU_LP_IDLE_THR_P0@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w9, [x21]
	lsl	w9, w9, #2
	add	x1, x8, w9, sxtw
	mov	x0, x22
	mov	x2, x20
	bl	_REG_WR
	ldr	w8, [x21, #4]
LBB0_2:
Lloh5:
	adrp	x9, _SHMEM_EEE_TIMER_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SHMEM_EEE_TIMER_MASK@GOTPAGEOFF]
	ldr	w11, [x9]
Lloh7:
	adrp	x10, _SHMEM_EEE_TIME_OUTPUT_BIT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SHMEM_EEE_TIME_OUTPUT_BIT@GOTPAGEOFF]
	ldr	w12, [x10]
	orr	w11, w12, w11
	ldr	w12, [x19]
	bic	w11, w12, w11
	str	w11, [x19]
	ldr	w12, [x23]
	tst	w12, w8
	b.eq	LBB0_9
; %bb.3:
	ldr	w8, [x9]
	and	w8, w8, w20, asr #4
	ldr	w9, [x10]
	orr	w9, w9, w11
LBB0_4:
	orr	w8, w9, w8
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_11
LBB0_5:
	ldr	w8, [x21, #4]
Lloh9:
	adrp	x9, _EEE_MODE_ENABLE_LPI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EEE_MODE_ENABLE_LPI@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.6:
Lloh12:
	adrp	x9, _EEE_MODE_OVERRIDE_NVRAM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EEE_MODE_OVERRIDE_NVRAM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.7:
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.8:
Lloh15:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	b	LBB0_10
LBB0_9:
	add	x1, sp, #12
	mov	x0, x20
	bl	_bnx2x_eee_time_to_nvram
	cbz	x0, LBB0_12
LBB0_10:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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_12:
	ldr	w8, [sp, #12]
	ldr	w9, [x19]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MISC_REG_CPMU_LP_IDLE_THR_P0,8,3 ; @MISC_REG_CPMU_LP_IDLE_THR_P0
	.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	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: Tx LPI is enabled with timer 0\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SHMEM_EEE_TIMER_MASK,4,2       ; @SHMEM_EEE_TIMER_MASK
	.comm	_SHMEM_EEE_TIME_OUTPUT_BIT,4,2  ; @SHMEM_EEE_TIME_OUTPUT_BIT
	.no_dead_strip	_bnx2x_eee_set_timers
.subsections_via_symbols
