	.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, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	_BNAD_CF_PROMISC@GOTPCREL(%rip), %rax
	movq	_BNAD_CF_DEFAULT@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	(%rax), %ecx
	movq	_BNAD_CF_ALLMULTI@GOTPCREL(%rip), %r13
	orl	(%r13), %ecx
	notl	%ecx
	andl	(%rbx), %ecx
	movl	%ecx, (%rbx)
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%r15)
	je	LBB0_3
## %bb.2:
	movq	_BNAD_RXMODE_PROMISC_DEFAULT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_bnad_set_rx_mcast_fltr
	movl	(%r13), %r15d
	andl	(%rbx), %r15d
	je	LBB0_5
## %bb.4:
	movq	_BNA_RXMODE_ALLMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_5:
	movq	%rbx, %rdi
	callq	_bnad_set_rx_ucast_fltr
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	_BNA_RXMODE_DEFAULT@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_7:
	movq	_BNA_RXMODE_PROMISC@GOTPCREL(%rip), %rax
	movq	_BNA_RXMODE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_BNA_RXMODE_ALLMULTI@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movl	%r15d, %esi
	callq	_bna_rx_mode_set
LBB0_8:
	movq	%r14, %rdi
	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	_BNAD_CF_PROMISC,4,2            ## @BNAD_CF_PROMISC
	.comm	_BNAD_CF_DEFAULT,4,2            ## @BNAD_CF_DEFAULT
	.comm	_BNAD_CF_ALLMULTI,4,2           ## @BNAD_CF_ALLMULTI
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_BNAD_RXMODE_PROMISC_DEFAULT,4,2 ## @BNAD_RXMODE_PROMISC_DEFAULT
	.comm	_BNA_RXMODE_ALLMULTI,4,2        ## @BNA_RXMODE_ALLMULTI
	.comm	_BNA_RXMODE_DEFAULT,4,2         ## @BNA_RXMODE_DEFAULT
	.comm	_BNA_RXMODE_PROMISC,4,2         ## @BNA_RXMODE_PROMISC
.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	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	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _BNAD_CF_PROMISC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNAD_CF_PROMISC@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh2:
	adrp	x24, _BNAD_CF_DEFAULT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BNAD_CF_DEFAULT@GOTPAGEOFF]
	ldr	w10, [x24]
	orr	w9, w10, w9
Lloh4:
	adrp	x25, _BNAD_CF_ALLMULTI@GOTPAGE
Lloh5:
	ldr	x25, [x25, _BNAD_CF_ALLMULTI@GOTPAGEOFF]
	ldr	w10, [x25]
	orr	w9, w9, w10
	ldr	w10, [x20]
	bic	w9, w10, w9
	str	w9, [x20]
	ldr	w10, [x21]
Lloh6:
	adrp	x11, _IFF_PROMISC@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IFF_PROMISC@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x22, _BNA_RXMODE_ALLMULTI@GOTPAGE
Lloh10:
	ldr	x22, [x22, _BNA_RXMODE_ALLMULTI@GOTPAGEOFF]
Lloh11:
	adrp	x23, _BNA_RXMODE_DEFAULT@GOTPAGE
Lloh12:
	ldr	x23, [x23, _BNA_RXMODE_DEFAULT@GOTPAGEOFF]
	tst	w11, w10
	b.eq	LBB0_3
; %bb.2:
Lloh13:
	adrp	x10, _BNAD_RXMODE_PROMISC_DEFAULT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _BNAD_RXMODE_PROMISC_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x10]
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x20]
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_bnad_set_rx_mcast_fltr
	ldr	w8, [x20]
	ldr	w9, [x25]
	ldr	w10, [x22]
	tst	w9, w8
	csel	w21, wzr, w10, eq
	mov	x0, x20
	bl	_bnad_set_rx_ucast_fltr
	ldr	w8, [x20]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x23]
	orr	w21, w8, w21
LBB0_5:
Lloh16:
	adrp	x8, _BNA_RXMODE_PROMISC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BNA_RXMODE_PROMISC@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w2, w8, w9
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_bna_rx_mode_set
LBB0_6:
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BNAD_CF_PROMISC,4,2            ; @BNAD_CF_PROMISC
	.comm	_BNAD_CF_DEFAULT,4,2            ; @BNAD_CF_DEFAULT
	.comm	_BNAD_CF_ALLMULTI,4,2           ; @BNAD_CF_ALLMULTI
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_BNAD_RXMODE_PROMISC_DEFAULT,4,2 ; @BNAD_RXMODE_PROMISC_DEFAULT
	.comm	_BNA_RXMODE_ALLMULTI,4,2        ; @BNA_RXMODE_ALLMULTI
	.comm	_BNA_RXMODE_DEFAULT,4,2         ; @BNA_RXMODE_DEFAULT
	.comm	_BNA_RXMODE_PROMISC,4,2         ; @BNA_RXMODE_PROMISC
.subsections_via_symbols
