	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdb_sqlite_nextkey
_hdb_sqlite_nextkey:                    ## @hdb_sqlite_nextkey
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edi, %r15d
	movq	(%rsi), %rbx
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_hdb_sqlite_step
	movq	_SQLITE_ROW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_sqlite3_column_bytes
	movl	%eax, -32(%rbp)
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_sqlite3_column_blob
	movq	%rax, -40(%rbp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-40(%rbp), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	callq	_hdb_value2entry
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_2:
	movq	_SQLITE_DONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	_HDB_ERR_NOENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %edi
	callq	_sqlite3_reset
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_ROW,4,2                 ## @SQLITE_ROW
	.comm	_SQLITE_DONE,4,2                ## @SQLITE_DONE
	.comm	_HDB_ERR_NOENTRY,4,2            ## @HDB_ERR_NOENTRY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hdb_sqlite_nextkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdb_sqlite_nextkey
_hdb_sqlite_nextkey:                    ; @hdb_sqlite_nextkey
	.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	x19, x3
	mov	x20, x0
	ldr	x21, [x1]
	ldp	w2, w1, [x21]
	bl	_hdb_sqlite_step
Lloh0:
	adrp	x8, _SQLITE_ROW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_ROW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x21]
	mov	w1, #0
	bl	_sqlite3_column_bytes
	str	w0, [sp, #8]
	ldr	w0, [x21]
	mov	w1, #0
	bl	_sqlite3_column_blob
	str	x0, [sp]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x1, sp
	mov	x0, x20
	mov	x2, x19
	bl	_hdb_value2entry
	mov	x19, x0
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _SQLITE_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_DONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _HDB_ERR_NOENTRY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDB_ERR_NOENTRY@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	ldr	w0, [x21]
	bl	_sqlite3_reset
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
LBB0_5:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_ROW,4,2                 ; @SQLITE_ROW
	.comm	_SQLITE_DONE,4,2                ; @SQLITE_DONE
	.comm	_HDB_ERR_NOENTRY,4,2            ; @HDB_ERR_NOENTRY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hdb_sqlite_nextkey
.subsections_via_symbols
