	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Dir_FindHereOrAbove            ## -- Begin function Dir_FindHereOrAbove
	.p2align	4, 0x90
_Dir_FindHereOrAbove:                   ## @Dir_FindHereOrAbove
	.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
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	incl	%r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	(%rbx), %r14d
	incl	%r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r12, %rcx
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movq	%r8, %r15
	xorl	%eax, %eax
	callq	_snprintf
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_cached_stat
	cmpl	$-1, %eax
	je	LBB0_1
LBB0_4:
	movq	_S_IFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-56(%rbp), %eax
	movq	_S_IFDIR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.5:
	movq	%r13, %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	movl	%eax, %eax
	addq	%r13, %rax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$47, (%rax)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	decq	%rax
	cmpq	%r13, %rax
	ja	LBB0_7
	jmp	LBB0_10
LBB0_1:
	movslq	%ebx, %rbx
	addq	%r12, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, (%rbx)
	movq	%r13, %rdi
	movl	%r14d, %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rcx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r13, %rdi
	leaq	-56(%rbp), %rsi
	callq	_cached_stat
	cmpl	$-1, %eax
	jne	LBB0_4
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	cmpq	%r12, %rbx
	je	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	jbe	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$47, (%rbx)
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	decq	%rbx
	cmpq	%r12, %rbx
	ja	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rbx
	jmp	LBB0_17
LBB0_3:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movb	$0, (%rax)
LBB0_10:
	leaq	L_.str(%rip), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movl	$1, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
LBB0_11:
	movq	%rcx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Dir_FindHereOrAbove            ; -- Begin function Dir_FindHereOrAbove
	.p2align	2
_Dir_FindHereOrAbove:                   ; @Dir_FindHereOrAbove
	.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
	sub	sp, sp, #16
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x3, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w1, w9, #1
	mov	x9, x1
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x1, #15
	and	x10, x10, #0x1fffffff0
	sub	x23, x9, x10
	mov	sp, x23
	ldr	w8, [x8]
	add	w24, w8, #1
	mov	x9, x24
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_snprintf
	mov	x0, x23
	bl	_strlen
	mov	x25, x0
	str	x22, [sp, #-16]!
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x24
	mov	x3, x23
	bl	_snprintf
	add	sp, sp, #16
	sub	x1, x29, #96
	mov	x0, x21
	bl	_cached_stat
	cmn	w0, #1
	b.eq	LBB0_6
LBB0_1:
	ldur	w8, [x29, #-96]
Lloh13:
	adrp	x9, _S_IFMT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _S_IFMT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh16:
	adrp	x9, _S_IFDIR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _S_IFDIR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_15
; %bb.2:
	mov	x0, x21
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.3:
	add	x8, x21, w0, uxtw
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8]
	cmp	w9, #47
	b.eq	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x8, #1
	cmp	x8, x21
	b.hi	LBB0_4
	b	LBB0_15
LBB0_6:
	add	x27, x23, w25, sxtw
Lloh19:
	adrp	x25, l_.str.1@PAGE
Lloh20:
	add	x25, x25, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	strb	wzr, [x27]
	str	x22, [sp, #-16]!
	mov	x0, x21
	mov	x1, x24
	mov	x2, x25
	mov	x3, x23
	bl	_snprintf
	add	sp, sp, #16
	sub	x1, x29, #96
	mov	x0, x21
	bl	_cached_stat
	cmn	w0, #1
	b.ne	LBB0_1
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	x27, x23
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	b.ls	LBB0_7
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x27]
	cmp	w8, #47
	b.eq	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	sub	x27, x27, #1
	cmp	x27, x23
	b.hi	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x27, x23
	b	LBB0_7
LBB0_13:
	mov	w0, #0
	b	LBB0_16
LBB0_14:
	strb	wzr, [x8]
LBB0_15:
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	bl	_snprintf
	mov	w0, #1
LBB0_16:
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #80
	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
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
.subsections_via_symbols
