	.file	"extr_kaweth.c_kaweth_set_rx_mode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Setting Rx mode to %d\n"
	.text
	.p2align 4
	.type	kaweth_set_rx_mode, @function
kaweth_set_rx_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	netdev_priv@PLT
	mov	ebx, DWORD PTR KAWETH_PACKET_FILTER_DIRECTED[rip]
	or	ebx, DWORD PTR KAWETH_PACKET_FILTER_BROADCAST[rip]
	mov	rdi, rbp
	or	ebx, DWORD PTR KAWETH_PACKET_FILTER_MULTICAST[rip]
	lea	rsi, .LC0[rip]
	mov	r12, rax
	mov	edx, ebx
	call	netdev_dbg@PLT
	mov	rdi, rbp
	call	netif_stop_queue@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR IFF_PROMISC[rip], eax
	je	.L2
	or	ebx, DWORD PTR KAWETH_PACKET_FILTER_PROMISCUOUS[rip]
.L3:
	mov	DWORD PTR [r12], ebx
	mov	rdi, rbp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	netif_wake_queue@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	netdev_mc_empty@PLT
	test	eax, eax
	jne	.L13
.L4:
	or	ebx, DWORD PTR KAWETH_PACKET_FILTER_ALL_MULTICAST[rip]
	mov	rdi, rbp
	mov	DWORD PTR [r12], ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	netif_wake_queue@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR IFF_ALLMULTI[rip], eax
	je	.L3
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	kaweth_set_rx_mode, .-kaweth_set_rx_mode
	.comm	KAWETH_PACKET_FILTER_PROMISCUOUS,4,4
	.comm	KAWETH_PACKET_FILTER_MULTICAST,4,4
	.comm	KAWETH_PACKET_FILTER_DIRECTED,4,4
	.comm	KAWETH_PACKET_FILTER_BROADCAST,4,4
	.comm	KAWETH_PACKET_FILTER_ALL_MULTICAST,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_kaweth.c_kaweth_set_rx_mode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Setting Rx mode to %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kaweth_set_rx_mode, %function
kaweth_set_rx_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	netdev_priv
	ldr	r1, .L14
	ldr	r3, .L14+4
	ldr	r2, .L14+8
	ldr	r3, [r3]
	ldr	r4, [r1]
	ldr	r2, [r2]
	orr	r4, r4, r3
	orr	r4, r4, r2
	mov	r2, r4
	ldr	r1, .L14+12
	mov	r6, r0
	mov	r0, r5
	bl	netdev_dbg
	mov	r0, r5
	bl	netif_stop_queue
	ldr	r3, .L14+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L2
	ldr	r3, .L14+20
	ldr	r3, [r3]
	orr	r4, r4, r3
.L3:
	mov	r0, r5
	str	r4, [r6]
	pop	{r4, r5, r6, lr}
	b	netif_wake_queue
.L2:
	mov	r0, r5
	bl	netdev_mc_empty
	cmp	r0, #0
	bne	.L13
.L4:
	ldr	r3, .L14+24
	mov	r0, r5
	ldr	r3, [r3]
	orr	r4, r4, r3
	str	r4, [r6]
	pop	{r4, r5, r6, lr}
	b	netif_wake_queue
.L13:
	ldr	r3, .L14+28
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L3
	b	.L4
.L15:
	.align	2
.L14:
	.word	KAWETH_PACKET_FILTER_DIRECTED
	.word	KAWETH_PACKET_FILTER_BROADCAST
	.word	KAWETH_PACKET_FILTER_MULTICAST
	.word	.LC0
	.word	IFF_PROMISC
	.word	KAWETH_PACKET_FILTER_PROMISCUOUS
	.word	KAWETH_PACKET_FILTER_ALL_MULTICAST
	.word	IFF_ALLMULTI
	.size	kaweth_set_rx_mode, .-kaweth_set_rx_mode
	.comm	KAWETH_PACKET_FILTER_PROMISCUOUS,4,4
	.comm	KAWETH_PACKET_FILTER_MULTICAST,4,4
	.comm	KAWETH_PACKET_FILTER_DIRECTED,4,4
	.comm	KAWETH_PACKET_FILTER_BROADCAST,4,4
	.comm	KAWETH_PACKET_FILTER_ALL_MULTICAST,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
