	.file	"extr_if_muge.c_muge_multicast_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	muge_multicast_write, @function
muge_multicast_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r8d, DWORD PTR 8[rdi]
	mov	ecx, DWORD PTR ETH_DP_SEL_VHF_HASH_LEN[rip]
	mov	edx, DWORD PTR ETH_DP_SEL_VHF_VLAN_LEN[rip]
	mov	esi, DWORD PTR ETH_DP_SEL_RSEL_VLAN_DA_[rip]
	call	lan78xx_dataport_write@PLT
	cmp	DWORD PTR MUGE_NUM_PFILTER_ADDRS_[rip], 1
	jle	.L1
	mov	r12d, 8
	mov	ebx, 1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, ebx
	call	PFILTER_HI@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, eax
	call	lan78xx_write_reg@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, ebx
	mov	rax, QWORD PTR [rax+r12]
	mov	r13d, DWORD PTR 4[rax]
	call	PFILTER_LO@PLT
	mov	rdi, rbp
	mov	edx, r13d
	mov	esi, eax
	call	lan78xx_write_reg@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, ebx
	add	ebx, 1
	mov	rax, QWORD PTR [rax+r12]
	add	r12, 8
	mov	r13d, DWORD PTR [rax]
	call	PFILTER_HI@PLT
	mov	rdi, rbp
	mov	esi, eax
	mov	edx, r13d
	call	lan78xx_write_reg@PLT
	cmp	DWORD PTR MUGE_NUM_PFILTER_ADDRS_[rip], ebx
	jg	.L3
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	muge_multicast_write, .-muge_multicast_write
	.comm	MUGE_NUM_PFILTER_ADDRS_,4,4
	.comm	ETH_DP_SEL_VHF_VLAN_LEN,4,4
	.comm	ETH_DP_SEL_VHF_HASH_LEN,4,4
	.comm	ETH_DP_SEL_RSEL_VLAN_DA_,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_muge.c_muge_multicast_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	muge_multicast_write, %function
muge_multicast_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	ip, [r0, #4]
	sub	sp, sp, #8
	ldr	r3, .L7
	ldr	r2, .L7+4
	ldr	r1, .L7+8
	str	ip, [sp]
	ldr	r6, .L7+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r5, r0
	bl	lan78xx_dataport_write
	ldr	r3, [r6]
	cmp	r3, #1
	ble	.L1
	mov	r4, #1
.L3:
	mov	r0, r4
	bl	PFILTER_HI
	mov	r2, #0
	mov	r1, r0
	mov	r0, r5
	bl	lan78xx_write_reg
	mov	r0, r4
	bl	PFILTER_LO
	ldr	r3, [r5]
	mov	r1, r0
	ldr	r3, [r3, r4, lsl #2]
	mov	r0, r5
	ldr	r2, [r3, #4]
	bl	lan78xx_write_reg
	mov	r0, r4
	bl	PFILTER_HI
	ldr	r3, [r5]
	mov	r1, r0
	ldr	r3, [r3, r4, lsl #2]
	mov	r0, r5
	ldr	r2, [r3]
	bl	lan78xx_write_reg
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	ETH_DP_SEL_VHF_HASH_LEN
	.word	ETH_DP_SEL_VHF_VLAN_LEN
	.word	ETH_DP_SEL_RSEL_VLAN_DA_
	.word	MUGE_NUM_PFILTER_ADDRS_
	.size	muge_multicast_write, .-muge_multicast_write
	.comm	MUGE_NUM_PFILTER_ADDRS_,4,4
	.comm	ETH_DP_SEL_VHF_VLAN_LEN,4,4
	.comm	ETH_DP_SEL_VHF_HASH_LEN,4,4
	.comm	ETH_DP_SEL_RSEL_VLAN_DA_,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
