	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_eee_advertise
_bnx2x_eee_advertise:                   ## @bnx2x_eee_advertise
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	8(%rsi), %r12
	movq	_MISC_REG_CPMU_LP_MASK_EXT_P0@GOTPCREL(%rip), %rax
	movl	(%rsi), %ecx
	shll	$2, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	%r12, %rdi
	movl	$64544, %edx                    ## imm = 0xFC20
	callq	_REG_WR
	movq	_SHMEM_EEE_10G_ADV@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movl	$8, %r13d
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
LBB0_3:
	movq	_SHMEM_EEE_1G_ADV@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	orl	$4, %r13d
LBB0_5:
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_AN_REG_EEE_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %r8d
	callq	_bnx2x_cl45_write
	movq	_SHMEM_EEE_ADV_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%r14), %eax
	movl	%eax, (%r14)
	movq	_SHMEM_EEE_ADV_STATUS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MISC_REG_CPMU_LP_MASK_EXT_P0,8,3 ## @MISC_REG_CPMU_LP_MASK_EXT_P0
	.comm	_SHMEM_EEE_10G_ADV,4,2          ## @SHMEM_EEE_10G_ADV
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Advertise 10GBase-T EEE\n"

	.comm	_SHMEM_EEE_1G_ADV,4,2           ## @SHMEM_EEE_1G_ADV
L_.str.1:                               ## @.str.1
	.asciz	"Advertise 1GBase-T EEE\n"

	.comm	_MDIO_AN_DEVAD,4,2              ## @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_EEE_ADV,4,2        ## @MDIO_AN_REG_EEE_ADV
	.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
	.no_dead_strip	_bnx2x_eee_advertise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_eee_advertise
_bnx2x_eee_advertise:                   ; @bnx2x_eee_advertise
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x19, x2
	mov	x21, x0
	ldr	x22, [x1, #8]
Lloh0:
	adrp	x8, _MISC_REG_CPMU_LP_MASK_EXT_P0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MISC_REG_CPMU_LP_MASK_EXT_P0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x1]
	lsl	w9, w9, #2
	add	x1, x8, w9, sxtw
	mov	x0, x22
	mov	w2, #64544
	bl	_REG_WR
Lloh3:
	adrp	x8, _SHMEM_EEE_10G_ADV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHMEM_EEE_10G_ADV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x24, _NETIF_MSG_LINK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _NETIF_MSG_LINK@GOTPAGEOFF]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	mov	w23, #8
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
Lloh10:
	adrp	x8, _SHMEM_EEE_1G_ADV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SHMEM_EEE_1G_ADV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x24]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	orr	w23, w23, #0x4
LBB0_5:
Lloh15:
	adrp	x8, _MDIO_AN_DEVAD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MDIO_AN_DEVAD@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _MDIO_AN_REG_EEE_ADV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MDIO_AN_REG_EEE_ADV@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x4, x23
	bl	_bnx2x_cl45_write
Lloh21:
	adrp	x8, _SHMEM_EEE_ADV_STATUS_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SHMEM_EEE_ADV_STATUS_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
Lloh24:
	adrp	x9, _SHMEM_EEE_ADV_STATUS_SHIFT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SHMEM_EEE_ADV_STATUS_SHIFT@GOTPAGEOFF]
	str	w8, [x19]
Lloh26:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w8, w9, w8
	str	w8, [x19]
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MISC_REG_CPMU_LP_MASK_EXT_P0,8,3 ; @MISC_REG_CPMU_LP_MASK_EXT_P0
	.comm	_SHMEM_EEE_10G_ADV,4,2          ; @SHMEM_EEE_10G_ADV
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Advertise 10GBase-T EEE\n"

	.comm	_SHMEM_EEE_1G_ADV,4,2           ; @SHMEM_EEE_1G_ADV
l_.str.1:                               ; @.str.1
	.asciz	"Advertise 1GBase-T EEE\n"

	.comm	_MDIO_AN_DEVAD,4,2              ; @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_EEE_ADV,4,2        ; @MDIO_AN_REG_EEE_ADV
	.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
	.no_dead_strip	_bnx2x_eee_advertise
.subsections_via_symbols
