	.file	"extr_tlan.c_TLan_SetMulticastList.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	TLan_SetMulticastList, @function
TLan_SetMulticastList:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR TLAN_NET_CMD[rip]
	mov	edi, DWORD PTR 8[rdi]
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR IFF_PROMISC[rip], eax
	je	.L2
	call	TLan_DioRead8@PLT
	mov	edi, DWORD PTR 8[rbp]
	or	eax, DWORD PTR TLAN_NET_CMD_CAF[rip]
	mov	esi, DWORD PTR TLAN_NET_CMD[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edx, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	TLan_DioWrite8@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12, QWORD PTR 16[rbp]
	call	TLan_DioRead8@PLT
	mov	edx, DWORD PTR TLAN_NET_CMD_CAF[rip]
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR TLAN_NET_CMD[rip]
	not	edx
	and	edx, eax
	call	TLan_DioWrite8@PLT
	mov	ebx, DWORD PTR 0[rbp]
	and	ebx, DWORD PTR IFF_ALLMULTI[rip]
	jne	.L3
	mov	eax, DWORD PTR 4[rbp]
	xor	r13d, r13d
	xor	r14d, r14d
	mov	r15d, 1
	test	eax, eax
	jg	.L4
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rdx, 8[r12]
	mov	esi, ebx
	mov	rdi, rbp
	call	TLan_SetMac@PLT
.L7:
	mov	r12, QWORD PTR [r12]
	cmp	DWORD PTR 4[rbp], ebx
	jle	.L19
.L4:
	mov	eax, ebx
	add	ebx, 1
	cmp	eax, 2
	jbe	.L20
	lea	rdi, 8[r12]
	call	TLan_HashFunc@PLT
	cmp	eax, 31
	jg	.L8
	mov	esi, r15d
	mov	ecx, eax
	mov	r12, QWORD PTR [r12]
	sal	esi, cl
	or	r14d, esi
	cmp	DWORD PTR 4[rbp], ebx
	jg	.L4
.L19:
	cmp	ebx, 2
	jg	.L9
.L10:
	add	ebx, 1
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, ebx
	call	TLan_SetMac@PLT
	cmp	ebx, 3
	jne	.L10
.L9:
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR TLAN_HASH_1[rip]
	mov	edx, r14d
	call	TLan_DioWrite32@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	edx, r13d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L3:
	xor	edx, edx
	mov	esi, 1
	mov	rdi, rbp
	call	TLan_SetMac@PLT
	xor	edx, edx
	mov	esi, 2
	mov	rdi, rbp
	call	TLan_SetMac@PLT
	xor	edx, edx
	mov	esi, 3
	mov	rdi, rbp
	call	TLan_SetMac@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR TLAN_HASH_1[rip]
	mov	edx, -1
	call	TLan_DioWrite32@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	edx, -1
.L16:
	mov	esi, DWORD PTR TLAN_HASH_2[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	TLan_DioWrite32@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	ecx, -32[rax]
	mov	eax, r15d
	sal	eax, cl
	or	r13d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r14d, ebx
	mov	r13d, ebx
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	TLan_SetMulticastList, .-TLan_SetMulticastList
	.comm	TLAN_NET_CMD_CAF,4,4
	.comm	TLAN_NET_CMD,4,4
	.comm	TLAN_HASH_2,4,4
	.comm	TLAN_HASH_1,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
	.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_tlan.c_TLan_SetMulticastList.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	TLan_SetMulticastList, %function
TLan_SetMulticastList:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L18
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, .L18+4
	ands	r7, r2, r3
	mov	r5, r0
	ldr	r1, [r4]
	ldr	r0, [r0, #8]
	beq	.L2
	bl	TLan_DioRead8
	mov	r2, r0
	ldr	r3, .L18+8
	ldr	r1, [r4]
	ldr	r3, [r3]
	ldr	r0, [r5, #8]
	orr	r2, r2, r3
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	TLan_DioWrite8
.L2:
	ldr	r6, [r5, #12]
	bl	TLan_DioRead8
	mov	r3, r0
	ldr	r2, .L18+8
	ldr	r1, [r4]
	ldr	r2, [r2]
	ldr	r0, [r5, #8]
	bic	r2, r3, r2
	bl	TLan_DioWrite8
	ldr	r3, .L18+12
	ldr	r4, [r5]
	ldr	r1, [r3]
	ands	r4, r4, r1
	bne	.L3
	ldr	r3, [r5, #4]
	cmp	r3, #0
	movle	r8, r4
	movle	r7, r4
	ble	.L10
	mov	r7, r4
	mov	r8, r4
	mov	r9, #1
	b	.L4
.L17:
	mov	r1, r4
	mov	r0, r5
	bl	TLan_SetMac
	ldr	r3, [r5, #4]
	ldr	r6, [r6]
	cmp	r3, r4
	ble	.L16
.L4:
	add	r0, r6, #4
	cmp	r4, #2
	mov	r2, r0
	add	r4, r4, #1
	bls	.L17
	bl	TLan_HashFunc
	ldr	r3, [r5, #4]
	cmp	r0, #31
	subgt	r0, r0, #32
	orrle	r8, r8, r9, lsl r0
	orrgt	r7, r7, r9, lsl r0
	cmp	r3, r4
	ldr	r6, [r6]
	bgt	.L4
.L16:
	cmp	r4, #2
	bgt	.L9
.L10:
	add	r4, r4, #1
	mov	r1, r4
	mov	r2, #0
	mov	r0, r5
	bl	TLan_SetMac
	cmp	r4, #3
	bne	.L10
.L9:
	ldr	r3, .L18+16
	mov	r2, r8
	ldr	r1, [r3]
	ldr	r0, [r5, #8]
	bl	TLan_DioWrite32
	ldr	r3, .L18+20
	mov	r2, r7
	ldr	r0, [r5, #8]
	ldr	r1, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	TLan_DioWrite32
.L3:
	mov	r2, r7
	mov	r1, #1
	mov	r0, r5
	bl	TLan_SetMac
	mov	r2, r7
	mov	r1, #2
	mov	r0, r5
	bl	TLan_SetMac
	mov	r2, r7
	mov	r1, #3
	mov	r0, r5
	bl	TLan_SetMac
	ldr	r3, .L18+16
	mvn	r2, #0
	ldr	r1, [r3]
	ldr	r0, [r5, #8]
	bl	TLan_DioWrite32
	ldr	r3, .L18+20
	ldr	r0, [r5, #8]
	mvn	r2, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r1, [r3]
	b	TLan_DioWrite32
.L19:
	.align	2
.L18:
	.word	IFF_PROMISC
	.word	TLAN_NET_CMD
	.word	TLAN_NET_CMD_CAF
	.word	IFF_ALLMULTI
	.word	TLAN_HASH_1
	.word	TLAN_HASH_2
	.size	TLan_SetMulticastList, .-TLan_SetMulticastList
	.comm	TLAN_NET_CMD_CAF,4,4
	.comm	TLAN_NET_CMD,4,4
	.comm	TLAN_HASH_2,4,4
	.comm	TLAN_HASH_1,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
