	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnad_set_rx_mode               ## -- Begin function bnad_set_rx_mode
	.p2align	4, 0x90
_bnad_set_rx_mode:                      ## @bnad_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, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	leaq	4(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	(%r15), %ecx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdx
	movl	(%r14), %eax
	movq	_BNAD_CF_PROMISC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	testl	%ecx, (%rdx)
	je	LBB0_3
## %bb.1:
	xorl	%edx, %edx
	testl	%eax, %edi
	jne	LBB0_8
## %bb.5:
	movq	_BNAD_RXMODE_PROMISC_DEFAULT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edi, %eax
	movl	%edx, %esi
	jmp	LBB0_6
LBB0_3:
	testl	%eax, %edi
	je	LBB0_7
## %bb.4:
	movq	_BNAD_RXMODE_PROMISC_DEFAULT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	notl	%esi
	notl	%edi
	andl	%edi, %eax
LBB0_6:
	movl	%eax, (%r14)
	jmp	LBB0_9
LBB0_7:
	xorl	%edx, %edx
LBB0_8:
	xorl	%esi, %esi
LBB0_9:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rbx
	movq	_BNAD_CF_ALLMULTI@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%ecx, (%rbx)
	je	LBB0_12
## %bb.10:
	testl	%eax, %edi
	jne	LBB0_15
## %bb.11:
	movq	_BNA_RXMODE_ALLMULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	%ebx, %esi
	orl	%eax, %edi
	jmp	LBB0_14
LBB0_12:
	testl	%eax, %edi
	je	LBB0_15
## %bb.13:
	movq	_BNA_RXMODE_ALLMULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	notl	%ecx
	andl	%ecx, %esi
	notl	%edi
	andl	%eax, %edi
LBB0_14:
	orl	%ebx, %edx
	movl	%edi, (%r14)
LBB0_15:
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.16:
	xorl	%ecx, %ecx
	callq	_bna_rx_mode_set
	movq	%r15, %rdi
	callq	_netdev_mc_empty
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movq	%r15, %rdi
	callq	_netdev_mc_count
	movl	%eax, %r12d
	incl	%r12d
	movq	_ETH_ALEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	imull	%r12d, %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%rax, %r13
	movq	_bnad_bcast_addr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_memcpy
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_bnad_netdev_mc_list_get
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_bna_rx_mcast_listset
	movq	%r13, %rdi
	callq	_kfree
LBB0_19:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_BNAD_CF_PROMISC,4,2            ## @BNAD_CF_PROMISC
	.comm	_BNAD_RXMODE_PROMISC_DEFAULT,4,2 ## @BNAD_RXMODE_PROMISC_DEFAULT
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_BNAD_CF_ALLMULTI,4,2           ## @BNAD_CF_ALLMULTI
	.comm	_BNA_RXMODE_ALLMULTI,4,2        ## @BNA_RXMODE_ALLMULTI
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_bnad_bcast_addr,8,3            ## @bnad_bcast_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnad_set_rx_mode               ; -- Begin function bnad_set_rx_mode
	.p2align	2
_bnad_set_rx_mode:                      ; @bnad_set_rx_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w9, [x20]
Lloh0:
	adrp	x8, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x8]
	ldr	w8, [x21]
Lloh3:
	adrp	x10, _BNAD_CF_PROMISC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BNAD_CF_PROMISC@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w11, w10, w8
	tst	w12, w9
	b.eq	LBB0_3
; %bb.1:
	cbnz	w11, LBB0_6
; %bb.2:
Lloh6:
	adrp	x11, _BNAD_RXMODE_PROMISC_DEFAULT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _BNAD_RXMODE_PROMISC_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x11]
	orr	w8, w10, w8
	mov	x1, x2
	b	LBB0_5
LBB0_3:
	cbz	w11, LBB0_6
; %bb.4:
Lloh9:
	adrp	x11, _BNAD_RXMODE_PROMISC_DEFAULT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _BNAD_RXMODE_PROMISC_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x11]
	mvn	w1, w2
	bic	w8, w8, w10
LBB0_5:
	str	w8, [x21]
	b	LBB0_7
LBB0_6:
	mov	w2, #0
	mov	w1, #0
LBB0_7:
Lloh12:
	adrp	x10, _IFF_ALLMULTI@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x10]
Lloh15:
	adrp	x10, _BNAD_CF_ALLMULTI@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BNAD_CF_ALLMULTI@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	and	w11, w10, w8
	tst	w12, w9
	b.eq	LBB0_10
; %bb.8:
	cbnz	w11, LBB0_13
; %bb.9:
Lloh18:
	adrp	x9, _BNA_RXMODE_ALLMULTI@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BNA_RXMODE_ALLMULTI@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w9, w1
	orr	w8, w10, w8
	b	LBB0_12
LBB0_10:
	cbz	w11, LBB0_13
; %bb.11:
Lloh21:
	adrp	x9, _BNA_RXMODE_ALLMULTI@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BNA_RXMODE_ALLMULTI@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	bic	w1, w1, w9
	bic	w8, w8, w10
LBB0_12:
	orr	w2, w9, w2
	str	w8, [x21]
LBB0_13:
	ldr	x8, [x21, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_17
; %bb.14:
	mov	x3, #0
	bl	_bna_rx_mode_set
	mov	x0, x20
	bl	_netdev_mc_empty
	cbnz	w0, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_netdev_mc_count
Lloh24:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh25:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	add	w22, w0, #1
	ldr	w8, [x24]
	mul	w0, w22, w8
Lloh26:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_17
; %bb.16:
	mov	x23, x0
Lloh29:
	adrp	x8, _bnad_bcast_addr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _bnad_bcast_addr@GOTPAGEOFF]
Lloh31:
	ldr	x1, [x8]
	ldr	w2, [x24]
	bl	_memcpy
	mov	x0, x20
	mov	x1, x23
	bl	_bnad_netdev_mc_list_get
	ldr	x8, [x21, #8]
	ldr	x0, [x8]
	mov	x1, x22
	mov	x2, x23
	mov	x3, #0
	bl	_bna_rx_mcast_listset
	mov	x0, x23
	bl	_kfree
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_BNAD_CF_PROMISC,4,2            ; @BNAD_CF_PROMISC
	.comm	_BNAD_RXMODE_PROMISC_DEFAULT,4,2 ; @BNAD_RXMODE_PROMISC_DEFAULT
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_BNAD_CF_ALLMULTI,4,2           ; @BNAD_CF_ALLMULTI
	.comm	_BNA_RXMODE_ALLMULTI,4,2        ; @BNA_RXMODE_ALLMULTI
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_bnad_bcast_addr,8,3            ; @bnad_bcast_addr
.subsections_via_symbols
