	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kaweth_set_rx_mode
_kaweth_set_rx_mode:                    ## @kaweth_set_rx_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	_KAWETH_PACKET_FILTER_DIRECTED@GOTPCREL(%rip), %rcx
	movq	_KAWETH_PACKET_FILTER_BROADCAST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	%rax, %r15
	movq	_KAWETH_PACKET_FILTER_MULTICAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_netdev_dbg
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_KAWETH_PACKET_FILTER_PROMISCUOUS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%r14, %rdi
	callq	_netdev_mc_empty
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_6
LBB0_4:
	movq	_KAWETH_PACKET_FILTER_ALL_MULTICAST@GOTPCREL(%rip), %rax
LBB0_5:
	orl	(%rax), %ebx
LBB0_6:
	movl	%ebx, (%r15)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KAWETH_PACKET_FILTER_DIRECTED,4,2 ## @KAWETH_PACKET_FILTER_DIRECTED
	.comm	_KAWETH_PACKET_FILTER_BROADCAST,4,2 ## @KAWETH_PACKET_FILTER_BROADCAST
	.comm	_KAWETH_PACKET_FILTER_MULTICAST,4,2 ## @KAWETH_PACKET_FILTER_MULTICAST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting Rx mode to %d\n"

	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_KAWETH_PACKET_FILTER_PROMISCUOUS,4,2 ## @KAWETH_PACKET_FILTER_PROMISCUOUS
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_KAWETH_PACKET_FILTER_ALL_MULTICAST,4,2 ## @KAWETH_PACKET_FILTER_ALL_MULTICAST
	.no_dead_strip	_kaweth_set_rx_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kaweth_set_rx_mode
_kaweth_set_rx_mode:                    ; @kaweth_set_rx_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _KAWETH_PACKET_FILTER_DIRECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KAWETH_PACKET_FILTER_DIRECTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _KAWETH_PACKET_FILTER_BROADCAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KAWETH_PACKET_FILTER_BROADCAST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _KAWETH_PACKET_FILTER_MULTICAST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KAWETH_PACKET_FILTER_MULTICAST@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w21, w8, w9
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_netdev_dbg
	mov	x0, x19
	bl	_netif_stop_queue
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _KAWETH_PACKET_FILTER_PROMISCUOUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KAWETH_PACKET_FILTER_PROMISCUOUS@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_netdev_mc_empty
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x19]
Lloh16:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_4:
Lloh19:
	adrp	x8, _KAWETH_PACKET_FILTER_ALL_MULTICAST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KAWETH_PACKET_FILTER_ALL_MULTICAST@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_6:
	str	w21, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_netif_wake_queue
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_KAWETH_PACKET_FILTER_DIRECTED,4,2 ; @KAWETH_PACKET_FILTER_DIRECTED
	.comm	_KAWETH_PACKET_FILTER_BROADCAST,4,2 ; @KAWETH_PACKET_FILTER_BROADCAST
	.comm	_KAWETH_PACKET_FILTER_MULTICAST,4,2 ; @KAWETH_PACKET_FILTER_MULTICAST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting Rx mode to %d\n"

	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_KAWETH_PACKET_FILTER_PROMISCUOUS,4,2 ; @KAWETH_PACKET_FILTER_PROMISCUOUS
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_KAWETH_PACKET_FILTER_ALL_MULTICAST,4,2 ; @KAWETH_PACKET_FILTER_ALL_MULTICAST
	.no_dead_strip	_kaweth_set_rx_mode
.subsections_via_symbols
