	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_destroy_wq             ## -- Begin function ibv_cmd_destroy_wq
	.p2align	4, 0x90
_ibv_cmd_destroy_wq:                    ## @ibv_cmd_destroy_wq
	.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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_DESTROY_WQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	movq	%rbx, %rcx
	movl	$24, %r8d
	callq	_IBV_INIT_CMD_RESP_EX
	movl	24(%r15), %eax
	movl	%eax, -56(%rbp)
	movq	16(%r15), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$24, %edx
	callq	_write
	cmpl	$24, %eax
	jne	LBB0_1
## %bb.2:
	cmpl	$23, -48(%rbp)
	ja	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_4:
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	(%r15), %rax
	cmpq	-40(%rbp), %rax
	je	LBB0_7
## %bb.5:
	leaq	12(%r15), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pthread_cond_wait
	movq	(%r15), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	xorl	%eax, %eax
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DESTROY_WQ,4,2                 ## @DESTROY_WQ
	.comm	_errno,4,2                      ## @errno
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_destroy_wq             ; -- Begin function ibv_cmd_destroy_wq
	.p2align	2
_ibv_cmd_destroy_wq:                    ; @ibv_cmd_destroy_wq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _DESTROY_WQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DESTROY_WQ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #24
	mov	x3, sp
	mov	w1, #24
	mov	w4, #24
	bl	_IBV_INIT_CMD_RESP_EX
	ldr	w8, [x19, #24]
	str	w8, [sp, #40]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	add	x1, sp, #24
	mov	w2, #24
	bl	_write
	cmp	w0, #24
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [sp]
	cmp	w8, #23
	b.hi	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_4:
	add	x20, x19, #8
	mov	x0, x20
	bl	_pthread_mutex_lock
	ldr	x8, [x19]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.5:
	add	x21, x19, #12
LBB0_6:                                 ; =>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_6
LBB0_7:
	mov	x0, x20
	bl	_pthread_mutex_unlock
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DESTROY_WQ,4,2                 ; @DESTROY_WQ
	.comm	_errno,4,2                      ; @errno
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
