	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getdir
_getdir:                                ## @getdir
	.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	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	testq	%r14, %r14
	je	LBB0_8
## %bb.1:
	cmpb	$0, (%r14)
	je	LBB0_8
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	cmpb	$0, (%rbx)
	jne	LBB0_5
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_5:
	movq	%rbx, %rdi
	callq	_daemon_avoid_alias
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_7:
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_end_url_with_slash
	xorl	%eax, %eax
	cmpb	$47, (%rbx)
	sete	%al
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_addstr
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movq	%rax, %rbx
	jmp	LBB0_11
LBB0_8:
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	cmpb	$0, (%rax)
	je	LBB0_10
## %bb.12:
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xstrdup                        ## TAILCALL
LBB0_10:
	leaq	L_.str.5(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_die
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PATH_INFO"

L_.str.1:                               ## @.str.1
	.asciz	"GIT_PROJECT_ROOT"

L_.str.2:                               ## @.str.2
	.asciz	"PATH_TRANSLATED"

L_.str.3:                               ## @.str.3
	.asciz	"GIT_PROJECT_ROOT is set but PATH_INFO is not"

L_.str.4:                               ## @.str.4
	.asciz	"'%s': aliased"

L_.str.5:                               ## @.str.5
	.asciz	"No GIT_PROJECT_ROOT or PATH_TRANSLATED from server"

	.no_dead_strip	_getdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getdir
_getdir:                                ; @getdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x19, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x20, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbz	x20, LBB0_8
; %bb.1:
	ldrb	w8, [x20]
	cbz	w8, LBB0_8
; %bb.2:
	cbz	x19, LBB0_4
; %bb.3:
	ldrb	w8, [x19]
	cbnz	w8, LBB0_5
LBB0_4:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die
LBB0_5:
	mov	x0, x19
	bl	_daemon_avoid_alias
	cbz	x0, LBB0_7
; %bb.6:
	str	x19, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_die
LBB0_7:
	add	x0, sp, #8
	mov	x1, x20
	bl	_end_url_with_slash
	mov	x8, x19
	ldrb	w9, [x8], #1
	cmp	w9, #47
	csel	x1, x19, x8, ne
	add	x0, sp, #8
	bl	_strbuf_addstr
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	b	LBB0_12
LBB0_8:
	cbz	x0, LBB0_11
; %bb.9:
	ldrb	w8, [x0]
	cbz	w8, LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_xstrdup
LBB0_11:
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_die
	mov	x0, #0
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PATH_INFO"

l_.str.1:                               ; @.str.1
	.asciz	"GIT_PROJECT_ROOT"

l_.str.2:                               ; @.str.2
	.asciz	"PATH_TRANSLATED"

l_.str.3:                               ; @.str.3
	.asciz	"GIT_PROJECT_ROOT is set but PATH_INFO is not"

l_.str.4:                               ; @.str.4
	.asciz	"'%s': aliased"

l_.str.5:                               ; @.str.5
	.asciz	"No GIT_PROJECT_ROOT or PATH_TRANSLATED from server"

	.no_dead_strip	_getdir
.subsections_via_symbols
