	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_destroy_qp             ## -- Begin function ibv_cmd_destroy_qp
	.p2align	4, 0x90
_ibv_cmd_destroy_qp:                    ## @ibv_cmd_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DESTROY_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rbx
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$8, %r8d
	callq	_IBV_INIT_CMD_RESP
	movl	24(%r14), %eax
	movl	%eax, -40(%rbp)
	movq	$0, -48(%rbp)
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_write
	cmpl	$16, %eax
	jne	LBB0_1
## %bb.2:
	leaq	-32(%rbp), %rdi
	movl	$8, %esi
	callq	_VALGRIND_MAKE_MEM_DEFINED
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	movq	(%r14), %rax
	cmpq	-32(%rbp), %rax
	je	LBB0_5
## %bb.3:
	leaq	12(%r14), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pthread_cond_wait
	movq	(%r14), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DESTROY_QP,4,2                 ## @DESTROY_QP
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_destroy_qp             ; -- Begin function ibv_cmd_destroy_qp
	.p2align	2
_ibv_cmd_destroy_qp:                    ; @ibv_cmd_destroy_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _DESTROY_QP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DESTROY_QP@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #16
	add	x3, sp, #8
	mov	w1, #16
	mov	w4, #8
	bl	_IBV_INIT_CMD_RESP
	ldr	w8, [x19, #24]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	add	x1, sp, #16
	mov	w2, #16
	bl	_write
	cmp	w0, #16
	b.ne	LBB0_5
; %bb.1:
	add	x0, sp, #8
	mov	w1, #8
	bl	_VALGRIND_MAKE_MEM_DEFINED
	add	x20, x19, #8
	mov	x0, x20
	bl	_pthread_mutex_lock
	ldr	x8, [x19]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	add	x21, x19, #12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_pthread_cond_wait
	ldr	x8, [x19]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_4:
	mov	x0, x20
	bl	_pthread_mutex_unlock
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DESTROY_QP,4,2                 ; @DESTROY_QP
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
