	.file	"extr_bxe_elink.c_elink_set_rx_filter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	elink_set_rx_filter
	.type	elink_set_rx_filter, @function
elink_set_rx_filter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	mov	r13, QWORD PTR 8[rdi]
	sal	ebx, 5
	mov	r14d, ebx
	mov	rdi, r13
	sub	r14d, esi
	call	CHIP_IS_E1x@PLT
	or	ebx, r14d
	mov	edx, r14d
	mov	rdi, r13
	test	eax, eax
	mov	eax, DWORD PTR 0[rbp]
	cmove	edx, ebx
	lea	esi, 0[0+rax*4]
	movsx	rsi, esi
	add	rsi, QWORD PTR NIG_REG_LLH0_BRB1_DRV_MASK[rip]
	call	REG_WR@PLT
	mov	rdi, r13
	call	CHIP_IS_E1@PLT
	test	eax, eax
	je	.L8
.L3:
	mov	eax, DWORD PTR 0[rbp]
	mov	rsi, QWORD PTR NIG_REG_LLH0_BRB1_NOT_MCP[rip]
	test	eax, eax
	je	.L5
	mov	rsi, QWORD PTR NIG_REG_LLH1_BRB1_NOT_MCP[rip]
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r13
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	REG_WR@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[rbp]
	lea	edx, [r12+r12*2]
	mov	rdi, r13
	lea	esi, 0[0+rax*4]
	movsx	rsi, esi
	add	rsi, QWORD PTR NIG_REG_LLH0_BRB1_DRV_MASK_MF[rip]
	call	REG_WR@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	elink_set_rx_filter, .-elink_set_rx_filter
	.comm	NIG_REG_LLH1_BRB1_NOT_MCP,8,8
	.comm	NIG_REG_LLH0_BRB1_NOT_MCP,8,8
	.comm	NIG_REG_LLH0_BRB1_DRV_MASK_MF,8,8
	.comm	NIG_REG_LLH0_BRB1_DRV_MASK,8,8
	.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_bxe_elink.c_elink_set_rx_filter.c"
	.text
	.align	2
	.global	elink_set_rx_filter
	.syntax unified
	.arm
	.fpu softvfp
	.type	elink_set_rx_filter, %function
elink_set_rx_filter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r0, #4]
	mov	r5, r0
	mov	r0, r6
	mov	r4, r1
	bl	CHIP_IS_E1x
	cmp	r0, #0
	lsleq	r3, r4, #5
	rsb	r2, r4, r4, lsl #5
	orreq	r2, r2, r3
	ldr	r3, .L9
	ldr	r1, [r5]
	ldr	r3, [r3]
	mov	r0, r6
	add	r1, r3, r1, lsl #2
	bl	REG_WR
	mov	r0, r6
	bl	CHIP_IS_E1
	cmp	r0, #0
	beq	.L8
.L3:
	ldr	r3, [r5]
	mov	r2, r4
	cmp	r3, #0
	ldrne	r3, .L9+4
	ldreq	r3, .L9+8
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	REG_WR
.L8:
	ldr	r3, .L9+12
	ldr	r1, [r5]
	ldr	r3, [r3]
	mov	r0, r6
	add	r2, r4, r4, lsl #1
	add	r1, r3, r1, lsl #2
	bl	REG_WR
	b	.L3
.L10:
	.align	2
.L9:
	.word	NIG_REG_LLH0_BRB1_DRV_MASK
	.word	NIG_REG_LLH1_BRB1_NOT_MCP
	.word	NIG_REG_LLH0_BRB1_NOT_MCP
	.word	NIG_REG_LLH0_BRB1_DRV_MASK_MF
	.size	elink_set_rx_filter, .-elink_set_rx_filter
	.comm	NIG_REG_LLH1_BRB1_NOT_MCP,4,4
	.comm	NIG_REG_LLH0_BRB1_NOT_MCP,4,4
	.comm	NIG_REG_LLH0_BRB1_DRV_MASK_MF,4,4
	.comm	NIG_REG_LLH0_BRB1_DRV_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
