	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_set_eee
_bnxt_hwrm_set_eee:                     ## @bnxt_hwrm_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	cmpq	$0, 16(%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	_PORT_PHY_CFG_REQ_FLAGS_EEE_ENABLE@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rdi)
	jne	LBB0_2
## %bb.3:
	movq	_PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_DISABLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	movq	_PORT_PHY_CFG_REQ_FLAGS_EEE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, (%r14)
	jmp	LBB0_6
LBB0_2:
	movq	_PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_ENABLE@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, (%r14)
	movl	4(%rbx), %edi
	callq	_bnxt_get_fw_auto_link_speeds
	movl	%eax, %edi
	callq	_cpu_to_le16
	movl	%eax, 8(%r14)
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_PHY_CFG_REQ_FLAGS_EEE_ENABLE,4,2 ## @PORT_PHY_CFG_REQ_FLAGS_EEE_ENABLE
	.comm	_PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_ENABLE,4,2 ## @PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_ENABLE
	.comm	_PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_DISABLE,4,2 ## @PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_DISABLE
	.comm	_PORT_PHY_CFG_REQ_FLAGS_EEE_DISABLE,4,2 ## @PORT_PHY_CFG_REQ_FLAGS_EEE_DISABLE
	.no_dead_strip	_bnxt_hwrm_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_hwrm_set_eee
_bnxt_hwrm_set_eee:                     ; @bnxt_hwrm_set_eee
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _PORT_PHY_CFG_REQ_FLAGS_EEE_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_FLAGS_EEE_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0, #8]
Lloh3:
	adrp	x10, _PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_DISABLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_DISABLE@GOTPAGEOFF]
Lloh5:
	adrp	x11, _PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_ENABLE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_ENABLE@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	ldr	w0, [x20, #4]
	bl	_bnxt_get_fw_auto_link_speeds
	bl	_cpu_to_le16
	str	w0, [x19, #8]
	ldr	w0, [x20]
	bl	_cpu_to_le32
	str	w0, [x19, #4]
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _PORT_PHY_CFG_REQ_FLAGS_EEE_DISABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_FLAGS_EEE_DISABLE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_PHY_CFG_REQ_FLAGS_EEE_ENABLE,4,2 ; @PORT_PHY_CFG_REQ_FLAGS_EEE_ENABLE
	.comm	_PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_ENABLE,4,2 ; @PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_ENABLE
	.comm	_PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_DISABLE,4,2 ; @PORT_PHY_CFG_REQ_FLAGS_EEE_TX_LPI_DISABLE
	.comm	_PORT_PHY_CFG_REQ_FLAGS_EEE_DISABLE,4,2 ; @PORT_PHY_CFG_REQ_FLAGS_EEE_DISABLE
	.no_dead_strip	_bnxt_hwrm_set_eee
.subsections_via_symbols
