	.file	"extr_bnx2x_main.c_bnx2x_calc_fc_adv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bnx2x_calc_fc_adv
	.type	bnx2x_calc_fc_adv, @function
bnx2x_calc_fc_adv:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	bnx2x_get_link_cfg_idx@PLT
	mov	edx, DWORD PTR 8[rbx]
	and	edx, DWORD PTR MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK[rip]
	cmp	edx, 129
	je	.L2
	cmp	edx, 130
	je	.L3
	mov	rcx, QWORD PTR [rbx]
	mov	edx, DWORD PTR ADVERTISED_Asym_Pause[rip]
	or	edx, DWORD PTR ADVERTISED_Pause[rip]
	not	edx
	and	DWORD PTR [rcx+rax*4], edx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rcx, QWORD PTR [rbx]
	mov	edx, DWORD PTR ADVERTISED_Asym_Pause[rip]
	or	edx, DWORD PTR ADVERTISED_Pause[rip]
	or	DWORD PTR [rcx+rax*4], edx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdx, QWORD PTR [rbx]
	mov	ecx, DWORD PTR ADVERTISED_Asym_Pause[rip]
	or	DWORD PTR [rdx+rax*4], ecx
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bnx2x_calc_fc_adv, .-bnx2x_calc_fc_adv
	.comm	MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK,4,4
	.comm	ADVERTISED_Pause,4,4
	.comm	ADVERTISED_Asym_Pause,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_bnx2x_main.c_bnx2x_calc_fc_adv.c"
	.text
	.align	2
	.global	bnx2x_calc_fc_adv
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2x_calc_fc_adv, %function
bnx2x_calc_fc_adv:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	bnx2x_get_link_cfg_idx
	ldr	r2, .L8
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	and	r3, r3, r2
	cmp	r3, #129
	beq	.L2
	cmp	r3, #130
	beq	.L3
	ldr	r3, .L8+4
	ldr	r2, .L8+8
	ldr	r1, [r4]
	ldr	ip, [r3]
	ldr	r2, [r2]
	ldr	r3, [r1, r0, lsl #2]
	orr	r2, r2, ip
	bic	r3, r3, r2
	str	r3, [r1, r0, lsl #2]
	pop	{r4, pc}
.L2:
	ldr	r3, .L8+4
	ldr	r2, .L8+8
	ldr	r1, [r4]
	ldr	ip, [r3]
	ldr	r2, [r2]
	ldr	r3, [r1, r0, lsl #2]
	orr	r2, r2, ip
	orr	r3, r3, r2
	str	r3, [r1, r0, lsl #2]
	pop	{r4, pc}
.L3:
	ldr	r2, [r4]
	ldr	r1, .L8+8
	ldr	r3, [r2, r0, lsl #2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2, r0, lsl #2]
	pop	{r4, pc}
.L9:
	.align	2
.L8:
	.word	MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK
	.word	ADVERTISED_Pause
	.word	ADVERTISED_Asym_Pause
	.size	bnx2x_calc_fc_adv, .-bnx2x_calc_fc_adv
	.comm	MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK,4,4
	.comm	ADVERTISED_Pause,4,4
	.comm	ADVERTISED_Asym_Pause,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
