	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_stop
_bnad_stop:                             ## @bnad_stop
	.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
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_bnad_stats_timer_stop
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_init_completion
	leaq	12(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	leaq	16(%rbx), %rdi
	movq	_BNA_HARD_CLEANUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_bnad_cb_enet_disabled@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bna_enet_disable
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_wait_for_completion
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bnad_destroy_tx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bnad_destroy_rx
	movq	_BNAD_CF_ALLMULTI@GOTPCREL(%rip), %rax
	movq	_BNAD_CF_PROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	movq	%rbx, %rdi
	callq	_bnad_mbox_irq_sync
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNA_HARD_CLEANUP,4,2           ## @BNA_HARD_CLEANUP
	.comm	_bnad_cb_enet_disabled,4,2      ## @bnad_cb_enet_disabled
	.comm	_BNAD_CF_ALLMULTI,4,2           ## @BNAD_CF_ALLMULTI
	.comm	_BNAD_CF_PROMISC,4,2            ## @BNAD_CF_PROMISC
	.no_dead_strip	_bnad_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_stop
_bnad_stop:                             ; @bnad_stop
	.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
	bl	_netdev_priv
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	_bnad_stats_timer_stop
	add	x21, x20, #8
	mov	x0, x21
	bl	_init_completion
	add	x22, x20, #12
	mov	x0, x22
	bl	_spin_lock_irqsave
	add	x0, x20, #16
Lloh0:
	adrp	x8, _BNA_HARD_CLEANUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNA_HARD_CLEANUP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _bnad_cb_enet_disabled@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bnad_cb_enet_disabled@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_bna_enet_disable
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	bl	_wait_for_completion
	mov	x0, x20
	mov	w1, #0
	bl	_bnad_destroy_tx
	mov	x0, x20
	mov	w1, #0
	bl	_bnad_destroy_rx
Lloh6:
	adrp	x8, _BNAD_CF_ALLMULTI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNAD_CF_ALLMULTI@GOTPAGEOFF]
Lloh8:
	adrp	x9, _BNAD_CF_PROMISC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BNAD_CF_PROMISC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	mov	x0, x20
	bl	_bnad_mbox_irq_sync
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BNA_HARD_CLEANUP,4,2           ; @BNA_HARD_CLEANUP
	.comm	_bnad_cb_enet_disabled,4,2      ; @bnad_cb_enet_disabled
	.comm	_BNAD_CF_ALLMULTI,4,2           ; @BNAD_CF_ALLMULTI
	.comm	_BNAD_CF_PROMISC,4,2            ; @BNAD_CF_PROMISC
	.no_dead_strip	_bnad_stop
.subsections_via_symbols
