	.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	_ADVERTISED_Asym_Pause@GOTPCREL(%rip), %rsi
	movq	_ADVERTISED_Pause@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	orl	(%rsi), %ecx
	notl	%ecx
	movq	(%rbx), %rdx
	andl	(%rdx,%rax,4), %ecx
	movl	%ecx, (%rdx,%rax,4)
	movq	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	8(%rbx), %edi
	cmpl	$129, %edi
	je	LBB0_3
## %bb.1:
	cmpl	$128, %edi
	jne	LBB0_5
## %bb.2:
	orl	(%rsi), %ecx
	orl	(%r8), %ecx
	jmp	LBB0_4
LBB0_3:
	orl	(%rsi), %ecx
LBB0_4:
	movl	%ecx, (%rdx,%rax,4)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADVERTISED_Asym_Pause,4,2      ## @ADVERTISED_Asym_Pause
	.comm	_ADVERTISED_Pause,4,2           ## @ADVERTISED_Pause
	.comm	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK,4,2 ## @MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK
.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
Lloh0:
	adrp	x9, _ADVERTISED_Asym_Pause@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADVERTISED_Asym_Pause@GOTPAGEOFF]
	ldr	w8, [x9]
Lloh2:
	adrp	x10, _ADVERTISED_Pause@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ADVERTISED_Pause@GOTPAGEOFF]
	ldr	w11, [x10]
	orr	w11, w11, w8
	ldr	x8, [x19]
	lsl	x12, x0, #2
	ldr	w13, [x8, x12]
	bic	w11, w13, w11
	str	w11, [x8, x12]
	ldr	w12, [x19, #8]
Lloh4:
	adrp	x13, _MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK@GOTPAGE
Lloh5:
	ldr	x13, [x13, _MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w13, [x13]
	and	w12, w13, w12
	cmp	w12, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w12, #128
	b.ne	LBB0_5
; %bb.2:
	ldr	w9, [x9]
	ldr	w10, [x10]
	orr	w9, w9, w11
	orr	w9, w9, w10
	b	LBB0_4
LBB0_3:
	ldr	w9, [x9]
	orr	w9, w9, w11
LBB0_4:
	str	w9, [x8, x0, lsl #2]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ADVERTISED_Asym_Pause,4,2      ; @ADVERTISED_Asym_Pause
	.comm	_ADVERTISED_Pause,4,2           ; @ADVERTISED_Pause
	.comm	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK,4,2 ; @MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK
.subsections_via_symbols
