	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_get                      ## -- Begin function index_get
	.p2align	4, 0x90
_index_get:                             ## @index_get
	.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, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_index_size@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %r12d
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.1:
	movq	_index_binary_data@GOTPCREL(%rip), %r13
	movq	_index_offset@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %ebx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	subl	%r12d, %eax
	cmpl	$1, %eax
	jle	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%rbx), %r15d
	sarl	%r15d
	movq	(%r13), %rax
	movq	(%r14), %rcx
	movslq	%r15d, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rax,%rcx,4), %rdi
	movl	8(%rax,%rcx,4), %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_mystrcmp
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %r12d
	jmp	LBB0_5
LBB0_6:
	movq	_verbosity@GOTPCREL(%rip), %r13
	cmpl	$4, (%r13)
	jl	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r14), %edi
	movq	_index_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	incl	%r12d
                                        ## implicit-def: $r15
	movq	_index_size@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r12d
	jge	LBB0_14
## %bb.9:
	movq	_index_binary_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_index_offset@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r12d, %rdx
	movq	(%rcx,%rdx,8), %rcx
	leaq	(%rax,%rcx,4), %r15
	movl	8(%rax,%rcx,4), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_vkprintf
	cmpl	$6, (%r13)
	jl	LBB0_14
## %bb.10:
	cmpl	$0, 8(%r15)
	jle	LBB0_13
## %bb.11:
	movq	_stderr@GOTPCREL(%rip), %r14
	leaq	L_.str.3(%rip), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%rbx
	movslq	8(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_index_size@GOTPCREL(%rip), %rbx
LBB0_14:
	movq	_empty_index_entry@GOTPCREL(%rip), %r13
	cmpl	(%rbx), %r12d
	jge	LBB0_17
## %bb.15:
	movq	(%r15), %rdi
	movl	8(%r15), %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_mystrcmp
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movq	%r15, %r13
LBB0_17:
	movq	%r13, %rax
	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"

L_.str.2:                               ## @.str.2
	.asciz	"entry->key_len = %d, key_len = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"%c"

L_.str.4:                               ## @.str.4
	.asciz	"\n"

L_.str.5:                               ## @.str.5
	.asciz	"Item found in index.\n"

	.comm	_empty_index_entry,16,3         ## @empty_index_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_get                      ; -- Begin function index_get
	.p2align	2
_index_get:                             ; @index_get
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _index_size@GOTPAGE
Lloh1:
	ldr	x23, [x23, _index_size@GOTPAGEOFF]
	ldr	w25, [x23]
Lloh2:
	adrp	x22, _index_binary_data@GOTPAGE
Lloh3:
	ldr	x22, [x22, _index_binary_data@GOTPAGEOFF]
Lloh4:
	adrp	x24, _index_offset@GOTPAGE
Lloh5:
	ldr	x24, [x24, _index_offset@GOTPAGEOFF]
	mov	w21, #-1
	cmp	w25, #1
	b.lt	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w21, w25
	asr	w26, w8, #1
	ldr	x8, [x22]
	ldr	x9, [x24]
	ldr	x9, [x9, w26, sxtw #3]
	add	x8, x8, x9, lsl #2
	ldr	x0, [x8]
	ldr	w1, [x8, #8]
	mov	x2, x20
	mov	x3, x19
	bl	_mystrcmp
	cmp	x0, #0
	csel	w25, w25, w26, lt
	csel	w21, w26, w21, lt
	sub	w8, w25, w21
	cmp	w8, #1
	b.gt	LBB0_1
LBB0_2:
Lloh6:
	adrp	x26, _verbosity@GOTPAGE
Lloh7:
	ldr	x26, [x26, _verbosity@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #4
	b.lt	LBB0_4
; %bb.3:
Lloh8:
	adrp	x27, _stderr@GOTPAGE
Lloh9:
	ldr	x27, [x27, _stderr@GOTPAGEOFF]
	ldr	w0, [x27]
	stp	x21, x25, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w0, [x27]
	ldr	w8, [x23]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_4:
	add	w25, w21, #1
	ldr	w8, [x23]
                                        ; implicit-def: $x21
	cmp	w25, w8
	b.ge	LBB0_10
; %bb.5:
	ldr	x8, [x22]
	ldr	x9, [x24]
	ldr	x9, [x9, w25, sxtw #3]
	add	x21, x8, x9, lsl #2
	ldr	w8, [x21, #8]
	stp	x8, x19, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #4
	bl	_vkprintf
	ldr	w8, [x26]
	cmp	w8, #6
	b.lt	LBB0_10
; %bb.6:
	ldr	w8, [x21, #8]
Lloh16:
	adrp	x24, _stderr@GOTPAGE
Lloh17:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x26, #0
Lloh18:
	adrp	x22, l_.str.3@PAGE
Lloh19:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	x8, [x21]
	ldr	w8, [x8, x26, lsl #2]
	str	x8, [sp]
	mov	x1, x22
	bl	_fprintf
	add	x26, x26, #1
	ldrsw	x8, [x21, #8]
	cmp	x26, x8
	b.lt	LBB0_8
LBB0_9:
	ldr	w0, [x24]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_10:
	ldr	w8, [x23]
	cmp	w25, w8
	b.ge	LBB0_12
; %bb.11:
	ldr	x0, [x21]
	ldr	w1, [x21, #8]
	mov	x2, x20
	mov	x3, x19
	bl	_mystrcmp
	cbz	x0, LBB0_14
LBB0_12:
Lloh22:
	adrp	x21, _empty_index_entry@GOTPAGE
Lloh23:
	ldr	x21, [x21, _empty_index_entry@GOTPAGEOFF]
LBB0_13:
	mov	x0, x21
	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
LBB0_14:
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #4
	bl	_vkprintf
	b	LBB0_13
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.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"

l_.str.2:                               ; @.str.2
	.asciz	"entry->key_len = %d, key_len = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"%c"

l_.str.4:                               ; @.str.4
	.asciz	"\n"

l_.str.5:                               ; @.str.5
	.asciz	"Item found in index.\n"

	.comm	_empty_index_entry,16,3         ; @empty_index_entry
.subsections_via_symbols
