	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_cli_server_request_translate_vpath
_php_cli_server_request_translate_vpath: ## @php_cli_server_request_translate_vpath
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %rsi
	addl	$13, %edx
	movl	$1, %edi
	movl	$1, %ecx
	callq	_safe_pemalloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_memmove
	addq	%r12, %r14
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rax
	cmpb	$47, (%rax)
	movq	%r14, %rbx
	je	LBB0_4
## %bb.3:
	movq	_DEFAULT_SLASH@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	leaq	1(%r14), %rbx
	movb	%al, (%r14)
	movq	(%r15), %rdx
	jmp	LBB0_4
LBB0_1:
	xorl	%edx, %edx
	movq	%r14, %rbx
LBB0_4:
	movq	8(%r15), %rsi
	leaq	(%rsi,%rdx), %rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r13
	cmpq	%rsi, %rax
	jbe	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	-1(%r13), %rax
	cmpb	$46, (%r13)
	jne	LBB0_5
LBB0_7:
	movq	%rbx, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_memmove
	movq	(%r15), %rax
	leaq	(%rbx,%rax), %rcx
	movb	$0, (%rbx,%rax)
	cmpq	%r12, %rcx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jbe	LBB0_8
## %bb.9:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_php_sys_stat
	testl	%eax, %eax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.27:
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_28:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	testq	%r15, %r15
	movq	_DEFAULT_SLASH@GOTPCREL(%rip), %r14
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_pefree
	movb	(%r14), %al
	movb	%al, (%rbx)
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	movb	(%r14), %al
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r12, %rcx
	jbe	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=2
	leaq	-1(%rcx), %rbx
	cmpb	%al, -1(%rcx)
	movq	%rbx, %rcx
	jne	LBB0_31
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	%rcx, %rbx
LBB0_34:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	subq	%rbx, %r14
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_pestrndup
	movq	%rax, %r15
	movb	$0, (%rbx)
	cmpq	%r12, %rbx
	jbe	LBB0_35
## %bb.11:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	callq	_php_sys_stat
	testl	%eax, %eax
	jne	LBB0_28
	jmp	LBB0_12
LBB0_8:
	movq	%rcx, %rbx
	jmp	LBB0_38
LBB0_10:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_35
## %bb.13:
	movq	_DEFAULT_SLASH@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	cmpb	%al, -1(%rbx)
	je	LBB0_15
## %bb.14:
	movb	%al, (%rbx)
	incq	%rbx
LBB0_15:
	leaq	L_.str(%rip), %rsi
	movl	$10, %edx
	movq	%rbx, %rdi
	callq	_memmove
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_php_sys_stat
	testl	%eax, %eax
	je	LBB0_16
LBB0_24:
	leaq	L_.str.1(%rip), %rsi
	movl	$11, %edx
	movq	%rbx, %rdi
	callq	_memmove
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_php_sys_stat
	leaq	_php_cli_server_request_translate_vpath.index_files+16(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.25:
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_19
## %bb.26:
	movl	$10, %eax
	leaq	_php_cli_server_request_translate_vpath.index_files+8(%rip), %rcx
	jmp	LBB0_18
LBB0_16:
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_24
## %bb.17:
	movl	$9, %eax
	leaq	_php_cli_server_request_translate_vpath.index_files(%rip), %rcx
LBB0_18:
	addq	%rax, %rbx
LBB0_19:
	cmpq	$0, (%rcx)
	je	LBB0_21
## %bb.20:
	cmpq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	ja	LBB0_21
LBB0_35:
	testq	%r15, %r15
	je	LBB0_36
## %bb.37:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, 16(%rax)
	movq	%r15, 24(%rax)
	movq	%rax, %r15
	jmp	LBB0_38
LBB0_36:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_38:
	movq	8(%r15), %rdi
	movl	$1, %esi
	callq	_pefree
	movq	%rbx, %r14
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	subq	%rdi, %r14
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_pestrndup
	movq	%rax, 8(%r15)
	movq	%r14, (%r15)
	subl	%r12d, %ebx
	movq	%r12, 32(%r15)
	movl	%ebx, 40(%r15)
	movl	-48(%rbp), %eax
	movl	%eax, 44(%r15)
LBB0_39:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	testq	%r15, %r15
	je	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_pefree
LBB0_23:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_pefree
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @php_cli_server_request_translate_vpath.index_files
_php_cli_server_request_translate_vpath.index_files:
	.quad	L_.str
	.quad	L_.str.1
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index.php"

L_.str.1:                               ## @.str.1
	.asciz	"index.html"

	.comm	_DEFAULT_SLASH,1,0              ## @DEFAULT_SLASH
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.no_dead_strip	_php_cli_server_request_translate_vpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_cli_server_request_translate_vpath
_php_cli_server_request_translate_vpath: ; @php_cli_server_request_translate_vpath
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x1, [x0]
	add	w2, w21, #13
	mov	w0, #1
	mov	w3, #1
	bl	_safe_pemalloc
	mov	x20, x0
	mov	x1, x22
	mov	x2, x21
	bl	_memmove
	add	x21, x20, x21
	ldr	x2, [x19]
	cbz	x2, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldrb	w8, [x8]
	mov	x23, x21
	cmp	w8, #47
	b.eq	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _DEFAULT_SLASH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_SLASH@GOTPAGEOFF]
	ldrb	w8, [x8]
	mov	x23, x21
	strb	w8, [x23], #1
	ldr	x2, [x19]
	b	LBB0_4
LBB0_3:
	mov	x23, x21
LBB0_4:
	ldr	x22, [x19, #8]
	add	x8, x22, x2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x8
	cmp	x8, x22
	b.ls	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x26
	ldrb	w9, [x8], #-1
	cmp	w9, #46
	b.ne	LBB0_5
LBB0_7:
	mov	x0, x23
	mov	x1, x22
	bl	_memmove
	ldr	x8, [x19]
	add	x27, x23, x8
	cmp	x27, x20
	strb	wzr, [x27]
	b.ls	LBB0_17
; %bb.8:
	add	x1, sp, #8
	mov	x0, x20
	bl	_php_sys_stat
	cbz	w0, LBB0_18
; %bb.9:
	mov	x24, #0
Lloh2:
	adrp	x28, _DEFAULT_SLASH@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DEFAULT_SLASH@GOTPAGEOFF]
	mov	x23, x27
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cbz	x24, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x24
	mov	w1, #1
	bl	_pefree
	ldrb	w8, [x28]
	strb	w8, [x23]
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w8, [x28]
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x23, x20
	b.ls	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldrb	w9, [x23, #-1]!
	cmp	w9, w8
	b.ne	LBB0_13
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	sub	x25, x27, x23
	mov	x0, x23
	mov	x1, x25
	mov	w2, #1
	bl	_pestrndup
	mov	x24, x0
	strb	wzr, [x23]
	cmp	x23, x20
	b.ls	LBB0_32
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_php_sys_stat
	cbnz	w0, LBB0_10
	b	LBB0_19
LBB0_17:
	mov	x23, x27
	b	LBB0_34
LBB0_18:
	mov	x25, #0
	mov	x24, #0
	mov	x23, x27
LBB0_19:
	ldr	w8, [sp, #8]
Lloh4:
	adrp	x9, _S_IFDIR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _S_IFDIR@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.20:
	ldurb	w9, [x23, #-1]
Lloh7:
	adrp	x8, _DEFAULT_SLASH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DEFAULT_SLASH@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w9, w8
	b.eq	LBB0_22
; %bb.21:
	strb	w8, [x23], #1
LBB0_22:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	w2, #10
	bl	_memmove
	add	x1, sp, #8
	mov	x0, x20
	bl	_php_sys_stat
	cbz	w0, LBB0_25
LBB0_23:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	w2, #11
	bl	_memmove
	add	x1, sp, #8
	mov	x0, x20
	bl	_php_sys_stat
	cbz	w0, LBB0_27
; %bb.24:
Lloh13:
	adrp	x8, _php_cli_server_request_translate_vpath.index_files@PAGE+16
Lloh14:
	add	x8, x8, _php_cli_server_request_translate_vpath.index_files@PAGEOFF+16
Lloh15:
	ldr	x8, [x8]
	cbnz	x8, LBB0_31
	b	LBB0_36
LBB0_25:
	ldr	w8, [sp, #8]
Lloh16:
	adrp	x9, _S_IFREG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _S_IFREG@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.26:
Lloh19:
	adrp	x8, _php_cli_server_request_translate_vpath.index_files@PAGE
Lloh20:
	add	x8, x8, _php_cli_server_request_translate_vpath.index_files@PAGEOFF
	mov	w9, #9
	b	LBB0_29
LBB0_27:
	ldr	w9, [sp, #8]
Lloh21:
	adrp	x8, _S_IFREG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _S_IFREG@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x8]
Lloh24:
	adrp	x8, _php_cli_server_request_translate_vpath.index_files@PAGE+8
Lloh25:
	add	x8, x8, _php_cli_server_request_translate_vpath.index_files@PAGEOFF+8
	tst	w10, w9
	b.eq	LBB0_30
; %bb.28:
	mov	w9, #10
LBB0_29:
	add	x23, x23, x9
	ldr	x8, [x8]
	cbnz	x8, LBB0_31
	b	LBB0_36
LBB0_30:
	add	x8, x8, #8
	ldr	x8, [x8]
	cbz	x8, LBB0_36
LBB0_31:
	cmp	x26, x22
	b.hi	LBB0_36
LBB0_32:
	cbz	x24, LBB0_34
; %bb.33:
	stp	x25, x24, [x19, #16]
LBB0_34:
	ldr	x0, [x19, #8]
	mov	w1, #1
	bl	_pefree
	sub	x22, x23, x21
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	bl	_pestrndup
	stp	x22, x0, [x19]
	sub	w8, w23, w20
	str	x20, [x19, #32]
	ldr	w9, [sp, #8]
	stp	w8, w9, [x19, #40]
LBB0_35:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_36:
	cbz	x24, LBB0_38
; %bb.37:
	mov	x0, x24
	mov	w1, #1
	bl	_pefree
LBB0_38:
	mov	x0, x20
	mov	w1, #1
	bl	_pefree
	b	LBB0_35
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAddLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @php_cli_server_request_translate_vpath.index_files
_php_cli_server_request_translate_vpath.index_files:
	.quad	l_.str
	.quad	l_.str.1
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index.php"

l_.str.1:                               ; @.str.1
	.asciz	"index.html"

	.comm	_DEFAULT_SLASH,1,0              ; @DEFAULT_SLASH
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.no_dead_strip	_php_cli_server_request_translate_vpath
.subsections_via_symbols
