	.file	"extr_ionic_lif.c_ionic_set_rx_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ionic_set_rx_mode, @function
ionic_set_rx_mode:
.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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	netdev_priv@PLT
	mov	ebp, DWORD PTR IONIC_RX_MODE_F_UNICAST[rip]
	mov	r14, QWORD PTR 16[rax]
	mov	r12, rax
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR IFF_MULTICAST[rip], eax
	je	.L2
	or	ebp, DWORD PTR IONIC_RX_MODE_F_MULTICAST[rip]
.L2:
	test	DWORD PTR IFF_BROADCAST[rip], eax
	je	.L3
	or	ebp, DWORD PTR IONIC_RX_MODE_F_BROADCAST[rip]
.L3:
	test	DWORD PTR IFF_PROMISC[rip], eax
	je	.L4
	or	ebp, DWORD PTR IONIC_RX_MODE_F_PROMISC[rip]
.L4:
	test	DWORD PTR IFF_ALLMULTI[rip], eax
	je	.L5
	or	ebp, DWORD PTR IONIC_RX_MODE_F_ALLMULTI[rip]
.L5:
	mov	edx, DWORD PTR ionic_addr_del[rip]
	mov	esi, DWORD PTR ionic_addr_add[rip]
	mov	rdi, rbx
	call	__dev_uc_sync@PLT
	mov	edi, DWORD PTR 4[r14]
	call	le32_to_cpu@PLT
	mov	rdi, rbx
	mov	r13d, eax
	call	netdev_uc_count@PLT
	add	eax, 1
	cmp	eax, r13d
	jbe	.L6
	or	ebp, DWORD PTR IONIC_RX_MODE_F_PROMISC[rip]
	mov	DWORD PTR [r12], 1
.L7:
	mov	edx, DWORD PTR ionic_addr_del[rip]
	mov	esi, DWORD PTR ionic_addr_add[rip]
	mov	rdi, rbx
	call	__dev_mc_sync@PLT
	mov	edi, DWORD PTR [r14]
	call	le32_to_cpu@PLT
	mov	rdi, rbx
	mov	r13d, eax
	call	netdev_mc_count@PLT
	cmp	eax, r13d
	jbe	.L8
	mov	DWORD PTR 4[r12], 1
	or	ebp, DWORD PTR IONIC_RX_MODE_F_ALLMULTI[rip]
.L9:
	cmp	DWORD PTR 8[r12], ebp
	jne	.L25
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L6:
	.cfi_restore_state
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	je	.L7
	mov	DWORD PTR [r12], 0
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR IFF_PROMISC[rip], eax
	jne	.L7
	mov	eax, DWORD PTR IONIC_RX_MODE_F_PROMISC[rip]
	not	eax
	and	ebp, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 4[r12]
	test	eax, eax
	je	.L9
	mov	DWORD PTR 4[r12], 0
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR IFF_ALLMULTI[rip], eax
	jne	.L9
	mov	eax, DWORD PTR IONIC_RX_MODE_F_ALLMULTI[rip]
	not	eax
	and	ebp, eax
	cmp	DWORD PTR 8[r12], ebp
	je	.L1
.L25:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	esi, ebp
	mov	rdi, r12
	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
	jmp	_ionic_lif_rx_mode@PLT
	.cfi_endproc
.LFE0:
	.size	ionic_set_rx_mode, .-ionic_set_rx_mode
	.comm	ionic_addr_del,4,4
	.comm	ionic_addr_add,4,4
	.comm	IONIC_RX_MODE_F_UNICAST,4,4
	.comm	IONIC_RX_MODE_F_PROMISC,4,4
	.comm	IONIC_RX_MODE_F_MULTICAST,4,4
	.comm	IONIC_RX_MODE_F_BROADCAST,4,4
	.comm	IONIC_RX_MODE_F_ALLMULTI,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_MULTICAST,4,4
	.comm	IFF_BROADCAST,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_ionic_lif.c_ionic_set_rx_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ionic_set_rx_mode, %function
ionic_set_rx_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	bl	netdev_priv
	ldr	r2, .L31
	ldr	r3, [r5]
	ldr	r1, [r2]
	ldr	r2, .L31+4
	tst	r3, r1
	ldr	r4, [r2]
	ldrne	r2, .L31+8
	ldr	fp, .L31+12
	ldrne	r2, [r2]
	ldr	r8, .L31+16
	orrne	r4, r4, r2
	ldr	r2, .L31+20
	ldr	r10, .L31+24
	ldr	r2, [r2]
	ldr	r9, [r0, #12]
	tst	r3, r2
	ldrne	r2, .L31+28
	ldr	r1, [r10]
	ldrne	r2, [r2]
	mov	r6, r0
	orrne	r4, r4, r2
	ldr	r2, [fp]
	mov	r0, r5
	tst	r3, r2
	ldrne	r2, .L31+32
	ldrne	r2, [r2]
	orrne	r4, r4, r2
	ldr	r2, [r8]
	tst	r3, r2
	ldrne	r3, .L31+36
	ldrne	r3, [r3]
	orrne	r4, r4, r3
	ldr	r3, .L31+40
	ldr	r2, [r3]
	bl	__dev_uc_sync
	ldr	r0, [r9, #4]
	bl	le32_to_cpu
	mov	r7, r0
	mov	r0, r5
	bl	netdev_uc_count
	add	r0, r0, #1
	cmp	r0, r7
	ldr	r3, .L31+40
	bls	.L6
	mov	r1, #1
	ldr	r2, .L31+32
	ldr	r2, [r2]
	str	r1, [r6]
	orr	r4, r4, r2
.L7:
	ldr	r2, [r3]
	ldr	r1, [r10]
	mov	r0, r5
	bl	__dev_mc_sync
	ldr	r0, [r9]
	bl	le32_to_cpu
	mov	r7, r0
	mov	r0, r5
	bl	netdev_mc_count
	cmp	r0, r7
	bls	.L8
	mov	r2, #1
	ldr	r3, .L31+36
	str	r2, [r6, #4]
	ldr	r3, [r3]
	orr	r4, r4, r3
.L9:
	ldr	r3, [r6, #8]
	cmp	r3, r4
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r1, r4
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	_ionic_lif_rx_mode
.L6:
	ldr	r2, [r6]
	cmp	r2, #0
	beq	.L7
	mov	r0, #0
	ldr	r2, [fp]
	ldr	r1, [r5]
	str	r0, [r6]
	tst	r1, r2
	ldreq	r2, .L31+32
	ldreq	r2, [r2]
	biceq	r4, r4, r2
	b	.L7
.L8:
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L9
	mov	r1, #0
	ldr	r3, [r8]
	ldr	r2, [r5]
	str	r1, [r6, #4]
	tst	r2, r3
	ldreq	r3, .L31+36
	ldreq	r3, [r3]
	biceq	r4, r4, r3
	b	.L9
.L32:
	.align	2
.L31:
	.word	IFF_MULTICAST
	.word	IONIC_RX_MODE_F_UNICAST
	.word	IONIC_RX_MODE_F_MULTICAST
	.word	IFF_PROMISC
	.word	IFF_ALLMULTI
	.word	IFF_BROADCAST
	.word	ionic_addr_add
	.word	IONIC_RX_MODE_F_BROADCAST
	.word	IONIC_RX_MODE_F_PROMISC
	.word	IONIC_RX_MODE_F_ALLMULTI
	.word	ionic_addr_del
	.size	ionic_set_rx_mode, .-ionic_set_rx_mode
	.comm	ionic_addr_del,4,4
	.comm	ionic_addr_add,4,4
	.comm	IONIC_RX_MODE_F_UNICAST,4,4
	.comm	IONIC_RX_MODE_F_PROMISC,4,4
	.comm	IONIC_RX_MODE_F_MULTICAST,4,4
	.comm	IONIC_RX_MODE_F_BROADCAST,4,4
	.comm	IONIC_RX_MODE_F_ALLMULTI,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_MULTICAST,4,4
	.comm	IFF_BROADCAST,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
