	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_8073_resolve_fc
_bnx2x_8073_resolve_fc:                 ## @bnx2x_8073_resolve_fc
	.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	%rdx, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movq	%rsi, %r14
	movq	(%rsi), %r12
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_bnx2x_ext_phy_resolve_fc
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%r15), %rax
	movq	_BNX2X_FLOW_CTRL_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_MDIO_AN_REG_CL37_FC_LD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_read
	movl	(%r13), %edx
	movq	_MDIO_AN_REG_CL37_FC_LP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_read
	movq	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	-48(%rbp), %eax
	andl	%r12d, %eax
	sarl	$5, %eax
	andl	-44(%rbp), %r12d
	sarl	$7, %r12d
	orl	%eax, %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_bnx2x_pause_resolve
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_DP
	jmp	LBB0_6
LBB0_2:
	movq	8(%rbx), %rax
	movq	%rax, (%r15)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_BNX2X_FLOW_CTRL_NONE,8,3       ## @BNX2X_FLOW_CTRL_NONE
	.comm	_MDIO_AN_DEVAD,4,2              ## @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_CL37_FC_LD,4,2     ## @MDIO_AN_REG_CL37_FC_LD
	.comm	_MDIO_AN_REG_CL37_FC_LP,4,2     ## @MDIO_AN_REG_CL37_FC_LP
	.comm	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH,4,2 ## @MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ext PHY CL37 pause result 0x%x\n"

	.no_dead_strip	_bnx2x_8073_resolve_fc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_8073_resolve_fc
_bnx2x_8073_resolve_fc:                 ; @bnx2x_8073_resolve_fc
	.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	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	str	x8, [x19]
	b	LBB0_5
LBB0_2:
	mov	x20, x1
	ldr	x22, [x1]
	mov	x0, x21
	mov	x2, x19
	bl	_bnx2x_ext_phy_resolve_fc
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _BNX2X_FLOW_CTRL_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNX2X_FLOW_CTRL_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x23, _MDIO_AN_DEVAD@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MDIO_AN_DEVAD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh11:
	adrp	x8, _MDIO_AN_REG_CL37_FC_LD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MDIO_AN_REG_CL37_FC_LD@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldr	w2, [x23]
Lloh14:
	adrp	x8, _MDIO_AN_REG_CL37_FC_LP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MDIO_AN_REG_CL37_FC_LP@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldp	w10, w8, [sp, #8]
Lloh17:
	adrp	x9, _MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	and	w8, w9, w8
	and	w9, w10, w9
	asr	w9, w9, #7
	orr	w22, w9, w8, asr #5
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	bl	_bnx2x_pause_resolve
Lloh20:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_DP
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_BNX2X_FLOW_CTRL_NONE,8,3       ; @BNX2X_FLOW_CTRL_NONE
	.comm	_MDIO_AN_DEVAD,4,2              ; @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_CL37_FC_LD,4,2     ; @MDIO_AN_REG_CL37_FC_LD
	.comm	_MDIO_AN_REG_CL37_FC_LP,4,2     ; @MDIO_AN_REG_CL37_FC_LP
	.comm	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH,4,2 ; @MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ext PHY CL37 pause result 0x%x\n"

	.no_dead_strip	_bnx2x_8073_resolve_fc
.subsections_via_symbols
