	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_set_rx_mcast_fltr
_bnad_set_rx_mcast_fltr:                ## @bnad_set_rx_mcast_fltr
	.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, %r15
	movq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_netdev_mc_count
	movl	%eax, %r14d
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
LBB0_6:
	movq	_BNAD_CF_ALLMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	movq	(%r15), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bna_rx_mcast_delall            ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_netdev_mc_empty
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	12(%r15), %rdi
	callq	_bna_attr
	cmpl	(%rax), %r14d
	jg	LBB0_6
## %bb.3:
	incl	%r14d
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %r12
	movq	_bnad_bcast_addr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_ether_addr_copy
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_bnad_netdev_mc_list_get
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_bna_rx_mcast_listset
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	movq	_BNA_CB_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_6
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_bnad_bcast_addr,8,3            ## @bnad_bcast_addr
	.comm	_BNA_CB_SUCCESS,4,2             ## @BNA_CB_SUCCESS
	.comm	_BNAD_CF_ALLMULTI,4,2           ## @BNAD_CF_ALLMULTI
	.no_dead_strip	_bnad_set_rx_mcast_fltr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_set_rx_mcast_fltr
_bnad_set_rx_mcast_fltr:                ; @bnad_set_rx_mcast_fltr
	.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
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_netdev_mc_count
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _BNAD_CF_ALLMULTI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNAD_CF_ALLMULTI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x8, [x19]
	ldr	w0, [x8]
	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	_bna_rx_mcast_delall
LBB0_2:
	mov	x21, x0
	mov	x0, x20
	bl	_netdev_mc_empty
	cbz	x0, LBB0_4
LBB0_3:
	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
	ret
LBB0_4:
	add	x0, x19, #12
	bl	_bna_attr
	ldr	w8, [x0]
	cmp	w21, w8
	b.gt	LBB0_1
; %bb.5:
	add	w21, w21, #1
Lloh6:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_kcalloc
	cbz	x0, LBB0_1
; %bb.6:
	mov	x22, x0
Lloh12:
	adrp	x8, _bnad_bcast_addr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _bnad_bcast_addr@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	bl	_ether_addr_copy
	mov	x0, x20
	mov	x1, x22
	bl	_bnad_netdev_mc_list_get
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x22
	bl	_bna_rx_mcast_listset
	mov	x20, x0
	mov	x0, x22
	bl	_kfree
Lloh15:
	adrp	x8, _BNA_CB_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BNA_CB_SUCCESS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_bnad_bcast_addr,8,3            ; @bnad_bcast_addr
	.comm	_BNA_CB_SUCCESS,4,2             ; @BNA_CB_SUCCESS
	.comm	_BNAD_CF_ALLMULTI,4,2           ; @BNAD_CF_ALLMULTI
	.no_dead_strip	_bnad_set_rx_mcast_fltr
.subsections_via_symbols
