	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_destroy_comp_channel       ## -- Begin function ibv_destroy_comp_channel
	.p2align	4, 0x90
_ibv_destroy_comp_channel:              ## @ibv_destroy_comp_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_abi_ver@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jg	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_ibv_destroy_comp_channel_v2
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_4:
	movl	(%rbx), %edi
	callq	_close
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_abi_ver,4,2                    ## @abi_ver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_destroy_comp_channel       ; -- Begin function ibv_destroy_comp_channel
	.p2align	2
_ibv_destroy_comp_channel:              ; @ibv_destroy_comp_channel
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
	mov	x0, x19
	bl	_pthread_mutex_lock
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _abi_ver@GOTPAGE
Lloh4:
	ldr	x8, [x8, _abi_ver@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #2
	b.gt	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_ibv_destroy_comp_channel_v2
	mov	x20, x0
	b	LBB0_5
LBB0_4:
	ldr	w0, [x20]
	bl	_close
	mov	x0, x20
	bl	_free
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_pthread_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_abi_ver,4,2                    ; @abi_ver
.subsections_via_symbols
