	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_eee_an_resolve
_bnx2x_eee_an_resolve:                  ## @bnx2x_eee_an_resolve
	.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	%rdx, %r14
	movq	%rdi, %r15
	movq	(%rsi), %rbx
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_AN_REG_EEE_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_bnx2x_cl45_read
	movl	(%r12), %edx
	movq	_MDIO_AN_REG_LP_EEE_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-36(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_bnx2x_cl45_read
	movl	-36(%rbp), %eax
	xorl	%r15d, %r15d
	testb	$2, %al
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_SHMEM_EEE_100M_ADV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	testb	$2, -40(%rbp)
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	sete	%r15b
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movl	-36(%rbp), %eax
LBB0_4:
	testb	$20, %al
	je	LBB0_7
## %bb.5:
	movq	_SHMEM_EEE_1G_ADV@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	testb	$20, -40(%rbp)
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$1, %eax
	cmovel	%eax, %r15d
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movl	-36(%rbp), %eax
LBB0_7:
	testb	$104, %al
	je	LBB0_10
## %bb.8:
	movq	_SHMEM_EEE_10G_ADV@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	testb	$104, -40(%rbp)
	je	LBB0_10
## %bb.9:
	movq	(%r14), %rax
	movq	_SPEED_10000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %eax
	cmovel	%eax, %r15d
	callq	_DP
LBB0_10:
	movq	_SHMEM_EEE_LP_ADV_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	8(%r14), %eax
	movq	_SHMEM_EEE_LP_ADV_STATUS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	movl	%ebx, 8(%r14)
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.11:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_DP
	movq	_SHMEM_EEE_ACTIVE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_AN_DEVAD,4,2              ## @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_EEE_ADV,4,2        ## @MDIO_AN_REG_EEE_ADV
	.comm	_MDIO_AN_REG_LP_EEE_ADV,4,2     ## @MDIO_AN_REG_LP_EEE_ADV
	.comm	_SHMEM_EEE_100M_ADV,4,2         ## @SHMEM_EEE_100M_ADV
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEE negotiated - 100M\n"

	.comm	_SHMEM_EEE_1G_ADV,4,2           ## @SHMEM_EEE_1G_ADV
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
L_.str.1:                               ## @.str.1
	.asciz	"EEE negotiated - 1G\n"

	.comm	_SHMEM_EEE_10G_ADV,4,2          ## @SHMEM_EEE_10G_ADV
	.comm	_SPEED_10000,8,3                ## @SPEED_10000
L_.str.2:                               ## @.str.2
	.asciz	"EEE negotiated - 10G\n"

	.comm	_SHMEM_EEE_LP_ADV_STATUS_MASK,4,2 ## @SHMEM_EEE_LP_ADV_STATUS_MASK
	.comm	_SHMEM_EEE_LP_ADV_STATUS_SHIFT,4,2 ## @SHMEM_EEE_LP_ADV_STATUS_SHIFT
L_.str.3:                               ## @.str.3
	.asciz	"EEE is active\n"

	.comm	_SHMEM_EEE_ACTIVE_BIT,4,2       ## @SHMEM_EEE_ACTIVE_BIT
	.no_dead_strip	_bnx2x_eee_an_resolve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_eee_an_resolve
_bnx2x_eee_an_resolve:                  ; @bnx2x_eee_an_resolve
	.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, x2
	mov	x20, x0
	ldr	x21, [x1]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x22, _MDIO_AN_DEVAD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MDIO_AN_DEVAD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x8, _MDIO_AN_REG_EEE_ADV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_AN_REG_EEE_ADV@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w2, [x22]
Lloh5:
	adrp	x8, _MDIO_AN_REG_LP_EEE_ADV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_AN_REG_LP_EEE_ADV@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #8]
	tbnz	w8, #1, LBB0_2
; %bb.1:
	mov	w20, #0
	mov	w21, #0
	b	LBB0_5
LBB0_2:
Lloh8:
	adrp	x9, _SHMEM_EEE_100M_ADV@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SHMEM_EEE_100M_ADV@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x9]
	ldrb	w9, [sp, #12]
	tbnz	w9, #1, LBB0_4
; %bb.3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w21, eq
Lloh14:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	ldr	w8, [sp, #8]
LBB0_5:
	mov	w9, #20
	tst	w8, w9
	b.eq	LBB0_8
; %bb.6:
Lloh19:
	adrp	x10, _SHMEM_EEE_1G_ADV@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SHMEM_EEE_1G_ADV@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	w20, w10, w20
	ldrb	w10, [sp, #12]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	csinc	w21, w21, wzr, ne
Lloh25:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	ldr	w8, [sp, #8]
LBB0_8:
	mov	w9, #104
	tst	w8, w9
	b.eq	LBB0_11
; %bb.9:
Lloh30:
	adrp	x8, _SHMEM_EEE_10G_ADV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SHMEM_EEE_10G_ADV@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w20, w8, w20
	ldrb	w8, [sp, #12]
	tst	w8, w9
	b.eq	LBB0_11
; %bb.10:
	ldr	x22, [x19]
Lloh33:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh35:
	ldr	x23, [x8]
Lloh36:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	cmp	x22, x23
	csinc	w21, w21, wzr, ne
LBB0_11:
Lloh41:
	adrp	x8, _SHMEM_EEE_LP_ADV_STATUS_MASK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SHMEM_EEE_LP_ADV_STATUS_MASK@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
Lloh44:
	adrp	x9, _SHMEM_EEE_LP_ADV_STATUS_SHIFT@GOTPAGE
Lloh45:
	ldr	x9, [x9, _SHMEM_EEE_LP_ADV_STATUS_SHIFT@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w8, w9, w8
	str	w8, [x19, #8]
	cbz	w21, LBB0_13
; %bb.12:
Lloh47:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x1, l_.str.3@PAGE
Lloh51:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DP
Lloh52:
	adrp	x8, _SHMEM_EEE_ACTIVE_BIT@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SHMEM_EEE_ACTIVE_BIT@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_AN_DEVAD,4,2              ; @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_EEE_ADV,4,2        ; @MDIO_AN_REG_EEE_ADV
	.comm	_MDIO_AN_REG_LP_EEE_ADV,4,2     ; @MDIO_AN_REG_LP_EEE_ADV
	.comm	_SHMEM_EEE_100M_ADV,4,2         ; @SHMEM_EEE_100M_ADV
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEE negotiated - 100M\n"

	.comm	_SHMEM_EEE_1G_ADV,4,2           ; @SHMEM_EEE_1G_ADV
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
l_.str.1:                               ; @.str.1
	.asciz	"EEE negotiated - 1G\n"

	.comm	_SHMEM_EEE_10G_ADV,4,2          ; @SHMEM_EEE_10G_ADV
	.comm	_SPEED_10000,8,3                ; @SPEED_10000
l_.str.2:                               ; @.str.2
	.asciz	"EEE negotiated - 10G\n"

	.comm	_SHMEM_EEE_LP_ADV_STATUS_MASK,4,2 ; @SHMEM_EEE_LP_ADV_STATUS_MASK
	.comm	_SHMEM_EEE_LP_ADV_STATUS_SHIFT,4,2 ; @SHMEM_EEE_LP_ADV_STATUS_SHIFT
l_.str.3:                               ; @.str.3
	.asciz	"EEE is active\n"

	.comm	_SHMEM_EEE_ACTIVE_BIT,4,2       ; @SHMEM_EEE_ACTIVE_BIT
	.no_dead_strip	_bnx2x_eee_an_resolve
.subsections_via_symbols
