	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnad_destroy_tx                ## -- Begin function bnad_destroy_tx
	.p2align	4, 0x90
_bnad_destroy_tx:                       ## @bnad_destroy_tx
	.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	24(%rdi), %r13
	leaq	(%rsi,%rsi,2), %r14
	cmpq	$0, 8(%r13,%r14,8)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	leaq	(,%r14,8), %r15
	addq	%r13, %r15
	movq	(%rax,%rsi,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_init_completion
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r15), %rdi
	movq	_BNA_HARD_CLEANUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_bnad_cb_tx_disabled@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bna_tx_disable
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	callq	_wait_for_completion
	movq	16(%r13,%r14,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_BNA_INTR_T_MSIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_bnad_tx_msix_unregister
LBB0_3:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r15), %rdi
	callq	_bna_tx_destroy
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnad_tx_res_free               ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNA_HARD_CLEANUP,4,2           ## @BNA_HARD_CLEANUP
	.comm	_bnad_cb_tx_disabled,4,2        ## @bnad_cb_tx_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_tx                ; -- Begin function bnad_destroy_tx
	.p2align	2
_bnad_destroy_tx:                       ; @bnad_destroy_tx
	.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
	ldr	x25, [x0, #24]
	mov	w8, #24
	madd	x20, x1, x8, x25
	mov	x24, x20
	ldr	x8, [x24, #8]!
	cbz	x8, LBB0_4
; %bb.1:
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8, x1, lsl #3]
	add	x23, x0, #8
	mov	x0, x23
	bl	_init_completion
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x0, [x24]
Lloh0:
	adrp	x8, _BNA_HARD_CLEANUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNA_HARD_CLEANUP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _bnad_cb_tx_disabled@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bnad_cb_tx_disabled@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_bna_tx_disable
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x23
	bl	_wait_for_completion
	mov	w8, #24
	madd	x8, x22, x8, x25
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _BNA_INTR_T_MSIX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNA_INTR_T_MSIX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w2, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_bnad_tx_msix_unregister
LBB0_3:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x0, [x24]
	bl	_bna_tx_destroy
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	stp	xzr, xzr, [x20]
	mov	x0, x19
	mov	x1, x21
	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	_bnad_tx_res_free
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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_tx_disabled,4,2        ; @bnad_cb_tx_disabled
	.comm	_BNA_INTR_T_MSIX,8,3            ; @BNA_INTR_T_MSIX
.subsections_via_symbols
