	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_get_next                 ## -- Begin function index_get_next
	.p2align	4, 0x90
_index_get_next:                        ## @index_get_next
	.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
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_index_size@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$-1, %edx
	movl	$1, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	negl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %eax
	movl	%ebx, %edx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	subl	%edx, %ecx
	movl	%eax, %r14d
	movl	%edx, %ebx
	cmpl	$1, %ecx
	jle	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	leal	(%rdx,%r14), %ebx
	sarl	%ebx
	movq	_index_binary_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_index_offset@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rax,%rcx,4), %r12d
	movl	4(%rax,%rcx,4), %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	callq	_min
	leaq	-1(%rax), %r8
	movl	%r13d, %edi
	movl	%r12d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_mystrcmp2
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r15d
	movl	%ebx, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %ebx
LBB0_7:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	movq	_index_size@GOTPCREL(%rip), %r12
	jl	LBB0_9
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_10
## %bb.11:
	movq	_index_binary_data@GOTPCREL(%rip), %rcx
	movq	_index_offset@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rdx
	movq	(%rax,%rdx,8), %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_empty_index_entry@GOTPCREL(%rip), %rax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_index_size,4,2                 ## @index_size
	.comm	_index_binary_data,8,3          ## @index_binary_data
	.comm	_index_offset,8,3               ## @index_offset
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(l,r) = (%d,%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"index_size = %d\n"

	.comm	_empty_index_entry,8,2          ## @empty_index_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_get_next                 ; -- Begin function index_get_next
	.p2align	2
_index_get_next:                        ; @index_get_next
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _index_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _index_size@GOTPAGEOFF]
Lloh2:
	ldr	w28, [x8]
Lloh3:
	adrp	x27, _index_offset@GOTPAGE
Lloh4:
	ldr	x27, [x27, _index_offset@GOTPAGEOFF]
	cmp	w28, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w22, #1
	mov	w26, #-1
	mov	w23, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	neg	w22, w0
	mov	x8, x28
	mov	x26, x21
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w8, w26
	mov	x28, x8
	mov	x21, x26
	cmp	w9, #1
	b.le	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w26, w28
	asr	w21, w8, #1
Lloh5:
	adrp	x8, _index_binary_data@GOTPAGE
Lloh6:
	ldr	x8, [x8, _index_binary_data@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x27]
	ldr	x9, [x9, w21, sxtw #3]
	add	x8, x8, x9, lsl #2
	ldp	w25, w24, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_min
	sub	x4, x0, #1
	mov	x0, x24
	mov	x1, x25
	mov	x2, x20
	mov	x3, x19
	bl	_mystrcmp2
	tbnz	w0, #31, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	mov	x8, x21
	cbnz	w0, LBB0_3
	b	LBB0_7
LBB0_6:
	mov	w21, #-1
LBB0_7:
Lloh8:
	adrp	x8, _verbosity@GOTPAGE
Lloh9:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #4
Lloh11:
	adrp	x20, _index_size@GOTPAGE
Lloh12:
	ldr	x20, [x20, _index_size@GOTPAGEOFF]
	b.lt	LBB0_9
; %bb.8:
Lloh13:
	adrp	x19, _stderr@GOTPAGE
Lloh14:
	ldr	x19, [x19, _stderr@GOTPAGEOFF]
	ldr	w0, [x19]
	str	x28, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_fprintf
	ldr	w0, [x19]
	ldr	w2, [x20]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_9:
	add	w8, w21, #1
	ldr	w9, [x20]
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.10:
Lloh19:
	adrp	x9, _index_binary_data@GOTPAGE
Lloh20:
	ldr	x9, [x9, _index_binary_data@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	x10, [x27]
	ldr	x8, [x10, w8, sxtw #3]
	add	x0, x9, x8, lsl #2
	b	LBB0_12
LBB0_11:
Lloh22:
	adrp	x0, _empty_index_entry@GOTPAGE
Lloh23:
	ldr	x0, [x0, _empty_index_entry@GOTPAGEOFF]
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_index_size,4,2                 ; @index_size
	.comm	_index_binary_data,8,3          ; @index_binary_data
	.comm	_index_offset,8,3               ; @index_offset
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(l,r) = (%d,%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"index_size = %d\n"

	.comm	_empty_index_entry,8,2          ; @empty_index_entry
.subsections_via_symbols
