	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function index_name_stage_pos
_index_name_stage_pos:                  ## @index_name_stage_pos
	.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
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ebx
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movl	%ebx, %eax
	movl	%r13d, %ebx
	cmpl	%eax, %ebx
	jle	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r13d
	subl	%eax, %ebx
	sarl	%ebx
	movl	%eax, %r15d
	addl	%eax, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %r14
	movl	(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_ce_namelen
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_ce_stage
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	movl	%eax, %r9d
	callq	_cache_name_stage_compare
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	jns	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %eax
	cmpl	%eax, %ebx
	jg	LBB0_3
LBB0_8:
	notl	%eax
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_index_name_stage_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function index_name_stage_pos
_index_name_stage_pos:                  ; @index_name_stage_pos
	.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
	ldr	w27, [x0]
	cmp	w27, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w28, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w27, w28
	add	w23, w28, w8, asr #1
	ldr	x8, [x22, #8]
	ldr	x24, [x8, w23, sxtw #3]
	ldr	w25, [x24]
	mov	x0, x24
	bl	_ce_namelen
	mov	x26, x0
	mov	x0, x24
	bl	_ce_stage
	mov	x5, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x25
	mov	x4, x26
	bl	_cache_name_stage_compare
	cbz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #0
	csel	w27, w23, w27, lt
	csinc	w28, w28, w23, lt
	cmp	w27, w28
	b.gt	LBB0_2
; %bb.4:
	mvn	w23, w28
	b	LBB0_6
LBB0_5:
	mov	w23, #-1
LBB0_6:
	mov	x0, x23
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_index_name_stage_pos
.subsections_via_symbols
