	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ylist_forward_decode_item      ## -- Begin function ylist_forward_decode_item
	.p2align	4, 0x90
_ylist_forward_decode_item:             ## @ylist_forward_decode_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movslq	(%rdi), %rbx
	movq	%rbx, %rcx
	shlq	$5, %rcx
	leaq	(%rax,%rcx), %r12
	movl	(%rax,%rcx), %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_docid_to_itemid
	cmpq	%r15, %rax
	jg	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	movl	-32(%r12), %edi
	addq	$-32, %r12
	jmp	LBB0_2
LBB0_3:
	cmpl	(%r14), %ebx
	jge	LBB0_9
## %bb.4:
	movq	%r15, %r13
	movl	8(%r12), %r15d
	addl	4(%r12), %r15d
	sarl	%r15d
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	js	LBB0_5
## %bb.7:
	leaq	12(%r14), %rdi
	callq	_bread_seek
	movl	%r15d, 4(%r14)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_ylist_decode_int
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, 4(%r14)
	jl	LBB0_6
LBB0_8:
	movl	%ebx, (%r14)
	movq	%r13, %r15
LBB0_9:
	movl	8(%r12), %r13d
	movl	24(%r12), %edi
	addl	4(%r12), %r13d
	sarl	%r13d
	leaq	24(%r12), %rbx
	callq	_docid_to_itemid
	cmpq	%r15, %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_17
## %bb.10:
	movq	%r12, %r15
LBB0_11:
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	js	LBB0_12
## %bb.15:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leaq	12(%r14), %rdi
	callq	_bread_seek
	movl	%r13d, 4(%r14)
LBB0_16:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ylist_copy_positions
	movl	(%rbx), %eax
LBB0_35:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r12), %rdx
	leaq	8(%r12), %rcx
	leaq	12(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	js	LBB0_28
## %bb.31:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_bread_seek
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%r13d, 4(%rbx)
LBB0_32:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%r13d, 36(%r12)
	movl	(%r15), %eax
	movl	%eax, 60(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movl	(%r12), %eax
	movl	%eax, 32(%r12)
LBB0_33:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ylist_decode_node
	incl	(%rbx)
	leaq	36(%r12), %r14
	leaq	40(%r12), %rbx
	movl	40(%r12), %r13d
	movl	56(%r12), %edi
	addl	36(%r12), %r13d
	sarl	%r13d
	addq	$56, %r12
	callq	_docid_to_itemid
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movq	%r12, %rbx
	movq	%r15, %r12
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
	movq	%rbx, %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %ebx
	movq	%rdx, %r14
	subl	(%rdx), %ebx
	xorl	%edi, %edi
	cmpl	$2, %ebx
	setge	%dil
	callq	_assert
	cmpl	$2, %ebx
	je	LBB0_19
## %bb.24:                              ##   in Loop: Header=BB0_18 Depth=1
	leaq	32(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	callq	_docid_to_itemid
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jle	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r14), %eax
	leal	-1(%r13), %ecx
	cmpl	%ecx, %eax
	je	LBB0_23
## %bb.26:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%eax, 36(%r12)
	movl	28(%r12), %eax
	movl	%eax, 60(%r12)
	movl	%r13d, 40(%r12)
	movl	(%r15), %eax
	movl	%eax, 32(%r12)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_28:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	%r13d, 4(%rbx)
	jge	LBB0_32
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_ylist_decode_int
	cmpl	%r13d, 4(%rbx)
	jl	LBB0_30
	jmp	LBB0_32
LBB0_12:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpl	%r13d, 4(%r14)
	jge	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_ylist_decode_int
	cmpl	%r13d, 4(%r14)
	jl	LBB0_14
	jmp	LBB0_16
LBB0_19:
	movl	(%r12), %edi
	callq	_docid_to_itemid
	xorl	%edi, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %rax
	setge	%dil
	callq	_assert
	movl	(%r15), %edi
	callq	_docid_to_itemid
	cmpq	%rbx, %rax
	jge	LBB0_22
## %bb.20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	8(%rdi), %ecx
	incl	%ecx
	movl	$-1, %eax
	cmpl	%ecx, %edx
	je	LBB0_35
## %bb.21:
	movq	%r12, %rsi
	callq	_ylist_uptree
	movl	(%r12), %eax
	jmp	LBB0_35
LBB0_22:
	movl	28(%r12), %edi
	callq	_docid_to_itemid
	cmpq	%rbx, %rax
	jge	LBB0_34
LBB0_23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, 4(%rdi)
	movq	%r12, %rsi
	callq	_ylist_copy_positions
	movl	(%r15), %eax
	jmp	LBB0_35
LBB0_34:
	movl	(%r14), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_ylist_uptree
	movl	28(%r12), %eax
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ylist_forward_decode_item      ; -- Begin function ylist_forward_decode_item
	.p2align	2
_ylist_forward_decode_item:             ; @ylist_forward_decode_item
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldrsw	x22, [x0]
	add	x20, x8, x22, lsl #5
	ldr	w0, [x20]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_docid_to_itemid
	cmp	x0, x21
	b.gt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x20, #-32]!
	sub	w22, w22, #1
	b	LBB0_1
LBB0_3:
	ldr	w8, [x19]
	cmp	w22, w8
	b.ge	LBB0_9
; %bb.4:
	ldp	w8, w9, [x20, #4]
	add	w8, w9, w8
	asr	w23, w8, #1
	ldr	x1, [x20, #16]
	tbnz	x1, #63, LBB0_7
; %bb.5:
	add	x0, x19, #12
	bl	_bread_seek
	str	w23, [x19, #4]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_ylist_decode_int
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	cmp	w8, w23
	b.lt	LBB0_6
LBB0_8:
	str	w22, [x19]
LBB0_9:
	mov	x27, x20
	ldr	w8, [x27, #4]!
	mov	x26, x27
	ldr	w9, [x26, #4]!
	add	w8, w9, w8
	asr	w25, w8, #1
	mov	x24, x27
	ldr	w0, [x24, #20]!
	bl	_docid_to_itemid
	cmp	x0, x21
	b.ne	LBB0_18
; %bb.10:
	mov	x22, x20
LBB0_11:
	ldr	x1, [x22, #16]
	tbnz	x1, #63, LBB0_14
; %bb.12:
	add	x0, x19, #12
	bl	_bread_seek
	str	w25, [x19, #4]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	bl	_ylist_decode_int
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	cmp	w8, w25
	b.lt	LBB0_13
LBB0_15:
	mov	x0, x19
	mov	x1, x22
LBB0_16:
	bl	_ylist_copy_positions
	ldr	w0, [x24]
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	add	x23, x19, #12
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [x24]
	str	w8, [x20, #60]
	ldr	w8, [x26]
	stp	w25, w8, [x20, #36]
	ldr	w8, [x20]
	str	w8, [x20, #32]
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_ylist_decode_node
	ldr	w8, [x19]
	add	w8, w8, #1
	ldr	w0, [x20, #56]!
	mov	x27, x20
	ldr	w9, [x27, #-20]!
	str	w8, [x19]
	mov	x26, x20
	ldr	w8, [x26, #-16]!
	add	w8, w8, w9
	asr	w25, w8, #1
	bl	_docid_to_itemid
	mov	x24, x20
	mov	x20, x22
	cmp	x0, x21
	b.eq	LBB0_11
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
	ldr	w8, [x26]
	ldr	w9, [x27]
	sub	w22, w8, w9
	cmp	w22, #1
	cset	w0, gt
	bl	_assert
	cmp	w22, #2
	b.eq	LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x22, x20, #32
	ldr	w0, [x24]
	bl	_docid_to_itemid
	cmp	x0, x21
	b.le	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [x27]
	sub	w9, w25, #1
	cmp	w8, w9
	b.eq	LBB0_33
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w9, [x20, #28]
	str	w9, [x20, #60]
	str	w25, [x20, #40]
	ldr	w9, [x24]
	stp	w9, w8, [x20, #32]
	b	LBB0_20
LBB0_25:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x1, [x20, #16]
	tbnz	x1, #63, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x23
	bl	_bread_seek
	str	w25, [x19, #4]
	b	LBB0_19
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=2
	mov	x0, x19
	bl	_ylist_decode_int
LBB0_28:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x19, #4]
	cmp	w8, w25
	b.lt	LBB0_27
	b	LBB0_19
LBB0_29:
	ldr	w0, [x20]
	bl	_docid_to_itemid
	cmp	x0, x21
	cset	w0, ge
	bl	_assert
	ldr	w0, [x24]
	bl	_docid_to_itemid
	cmp	x0, x21
	b.ge	LBB0_32
; %bb.30:
	ldr	w2, [x26]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	cmp	w2, w8
	b.ne	LBB0_34
; %bb.31:
	mov	w0, #-1
	b	LBB0_17
LBB0_32:
	ldr	w0, [x20, #28]
	bl	_docid_to_itemid
	cmp	x0, x21
	b.ge	LBB0_35
LBB0_33:
	str	w25, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	b	LBB0_16
LBB0_34:
	mov	x0, x19
	mov	x1, x20
	bl	_ylist_uptree
	ldr	w0, [x20]
	b	LBB0_17
LBB0_35:
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x20
	bl	_ylist_uptree
	ldr	w0, [x20, #28]
	b	LBB0_17
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
