	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function destroy_qp
_destroy_qp:                            ## @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	%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	%rsi, %r15
	movq	%rdi, %r14
	callq	_vq_req_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_CCWR_QP_DESTROY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	callq	_c2_wr_set_id
	movq	%r13, -48(%rbp)
	movl	(%r14), %eax
	movl	%eax, -52(%rbp)
	movl	24(%r15), %eax
	movl	%eax, -56(%rbp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_vq_req_get
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.3:
	movq	(%r15), %rax
	movq	_IB_QPS_RTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_pr_debug
	movq	%r15, 24(%r13)
	movq	16(%r15), %rax
	movq	%rax, 16(%r13)
	movq	_IW_CM_EVENT_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
LBB0_5:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_vq_send_wr
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_vq_req_put
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_7:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_vq_wait_for_reply
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.10:
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	*(%rdi)
	movq	$0, 16(%r15)
LBB0_12:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_vq_repbuf_free
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_vq_req_free
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CCWR_QP_DESTROY,4,2            ## @CCWR_QP_DESTROY
	.comm	_IB_QPS_RTS,8,3                 ## @IB_QPS_RTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"destroy_qp: generating CLOSE event for QP-->ERR, qp=%p, cm_id=%p\n"

	.comm	_IW_CM_EVENT_CLOSE,4,2          ## @IW_CM_EVENT_CLOSE
	.no_dead_strip	_destroy_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function destroy_qp
_destroy_qp:                            ; @destroy_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_vq_req_alloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _CCWR_QP_DESTROY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCWR_QP_DESTROY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_c2_wr_set_id
	str	x20, [sp, #8]
	ldr	w8, [x19]
	ldr	w9, [x21, #24]
	stp	w9, w8, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_vq_req_get
	add	x22, x21, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x2, [x21, #16]
	cbz	x2, LBB0_4
; %bb.2:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _IB_QPS_RTS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_QPS_RTS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	str	x21, [x20, #24]
	ldr	x8, [x21, #16]
	str	x8, [x20, #16]
Lloh8:
	adrp	x8, _IW_CM_EVENT_CLOSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IW_CM_EVENT_CLOSE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_4:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x1, sp
	mov	x0, x19
	bl	_vq_send_wr
	cbz	w0, LBB0_7
; %bb.5:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x20
	bl	_vq_req_put
	b	LBB0_13
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_vq_wait_for_reply
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.8:
	ldr	x23, [x20]
	cbz	x23, LBB0_12
; %bb.9:
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x8, [x0]
	blr	x8
	str	xzr, [x21, #16]
LBB0_11:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x23
	bl	_vq_repbuf_free
	mov	w23, #0
	b	LBB0_13
LBB0_12:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_vq_req_free
LBB0_14:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CCWR_QP_DESTROY,4,2            ; @CCWR_QP_DESTROY
	.comm	_IB_QPS_RTS,8,3                 ; @IB_QPS_RTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"destroy_qp: generating CLOSE event for QP-->ERR, qp=%p, cm_id=%p\n"

	.comm	_IW_CM_EVENT_CLOSE,4,2          ; @IW_CM_EVENT_CLOSE
	.no_dead_strip	_destroy_qp
.subsections_via_symbols
