	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_cache_pos
_find_cache_pos:                        ## @find_cache_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	8(%rax), %r14
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	(%rax), %r13
	movl	$-1, %eax
	cmpl	(%r14), %r13d
	jge	LBB0_18
## %bb.1:
	movq	%rdi, %rcx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movslq	(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	cmpq	%rax, %r13
	jge	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %r15
	movq	_CE_UNPACKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	jne	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rcx, %rsi
	movq	%rcx, %rbx
	callq	_ce_in_traverse_path
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %r12
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %r12
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	subl	%r12d, %ebx
	jmp	LBB0_11
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %esi
	testl	%esi, %esi
	movq	%rbx, %rcx
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rdi
	movl	(%rcx), %edx
	callq	_strncmp
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	jle	LBB0_16
	jmp	LBB0_17
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_ce_namelen
	movq	%rbx, %rcx
	movl	%eax, %ebx
	subl	%ecx, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_name_compare
	testl	%eax, %eax
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jg	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %rax
	jbe	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$47, (%r12,%rbx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jl	LBB0_16
LBB0_17:
	movl	$-1, %eax
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	$-2, %eax
	subl	%r13d, %eax
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	cmovel	%r13d, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_CE_UNPACKED,4,2                ## @CE_UNPACKED
	.no_dead_strip	_find_cache_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_cache_pos
_find_cache_pos:                        ; @find_cache_pos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x25, [x0, #8]
	ldr	x26, [x25, #8]
	ldrsw	x27, [x25]
	ldr	w8, [x26]
	cmp	w27, w8
	b.ge	LBB0_17
; %bb.1:
	mov	x19, x2
	mov	x21, x0
	ldrsw	x24, [x0]
	add	w28, w27, #2
Lloh0:
	adrp	x20, _CE_UNPACKED@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CE_UNPACKED@GOTPAGEOFF]
	stp	x0, x24, [sp, #8]               ; 16-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x26]
	add	w28, w28, #1
	cmp	x27, x8
	b.ge	LBB0_17
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26, #8]
	ldr	x23, [x8, x27, lsl #3]
	ldr	w8, [x23]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	sub	w9, w28, #2
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	str	w8, [x25]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_ce_in_traverse_path
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x20
	mov	x20, x19
	ldr	x8, [x23, #8]
	add	x22, x8, x24
	mov	x0, x22
	mov	w1, #47
	bl	_strchr
	mov	x19, x24
	mov	x24, x0
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w23, w24, w22
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x21, #4]
	cbz	w1, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x23, #8]
	ldr	w2, [x21]
	bl	_strncmp
	cmp	x0, #0
	b.le	LBB0_2
	b	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_ce_namelen
	sub	w23, w0, w19
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x19, x20
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	bl	_name_compare
	cbz	w0, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #0
	mov	x20, x21
	ldp	x21, x24, [sp, #8]              ; 16-byte Folded Reload
	b.gt	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w23
	cmp	x8, x19
	b.ls	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x19
	bl	_memcmp
	cbnz	w0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrsb	w8, [x22, x19]
	cmp	w8, #47
	b.lt	LBB0_2
LBB0_17:
	mov	w0, #-1
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
	sub	w8, w28, #2
	cmp	x24, #0
	csneg	w0, w8, w28, eq
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CE_UNPACKED,4,2                ; @CE_UNPACKED
	.no_dead_strip	_find_cache_pos
.subsections_via_symbols
