	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getRefPtr
_getRefPtr:                             ## @getRefPtr
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r13
	callq	_readQword
	movq	%rax, %rdi
	callq	_addr_key
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$0, (%rbx)
	movl	12(%r13), %edi
	xorl	%r14d, %r14d
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_sdb_array_get_num
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r15
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %r14
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%r13), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_sdb_array_get_num
	movq	%rax, %r15
	incl	%ebx
	testq	%rax, %rax
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	movq	%r15, %rsi
	callq	_inBetween
	testq	%rax, %rax
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r13), %edi
	movq	%r15, %rsi
	callq	_inBetween
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_inBetween
	cmpq	$1, %rax
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	sbbl	$-1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_9:
	xorl	%eax, %eax
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	cmovgeq	%rax, %r14
LBB0_10:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_getRefPtr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getRefPtr
_getRefPtr:                             ; @getRefPtr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x0
	bl	_readQword
	bl	_addr_key
	mov	x21, x0
	str	wzr, [x19]
	ldr	w0, [x20, #12]
	mov	x1, x21
	mov	w2, #0
	mov	x3, #0
	bl	_sdb_array_get_num
	cbz	x0, LBB0_10
; %bb.1:
	mov	x23, x0
	mov	x25, #0
	mov	w24, #0
	mov	w26, #1
	mov	w22, #1
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x23
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #12]
	mov	x1, x21
	mov	x2, x22
	mov	x3, #0
	bl	_sdb_array_get_num
	mov	x23, x0
	add	w22, w22, #1
	cbz	x0, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #8]
	mov	x1, x23
	bl	_inBetween
	cbnz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #4]
	mov	x1, x23
	bl	_inBetween
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w26, [x19]
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20]
	mov	x1, x23
	bl	_inBetween
	cmp	x0, #0
	cinc	w24, w24, ne
	b	LBB0_4
LBB0_9:
	cmp	w24, #1
	csel	x0, xzr, x25, gt
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_getRefPtr
.subsections_via_symbols
