	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_create_comp_channel        ## -- Begin function ibv_create_comp_channel
	.p2align	4, 0x90
_ibv_create_comp_channel:               ## @ibv_create_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_abi_ver@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ibv_create_comp_channel_v2     ## TAILCALL
LBB0_2:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %rbx
	movq	_CREATE_COMP_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r15
	leaq	-32(%rbp), %rcx
	movq	%r15, %rdi
	movl	$4, %esi
	movl	$4, %r8d
	callq	_IBV_INIT_CMD_RESP
	movl	(%r14), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_write
	cmpl	$4, %eax
	jne	LBB0_6
## %bb.4:
	leaq	-32(%rbp), %rdi
	movl	$4, %esi
	callq	_VALGRIND_MAKE_MEM_DEFINED
	movq	%r14, 16(%rbx)
	movl	-32(%rbp), %eax
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_abi_ver,4,2                    ## @abi_ver
	.comm	_CREATE_COMP_CHANNEL,4,2        ## @CREATE_COMP_CHANNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_create_comp_channel        ; -- Begin function ibv_create_comp_channel
	.p2align	2
_ibv_create_comp_channel:               ; @ibv_create_comp_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _abi_ver@GOTPAGE
Lloh1:
	ldr	x8, [x8, _abi_ver@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ibv_create_comp_channel_v2
LBB0_2:
	mov	w0, #24
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _CREATE_COMP_CHANNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CREATE_COMP_CHANNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x3, sp
	mov	w1, #4
	mov	w4, #4
	bl	_IBV_INIT_CMD_RESP
	ldr	w0, [x20]
	add	x1, sp, #8
	mov	w2, #4
	bl	_write
	cmp	w0, #4
	b.ne	LBB0_5
; %bb.4:
	mov	x0, sp
	mov	w1, #4
	bl	_VALGRIND_MAKE_MEM_DEFINED
	str	x20, [x19, #16]
	ldr	w8, [sp]
	str	w8, [x19, #8]
	str	xzr, [x19]
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_abi_ver,4,2                    ; @abi_ver
	.comm	_CREATE_COMP_CHANNEL,4,2        ; @CREATE_COMP_CHANNEL
.subsections_via_symbols
