	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function greth_set_multicast_list
_greth_set_multicast_list:              ## @greth_set_multicast_list
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %r12
	movl	(%r12), %edi
	callq	_GRETH_REGLOAD
	movl	(%r14), %ecx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdx
	movq	_GRETH_CTRL_PR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	movl	%ebx, %esi
	orl	%eax, %esi
	notl	%ebx
	andl	%eax, %ebx
	testl	%ecx, (%rdx)
	cmovnel	%esi, %ebx
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.1:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	movl	8(%r12), %edi
	movl	$-1, %esi
	callq	_GRETH_REGSAVE
	movl	4(%r12), %edi
	movl	$-1, %esi
	callq	_GRETH_REGSAVE
LBB0_6:
	movq	_GRETH_CTRL_MCEN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movq	%r14, %rdi
	callq	_netdev_mc_empty
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_GRETH_CTRL_MCEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_7:
	movl	(%r12), %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GRETH_REGSAVE                  ## TAILCALL
LBB0_5:
	movq	%r14, %rdi
	callq	_greth_set_hash_filter
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_GRETH_CTRL_PR,4,2              ## @GRETH_CTRL_PR
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_GRETH_CTRL_MCEN,4,2            ## @GRETH_CTRL_MCEN
	.no_dead_strip	_greth_set_multicast_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function greth_set_multicast_list
_greth_set_multicast_list:              ; @greth_set_multicast_list
	.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	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x22]
	bl	_GRETH_REGLOAD
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _GRETH_CTRL_PR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GRETH_CTRL_PR@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w11, w10, w0
	bic	w10, w0, w10
	tst	w9, w8
	csel	w19, w10, w11, eq
	ldr	x9, [x21]
	cbz	x9, LBB0_6
; %bb.1:
Lloh6:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x22, #8]
	mov	w1, #-1
	bl	_GRETH_REGSAVE
	ldr	w0, [x22, #4]
	mov	w1, #-1
	bl	_GRETH_REGSAVE
LBB0_3:
Lloh9:
	adrp	x8, _GRETH_CTRL_MCEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GRETH_CTRL_MCEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w19, w8, w19
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_netdev_mc_empty
	cbz	x0, LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _GRETH_CTRL_MCEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GRETH_CTRL_MCEN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w19, w19, w8
LBB0_6:
	ldr	w0, [x22]
	mov	x1, 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	_GRETH_REGSAVE
LBB0_7:
	mov	x0, x20
	bl	_greth_set_hash_filter
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_GRETH_CTRL_PR,4,2              ; @GRETH_CTRL_PR
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_GRETH_CTRL_MCEN,4,2            ; @GRETH_CTRL_MCEN
	.no_dead_strip	_greth_set_multicast_list
.subsections_via_symbols
