	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_get_dest
_ds_get_dest:                           ## @ds_get_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_fastlock_acquire
	leaq	4(%r14), %r15
	movq	_ds_compare_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_tfind
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r12d, %edx
	callq	_ds_get_src_addr
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movl	-56(%rbp), %edx
	leaq	-48(%rbp), %rsi
	leaq	-72(%rbp), %rcx
	movq	%r14, %rdi
	callq	_ds_get_qp
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_3
LBB0_8:
	movq	%r14, %rdi
	callq	_fastlock_release
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ds_compare_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_tfind
	testq	%rax, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_7
## %bb.4:
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	-72(%rbp), %rax
	movq	%rax, 8(%r12)
	movq	_ds_compare_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_tsearch
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR
	movl	%eax, %r12d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ds_compare_addr,4,2            ## @ds_compare_addr
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ds_get_dest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds_get_dest
_ds_get_dest:                           ; @ds_get_dest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_fastlock_acquire
	add	x21, x19, #4
Lloh0:
	adrp	x25, _ds_compare_addr@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ds_compare_addr@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x23
	mov	x1, x21
	bl	_tfind
	cbz	x0, LBB0_2
LBB0_1:
	mov	w24, #0
	ldr	x8, [x0]
	str	x8, [x20]
	b	LBB0_4
LBB0_2:
	add	x3, sp, #24
	add	x4, sp, #20
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_ds_get_src_addr
	mov	x24, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w2, [sp, #20]
	add	x1, sp, #24
	add	x3, sp, #8
	mov	x0, x19
	bl	_ds_get_qp
	mov	x24, x0
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_fastlock_release
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	ldr	w2, [x25]
	mov	x0, x23
	mov	x1, x21
	bl	_tfind
	cbnz	x0, LBB0_1
; %bb.6:
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	cbz	x0, LBB0_8
; %bb.7:
	mov	x24, x0
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [sp, #8]
	str	x8, [x24, #8]
	ldr	w2, [x25]
	mov	x0, x24
	mov	x1, x21
	bl	_tsearch
	b	LBB0_1
LBB0_8:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_ERR
	mov	x24, x0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ds_compare_addr,4,2            ; @ds_compare_addr
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ds_get_dest
.subsections_via_symbols
