	.file	"extr_8139cp.c___cp_set_rx_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__cp_set_rx_mode, @function
__cp_set_rx_mode:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR IFF_PROMISC[rip], eax
	je	.L2
	mov	ebx, DWORD PTR AcceptBroadcast[rip]
	mov	r12d, -1
	or	ebx, DWORD PTR AcceptMulticast[rip]
	mov	r8d, -1
	or	ebx, DWORD PTR AcceptMyPhys[rip]
	or	ebx, DWORD PTR AcceptAllPhys[rip]
.L3:
	or	ebx, DWORD PTR cp_rx_config[rip]
	mov	rdi, QWORD PTR RxConfig[rip]
	mov	DWORD PTR 12[rsp], r8d
	mov	DWORD PTR 0[rbp], ebx
	mov	esi, ebx
	call	cpw32_f@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	rdi, QWORD PTR MAR0[rip]
	mov	esi, r8d
	call	cpw32_f@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	mov	rax, QWORD PTR MAR0[rip]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	esi, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	lea	rdi, 4[rax]
	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	cpw32_f@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ebx, DWORD PTR AcceptBroadcast[rip]
	mov	esi, DWORD PTR AcceptMyPhys[rip]
	mov	rdx, QWORD PTR 8[r13]
	or	ebx, esi
	cmp	rdx, QWORD PTR multicast_filter_limit[rip]
	jg	.L4
	and	eax, DWORD PTR IFF_ALLMULTI[rip]
	mov	r8d, eax
	jne	.L4
	mov	r14, QWORD PTR 16[r13]
	xor	r15d, r15d
	mov	r12d, 1
	mov	QWORD PTR 16[rsp], 0
	test	r14, r14
	jne	.L6
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR [r14]
	mov	edi, DWORD PTR ETH_ALEN[rip]
	add	r15, 1
	call	ether_crc@PLT
	mov	r14, QWORD PTR 8[r14]
	mov	edx, r12d
	or	ebx, DWORD PTR AcceptMulticast[rip]
	mov	ecx, eax
	sar	eax, 31
	cdqe
	sar	ecx, 26
	sal	edx, cl
	or	DWORD PTR 16[rsp+rax*4], edx
	test	r14, r14
	je	.L14
	mov	rdx, QWORD PTR 8[r13]
.L6:
	cmp	r15, rdx
	jl	.L8
.L14:
	mov	r8d, DWORD PTR 16[rsp]
	mov	r12d, DWORD PTR 20[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	or	ebx, DWORD PTR AcceptMulticast[rip]
	mov	r12d, -1
	mov	r8d, -1
	jmp	.L3
.L17:
	xor	r12d, r12d
	jmp	.L3
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__cp_set_rx_mode, .-__cp_set_rx_mode
	.comm	multicast_filter_limit,8,8
	.comm	cp_rx_config,4,4
	.comm	RxConfig,8,8
	.comm	MAR0,8,8
	.comm	IFF_PROMISC,4,4
	.comm	IFF_ALLMULTI,4,4
	.comm	ETH_ALEN,4,4
	.comm	AcceptMyPhys,4,4
	.comm	AcceptMulticast,4,4
	.comm	AcceptBroadcast,4,4
	.comm	AcceptAllPhys,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_8139cp.c___cp_set_rx_mode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__cp_set_rx_mode, %function
__cp_set_rx_mode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	ldr	r3, .L17
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	netdev_priv
	ldr	r3, .L17+4
	ldr	r5, [r6]
	ldr	r3, [r3]
	mov	r7, r0
	tst	r5, r3
	beq	.L2
	mvn	r6, #0
	mov	r5, r6
	ldr	r1, .L17+8
	ldr	r2, .L17+12
	ldr	r3, .L17+16
	ldr	r4, [r1]
	ldr	r1, [r2]
	ldr	r2, .L17+20
	ldr	r3, [r3]
	orr	r4, r4, r1
	ldr	r1, [r2]
	orr	r4, r4, r3
	orr	r4, r4, r1
.L3:
	ldr	r2, .L17+24
	ldr	r3, .L17+28
	ldr	r1, [r2]
	ldr	r0, [r3]
	orr	r1, r4, r1
	ldr	r4, .L17+32
	str	r1, [r7]
	bl	cpw32_f
	mov	r1, r5
	ldr	r0, [r4]
	bl	cpw32_f
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r1, r6
	ldr	r0, [r4]
	add	r0, r0, #4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	cpw32_f
.L2:
	ldr	r2, .L17+36
	ldr	r3, [r6, #4]
	ldr	r0, [r2]
	ldr	r1, .L17+8
	ldr	r2, .L17+16
	cmp	r3, r0
	ldr	r4, [r1]
	ldr	r1, [r2]
	bgt	.L4
	ldr	r2, .L17+40
	ldr	r2, [r2]
	ands	r5, r5, r2
	bne	.L4
	ldr	r10, [r6, #8]
	orr	r4, r4, r1
	cmp	r10, #0
	str	r5, [sp, #4]
	str	r5, [sp, #8]
	beq	.L12
	mov	r8, #1
	ldr	r9, .L17+44
	ldr	fp, .L17+12
	b	.L6
.L8:
	ldr	r1, [r10]
	ldr	r0, [r9]
	bl	ether_crc
	add	r3, sp, #16
	asr	r2, r0, #31
	add	r2, r3, r2, lsl #2
	ldr	r1, [r2, #-12]
	asr	r0, r0, #26
	ldr	r10, [r10, #4]
	and	r3, r0, #31
	ldr	r0, [fp]
	orr	r3, r1, r8, lsl r3
	cmp	r10, #0
	add	r5, r5, #1
	str	r3, [r2, #-12]
	orr	r4, r4, r0
	beq	.L14
	ldr	r3, [r6, #4]
.L6:
	cmp	r5, r3
	blt	.L8
.L14:
	ldmib	sp, {r5, r6}
	b	.L3
.L4:
	mvn	r6, #0
	ldr	r3, .L17+12
	orr	r4, r4, r1
	ldr	r1, [r3]
	mov	r5, r6
	orr	r4, r4, r1
	b	.L3
.L12:
	mov	r6, r5
	b	.L3
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	IFF_PROMISC
	.word	AcceptBroadcast
	.word	AcceptMulticast
	.word	AcceptMyPhys
	.word	AcceptAllPhys
	.word	cp_rx_config
	.word	RxConfig
	.word	MAR0
	.word	multicast_filter_limit
	.word	IFF_ALLMULTI
	.word	ETH_ALEN
	.size	__cp_set_rx_mode, .-__cp_set_rx_mode
	.comm	multicast_filter_limit,4,4
	.comm	cp_rx_config,4,4
	.comm	RxConfig,4,4
	.comm	MAR0,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_ALLMULTI,4,4
	.comm	ETH_ALEN,4,4
	.comm	AcceptMyPhys,4,4
	.comm	AcceptMulticast,4,4
	.comm	AcceptBroadcast,4,4
	.comm	AcceptAllPhys,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
