	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_set_eee
_bnxt_set_eee:                          ## @bnxt_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, %r15
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movl	28(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	__bnxt_fw_to_ethtool_adv_spds
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_BNXT_SINGLE_PF
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	_BNXT_FLAG_EEE_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.2:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.3:
	movq	_BNXT_AUTONEG_SPEED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 24(%r13)
	je	LBB0_11
## %bb.4:
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.5:
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.6:
	movq	(%r15), %rdi
	movq	16(%r13), %rdx
	cmpq	%rcx, %rdi
	jg	LBB0_8
## %bb.7:
	cmpq	%rdx, %rdi
	jge	LBB0_13
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_warn
	jmp	LBB0_16
LBB0_9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_11:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_warn
	jmp	LBB0_16
LBB0_12:
	movq	32(%r13), %rcx
	movq	%rcx, (%r15)
LBB0_13:
	movl	8(%r15), %edx
	testl	%edx, %edx
	je	LBB0_19
## %bb.14:
	movl	%r12d, %ecx
	notl	%ecx
	testl	%ecx, %edx
	je	LBB0_20
## %bb.15:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_netdev_warn
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	44(%r13), %edx
	andl	%r12d, %edx
	movl	%edx, 8(%r15)
LBB0_20:
	movl	%edx, 40(%r13)
	movq	%rsi, 56(%r13)
	movq	(%r15), %rcx
	movq	%rcx, 32(%r13)
LBB0_21:
	movq	%rax, 48(%r13)
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnxt_hwrm_set_link_setting     ## TAILCALL
LBB0_23:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_BNXT_FLAG_EEE_CAP,4,2          ## @BNXT_FLAG_EEE_CAP
	.comm	_BNXT_AUTONEG_SPEED,4,2         ## @BNXT_AUTONEG_SPEED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEE requires autoneg\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Valid LPI timer range is %d and %d microsecs\n"

L_.str.2:                               ## @.str.2
	.asciz	"EEE advertised %x must be a subset of autoneg advertised speeds %x\n"

	.no_dead_strip	_bnxt_set_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_set_eee
_bnxt_set_eee:                          ; @bnxt_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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x0, #28]
	mov	w1, #0
	bl	__bnxt_fw_to_ethtool_adv_spds
	mov	x22, x0
	mov	x0, x20
	bl	_BNXT_SINGLE_PF
	cbz	w0, LBB0_9
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _BNXT_FLAG_EEE_CAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNXT_FLAG_EEE_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.2:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_20
; %bb.3:
	ldr	w9, [x20, #24]
Lloh3:
	adrp	x10, _BNXT_AUTONEG_SPEED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BNXT_AUTONEG_SPEED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.4:
	ldr	x9, [x21, #24]
	cbz	x9, LBB0_12
; %bb.5:
	ldr	x10, [x20, #8]
	cbz	x10, LBB0_11
; %bb.6:
	ldr	x12, [x21]
	ldr	x11, [x20, #16]
	cmp	x12, x10
	b.gt	LBB0_8
; %bb.7:
	cmp	x12, x11
	b.ge	LBB0_12
LBB0_8:
	stp	x11, x10, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_9:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_11:
	ldr	x10, [x20, #32]
	str	x10, [x21]
LBB0_12:
	ldr	w10, [x21, #8]
	cbz	w10, LBB0_18
; %bb.13:
	bics	wzr, w10, w22
	b.eq	LBB0_19
; %bb.14:
	stp	x10, x22, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_netdev_warn
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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_18:
	ldr	w10, [x20, #44]
	and	w10, w10, w22
	str	w10, [x21, #8]
LBB0_19:
	str	w10, [x20, #40]
	str	x9, [x20, #56]
	ldr	x9, [x21]
	str	x9, [x20, #32]
LBB0_20:
	str	x8, [x20, #48]
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_17
; %bb.21:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	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
	b	_bnxt_hwrm_set_link_setting
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_BNXT_FLAG_EEE_CAP,4,2          ; @BNXT_FLAG_EEE_CAP
	.comm	_BNXT_AUTONEG_SPEED,4,2         ; @BNXT_AUTONEG_SPEED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEE requires autoneg\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Valid LPI timer range is %d and %d microsecs\n"

l_.str.2:                               ; @.str.2
	.asciz	"EEE advertised %x must be a subset of autoneg advertised speeds %x\n"

	.no_dead_strip	_bnxt_set_eee
.subsections_via_symbols
