	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enic_set_rx_mode
_enic_set_rx_mode:                      ## @enic_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movl	(%rbx), %ecx
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	movq	%rax, %r12
	setne	-43(%rbp)                       ## 1-byte Folded Spill
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	testl	%ecx, (%rax)
	setne	-42(%rbp)                       ## 1-byte Folded Spill
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdx
	movb	$1, -41(%rbp)                   ## 1-byte Folded Spill
	movb	$1, %al
	testl	%ecx, (%rdx)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_netdev_uc_count
	movq	_ENIC_UNICAST_PERFECT_FILTERS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setg	%al
	movl	(%rbx), %ecx
LBB0_2:
	movzbl	%al, %r13d
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	testl	%ecx, %edx
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_netdev_mc_count
	movq	_ENIC_MULTICAST_PERFECT_FILTERS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setg	-41(%rbp)                       ## 1-byte Folded Spill
	jle	LBB0_5
## %bb.4:
	movl	(%r14), %edx
LBB0_5:
	movl	(%rbx), %ecx
LBB0_6:
	orl	%edx, %ecx
	movl	%r13d, %eax
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.7:
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	orl	%eax, %ecx
	cmpl	%ecx, (%r12)
	jne	LBB0_9
## %bb.10:
	testl	%r13d, %r13d
	je	LBB0_11
	jmp	LBB0_12
LBB0_9:
	xorl	%edx, %edx
	movb	-43(%rbp), %al                  ## 1-byte Reload
	movb	%al, %dl
	movb	-42(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r15b
	movzbl	-41(%rbp), %r9d                 ## 1-byte Folded Reload
	movl	%ecx, (%r12)
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	callq	_enic_dev_packet_filter
	testl	%r13d, %r13d
	jne	LBB0_12
LBB0_11:
	movq	%r12, %rdi
	callq	_enic_update_unicast_addr_list
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_13
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enic_update_multicast_addr_list ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_IFF_BROADCAST,4,2              ## @IFF_BROADCAST
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_ENIC_UNICAST_PERFECT_FILTERS,8,3 ## @ENIC_UNICAST_PERFECT_FILTERS
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_ENIC_MULTICAST_PERFECT_FILTERS,8,3 ## @ENIC_MULTICAST_PERFECT_FILTERS
	.no_dead_strip	_enic_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 enic_set_rx_mode
_enic_set_rx_mode:                      ; @enic_set_rx_mode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w20, ne
Lloh3:
	adrp	x9, _IFF_BROADCAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_BROADCAST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w21, ne
Lloh6:
	adrp	x25, _IFF_PROMISC@GOTPAGE
Lloh7:
	ldr	x25, [x25, _IFF_PROMISC@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w22, #1
	b	LBB0_3
LBB0_2:
	mov	x0, x23
	bl	_netdev_uc_count
Lloh8:
	adrp	x8, _ENIC_UNICAST_PERFECT_FILTERS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENIC_UNICAST_PERFECT_FILTERS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w22, gt
	ldr	w8, [x23]
LBB0_3:
Lloh11:
	adrp	x26, _IFF_ALLMULTI@GOTPAGE
Lloh12:
	ldr	x26, [x26, _IFF_ALLMULTI@GOTPAGEOFF]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w24, #1
	b	LBB0_6
LBB0_5:
	mov	x0, x23
	bl	_netdev_mc_count
Lloh13:
	adrp	x8, _ENIC_MULTICAST_PERFECT_FILTERS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENIC_MULTICAST_PERFECT_FILTERS@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w24, gt
	ldr	w8, [x23]
	ldr	w9, [x26]
	csel	w9, w9, wzr, gt
LBB0_6:
	orr	w8, w9, w8
	ldr	w9, [x25]
	cmp	w22, #0
	csel	w9, w9, wzr, ne
	orr	w8, w8, w9
	ldr	w9, [x19]
	cmp	w9, w8
	b.eq	LBB0_8
; %bb.7:
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	mov	x5, x24
	bl	_enic_dev_packet_filter
LBB0_8:
	tbnz	w22, #0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_enic_update_unicast_addr_list
	tbz	w24, #0, LBB0_11
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_enic_update_multicast_addr_list
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_IFF_BROADCAST,4,2              ; @IFF_BROADCAST
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_ENIC_UNICAST_PERFECT_FILTERS,8,3 ; @ENIC_UNICAST_PERFECT_FILTERS
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_ENIC_MULTICAST_PERFECT_FILTERS,8,3 ; @ENIC_MULTICAST_PERFECT_FILTERS
	.no_dead_strip	_enic_set_rx_mode
.subsections_via_symbols
