	.file	"extr_sungem.c_gem_setup_multicast.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gem_setup_multicast, @function
gem_setup_multicast:
.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
	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
	sub	rsp, 80
	.cfi_def_cfa_offset 128
	mov	rdx, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	ebx, DWORD PTR [rdx]
	test	DWORD PTR IFF_ALLMULTI[rip], ebx
	jne	.L13
	mov	esi, DWORD PTR 4[rdx]
	cmp	esi, 256
	jle	.L3
.L13:
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, QWORD PTR MAC_HASH0[rip]
	add	rsi, QWORD PTR 0[rbp]
	mov	edi, 65535
	add	rsi, rbx
	add	rbx, 4
	call	writel@PLT
	cmp	rbx, 64
	jne	.L4
.L22:
	mov	eax, DWORD PTR MAC_RXCFG_HFE[rip]
.L1:
	mov	rcx, QWORD PTR 72[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L24
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	and	ebx, DWORD PTR IFF_PROMISC[rip]
	mov	eax, DWORD PTR MAC_RXCFG_PROM[rip]
	jne	.L1
	mov	r12, rsp
	mov	r14, QWORD PTR 8[rdx]
	lea	rcx, 64[rsp]
	mov	rax, r12
	.p2align 4,,10
	.p2align 3
.L7:
	mov	DWORD PTR [rax], 0
	add	rax, 4
	cmp	rcx, rax
	jne	.L7
	test	esi, esi
	jle	.L8
	mov	r13d, 1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rsi, QWORD PTR [r14]
	mov	r14, QWORD PTR 8[r14]
	test	BYTE PTR [rsi], 1
	je	.L9
	mov	edi, 6
	call	ether_crc_le@PLT
	mov	edx, eax
	sar	eax, 24
	mov	ecx, eax
	sar	edx, 28
	mov	eax, r13d
	not	ecx
	movsx	rdx, edx
	and	ecx, 15
	sal	eax, cl
	or	DWORD PTR [rsp+rdx*4], eax
	mov	rdx, QWORD PTR 8[rbp]
.L9:
	add	ebx, 1
	cmp	DWORD PTR 4[rdx], ebx
	jg	.L10
.L8:
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, QWORD PTR MAC_HASH0[rip]
	mov	edi, DWORD PTR [r12+rbx]
	add	rsi, QWORD PTR 0[rbp]
	add	rsi, rbx
	add	rbx, 4
	call	writel@PLT
	cmp	rbx, 64
	jne	.L11
	jmp	.L22
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gem_setup_multicast, .-gem_setup_multicast
	.comm	MAC_RXCFG_PROM,4,4
	.comm	MAC_RXCFG_HFE,4,4
	.comm	MAC_HASH0,8,8
	.comm	IFF_PROMISC,4,4
	.comm	IFF_ALLMULTI,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_sungem.c_gem_setup_multicast.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gem_setup_multicast, %function
gem_setup_multicast:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L26
	ldr	r2, [r0, #4]
	ldr	r4, [r3]
	ldr	r3, [r2]
	ldr	r1, .L26+4
	sub	sp, sp, #72
	ands	r4, r3, r4
	mov	r5, r0
	ldr	r1, [r1]
	str	r1, [sp, #68]
	mov	r1,#0
	bne	.L13
	ldr	r0, [r2, #4]
	cmp	r0, #256
	ble	.L3
.L2:
	ldr	r6, .L26+8
	ldr	r7, .L26+12
.L4:
	ldr	r1, [r5]
	ldr	r3, [r6]
	mov	r0, r7
	add	r1, r1, r3
	add	r1, r1, r4
	add	r4, r4, #4
	bl	writel
	cmp	r4, #64
	bne	.L4
.L22:
	ldr	r3, .L26+16
	ldr	r0, [r3]
.L1:
	ldr	r3, .L26+4
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	add	sp, sp, #72
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r4, #0
	b	.L2
.L3:
	ldr	r1, .L26+20
	ldr	r4, [r1]
	ands	r4, r3, r4
	bne	.L25
	mov	r1, r4
	ldr	r8, [r2, #8]
	add	r3, sp, #4
	add	r7, sp, #68
.L7:
	str	r1, [r3], #4
	cmp	r7, r3
	bne	.L7
	cmp	r0, #0
	ble	.L8
	mov	r6, #1
.L10:
	ldm	r8, {r1, r8}
	ldrb	r3, [r1]	@ zero_extendqisi2
	tst	r3, #1
	beq	.L9
	mov	r0, #6
	bl	ether_crc_le
	mvn	r2, r0, asr #24
	add	r1, sp, #72
	asr	r3, r0, #28
	add	r3, r1, r3, lsl #2
	ldr	r1, [r3, #-68]
	and	r2, r2, #15
	orr	r1, r1, r6, lsl r2
	ldr	r2, [r5, #4]
	str	r1, [r3, #-68]
.L9:
	ldr	r3, [r2, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L10
.L8:
	mvn	r8, #3
	add	r4, sp, #4
	ldr	r6, .L26+8
	sub	r8, r8, r4
.L11:
	ldr	r0, [r4], #4
	ldr	r3, [r5]
	ldr	r2, [r6]
	add	r1, r8, r4
	add	r3, r3, r2
	add	r1, r3, r1
	bl	writel
	cmp	r7, r4
	bne	.L11
	b	.L22
.L25:
	ldr	r3, .L26+24
	ldr	r0, [r3]
	b	.L1
.L24:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	IFF_ALLMULTI
	.word	.LC0
	.word	MAC_HASH0
	.word	65535
	.word	MAC_RXCFG_HFE
	.word	IFF_PROMISC
	.word	MAC_RXCFG_PROM
	.size	gem_setup_multicast, .-gem_setup_multicast
	.comm	MAC_RXCFG_PROM,4,4
	.comm	MAC_RXCFG_HFE,4,4
	.comm	MAC_HASH0,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_ALLMULTI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
