	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libretrodb_cursor_read_item    ## -- Begin function libretrodb_cursor_read_item
	.p2align	4, 0x90
_libretrodb_cursor_read_item:           ## @libretrodb_cursor_read_item
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_5:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_rmsgpack_dom_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movq	_RDT_NULL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rsi
	callq	_libretrodb_query_filter
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_rmsgpack_dom_value_free
	movl	16(%r14), %edi
	movq	%r15, %rsi
	callq	_rmsgpack_dom_read
	testl	%eax, %eax
	jns	LBB0_3
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$1, (%r14)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
	.comm	_RDT_NULL,8,3                   ## @RDT_NULL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libretrodb_cursor_read_item    ; -- Begin function libretrodb_cursor_read_item
	.p2align	2
_libretrodb_cursor_read_item:           ; @libretrodb_cursor_read_item
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_rmsgpack_dom_read
	tbnz	w0, #31, LBB0_2
; %bb.4:
Lloh3:
	adrp	x21, _RDT_NULL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RDT_NULL@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x20
	bl	_libretrodb_query_filter
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_rmsgpack_dom_value_free
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_rmsgpack_dom_read
	tbz	w0, #31, LBB0_5
	b	LBB0_2
LBB0_9:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_1
LBB0_10:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
	.comm	_RDT_NULL,8,3                   ; @RDT_NULL
.subsections_via_symbols
