	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlist_forward_decode_idx       ## -- Begin function mlist_forward_decode_idx
	.p2align	4, 0x90
_mlist_forward_decode_idx:              ## @mlist_forward_decode_idx
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%esi, (%rdi)
	jle	LBB0_7
## %bb.1:
	movq	%rdi, %r15
	movq	24(%rdi), %rcx
	movslq	4(%rdi), %rax
	leaq	(%rax,%rax,4), %rdi
	leaq	(%rcx,%rdi,8), %r14
	cmpl	%esi, (%rcx,%rdi,8)
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jg	LBB0_11
## %bb.2:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rcx
	addq	$-40, %r14
	decl	%ebx
	cmpl	%esi, -40(%rcx)
	jle	LBB0_3
## %bb.4:
	leal	1(%rbx), %ecx
	cmpl	%eax, %ecx
	jg	LBB0_11
## %bb.5:
	movl	8(%r14), %r12d
	addl	4(%r14), %r12d
	sarl	%r12d
	movq	16(%r14), %rsi
	testq	%rsi, %rsi
	js	LBB0_8
## %bb.6:
	leaq	16(%r15), %rdi
	callq	_bread_seek
	movl	%r12d, 8(%r15)
	jmp	LBB0_10
LBB0_7:
	movl	$0, (%rdx)
	movl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	jmp	LBB0_17
LBB0_8:
	cmpl	%r12d, 8(%r15)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_mlist_decode_pair
	cmpl	%r12d, 8(%r15)
	jl	LBB0_9
LBB0_10:
	movl	%ebx, 4(%r15)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_11:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %eax
	movl	8(%r14), %r12d
	leal	(%r12,%rax), %r13d
	sarl	%r13d
	leaq	24(%r14), %rbx
	cmpl	%esi, 24(%r14)
	jne	LBB0_18
## %bb.12:
	movq	%r14, %rdx
LBB0_13:
	movq	%rdx, %r12
	movq	16(%rdx), %rsi
	testq	%rsi, %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	js	LBB0_29
## %bb.14:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leaq	16(%r15), %rdi
	callq	_bread_seek
	movl	%r13d, 8(%r15)
	jmp	LBB0_15
LBB0_18:
	leaq	4(%r14), %r15
	leaq	8(%r14), %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	$16, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rsi
	testq	%rsi, %rsi
	js	LBB0_27
## %bb.20:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_bread_seek
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%r13d, 8(%rbx)
LBB0_21:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	%r13d, 44(%r14)
	movl	(%r12), %eax
	movl	%eax, 72(%r14)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movl	(%r14), %eax
	movl	%eax, 40(%r14)
	movq	%rbx, %rdi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	callq	_mlist_decode_node
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	4(%rbx)
	leaq	44(%r14), %r15
	movl	44(%r14), %eax
	movl	48(%r14), %r12d
	leaq	48(%r14), %rsi
	leal	(%r12,%rax), %r13d
	sarl	%r13d
	leaq	64(%r14), %rbx
	cmpl	%ecx, 64(%r14)
	movq	%rdx, %r14
	je	LBB0_13
LBB0_23:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	subl	%eax, %r12d
	xorl	%edi, %edi
	cmpl	$2, %r12d
	setge	%dil
	callq	_assert
	cmpl	$2, %r12d
	je	LBB0_31
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	leaq	40(%r14), %rsi
	movq	%rbx, %r12
	movl	(%rbx), %eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_19
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	(%r15), %ecx
	leal	-1(%r13), %edx
	cmpl	%edx, %ecx
	je	LBB0_34
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	%ecx, 44(%r14)
	movl	32(%r14), %ecx
	movl	%ecx, 72(%r14)
	movl	%r13d, 48(%r14)
	movl	%eax, 40(%r14)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rsi, %r15
	jmp	LBB0_22
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpl	%r13d, 8(%rbx)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jge	LBB0_21
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mlist_decode_pair
	cmpl	%r13d, 8(%rbx)
	jl	LBB0_28
	jmp	LBB0_21
LBB0_29:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpl	%r13d, 8(%r15)
	jge	LBB0_15
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mlist_decode_pair
	cmpl	%r13d, 8(%r15)
	jl	LBB0_30
LBB0_15:
	movl	28(%r12), %eax
	movl	%eax, (%r14)
LBB0_16:
	movl	(%rbx), %eax
LBB0_17:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	xorl	%edi, %edi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r12d, (%r14)
	setge	%dil
	callq	_assert
	cmpl	%r12d, (%rbx)
	jge	LBB0_35
## %bb.32:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	12(%rdi), %eax
	incl	%eax
	cmpl	%eax, %edx
	jne	LBB0_37
## %bb.33:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	jmp	LBB0_17
LBB0_34:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, 8(%rax)
	movl	28(%r14), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	(%r12), %eax
	jmp	LBB0_17
LBB0_35:
	movl	%r12d, %eax
	cmpl	%r12d, 32(%r14)
	jge	LBB0_38
## %bb.36:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, 8(%rax)
	movl	28(%r14), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_16
LBB0_37:
	movq	%r14, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_mlist_uptree
	movl	(%r14), %eax
	jmp	LBB0_17
LBB0_38:
	movl	$1, %edi
	callq	_assert
	movl	(%r15), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_mlist_uptree
	movl	32(%r14), %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlist_forward_decode_idx       ; -- Begin function mlist_forward_decode_idx
	.p2align	2
_mlist_forward_decode_idx:              ; @mlist_forward_decode_idx
	.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	x19, x2
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_31
; %bb.1:
	mov	x22, x1
	mov	x20, x0
	ldr	x9, [x0, #24]
	ldrsw	x8, [x0, #4]
	mov	w10, #40
	madd	x21, x8, x10, x9
	ldr	w9, [x21]
	cmp	w9, w1
	b.gt	LBB0_10
; %bb.2:
	mov	x23, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x21, #-40]!
	sub	w23, w23, #1
	cmp	w9, w22
	b.le	LBB0_3
; %bb.4:
	add	w9, w23, #1
	cmp	w9, w8
	b.gt	LBB0_10
; %bb.5:
	ldp	w8, w9, [x21, #4]
	add	w8, w9, w8
	asr	w24, w8, #1
	ldr	x1, [x21, #16]
	tbnz	x1, #63, LBB0_8
; %bb.6:
	add	x0, x20, #16
	bl	_bread_seek
	str	w24, [x20, #8]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_mlist_decode_pair
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #8]
	cmp	w8, w24
	b.lt	LBB0_7
LBB0_9:
	str	w23, [x20, #4]
LBB0_10:
	mov	x28, x21
	ldr	w8, [x28, #4]!
	mov	x27, x28
	ldr	w9, [x27, #4]!
	add	w10, w9, w8
	asr	w25, w10, #1
	mov	x26, x28
	ldr	w10, [x26, #20]!
	cmp	w10, w22
	b.ne	LBB0_18
; %bb.11:
	mov	x23, x21
LBB0_12:
	ldr	x1, [x23, #16]
	tbnz	x1, #63, LBB0_15
; %bb.13:
	add	x0, x20, #16
	bl	_bread_seek
	str	w25, [x20, #8]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_mlist_decode_pair
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #8]
	cmp	w8, w25
	b.lt	LBB0_14
LBB0_16:
	ldr	w8, [x23, #28]
LBB0_17:
	str	w8, [x19]
	ldr	w0, [x26]
	b	LBB0_32
LBB0_18:
	add	x24, x20, #16
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [x26]
	str	w8, [x21, #72]
	ldr	w8, [x27]
	stp	w25, w8, [x21, #44]
	ldr	w8, [x21]
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	str	w8, [x21, #40]
	mov	x0, x20
	mov	x1, x23
	bl	_mlist_decode_node
	ldr	w8, [x20, #4]
	add	w10, w8, #1
	ldr	w11, [x21, #64]!
	mov	x28, x21
	ldr	w8, [x28, #-20]!
	mov	x27, x21
	ldr	w9, [x27, #-16]!
	add	w12, w9, w8
	str	w10, [x20, #4]
	asr	w25, w12, #1
	mov	x26, x21
	mov	x21, x23
	cmp	w11, w22
	b.eq	LBB0_12
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
	sub	w23, w9, w8
	cmp	w23, #1
	cset	w0, gt
	bl	_assert
	cmp	w23, #2
	b.eq	LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x23, x21, #40
	ldr	w8, [x26]
	cmp	w8, w22
	b.le	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w9, [x28]
	sub	w10, w25, #1
	cmp	w9, w10
	b.eq	LBB0_34
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w10, [x21, #32]
	str	w10, [x21, #72]
	stp	w9, w25, [x21, #44]
	b	LBB0_20
LBB0_25:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x1, [x21, #16]
	tbnz	x1, #63, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x24
	bl	_bread_seek
	str	w25, [x20, #8]
	b	LBB0_19
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=2
	mov	x0, x20
	mov	x1, x19
	bl	_mlist_decode_pair
LBB0_28:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x20, #8]
	cmp	w8, w25
	b.lt	LBB0_27
	b	LBB0_19
LBB0_29:
	ldr	w8, [x21]
	cmp	w8, w22
	cset	w0, ge
	bl	_assert
	ldr	w8, [x26]
	cmp	w8, w22
	b.ge	LBB0_33
; %bb.30:
	ldr	w2, [x27]
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	cmp	w2, w8
	b.ne	LBB0_35
LBB0_31:
	str	wzr, [x19]
	mov	w0, #2147483647
LBB0_32:
	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_33:
	ldr	w8, [x21, #32]
	cmp	w8, w22
	b.ge	LBB0_36
LBB0_34:
	str	w25, [x20, #8]
	ldr	w8, [x21, #28]
	b	LBB0_17
LBB0_35:
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_mlist_uptree
	ldr	w0, [x21]
	b	LBB0_32
LBB0_36:
	mov	w0, #1
	bl	_assert
	ldr	w2, [x28]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_mlist_uptree
	ldr	w0, [x21, #32]
	b	LBB0_32
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
