	.file	"extr_davinci_emac.c_emac_add_mcast.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"DaVinci EMAC: add_mcast: bad operation %d"
	.text
	.p2align 4
	.type	emac_add_mcast, @function
emac_add_mcast:
.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
	cmp	esi, 130
	je	.L2
	mov	r12d, esi
	jg	.L3
	cmp	esi, 128
	je	.L4
	cmp	esi, 129
	jne	.L6
	mov	rsi, rdx
	call	emac_hash_add@PLT
.L8:
	test	eax, eax
	jle	.L1
	mov	rsi, QWORD PTR 8[rbp]
.L9:
	mov	edi, DWORD PTR EMAC_MACHASH1[rip]
	call	emac_write@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR EMAC_MACHASH2[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	emac_write@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	esi, 131
	jne	.L6
	mov	QWORD PTR 8[rdi], 0
	mov	eax, DWORD PTR EMAC_NUM_MULTICAST_BITS[rip]
	xor	esi, esi
	mov	QWORD PTR [rdi], 0
	mov	rdi, QWORD PTR 16[rdi]
	lea	edx, 0[0+rax*4]
	call	memset@PLT
	mov	rsi, QWORD PTR 8[rbp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rsi, QWORD PTR EMAC_ALL_MULTI_REG_VALUE[rip]
	mov	QWORD PTR 8[rdi], rsi
	mov	QWORD PTR [rdi], rsi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, rdx
	call	emac_hash_del@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	mov	r13, QWORD PTR 24[rbp]
	call	netif_msg_drv@PLT
	test	eax, eax
	je	.L1
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	edx, r12d
	mov	rdi, r13
	pop	r12
	.cfi_def_cfa_offset 16
	lea	rsi, .LC0[rip]
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
	.cfi_endproc
.LFE0:
	.size	emac_add_mcast, .-emac_add_mcast
	.comm	EMAC_NUM_MULTICAST_BITS,4,4
	.comm	EMAC_MACHASH2,4,4
	.comm	EMAC_MACHASH1,4,4
	.comm	EMAC_ALL_MULTI_REG_VALUE,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_davinci_emac.c_emac_add_mcast.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DaVinci EMAC: add_mcast: bad operation %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	emac_add_mcast, %function
emac_add_mcast:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	sub	r3, r1, #128
	mov	r4, r0
	sub	sp, sp, #8
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	mov	r1, #0
	ldr	r3, .L16
	str	r1, [r0, #4]
	ldr	r2, [r3]
	str	r1, [r0]
	lsl	r2, r2, #2
	ldr	r0, [r0, #8]
	bl	memset
	ldr	r1, [r4, #4]
.L9:
	ldr	r3, .L16+4
	ldr	r0, [r3]
	bl	emac_write
	ldr	r3, .L16+8
	ldr	r1, [r4]
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, lr}
	b	emac_write
.L7:
	mov	r1, r2
	bl	emac_hash_del
	cmp	r0, #0
	ble	.L1
.L15:
	ldr	r1, [r4, #4]
	b	.L9
.L6:
	mov	r1, r2
	bl	emac_hash_add
	cmp	r0, #0
	bgt	.L15
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L5:
	ldr	r3, .L16+12
	ldr	r1, [r3]
	str	r1, [r0, #4]
	str	r1, [r0]
	b	.L9
.L2:
	str	r1, [sp, #4]
	ldr	r4, [r0, #12]
	bl	netif_msg_drv
	cmp	r0, #0
	ldr	r1, [sp, #4]
	beq	.L1
	mov	r2, r1
	mov	r0, r4
	ldr	r1, .L16+16
	add	sp, sp, #8
	@ sp needed
	pop	{r4, lr}
	b	dev_err
.L17:
	.align	2
.L16:
	.word	EMAC_NUM_MULTICAST_BITS
	.word	EMAC_MACHASH1
	.word	EMAC_MACHASH2
	.word	EMAC_ALL_MULTI_REG_VALUE
	.word	.LC0
	.size	emac_add_mcast, .-emac_add_mcast
	.comm	EMAC_NUM_MULTICAST_BITS,4,4
	.comm	EMAC_MACHASH2,4,4
	.comm	EMAC_MACHASH1,4,4
	.comm	EMAC_ALL_MULTI_REG_VALUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
