	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nes_destroy_nic_qp             ## -- Begin function nes_destroy_nic_qp
	.p2align	4, 0x90
_nes_destroy_nic_qp:                    ## @nes_destroy_nic_qp
	.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	$40, %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	112(%rdi), %r15
	movq	56(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_nes_destroy_mgt
LBB0_2:
	movq	_NES_IDX_WQM_CONFIG0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_nes_read_indexed
	movl	(%r14), %esi
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%eax, %edx
	andl	$-32769, %edx                   ## imm = 0xFFFF7FFF
	movq	%r15, %rdi
	callq	_nes_write_indexed
	movq	24(%rbx), %rax
	cmpq	%rax, 16(%rbx)
	je	LBB0_5
## %bb.3:
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	88(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %rax
	movl	(%r15), %edi
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	movl	(%r14), %ecx
	callq	_pci_unmap_single
	movq	24(%rbx), %rax
	movq	88(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, 24(%rbx)
	movq	(%rcx,%rax,8), %rdi
	callq	_dev_kfree_skb
	movslq	32(%rbx), %rax
	decq	%rax
	andq	24(%rbx), %rax
	movq	%rax, 24(%rbx)
	cmpq	%rax, 16(%rbx)
	jne	LBB0_4
LBB0_5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	48(%rbx), %r14
	cmpq	%r14, 40(%rbx)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
LBB0_16:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	28(%r14), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movslq	8(%r14), %r13
	movq	32(%r14), %r15
	leaq	(%r15,%r13,4), %rdi
	movq	%r14, %rsi
	callq	_nes_fill_init_cqp_wqe
	movl	(%r15,%r13,4), %edi
	movq	_NES_CQP_WQE_OPCODE_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NES_CQP_DESTROY_QP@GOTPCREL(%rip), %rax
	movq	_NES_CQP_QP_TYPE_NIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_set_wqe_32bit_value
	movl	(%r15,%r13,4), %edi
	movq	_NES_CQP_WQE_ID_IDX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	60(%rbx), %edx
	callq	_set_wqe_32bit_value
	leal	1(%r13), %eax
	xorl	%ecx, %ecx
	cmpl	12(%r14), %eax
	cmovgel	%ecx, %eax
	movq	32(%r14), %r12
	movslq	%eax, %r13
	leaq	(%r12,%r13,4), %rdi
	movq	%r14, %rsi
	callq	_nes_fill_init_cqp_wqe
	movl	(%r12,%r13,4), %edi
	movq	_NES_CQP_WQE_OPCODE_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NES_CQP_DESTROY_CQ@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	104(%rcx), %edx
	shll	$16, %edx
	orl	(%rax), %edx
	callq	_set_wqe_32bit_value
	movl	(%r12,%r13,4), %edi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	(%r15), %esi
	movq	%r14, %rbx
	movl	48(%r14), %edx
	shll	$16, %edx
	orl	96(%r12), %edx
	callq	_set_wqe_32bit_value
	incl	%r13d
	cmpl	12(%r14), %r13d
	movl	$0, %eax
	cmovgel	%eax, %r13d
	movl	%r13d, 8(%r14)
	xorl	%eax, %eax
	callq	_barrier
	movq	_NES_WQE_ALLOC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	40(%r14), %rdi
	movl	$41943040, %esi                 ## imm = 0x2800000
	orl	16(%r14), %esi
	callq	_nes_write32
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_NES_DBG_SHUTDOWN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	20(%rbx), %r8d
	movl	8(%rbx), %ecx
	movl	12(%rbx), %r9d
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_nes_debug
	xorl	%esi, %esi
	cmpl	%r13d, 20(%rbx)
	movl	24(%rbx), %edi
	sete	%sil
	movq	_NES_EVENT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_timeout
	movl	%eax, %r15d
	movl	(%r14), %edi
	movl	8(%rbx), %r8d
	movl	20(%rbx), %r9d
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_nes_debug
	testl	%r15d, %r15d
	jne	LBB0_18
## %bb.17:
	movl	(%r14), %edi
	movl	60(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_nes_debug
LBB0_18:
	movl	(%rbx), %edi
	movl	8(%r12), %esi
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	callq	_pci_free_consistent
	movq	_NES_IDX_WQM_CONFIG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nes_write_indexed              ## TAILCALL
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rax
	movslq	56(%rbx), %r14
	decq	%r14
	andq	%rax, %r14
	movq	%r14, 48(%rbx)
	cmpq	%r14, 40(%rbx)
	je	LBB0_16
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	80(%rbx), %r13
	movq	(%r13,%r14,8), %r15
	movq	_NES_NIC_SQ_WQE_LENGTH_0_TAG_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	16(%r15,%rbx,4), %rdi
	callq	_le16_to_cpu
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%r15,%rbx,4), %r12
	addq	$8, %r12
	movq	(%r13,%r14,8), %rax
	movq	_NES_NIC_SQ_WQE_FRAG0_LOW_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	8(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movq	(%r13,%r14,8), %rax
	movq	_NES_NIC_SQ_WQE_FRAG0_HIGH_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	8(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	48(%rax), %rdi
	movl	72(%rax), %esi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movq	8(%r12), %rdi
	callq	_le16_to_cpu
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_pci_unmap_single
	movl	$2, %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	%r15, %r15
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%r12,%r15,4)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	(%r13,%r14,8), %rax
	movq	_NES_NIC_SQ_WQE_FRAG0_LOW_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r15, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movq	(%r13,%r14,8), %rax
	movq	_NES_NIC_SQ_WQE_FRAG0_HIGH_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r15, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movq	(%r12,%r15,4), %rdi
	callq	_le16_to_cpu
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_pci_unmap_page
	addq	$2, %r15
	cmpq	$10, %r15
	jne	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	48(%rbx), %rax
	movq	64(%rbx), %rcx
	movq	(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	callq	_dev_kfree_skb
	movq	48(%rbx), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_IDX_WQM_CONFIG0,4,2        ## @NES_IDX_WQM_CONFIG0
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_NES_NIC_SQ_WQE_LENGTH_0_TAG_IDX,8,3 ## @NES_NIC_SQ_WQE_LENGTH_0_TAG_IDX
	.comm	_NES_NIC_SQ_WQE_FRAG0_LOW_IDX,8,3 ## @NES_NIC_SQ_WQE_FRAG0_LOW_IDX
	.comm	_NES_NIC_SQ_WQE_FRAG0_HIGH_IDX,8,3 ## @NES_NIC_SQ_WQE_FRAG0_HIGH_IDX
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_NES_CQP_WQE_OPCODE_IDX,4,2     ## @NES_CQP_WQE_OPCODE_IDX
	.comm	_NES_CQP_DESTROY_QP,4,2         ## @NES_CQP_DESTROY_QP
	.comm	_NES_CQP_QP_TYPE_NIC,4,2        ## @NES_CQP_QP_TYPE_NIC
	.comm	_NES_CQP_WQE_ID_IDX,4,2         ## @NES_CQP_WQE_ID_IDX
	.comm	_NES_CQP_DESTROY_CQ,4,2         ## @NES_CQP_DESTROY_CQ
	.comm	_NES_WQE_ALLOC,8,3              ## @NES_WQE_ALLOC
	.comm	_NES_DBG_SHUTDOWN,4,2           ## @NES_DBG_SHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Waiting for CQP, cqp_head=%u, cqp.sq_head=%u, cqp.sq_tail=%u, cqp.sq_size=%u\n"

	.comm	_NES_EVENT_TIMEOUT,4,2          ## @NES_EVENT_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"Destroy NIC QP returned, wait_event_timeout ret = %u, cqp_head=%u, cqp.sq_head=%u, cqp.sq_tail=%u\n"

L_.str.2:                               ## @.str.2
	.asciz	"NIC QP%u destroy timeout expired\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nes_destroy_nic_qp             ; -- Begin function nes_destroy_nic_qp
	.p2align	2
_nes_destroy_nic_qp:                    ; @nes_destroy_nic_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x0
	ldr	x19, [x0, #112]
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_nes_destroy_mgt
LBB0_2:
Lloh0:
	adrp	x21, _NES_IDX_WQM_CONFIG0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NES_IDX_WQM_CONFIG0@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_nes_read_indexed
	ldr	w1, [x21]
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	and	w2, w0, #0xffff7fff
	mov	x0, x19
	bl	_nes_write_indexed
	ldp	x9, x8, [x20, #16]
	cmp	x9, x8
	b.eq	LBB0_5
; %bb.3:
Lloh2:
	adrp	x21, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #88]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x8, [x8]
	ldr	w0, [x19]
	ldp	x2, x1, [x8]
	ldr	w3, [x21]
	bl	_pci_unmap_single
	ldr	x8, [x20, #88]
	ldr	x9, [x20, #24]
	add	x10, x9, #1
	str	x10, [x20, #24]
	ldr	x0, [x8, x9, lsl #3]
	bl	_dev_kfree_skb
	ldrsw	x8, [x20, #32]
	sub	x8, x8, #1
	ldp	x10, x9, [x20, #16]
	and	x8, x9, x8
	str	x8, [x20, #24]
	cmp	x10, x8
	b.ne	LBB0_4
LBB0_5:
	ldp	x8, x21, [x20, #40]
	cmp	x8, x21
	b.ne	LBB0_9
LBB0_6:
	add	x22, x19, #28
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldrsw	x21, [x19, #8]
	ldr	x8, [x19, #32]
	add	x23, x8, x21, lsl #2
	mov	x0, x23
	mov	x1, x19
	bl	_nes_fill_init_cqp_wqe
	ldr	w0, [x23]
Lloh4:
	adrp	x24, _NES_CQP_WQE_OPCODE_IDX@GOTPAGE
Lloh5:
	ldr	x24, [x24, _NES_CQP_WQE_OPCODE_IDX@GOTPAGEOFF]
Lloh6:
	adrp	x8, _NES_CQP_DESTROY_QP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NES_CQP_DESTROY_QP@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _NES_CQP_QP_TYPE_NIC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NES_CQP_QP_TYPE_NIC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_set_wqe_32bit_value
	ldr	w0, [x23]
Lloh12:
	adrp	x25, _NES_CQP_WQE_ID_IDX@GOTPAGE
Lloh13:
	ldr	x25, [x25, _NES_CQP_WQE_ID_IDX@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w2, [x20, #60]
	bl	_set_wqe_32bit_value
	add	w8, w21, #1
	ldr	w9, [x19, #12]
	cmp	w8, w9
	csinc	w21, wzr, w21, ge
	ldr	x8, [x19, #32]
	add	x23, x8, w21, sxtw #2
	mov	x0, x23
	mov	x1, x19
	bl	_nes_fill_init_cqp_wqe
	ldr	w0, [x23]
	ldr	w1, [x24]
Lloh14:
	adrp	x8, _NES_CQP_DESTROY_CQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NES_CQP_DESTROY_CQ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x20, #104]
	orr	w2, w8, w9, lsl #16
	bl	_set_wqe_32bit_value
	ldr	w0, [x23]
	ldr	w1, [x25]
	ldr	w8, [x20, #96]
	ldr	w9, [x19, #48]
	orr	w2, w8, w9, lsl #16
	bl	_set_wqe_32bit_value
	add	w8, w21, #1
	ldr	w9, [x19, #12]
	cmp	w8, w9
	csinc	w23, wzr, w21, ge
	str	w23, [x19, #8]
	bl	_barrier
Lloh17:
	adrp	x8, _NES_WQE_ALLOC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NES_WQE_ALLOC@GOTPAGEOFF]
	ldr	x9, [x19, #40]
Lloh19:
	ldr	x8, [x8]
	add	x0, x8, x9
	ldr	w8, [x19, #16]
	mov	w9, #41943040
	orr	w1, w8, w9
	bl	_nes_write32
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh20:
	adrp	x21, _NES_DBG_SHUTDOWN@GOTPAGE
Lloh21:
	ldr	x21, [x21, _NES_DBG_SHUTDOWN@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w8, [x19, #20]
	ldp	w9, w10, [x19, #8]
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_nes_debug
	ldp	w8, w0, [x19, #20]
	cmp	w8, w23
	cset	w1, eq
Lloh24:
	adrp	x8, _NES_EVENT_TIMEOUT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NES_EVENT_TIMEOUT@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	bl	_wait_event_timeout
	mov	x22, x0
	ldr	w0, [x21]
	ldr	w8, [x19, #8]
	ldr	w9, [x19, #20]
	stp	x8, x9, [sp, #8]
	str	x23, [sp]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_nes_debug
	cbnz	w22, LBB0_8
; %bb.7:
	ldr	w0, [x21]
	ldr	w2, [x20, #60]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_nes_debug
LBB0_8:
	ldr	w0, [x19]
	ldp	w2, w1, [x20, #4]
	ldr	w3, [x20]
	bl	_pci_free_consistent
Lloh31:
	adrp	x8, _NES_IDX_WQM_CONFIG0@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NES_IDX_WQM_CONFIG0@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_nes_write_indexed
LBB0_9:
Lloh34:
	adrp	x25, _NES_NIC_SQ_WQE_FRAG0_LOW_IDX@GOTPAGE
Lloh35:
	ldr	x25, [x25, _NES_NIC_SQ_WQE_FRAG0_LOW_IDX@GOTPAGEOFF]
Lloh36:
	adrp	x26, _NES_NIC_SQ_WQE_FRAG0_HIGH_IDX@GOTPAGE
Lloh37:
	ldr	x26, [x26, _NES_NIC_SQ_WQE_FRAG0_HIGH_IDX@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x8, #1
	ldrsw	x9, [x20, #56]
	sub	x9, x9, #1
	and	x21, x8, x9
	str	x21, [x20, #48]
	ldr	x8, [x20, #40]
	cmp	x8, x21
	b.eq	LBB0_6
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x20, #80]
	ldr	x8, [x28, x21, lsl #3]
Lloh38:
	adrp	x9, _NES_NIC_SQ_WQE_LENGTH_0_TAG_IDX@GOTPAGE
Lloh39:
	ldr	x9, [x9, _NES_NIC_SQ_WQE_LENGTH_0_TAG_IDX@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	add	x22, x8, x9, lsl #2
	ldr	x0, [x22, #16]
	bl	_le16_to_cpu
	cbz	x0, LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x22, #8
	lsl	x21, x21, #3
	ldr	x8, [x28, x21]
	ldr	x9, [x25]
	add	x8, x8, x9, lsl #2
	ldr	w0, [x8, #8]
	bl	_le32_to_cpu
	ldr	x8, [x28, x21]
	ldr	x9, [x26]
	add	x8, x8, x9, lsl #2
	ldr	w0, [x8, #8]
	bl	_le32_to_cpu
	ldr	x0, [x20, #48]
	ldr	w1, [x20, #72]
	bl	_test_and_clear_bit
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w22, [x19]
	ldr	x0, [x24, #8]
	bl	_le16_to_cpu
	mov	x2, x0
Lloh41:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_pci_unmap_single
	mov	w27, #2
	ldr	x8, [x24, x27, lsl #3]
	cbnz	x8, LBB0_15
	b	LBB0_22
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w27, #1
	ldr	x8, [x24, x27, lsl #3]
	cbz	x8, LBB0_22
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x28, x21]
	ldr	x9, [x25]
	lsl	x22, x27, #1
	add	x9, x9, x22
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	ldr	x8, [x28, x21]
	ldr	x9, [x26]
	add	x9, x9, x22
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	ldr	w22, [x19]
	ldr	x0, [x24, x27, lsl #3]
	bl	_le16_to_cpu
	mov	x2, x0
Lloh44:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_pci_unmap_page
	add	x23, x27, #1
	cmp	x23, #5
	b.eq	LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x24, x23, lsl #3]
	cbz	x8, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x28, x21]
	ldr	x9, [x25]
	lsl	x22, x23, #1
	add	x9, x9, x22
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	ldr	x8, [x28, x21]
	ldr	x9, [x26]
	add	x9, x9, x22
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	ldr	w22, [x19]
	ldr	x0, [x24, x23, lsl #3]
	bl	_le16_to_cpu
	mov	x2, x0
Lloh47:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh49:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_pci_unmap_page
	add	x23, x27, #2
	cmp	x23, #5
	b.eq	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x24, x23, lsl #3]
	cbz	x8, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x28, x21]
	ldr	x9, [x25]
	lsl	x22, x23, #1
	add	x9, x9, x22
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	ldr	x8, [x28, x21]
	ldr	x9, [x26]
	add	x9, x9, x22
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	ldr	w22, [x19]
	ldr	x0, [x24, x23, lsl #3]
	bl	_le16_to_cpu
	mov	x2, x0
Lloh50:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh52:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_pci_unmap_page
	add	x23, x27, #3
	cmp	x23, #5
	b.eq	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x24, x23, lsl #3]
	cbz	x8, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x28, x21]
	ldr	x9, [x25]
	lsl	x22, x23, #1
	add	x9, x9, x22
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	ldr	x8, [x28, x21]
	ldr	x9, [x26]
	add	x9, x9, x22
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	ldr	w22, [x19]
	ldr	x0, [x24, x23, lsl #3]
	bl	_le16_to_cpu
	mov	x2, x0
Lloh53:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh55:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_pci_unmap_page
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x20, #64]
	ldr	x8, [x20, #48]
	ldr	x0, [x9, x8, lsl #3]
	cbz	x0, LBB0_10
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_dev_kfree_skb
	ldr	x8, [x20, #48]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_IDX_WQM_CONFIG0,4,2        ; @NES_IDX_WQM_CONFIG0
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_NES_NIC_SQ_WQE_LENGTH_0_TAG_IDX,8,3 ; @NES_NIC_SQ_WQE_LENGTH_0_TAG_IDX
	.comm	_NES_NIC_SQ_WQE_FRAG0_LOW_IDX,8,3 ; @NES_NIC_SQ_WQE_FRAG0_LOW_IDX
	.comm	_NES_NIC_SQ_WQE_FRAG0_HIGH_IDX,8,3 ; @NES_NIC_SQ_WQE_FRAG0_HIGH_IDX
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_NES_CQP_WQE_OPCODE_IDX,4,2     ; @NES_CQP_WQE_OPCODE_IDX
	.comm	_NES_CQP_DESTROY_QP,4,2         ; @NES_CQP_DESTROY_QP
	.comm	_NES_CQP_QP_TYPE_NIC,4,2        ; @NES_CQP_QP_TYPE_NIC
	.comm	_NES_CQP_WQE_ID_IDX,4,2         ; @NES_CQP_WQE_ID_IDX
	.comm	_NES_CQP_DESTROY_CQ,4,2         ; @NES_CQP_DESTROY_CQ
	.comm	_NES_WQE_ALLOC,8,3              ; @NES_WQE_ALLOC
	.comm	_NES_DBG_SHUTDOWN,4,2           ; @NES_DBG_SHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Waiting for CQP, cqp_head=%u, cqp.sq_head=%u, cqp.sq_tail=%u, cqp.sq_size=%u\n"

	.comm	_NES_EVENT_TIMEOUT,4,2          ; @NES_EVENT_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"Destroy NIC QP returned, wait_event_timeout ret = %u, cqp_head=%u, cqp.sq_head=%u, cqp.sq_tail=%u\n"

l_.str.2:                               ; @.str.2
	.asciz	"NIC QP%u destroy timeout expired\n"

.subsections_via_symbols
