	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function index_pos_by_traverse_info
_index_pos_by_traverse_info:            ## @index_pos_by_traverse_info
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	(%rdi), %ecx
	movl	4(%rdi), %edx
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_make_traverse_path
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strbuf_addch
	movq	(%r15), %rdi
	movl	-32(%rbp), %esi
	movl	-28(%rbp), %edx
	callq	_index_name_pos
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_2:
	movl	%r14d, %ebx
	notl	%ebx
	movq	(%r15), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	movl	-32(%rbp), %esi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpl	$-2, %r14d
	jg	LBB0_6
## %bb.4:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	$-2, %ecx
	subl	%r14d, %ecx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	movl	-32(%rbp), %esi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_BUG
LBB0_6:
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This is a directory and should not exist in index"

L_.str.1:                               ## @.str.1
	.asciz	"pos must point at the first entry in this directory"

	.no_dead_strip	_index_pos_by_traverse_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function index_pos_by_traverse_info
_index_pos_by_traverse_info:            ; @index_pos_by_traverse_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x21, [x1]
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldp	w3, w2, [x0]
	add	x0, sp, #8
	bl	_strbuf_make_traverse_path
	add	x0, sp, #8
	mov	w1, #47
	bl	_strbuf_addch
	ldr	x0, [x21]
	ldp	w1, w2, [sp, #8]
	bl	_index_name_pos
	mov	x20, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_2:
	mvn	w19, w20
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8, w19, sxtw #3]
	ldr	w0, [x8]
	ldr	w1, [sp, #8]
	bl	_starts_with
	cbz	x0, LBB0_5
; %bb.3:
	cmn	w20, #2
	b.gt	LBB0_6
; %bb.4:
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	w9, #-2
	sub	w9, w9, w20
	ldr	x8, [x8, w9, uxtw #3]
	ldr	w0, [x8]
	ldr	w1, [sp, #8]
	bl	_starts_with
	cbz	x0, LBB0_6
LBB0_5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BUG
LBB0_6:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This is a directory and should not exist in index"

l_.str.1:                               ; @.str.1
	.asciz	"pos must point at the first entry in this directory"

	.no_dead_strip	_index_pos_by_traverse_info
.subsections_via_symbols
