	.file	"extr_3c574_cs.c_set_rx_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_rx_mode, @function
set_rx_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	ebp, DWORD PTR [rdi]
	mov	eax, DWORD PTR 4[rdi]
	test	DWORD PTR IFF_PROMISC[rip], eax
	je	.L2
	mov	rsi, QWORD PTR EL3_CMD[rip]
	mov	edi, DWORD PTR SetRxFilter[rip]
	or	edi, DWORD PTR RxStation[rip]
	or	edi, DWORD PTR RxMulticast[rip]
	or	edi, DWORD PTR RxBroadcast[rip]
	or	edi, DWORD PTR RxProm[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	add	rsi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	outw@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbx, rdi
	call	netdev_mc_empty@PLT
	mov	rsi, QWORD PTR EL3_CMD[rip]
	mov	edi, DWORD PTR SetRxFilter[rip]
	or	edi, DWORD PTR RxStation[rip]
	add	rsi, rbp
	test	eax, eax
	mov	eax, DWORD PTR RxBroadcast[rip]
	je	.L4
	mov	edx, DWORD PTR 4[rbx]
	test	DWORD PTR IFF_ALLMULTI[rip], edx
	je	.L5
.L4:
	or	edi, eax
	or	edi, DWORD PTR RxMulticast[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	outw@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	or	edi, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	outw@PLT
	.cfi_endproc
.LFE0:
	.size	set_rx_mode, .-set_rx_mode
	.comm	SetRxFilter,4,4
	.comm	RxStation,4,4
	.comm	RxProm,4,4
	.comm	RxMulticast,4,4
	.comm	RxBroadcast,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_ALLMULTI,4,4
	.comm	EL3_CMD,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_3c574_cs.c_set_rx_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_rx_mode, %function
set_rx_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	tst	r2, r3
	ldr	r5, [r0]
	beq	.L2
	ldr	r2, .L9+4
	ldr	r3, .L9+8
	ldr	r1, [r2]
	ldr	r0, .L9+12
	ldr	r3, [r3]
	ldr	r2, .L9+16
	ldr	r0, [r0]
	orr	r3, r3, r1
	ldr	ip, .L9+20
	ldr	r1, .L9+24
	ldr	r2, [r2]
	orr	r3, r3, r0
	ldr	r1, [r1]
	ldr	r0, [ip]
	orr	r3, r3, r2
	add	r1, r5, r1
	orr	r0, r3, r0
	pop	{r4, r5, r6, lr}
	b	outw
.L2:
	mov	r4, r0
	bl	netdev_mc_empty
	cmp	r0, #0
	beq	.L8
	ldr	r3, .L9+28
	ldr	r0, .L9+8
	ldr	r3, [r3]
	ldr	r2, .L9+4
	ldr	r1, .L9+24
	ldr	ip, [r4, #4]
	ldr	r0, [r0]
	ldr	r2, [r2]
	ldr	r1, [r1]
	tst	ip, r3
	ldr	r3, .L9+16
	orr	r0, r0, r2
	ldr	r3, [r3]
	add	r1, r5, r1
	beq	.L5
.L4:
	pop	{r4, r5, r6, lr}
	ldr	r2, .L9+12
	orr	r0, r0, r3
	ldr	r3, [r2]
	orr	r0, r0, r3
	b	outw
.L8:
	ldr	r1, .L9+8
	ldr	r3, .L9+24
	ldr	r2, .L9+4
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, [r3]
	ldr	r3, .L9+16
	orr	r0, r0, r2
	ldr	r3, [r3]
	add	r1, r5, r1
	b	.L4
.L5:
	orr	r0, r0, r3
	pop	{r4, r5, r6, lr}
	b	outw
.L10:
	.align	2
.L9:
	.word	IFF_PROMISC
	.word	RxStation
	.word	SetRxFilter
	.word	RxMulticast
	.word	RxBroadcast
	.word	RxProm
	.word	EL3_CMD
	.word	IFF_ALLMULTI
	.size	set_rx_mode, .-set_rx_mode
	.comm	SetRxFilter,4,4
	.comm	RxStation,4,4
	.comm	RxProm,4,4
	.comm	RxMulticast,4,4
	.comm	RxBroadcast,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_ALLMULTI,4,4
	.comm	EL3_CMD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
