	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_destroy_qp
_i40iw_destroy_qp:                      ## @i40iw_destroy_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_to_iwqp
	movq	%rax, %rbx
	movl	$1, (%rax)
	movq	8(%rax), %rax
	movq	_IB_QPS_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.1:
	movq	_IB_QPS_RTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.2:
	movq	_I40IW_QP_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_i40iw_next_iw_state
LBB0_3:
	cmpl	$0, 36(%rbx)
	je	LBB0_4
LBB0_7:
	addq	$32, %rbx
	movq	%rbx, %rdi
	callq	_i40iw_rem_ref
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_i40iw_clean_cqes
	movq	24(%rbx), %rsi
	cmpq	16(%rbx), %rsi
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_i40iw_clean_cqes
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPS_INIT,8,3                ## @IB_QPS_INIT
	.comm	_IB_QPS_RTS,8,3                 ## @IB_QPS_RTS
	.comm	_I40IW_QP_STATE_ERROR,4,2       ## @I40IW_QP_STATE_ERROR
	.no_dead_strip	_i40iw_destroy_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_destroy_qp
_i40iw_destroy_qp:                      ; @i40iw_destroy_qp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_to_iwqp
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _IB_QPS_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPS_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IB_QPS_RTS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IB_QPS_RTS@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _I40IW_QP_STATE_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_QP_STATE_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_i40iw_next_iw_state
LBB0_2:
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_4
LBB0_3:
	add	x0, x19, #32
	bl	_i40iw_rem_ref
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_3
; %bb.5:
	mov	x0, x19
	bl	_i40iw_clean_cqes
	ldp	x8, x1, [x19, #16]
	cmp	x1, x8
	b.eq	LBB0_3
; %bb.6:
	mov	x0, x19
	bl	_i40iw_clean_cqes
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPS_INIT,8,3                ; @IB_QPS_INIT
	.comm	_IB_QPS_RTS,8,3                 ; @IB_QPS_RTS
	.comm	_I40IW_QP_STATE_ERROR,4,2       ; @I40IW_QP_STATE_ERROR
	.no_dead_strip	_i40iw_destroy_qp
.subsections_via_symbols
