	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_get_idx                  ## -- Begin function index_get_idx
	.p2align	4, 0x90
_index_get_idx:                         ## @index_get_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_index_size@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	_index_cnt@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	$-1, %eax
	movl	%r8d, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %edx
	subl	%eax, %edx
	movl	%ecx, %esi
	cmpl	$1, %edx
	jle	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%rax), %ecx
	sarl	%ecx
	movslq	%ecx, %rdx
	cmpq	%rdi, (%r9,%rdx,8)
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %eax
	movl	%esi, %ecx
	jmp	LBB0_5
LBB0_6:
	incl	%eax
	cmpl	%r8d, %eax
	jne	LBB0_8
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	cmpl	%r8d, %eax
	je	LBB0_10
LBB0_8:
	movq	_index_cnt@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movslq	%eax, %rcx
	cmpq	%rdi, (%rdx,%rcx,8)
	jne	LBB0_10
## %bb.9:
	movq	_index_deleted@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rdx,%rcx,8)
	je	LBB0_11
LBB0_10:
	movl	%r8d, %eax
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_index_size,4,2                 ## @index_size
	.comm	_index_cnt,8,3                  ## @index_cnt
	.comm	_index_deleted,8,3              ## @index_deleted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_get_idx                  ; -- Begin function index_get_idx
	.p2align	2
_index_get_idx:                         ; @index_get_idx
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _index_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _index_size@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _index_cnt@GOTPAGE
Lloh4:
	ldr	x10, [x10, _index_cnt@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x11, [x10]
	mov	w8, #-1
	mov	x12, x9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w13, w12, w8
	asr	w13, w13, #1
	ldr	x14, [x11, w13, sxtw #3]
	cmp	x14, x0
	csel	w8, w13, w8, lt
	csel	w12, w12, w13, lt
	sub	w13, w12, w8
	cmp	w13, #1
	b.gt	LBB0_2
; %bb.3:
	add	w8, w8, #1
	cmp	w8, w9
	b.ne	LBB0_5
	b	LBB0_7
LBB0_4:
	mov	w8, #0
	cmp	w8, w9
	b.eq	LBB0_7
LBB0_5:
	ldr	x10, [x10]
	ldr	x10, [x10, w8, sxtw #3]
	cmp	x10, x0
	b.ne	LBB0_7
; %bb.6:
	sxtw	x10, w8
Lloh5:
	adrp	x11, _index_deleted@GOTPAGE
Lloh6:
	ldr	x11, [x11, _index_deleted@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	ldr	x10, [x11, x10, lsl #3]
	cbz	x10, LBB0_8
LBB0_7:
	mov	x8, x9
LBB0_8:
	mov	x0, x8
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_index_size,4,2                 ; @index_size
	.comm	_index_cnt,8,3                  ; @index_cnt
	.comm	_index_deleted,8,3              ; @index_deleted
.subsections_via_symbols
