	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_add_qp_dest
_ds_add_qp_dest:                        ## @ds_add_qp_dest
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_memcpy
	movq	%rbx, 24(%rbx)
	movq	32(%rbx), %rax
	movq	16(%rax), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movl	4(%rax), %esi
	movl	8(%rax), %edi
	leaq	-40(%rbp), %rdx
	callq	_ibv_query_port
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	-48(%rbp), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	-40(%rbp), %eax
	movl	%eax, -44(%rbp)
	movq	32(%rbx), %rax
	movl	4(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_ibv_create_ah
	movl	%eax, 12(%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	(%rbx), %rsi
	movq	_ds_compare_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_tsearch
	jmp	LBB0_4
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR
	movl	%eax, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ds_compare_addr,4,2            ## @ds_compare_addr
	.no_dead_strip	_ds_add_qp_dest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds_add_qp_dest
_ds_add_qp_dest:                        ; @ds_add_qp_dest
	.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
	add	x19, x0, #8
	mov	x0, x19
	bl	_memcpy
	str	x20, [x20, #24]
	ldr	x8, [x20, #32]
	ldr	x9, [x8, #16]
	ldr	w9, [x9]
	str	w9, [x20, #16]
	ldp	w1, w0, [x8, #4]
	add	x2, sp, #8
	bl	_ibv_query_port
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [sp, #8]
	ldr	x9, [x20, #32]
	ldp	w0, w10, [x9]
	stp	w10, w8, [sp]
	mov	x1, sp
	bl	_ibv_create_ah
	str	w0, [x20, #12]
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x1, [x20]
Lloh0:
	adrp	x8, _ds_compare_addr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ds_compare_addr@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tsearch
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ERR
LBB0_4:
	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	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ds_compare_addr,4,2            ; @ds_compare_addr
	.no_dead_strip	_ds_add_qp_dest
.subsections_via_symbols
