	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntb_transport_free_queue       ## -- Begin function ntb_transport_free_queue
	.p2align	4, 0x90
_ntb_transport_free_queue:              ## @ntb_transport_free_queue
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	80(%rdi), %rax
	movq	112(%rdi), %r14
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, (%rdi)
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	$0, 112(%rbx)
	movl	88(%rbx), %esi
	movq	%r14, %rdi
	callq	_dma_sync_wait
	movq	%r14, %rdi
	callq	_dmaengine_terminate_all
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	104(%rbx), %edx
	movl	108(%rbx), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	callq	_dma_unmap_resource
	movq	%r14, %rdi
	callq	_dma_release_channel
LBB0_3:
	movq	96(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	$0, 96(%rbx)
	movl	88(%rbx), %esi
	movq	%r14, %rdi
	callq	_dma_sync_wait
	movq	%r14, %rdi
	callq	_dmaengine_terminate_all
	movq	%r14, %rdi
	callq	_dma_release_channel
LBB0_5:
	movl	4(%rbx), %edi
	callq	_BIT_ULL
	movq	80(%rbx), %rdi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_ntb_db_set_mask
	leaq	76(%rbx), %rdi
	callq	_tasklet_kill
	leaq	72(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	leaq	28(%rbx), %r12
	leaq	36(%rbx), %r13
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 56(%rbx)
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ntb_list_rm
	testq	%rax, %rax
	je	LBB0_7
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rdi
	callq	_kfree
	jmp	LBB0_6
LBB0_7:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	32(%rbx), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ntb_list_rm
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_10
## %bb.8:
	movq	%rax, %r14
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_dev_warn
	movq	%r14, %rdi
	callq	_kfree
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ntb_list_rm
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_9
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	24(%rax), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ntb_list_rm
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rbx, %r14
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_warn
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ntb_list_rm
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
LBB0_13:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	leaq	20(%r14), %r13
	leaq	16(%r14), %rbx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ntb_list_rm
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rax, %rdi
	callq	_kfree
	jmp	LBB0_15
LBB0_16:
	movq	8(%r14), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	orl	%ecx, (%rax)
	movl	4(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_17:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Freeing item from non-empty rx_pend_q\n"

L_.str.1:                               ## @.str.1
	.asciz	"Freeing item from non-empty rx_post_q\n"

L_.str.2:                               ## @.str.2
	.asciz	"NTB Transport QP %d freed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntb_transport_free_queue       ; -- Begin function ntb_transport_free_queue
	.p2align	2
_ntb_transport_free_queue:              ; @ntb_transport_free_queue
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_18
; %bb.1:
	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	x19, x0
	ldr	x8, [x0, #80]
	ldr	x20, [x8]
	str	wzr, [x0]
	ldr	x21, [x0, #112]
	cbz	x21, LBB0_3
; %bb.2:
	str	xzr, [x19, #112]
	ldr	w1, [x19, #88]
	mov	x0, x21
	bl	_dma_sync_wait
	mov	x0, x21
	bl	_dmaengine_terminate_all
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldp	w2, w1, [x19, #104]
Lloh0:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w4, #0
	bl	_dma_unmap_resource
	mov	x0, x21
	bl	_dma_release_channel
LBB0_3:
	ldr	x21, [x19, #96]
	cbz	x21, LBB0_5
; %bb.4:
	str	xzr, [x19, #96]
	ldr	w1, [x19, #88]
	mov	x0, x21
	bl	_dma_sync_wait
	mov	x0, x21
	bl	_dmaengine_terminate_all
	mov	x0, x21
	bl	_dma_release_channel
LBB0_5:
	ldr	w0, [x19, #4]
	bl	_BIT_ULL
	mov	x21, x0
	ldr	x0, [x19, #80]
	mov	x1, x21
	bl	_ntb_db_set_mask
	add	x0, x19, #76
	bl	_tasklet_kill
	add	x0, x19, #72
	bl	_cancel_delayed_work_sync
	add	x22, x19, #28
	add	x23, x19, #36
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #40]
	stur	q0, [x19, #56]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_ntb_list_rm
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_kfree
	b	LBB0_6
LBB0_8:
	add	x23, x19, #32
	mov	x0, x22
	mov	x1, x23
	bl	_ntb_list_rm
	cbz	x0, LBB0_11
; %bb.9:
	mov	x25, x0
Lloh3:
	adrp	x24, l_.str@PAGE
Lloh4:
	add	x24, x24, l_.str@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_dev_warn
	mov	x0, x25
	bl	_kfree
	mov	x0, x22
	mov	x1, x23
	bl	_ntb_list_rm
	mov	x25, x0
	cbnz	x0, LBB0_10
LBB0_11:
	add	x23, x19, #24
	mov	x0, x22
	mov	x1, x23
	bl	_ntb_list_rm
	cbz	x0, LBB0_14
; %bb.12:
	mov	x25, x0
Lloh5:
	adrp	x24, l_.str.1@PAGE
Lloh6:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_dev_warn
	mov	x0, x25
	bl	_kfree
	mov	x0, x22
	mov	x1, x23
	bl	_ntb_list_rm
	mov	x25, x0
	cbnz	x0, LBB0_13
LBB0_14:
	add	x22, x19, #20
	add	x23, x19, #16
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_ntb_list_rm
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	bl	_kfree
	b	LBB0_15
LBB0_17:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	orr	w9, w9, w21
	str	w9, [x8]
	ldr	w2, [x19, #4]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	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	_dev_info
LBB0_18:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Freeing item from non-empty rx_pend_q\n"

l_.str.1:                               ; @.str.1
	.asciz	"Freeing item from non-empty rx_post_q\n"

l_.str.2:                               ; @.str.2
	.asciz	"NTB Transport QP %d freed\n"

.subsections_via_symbols
