	.file	"extr_if_bfe.c_bfe_set_rx_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bfe_set_rx_mode, @function
bfe_set_rx_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR [rdi]
	call	BFE_LOCK_ASSERT@PLT
	mov	esi, DWORD PTR BFE_RXCONF[rip]
	mov	rdi, rbp
	call	CSR_READ_4@PLT
	mov	ecx, DWORD PTR [r12]
	test	DWORD PTR IFF_PROMISC[rip], ecx
	je	.L2
	or	eax, DWORD PTR BFE_RXCONF_PROMISC[rip]
.L3:
	mov	ebx, DWORD PTR BFE_RXCONF_DBCAST[rip]
	mov	esi, DWORD PTR BFE_CAM_CTRL[rip]
	mov	rdi, rbp
	mov	edx, ebx
	not	edx
	and	edx, eax
	or	eax, ebx
	test	DWORD PTR IFF_BROADCAST[rip], ecx
	mov	ebx, edx
	cmove	ebx, eax
	xor	edx, edx
	call	CSR_WRITE_4@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	IF_LLADDR@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, eax
	call	bfe_cam_write@PLT
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR IFF_ALLMULTI[rip], eax
	je	.L6
	or	ebx, DWORD PTR BFE_RXCONF_ALLMULTI[rip]
.L7:
	mov	esi, DWORD PTR BFE_RXCONF[rip]
	mov	edx, ebx
	mov	rdi, rbp
	call	CSR_WRITE_4@PLT
	mov	edx, DWORD PTR BFE_CAM_ENABLE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	esi, DWORD PTR BFE_CAM_CTRL[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	BFE_OR@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR BFE_RXCONF_PROMISC[rip]
	not	edx
	and	eax, edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR BFE_RXCONF_ALLMULTI[rip]
	mov	esi, DWORD PTR bfe_write_maddr[rip]
	mov	rdx, rbp
	mov	rdi, r12
	not	eax
	and	ebx, eax
	call	if_foreach_llmaddr@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	bfe_set_rx_mode, .-bfe_set_rx_mode
	.comm	bfe_write_maddr,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	IFF_ALLMULTI,4,4
	.comm	BFE_RXCONF_PROMISC,4,4
	.comm	BFE_RXCONF_DBCAST,4,4
	.comm	BFE_RXCONF_ALLMULTI,4,4
	.comm	BFE_RXCONF,4,4
	.comm	BFE_CAM_ENABLE,4,4
	.comm	BFE_CAM_CTRL,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_if_bfe.c_bfe_set_rx_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfe_set_rx_mode, %function
bfe_set_rx_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r7, .L10
	ldr	r6, [r0]
	bl	BFE_LOCK_ASSERT
	ldr	r1, [r7]
	mov	r0, r4
	bl	CSR_READ_4
	ldr	r2, .L10+4
	ldr	r3, [r6]
	ldr	r2, [r2]
	ldr	r1, .L10+8
	tst	r3, r2
	ldr	r2, .L10+12
	ldr	r8, .L10+16
	ldr	r5, [r2]
	ldr	r2, .L10+20
	orrne	r5, r0, r5
	ldr	r2, [r2]
	biceq	r5, r0, r5
	ldr	r0, [r1]
	tst	r3, r2
	bicne	r5, r5, r0
	orreq	r5, r5, r0
	mov	r2, #0
	ldr	r1, [r8]
	mov	r0, r4
	bl	CSR_WRITE_4
	ldr	r0, [r4]
	bl	IF_LLADDR
	mov	r2, #0
	mov	r1, r0
	mov	r0, r4
	bl	bfe_cam_write
	ldr	r3, .L10+24
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	ldr	r3, .L10+28
	beq	.L6
	ldr	r3, [r3]
	orr	r5, r5, r3
.L7:
	mov	r2, r5
	ldr	r1, [r7]
	mov	r0, r4
	bl	CSR_WRITE_4
	ldr	r3, .L10+32
	mov	r0, r4
	ldr	r1, [r8]
	ldr	r2, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	b	BFE_OR
.L6:
	ldr	r2, .L10+36
	ldr	r3, [r3]
	ldr	r1, [r2]
	mov	r0, r6
	mov	r2, r4
	bic	r5, r5, r3
	bl	if_foreach_llmaddr
	b	.L7
.L11:
	.align	2
.L10:
	.word	BFE_RXCONF
	.word	IFF_PROMISC
	.word	BFE_RXCONF_DBCAST
	.word	BFE_RXCONF_PROMISC
	.word	BFE_CAM_CTRL
	.word	IFF_BROADCAST
	.word	IFF_ALLMULTI
	.word	BFE_RXCONF_ALLMULTI
	.word	BFE_CAM_ENABLE
	.word	bfe_write_maddr
	.size	bfe_set_rx_mode, .-bfe_set_rx_mode
	.comm	bfe_write_maddr,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	IFF_ALLMULTI,4,4
	.comm	BFE_RXCONF_PROMISC,4,4
	.comm	BFE_RXCONF_DBCAST,4,4
	.comm	BFE_RXCONF_ALLMULTI,4,4
	.comm	BFE_RXCONF,4,4
	.comm	BFE_CAM_ENABLE,4,4
	.comm	BFE_CAM_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
