	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_calc_fc_adv              ## -- Begin function bnx2x_calc_fc_adv
	.p2align	4, 0x90
_bnx2x_calc_fc_adv:                     ## @bnx2x_calc_fc_adv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_bnx2x_get_link_cfg_idx
	movq	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rbx), %ecx
	cmpl	$130, %ecx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %ecx
	je	LBB0_3
## %bb.2:
	cmpl	$128, %ecx
	movq	_ADVERTISED_Asym_Pause@GOTPCREL(%rip), %rcx
	movq	_ADVERTISED_Pause@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	movq	(%rbx), %rcx
	andl	%edx, (%rcx,%rax,4)
	jmp	LBB0_5
LBB0_4:
	movq	_ADVERTISED_Asym_Pause@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rbx), %rdx
	orl	%ecx, (%rdx,%rax,4)
	jmp	LBB0_5
LBB0_3:
	movq	_ADVERTISED_Asym_Pause@GOTPCREL(%rip), %rcx
	movq	_ADVERTISED_Pause@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	(%rbx), %rcx
	orl	%edx, (%rcx,%rax,4)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK,4,2 ## @MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK
	.comm	_ADVERTISED_Asym_Pause,4,2      ## @ADVERTISED_Asym_Pause
	.comm	_ADVERTISED_Pause,4,2           ## @ADVERTISED_Pause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_calc_fc_adv              ; -- Begin function bnx2x_calc_fc_adv
	.p2align	2
_bnx2x_calc_fc_adv:                     ; @bnx2x_calc_fc_adv
	.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, x0
	bl	_bnx2x_get_link_cfg_idx
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #130
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #128
Lloh3:
	adrp	x8, _ADVERTISED_Asym_Pause@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADVERTISED_Asym_Pause@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ADVERTISED_Pause@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADVERTISED_Pause@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x19]
	lsl	x10, x0, #2
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _ADVERTISED_Asym_Pause@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADVERTISED_Asym_Pause@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x19]
	lsl	x10, x0, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _ADVERTISED_Asym_Pause@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADVERTISED_Asym_Pause@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ADVERTISED_Pause@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ADVERTISED_Pause@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x19]
	lsl	x10, x0, #2
	ldr	w11, [x9, x10]
	orr	w8, w8, w11
LBB0_5:
	str	w8, [x9, x10]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK,4,2 ; @MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK
	.comm	_ADVERTISED_Asym_Pause,4,2      ; @ADVERTISED_Asym_Pause
	.comm	_ADVERTISED_Pause,4,2           ; @ADVERTISED_Pause
.subsections_via_symbols
