	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bna_rx_mode_set                ## -- Begin function bna_rx_mode_set
	.p2align	4, 0x90
_bna_rx_mode_set:                       ## @bna_rx_mode_set
	.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
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	%esi, %edi
	movl	%edx, %esi
	callq	_is_promisc_enable
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%r14), %rax
	movq	(%rax), %rdx
	movq	_BFI_INVALID_RID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	je	LBB0_3
## %bb.2:
	movq	24(%r14), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_23
LBB0_3:
	movq	_BNA_CB_FAIL@GOTPCREL(%rip), %rbx
	cmpq	%rcx, 8(%rax)
	jne	LBB0_24
## %bb.4:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_is_default_enable
	testq	%rax, %rax
	jne	LBB0_24
LBB0_5:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_is_default_enable
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	(%r14), %rax
	movq	8(%rax), %rdx
	movq	_BFI_INVALID_RID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	je	LBB0_8
## %bb.7:
	movq	24(%r14), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_23
LBB0_8:
	cmpq	%rcx, (%rax)
	jne	LBB0_23
LBB0_9:
	leaq	8(%r14), %rbx
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_is_promisc_enable
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_bna_rxf_promisc_enable
	jmp	LBB0_15
LBB0_23:
	movq	_BNA_CB_FAIL@GOTPCREL(%rip), %rbx
	jmp	LBB0_24
LBB0_13:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_is_promisc_disable
	testq	%rax, %rax
	je	LBB0_25
## %bb.14:
	movq	%rbx, %rdi
	callq	_bna_rxf_promisc_disable
LBB0_15:
	testq	%rax, %rax
	setne	%r13b
LBB0_16:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_is_allmulti_enable
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_bna_rxf_allmulti_enable
	testq	%rax, %rax
	je	LBB0_20
	jmp	LBB0_21
LBB0_18:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_is_allmulti_disable
	testq	%rax, %rax
	je	LBB0_26
## %bb.19:
	movq	%rbx, %rdi
	callq	_bna_rxf_allmulti_disable
	testq	%rax, %rax
	jne	LBB0_21
LBB0_20:
	xorb	$1, %r13b
	jne	LBB0_22
LBB0_21:
	movq	$0, 16(%r14)
	movq	(%r14), %rax
	movl	16(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_RXF_E_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bfa_fsm_send_event
LBB0_22:
	movq	_BNA_CB_SUCCESS@GOTPCREL(%rip), %rbx
LBB0_24:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	xorl	%r13d, %r13d
	jmp	LBB0_16
LBB0_26:
	testb	%r13b, %r13b
	jne	LBB0_21
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_BFI_INVALID_RID,8,3            ## @BFI_INVALID_RID
	.comm	_RXF_E_CONFIG,4,2               ## @RXF_E_CONFIG
	.comm	_BNA_CB_SUCCESS,4,2             ## @BNA_CB_SUCCESS
	.comm	_BNA_CB_FAIL,4,2                ## @BNA_CB_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bna_rx_mode_set                ; -- Begin function bna_rx_mode_set
	.p2align	2
_bna_rx_mode_set:                       ; @bna_rx_mode_set
	.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, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_is_promisc_enable
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
	ldr	x10, [x8]
Lloh0:
	adrp	x9, _BFI_INVALID_RID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BFI_INVALID_RID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x10, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	x11, [x19, #24]
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_11
LBB0_3:
	ldr	x8, [x8, #8]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	bl	_is_default_enable
	cbnz	x0, LBB0_11
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	bl	_is_default_enable
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x8, [x19]
	ldr	x10, [x8, #8]
Lloh3:
	adrp	x9, _BFI_INVALID_RID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BFI_INVALID_RID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x10, x9
	b.eq	LBB0_8
; %bb.7:
	ldr	x11, [x19, #24]
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_11
LBB0_8:
	ldr	x8, [x8]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_9:
	add	x22, x19, #8
	mov	x0, x21
	mov	x1, x20
	bl	_is_promisc_enable
	cbz	x0, LBB0_12
; %bb.10:
	mov	x0, x22
	bl	_bna_rxf_promisc_enable
	b	LBB0_14
LBB0_11:
Lloh6:
	adrp	x8, _BNA_CB_FAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNA_CB_FAIL@GOTPAGEOFF]
	b	LBB0_22
LBB0_12:
	mov	x0, x21
	mov	x1, x20
	bl	_is_promisc_disable
	cbz	x0, LBB0_23
; %bb.13:
	mov	x0, x22
	bl	_bna_rxf_promisc_disable
LBB0_14:
	cmp	x0, #0
	cset	w23, ne
LBB0_15:
	mov	x0, x21
	mov	x1, x20
	bl	_is_allmulti_enable
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x22
	bl	_bna_rxf_allmulti_enable
	cbz	x0, LBB0_19
	b	LBB0_20
LBB0_17:
	mov	x0, x21
	mov	x1, x20
	bl	_is_allmulti_disable
	cbz	x0, LBB0_24
; %bb.18:
	mov	x0, x22
	bl	_bna_rxf_allmulti_disable
	cbnz	x0, LBB0_20
LBB0_19:
	eor	w8, w23, #0x1
	tbnz	w8, #0, LBB0_21
LBB0_20:
	str	xzr, [x19, #16]
	ldr	x8, [x19]
	ldr	w8, [x8, #16]
	str	w8, [x19, #8]
Lloh8:
	adrp	x8, _RXF_E_CONFIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RXF_E_CONFIG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_bfa_fsm_send_event
LBB0_21:
Lloh11:
	adrp	x8, _BNA_CB_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BNA_CB_SUCCESS@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	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
	ret
LBB0_23:
	mov	w23, #0
	b	LBB0_15
LBB0_24:
	cbnz	w23, LBB0_20
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BFI_INVALID_RID,8,3            ; @BFI_INVALID_RID
	.comm	_RXF_E_CONFIG,4,2               ; @RXF_E_CONFIG
	.comm	_BNA_CB_SUCCESS,4,2             ; @BNA_CB_SUCCESS
	.comm	_BNA_CB_FAIL,4,2                ; @BNA_CB_FAIL
.subsections_via_symbols
