	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_pmemcached_get_next_key     ## -- Begin function do_pmemcached_get_next_key
	.p2align	4, 0x90
_do_pmemcached_get_next_key:            ## @do_pmemcached_get_next_key
	.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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_get_next_entry
	movq	%rax, %r13
	testq	%rax, %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movl	(%r13), %r15d
	movq	8(%r13), %r12
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
LBB0_3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_index_get_next
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	xorl	%ecx, %ecx
	testq	%r13, %r13
	setne	%cl
	xorl	%edx, %edx
	cmpl	$-1, (%rax)
	setne	%dl
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	callq	_vkprintf
	movl	(%r14), %eax
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	movl	$-1, %ebx
	testq	%r13, %r13
	je	LBB0_15
LBB0_7:
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.9:
	testq	%r12, %r12
	je	LBB0_10
## %bb.12:
	movq	8(%r14), %rdx
	movl	16(%r14), %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_mystrcmp
	testl	%eax, %eax
	jg	LBB0_11
	jmp	LBB0_13
LBB0_4:
	movl	$-2, %ebx
	jmp	LBB0_15
LBB0_8:
	movl	$-1, %eax
LBB0_13:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, (%rcx)
	jmp	LBB0_14
LBB0_10:
	movl	$1, %eax
LBB0_11:
	movq	8(%r14), %r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, (%rcx)
	movl	16(%r14), %r15d
	xorl	%r13d, %r13d
LBB0_14:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, (%rcx)
	xorl	%ebx, %ebx
	testl	%eax, %eax
	cmovsq	%rbx, %r14
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_cache_load_local
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"next in index: %d, next in memory: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_pmemcached_get_next_key     ; -- Begin function do_pmemcached_get_next_key
	.p2align	2
_do_pmemcached_get_next_key:            ; @do_pmemcached_get_next_key
	.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, x3
	mov	x21, x2
	mov	x24, x1
	mov	x25, x0
	bl	_get_next_entry
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w22, [x20]
	ldr	x23, [x20, #8]
	b	LBB0_3
LBB0_2:
	mov	w22, #0
	mov	x23, #0
LBB0_3:
	mov	x0, x25
	mov	x1, x24
	bl	_index_get_next
	cbz	x0, LBB0_8
; %bb.4:
	mov	x24, x0
	cmp	x20, #0
	cset	w3, ne
	ldr	w8, [x0]
	cmn	w8, #1
	cset	w2, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_vkprintf
	ldr	w8, [x24]
	cmn	w8, #1
	ccmp	x20, #0, #0, eq
	b.eq	LBB0_9
; %bb.5:
	cmn	w8, #1
	b.eq	LBB0_10
; %bb.6:
	cbz	x23, LBB0_12
; %bb.7:
	ldr	x2, [x24, #8]
	ldr	w3, [x24, #16]
	mov	x0, x23
	mov	x1, x22
	bl	_mystrcmp
	cmp	w0, #0
	b.gt	LBB0_13
	b	LBB0_11
LBB0_8:
	mov	w0, #-2
	b	LBB0_15
LBB0_9:
	mov	w0, #-1
	b	LBB0_15
LBB0_10:
	mov	w0, #-1
LBB0_11:
	str	x23, [x21]
	b	LBB0_14
LBB0_12:
	mov	w0, #1
LBB0_13:
	mov	x20, #0
	ldr	x23, [x24, #8]
	str	x23, [x21]
	ldr	w22, [x24, #16]
LBB0_14:
	str	w22, [x19]
	cmp	w0, #0
	csel	x3, x24, xzr, ge
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_cache_load_local
	mov	w0, #0
LBB0_15:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"next in index: %d, next in memory: %d\n"

.subsections_via_symbols
