	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnad_destroy_rx                ## -- Begin function bnad_destroy_rx
	.p2align	4, 0x90
_bnad_destroy_rx:                       ## @bnad_destroy_rx
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	40(%rdi), %rdx
	leaq	(%rsi,%rsi,2), %r15
	cmpq	$0, 8(%rdx,%r15,8)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	32(%rdi), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rsi,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%r15,8), %r12
	addq	$8, %r12
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_7
## %bb.2:
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_BNAD_CF_DIM_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.3:
	movq	_BNAD_RF_DIM_TIMER_RUNNING@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	16(%rbx), %r13
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_clear_bit
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	12(%rbx), %rdi
	callq	_del_timer_sync
	jmp	LBB0_6
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_6:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_7:
	leaq	(%rdx,%r15,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_init_completion
	leaq	4(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rdi
	movq	_BNA_HARD_CLEANUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_bnad_cb_rx_disabled@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bna_rx_disable
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_wait_for_completion
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax,%r15,8), %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_BNA_INTR_T_MSIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_9
## %bb.8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_bnad_rx_msix_unregister
LBB0_9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bnad_napi_delete
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_bna_rx_destroy
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnad_rx_res_free               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNAD_CF_DIM_ENABLED,4,2        ## @BNAD_CF_DIM_ENABLED
	.comm	_BNAD_RF_DIM_TIMER_RUNNING,4,2  ## @BNAD_RF_DIM_TIMER_RUNNING
	.comm	_BNA_HARD_CLEANUP,4,2           ## @BNA_HARD_CLEANUP
	.comm	_bnad_cb_rx_disabled,4,2        ## @bnad_cb_rx_disabled
	.comm	_BNA_INTR_T_MSIX,8,3            ## @BNA_INTR_T_MSIX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnad_destroy_rx                ; -- Begin function bnad_destroy_rx
	.p2align	2
_bnad_destroy_rx:                       ; @bnad_destroy_rx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x27, [x0, #40]
	mov	w8, #24
	madd	x20, x1, x8, x27
	mov	x25, x20
	ldr	x8, [x25, #8]!
	cbz	x8, LBB0_5
; %bb.1:
	mov	x22, x1
	mov	x19, x0
	ldp	x8, x26, [x0, #24]
	ldr	x21, [x8, x1, lsl #3]
	cbnz	x1, LBB0_7
; %bb.2:
	add	x23, x19, #4
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _BNAD_CF_DIM_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNAD_CF_DIM_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh3:
	adrp	x28, _BNAD_RF_DIM_TIMER_RUNNING@GOTPAGE
Lloh4:
	ldr	x28, [x28, _BNAD_RF_DIM_TIMER_RUNNING@GOTPAGEOFF]
	ldr	w0, [x28]
	add	x24, x19, #16
	mov	x1, x24
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x28]
	mov	x1, x24
	bl	_clear_bit
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	add	x0, x19, #12
	bl	_del_timer_sync
	b	LBB0_7
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x23
	bl	_spin_unlock_irqrestore
LBB0_7:
	add	x24, x19, #8
	mov	x0, x24
	bl	_init_completion
	add	x23, x19, #4
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x0, [x25]
Lloh5:
	adrp	x8, _BNA_HARD_CLEANUP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BNA_HARD_CLEANUP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _bnad_cb_rx_disabled@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bnad_cb_rx_disabled@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_bna_rx_disable
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	mov	x0, x24
	bl	_wait_for_completion
	mov	w8, #24
	madd	x8, x22, x8, x27
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _BNA_INTR_T_MSIX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BNA_INTR_T_MSIX@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	w2, [x26, x22, lsl #2]
	mov	x0, x19
	mov	x1, x20
	bl	_bnad_rx_msix_unregister
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	bl	_bnad_napi_delete
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x0, [x25]
	bl	_bna_rx_destroy
	stp	xzr, xzr, [x20]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_bnad_rx_res_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BNAD_CF_DIM_ENABLED,4,2        ; @BNAD_CF_DIM_ENABLED
	.comm	_BNAD_RF_DIM_TIMER_RUNNING,4,2  ; @BNAD_RF_DIM_TIMER_RUNNING
	.comm	_BNA_HARD_CLEANUP,4,2           ; @BNA_HARD_CLEANUP
	.comm	_bnad_cb_rx_disabled,4,2        ; @bnad_cb_rx_disabled
	.comm	_BNA_INTR_T_MSIX,8,3            ; @BNA_INTR_T_MSIX
.subsections_via_symbols
