	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memcache_get                   ## -- Begin function memcache_get
	.p2align	4, 0x90
_memcache_get:                          ## @memcache_get
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_get_at_prefix_length
	cltq
	leaq	(%r15,%rax), %r12
	subl	%eax, %ebx
	cmpl	$6, %ebx
	jl	LBB0_8
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$6, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_11
LBB0_2:
	cmpl	$10, %ebx
	jb	LBB0_9
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	$10, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	leaq	10(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-36(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.5:
	movl	-36(%rbp), %esi
	testl	%esi, %esi
	jle	LBB0_9
## %bb.6:
	movq	_VALUE_BUFFSIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jg	LBB0_9
## %bb.7:
	movq	_get_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_value_buff@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_random_get_hex_bytes
	jmp	LBB0_15
LBB0_8:
	cmpl	$5, %ebx
	jne	LBB0_17
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	$5, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	movq	%r14, %rdi
	callq	_random_prepare_stats
	movl	%eax, %ecx
	movq	_stats_buff@GOTPCREL(%rip), %rbx
	jmp	LBB0_16
LBB0_11:
	leaq	6(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-36(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.12:
	movl	-36(%rbp), %esi
	testl	%esi, %esi
	jle	LBB0_2
## %bb.13:
	movq	_VALUE_BUFFSIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jg	LBB0_2
## %bb.14:
	movq	_get_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_value_buff@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_random_get_bytes
LBB0_15:
	movl	%eax, %ecx
LBB0_16:
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_return_one_key
LBB0_17:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"random"

L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.comm	_VALUE_BUFFSIZE,4,2             ## @VALUE_BUFFSIZE
	.comm	_get_queries,4,2                ## @get_queries
	.comm	_value_buff,4,2                 ## @value_buff
L_.str.2:                               ## @.str.2
	.asciz	"hex_random"

L_.str.3:                               ## @.str.3
	.asciz	"stats"

	.comm	_stats_buff,4,2                 ## @stats_buff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memcache_get                   ; -- Begin function memcache_get
	.p2align	2
_memcache_get:                          ; @memcache_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x2
	bl	_get_at_prefix_length
	add	x21, x19, w0, sxtw
	sub	w22, w22, w0
	cmp	w22, #6
	b.lt	LBB0_8
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #6
	bl	_strncmp
	cbz	w0, LBB0_11
LBB0_2:
	cmp	w22, #10
	b.lo	LBB0_9
; %bb.3:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w2, #10
	bl	_strncmp
	cbnz	w0, LBB0_9
; %bb.4:
	add	x0, x21, #10
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.5:
	ldr	w1, [sp, #12]
	cmp	w1, #1
	b.lt	LBB0_9
; %bb.6:
Lloh6:
	adrp	x8, _VALUE_BUFFSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VALUE_BUFFSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w1, w8
	b.gt	LBB0_9
; %bb.7:
Lloh9:
	adrp	x8, _get_queries@GOTPAGE
Lloh10:
	ldr	x8, [x8, _get_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh11:
	adrp	x21, _value_buff@GOTPAGE
Lloh12:
	ldr	x21, [x21, _value_buff@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_random_get_hex_bytes
	b	LBB0_15
LBB0_8:
	cmp	w22, #5
	b.ne	LBB0_17
LBB0_9:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	w2, #5
	bl	_strncmp
	cbnz	w0, LBB0_17
; %bb.10:
	mov	x0, x20
	bl	_random_prepare_stats
	mov	x3, x0
Lloh15:
	adrp	x21, _stats_buff@GOTPAGE
Lloh16:
	ldr	x21, [x21, _stats_buff@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
	add	x0, x21, #6
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.12:
	ldr	w1, [sp, #12]
	cmp	w1, #1
	b.lt	LBB0_2
; %bb.13:
Lloh19:
	adrp	x8, _VALUE_BUFFSIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VALUE_BUFFSIZE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w1, w8
	b.gt	LBB0_2
; %bb.14:
Lloh22:
	adrp	x8, _get_queries@GOTPAGE
Lloh23:
	ldr	x8, [x8, _get_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh24:
	adrp	x21, _value_buff@GOTPAGE
Lloh25:
	ldr	x21, [x21, _value_buff@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_random_get_bytes
LBB0_15:
	mov	x3, x0
LBB0_16:
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_return_one_key
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"random"

l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.comm	_VALUE_BUFFSIZE,4,2             ; @VALUE_BUFFSIZE
	.comm	_get_queries,4,2                ; @get_queries
	.comm	_value_buff,4,2                 ; @value_buff
l_.str.2:                               ; @.str.2
	.asciz	"hex_random"

l_.str.3:                               ; @.str.3
	.asciz	"stats"

	.comm	_stats_buff,4,2                 ; @stats_buff
.subsections_via_symbols
