	.file	"extr_if_dc.c_dc_setfilt_21143.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dc_setfilt_21143, @function
dc_setfilt_21143:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR ETHER_ADDR_LEN[rip]
	mov	rcx, rsp
	lea	edx, 1[rax]
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L19:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L19
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L20
.L4:
	mov	r12d, DWORD PTR 32[rbx]
	mov	esi, DWORD PTR DC_TX_LIST_CNT[rip]
	lea	r14, 3[rsp]
	mov	r15, QWORD PTR 24[rbx]
	mov	r13, r14
	and	r14, -4
	mov	edi, r12d
	shr	r13, 2
	call	DC_INC@PLT
	movsx	rdx, r12d
	mov	rax, QWORD PTR 72[rbx]
	add	DWORD PTR 56[rbx], 1
	lea	rsi, [rdx+rdx*2]
	mov	r12, QWORD PTR 40[rbx]
	mov	QWORD PTR -72[rbp], rdx
	lea	rax, [rax+rsi*4]
	mov	esi, DWORD PTR DC_SFRAME_LEN[rip]
	mov	rdi, r12
	mov	QWORD PTR -80[rbp], rax
	call	bzero@PLT
	mov	edi, DWORD PTR 64[rbx]
	call	DC_ADDR_LO@PLT
	mov	edi, eax
	call	htole32@PLT
	mov	rcx, QWORD PTR -80[rbp]
	mov	edi, DWORD PTR DC_SFRAME_LEN[rip]
	or	edi, DWORD PTR DC_TXCTL_SETUP[rip]
	or	edi, DWORD PTR DC_TXCTL_TLINK[rip]
	mov	DWORD PTR [rcx], eax
	or	edi, DWORD PTR DC_FILTER_HASHPERF[rip]
	or	edi, DWORD PTR DC_TXCTL_FINT[rip]
	call	htole32@PLT
	mov	rcx, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 40[rbx]
	mov	rdi, rbx
	mov	rdx, QWORD PTR -72[rbp]
	mov	DWORD PTR 4[rcx], eax
	mov	rax, QWORD PTR 48[rbx]
	mov	QWORD PTR [rax+rdx*8], rsi
	mov	eax, DWORD PTR [r15]
	mov	edx, DWORD PTR DC_NETCFG_RX_PROMISC[rip]
	mov	esi, DWORD PTR DC_NETCFG[rip]
	test	DWORD PTR IFF_PROMISC[rip], eax
	jne	.L21
	call	DC_CLRBIT@PLT
.L6:
	mov	edx, DWORD PTR DC_NETCFG_RX_ALLMULTI[rip]
	mov	esi, DWORD PTR DC_NETCFG[rip]
	mov	rdi, rbx
	mov	eax, DWORD PTR [r15]
	test	DWORD PTR IFF_ALLMULTI[rip], eax
	je	.L7
	call	DC_SETBIT@PLT
.L8:
	mov	esi, DWORD PTR dc_hash_maddr_21143[rip]
	mov	rdx, r12
	mov	rdi, r15
	call	if_foreach_llmaddr@PLT
	mov	eax, DWORD PTR [r15]
	test	DWORD PTR IFF_BROADCAST[rip], eax
	jne	.L22
.L9:
	mov	edx, DWORD PTR ETHER_ADDR_LEN[rip]
	mov	rdi, QWORD PTR 24[rbx]
	mov	DWORD PTR -72[rbp], edx
	call	IF_LLADDR@PLT
	mov	edx, DWORD PTR -72[rbp]
	mov	rsi, r14
	mov	edi, eax
	call	bcopy@PLT
	mov	edi, DWORD PTR 0[0+r13*4]
	call	DC_SP_MAC@PLT
	mov	DWORD PTR 156[r12], eax
	mov	edi, DWORD PTR 4[0+r13*4]
	call	DC_SP_MAC@PLT
	mov	DWORD PTR 160[r12], eax
	mov	edi, DWORD PTR 8[0+r13*4]
	call	DC_SP_MAC@PLT
	mov	edi, DWORD PTR DC_TXSTAT_OWN[rip]
	mov	DWORD PTR 164[r12], eax
	call	htole32@PLT
	mov	rcx, QWORD PTR -80[rbp]
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR 16[rbx]
	mov	edx, DWORD PTR BUS_DMASYNC_PREREAD[rip]
	mov	DWORD PTR 8[rcx], eax
	or	edx, DWORD PTR BUS_DMASYNC_PREWRITE[rip]
	call	bus_dmamap_sync@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR BUS_DMASYNC_PREWRITE[rip]
	call	bus_dmamap_sync@PLT
	mov	esi, DWORD PTR DC_TXSTART[rip]
	mov	edx, -1
	mov	rdi, rbx
	call	CSR_WRITE_4@PLT
	mov	edi, 10000
	call	DELAY@PLT
	mov	DWORD PTR [rbx], 5
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	call	DC_SETBIT@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	call	DC_CLRBIT@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	mov	esi, DWORD PTR 4[r15]
	mov	rdi, rbx
	call	dc_mchash_le@PLT
	mov	edi, 1
	mov	ecx, eax
	mov	DWORD PTR -72[rbp], eax
	and	ecx, 15
	sal	edi, cl
	call	htole32@PLT
	mov	edx, DWORD PTR -72[rbp]
	sar	edx, 4
	movsx	rdx, edx
	or	DWORD PTR [r12+rdx*4], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dc_setfilt_21143, .-dc_setfilt_21143
	.comm	dc_hash_maddr_21143,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	IFF_ALLMULTI,4,4
	.comm	ETHER_ADDR_LEN,4,4
	.comm	DC_TX_LIST_CNT,4,4
	.comm	DC_TXSTAT_OWN,4,4
	.comm	DC_TXSTART,4,4
	.comm	DC_TXCTL_TLINK,4,4
	.comm	DC_TXCTL_SETUP,4,4
	.comm	DC_TXCTL_FINT,4,4
	.comm	DC_SFRAME_LEN,4,4
	.comm	DC_NETCFG_RX_PROMISC,4,4
	.comm	DC_NETCFG_RX_ALLMULTI,4,4
	.comm	DC_NETCFG,4,4
	.comm	DC_FILTER_HASHPERF,4,4
	.comm	BUS_DMASYNC_PREWRITE,4,4
	.comm	BUS_DMASYNC_PREREAD,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_dc.c_dc_setfilt_21143.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dc_setfilt_21143, %function
dc_setfilt_21143:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	mov	r4, r0
	ldr	r5, .L15
	ldr	r6, [r0, #24]
	ldr	r3, [r5]
	ldr	r2, .L15+4
	add	r3, r3, #1
	add	r3, r3, r3, lsr #31
	asr	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L15+8
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r9, [r4, #20]
	bl	DC_INC
	ldr	r2, [r4, #36]
	ldr	r3, .L15+12
	ldr	r7, [r4, #28]
	add	r8, r6, r6, lsl #1
	add	r2, r2, #1
	ldr	r1, [r3]
	str	r2, [r4, #36]
	mov	r0, r7
	lsl	r2, r8, #2
	ldr	r10, [r4, #44]
	str	r2, [fp, #-48]
	bl	bzero
	ldr	r0, [r4, #40]
	bl	DC_ADDR_LO
	bl	htole32
	ldr	ip, .L15+16
	ldr	r3, .L15+12
	ldr	r1, .L15+20
	ldr	ip, [ip]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, ip
	ldr	ip, .L15+24
	orr	r3, r3, r1
	ldr	r1, .L15+28
	ldr	ip, [ip]
	ldr	r1, [r1]
	ldr	r2, [fp, #-48]
	orr	r3, r3, ip
	str	r0, [r10, r2]
	orr	r0, r3, r1
	bl	htole32
	ldr	r3, .L15+32
	ldr	r2, [r4, #28]
	ldr	r1, [r3]
	ldr	r3, [r4, #32]
	ldr	ip, [r9]
	add	r8, r10, r8, lsl #2
	str	r0, [r8, #4]
	str	r2, [r3, r6, lsl #2]
	ldr	r3, .L15+36
	ldr	r6, .L15+40
	tst	ip, r1
	mov	r10, sp
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r1, [r6]
	beq	.L2
	bl	DC_SETBIT
.L3:
	ldr	r3, .L15+44
	ldr	r1, [r9]
	ldr	r2, [r3]
	ldr	r3, .L15+48
	tst	r1, r2
	mov	r0, r4
	ldr	r1, [r6]
	ldr	r2, [r3]
	beq	.L4
	bl	DC_SETBIT
.L5:
	ldr	r3, .L15+52
	mov	r2, r7
	ldr	r1, [r3]
	mov	r0, r9
	bl	if_foreach_llmaddr
	ldr	r3, .L15+56
	ldr	r2, [r9]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L13
.L6:
	ldr	r0, [r4, #20]
	bl	IF_LLADDR
	ldr	r2, [r5]
	mov	r1, r10
	bl	bcopy
	ldr	r0, [r10]
	bl	DC_SP_MAC
	str	r0, [r7, #156]
	ldr	r0, [r10, #4]
	bl	DC_SP_MAC
	str	r0, [r7, #160]
	ldr	r0, [r10, #8]
	bl	DC_SP_MAC
	ldr	r3, .L15+60
	str	r0, [r7, #164]
	ldr	r0, [r3]
	bl	htole32
	ldr	r5, .L15+64
	ldr	r3, .L15+68
	ldr	r1, [r4, #12]
	ldr	r2, [r3]
	ldr	r3, [r5]
	str	r0, [r8, #8]
	orr	r2, r2, r3
	ldr	r0, [r4, #16]
	bl	bus_dmamap_sync
	ldr	r2, [r5]
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #8]
	bl	bus_dmamap_sync
	ldr	r3, .L15+72
	mvn	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	CSR_WRITE_4
	ldr	r0, .L15+76
	bl	DELAY
	mov	r3, #5
	str	r3, [r4]
	ldr	r3, .L15+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	bl	DC_CLRBIT
	b	.L3
.L4:
	bl	DC_CLRBIT
	b	.L5
.L13:
	ldr	r1, [r9, #4]
	mov	r0, r4
	bl	dc_mchash_le
	mov	r6, r0
	mov	r0, #1
	and	r3, r6, #15
	lsl	r0, r0, r3
	bl	htole32
	asr	r6, r6, #4
	ldr	r3, [r7, r6, lsl #2]
	orr	r3, r3, r0
	str	r3, [r7, r6, lsl #2]
	b	.L6
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	ETHER_ADDR_LEN
	.word	DC_TX_LIST_CNT
	.word	.LC0
	.word	DC_SFRAME_LEN
	.word	DC_TXCTL_SETUP
	.word	DC_TXCTL_TLINK
	.word	DC_FILTER_HASHPERF
	.word	DC_TXCTL_FINT
	.word	IFF_PROMISC
	.word	DC_NETCFG_RX_PROMISC
	.word	DC_NETCFG
	.word	IFF_ALLMULTI
	.word	DC_NETCFG_RX_ALLMULTI
	.word	dc_hash_maddr_21143
	.word	IFF_BROADCAST
	.word	DC_TXSTAT_OWN
	.word	BUS_DMASYNC_PREWRITE
	.word	BUS_DMASYNC_PREREAD
	.word	DC_TXSTART
	.word	10000
	.size	dc_setfilt_21143, .-dc_setfilt_21143
	.comm	dc_hash_maddr_21143,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	IFF_ALLMULTI,4,4
	.comm	ETHER_ADDR_LEN,4,4
	.comm	DC_TX_LIST_CNT,4,4
	.comm	DC_TXSTAT_OWN,4,4
	.comm	DC_TXSTART,4,4
	.comm	DC_TXCTL_TLINK,4,4
	.comm	DC_TXCTL_SETUP,4,4
	.comm	DC_TXCTL_FINT,4,4
	.comm	DC_SFRAME_LEN,4,4
	.comm	DC_NETCFG_RX_PROMISC,4,4
	.comm	DC_NETCFG_RX_ALLMULTI,4,4
	.comm	DC_NETCFG,4,4
	.comm	DC_FILTER_HASHPERF,4,4
	.comm	BUS_DMASYNC_PREWRITE,4,4
	.comm	BUS_DMASYNC_PREREAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
