	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _xmlwriter_get_valid_file_path
__xmlwriter_get_valid_file_path:        ## @_xmlwriter_get_valid_file_path
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_xmlCreateURI
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_xmlURIEscapeStr
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_xmlParseURIReference
	movq	%rbx, %rdi
	callq	_xmlFree
	cmpq	$0, (%r15)
	je	LBB0_8
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	$8, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	$17, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r13, %r14
	jmp	LBB0_14
LBB0_4:
	cmpb	$0, 8(%r13)
	je	LBB0_15
## %bb.5:
	addq	$7, %r13
	jmp	LBB0_8
LBB0_6:
	cmpb	$0, 17(%r13)
	je	LBB0_15
## %bb.7:
	addq	$16, %r13
LBB0_8:
	movq	%rsp, %rbx
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_VCWD_REALPATH
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_expand_filepath
	testl	%eax, %eax
	je	LBB0_16
LBB0_10:
	movq	%r13, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	%r13, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_php_dirname
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	leaq	-52(%rbp), %rsi
	movq	%r12, %rdi
	callq	_php_sys_stat
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_xmlFreeURI
	xorl	%r14d, %r14d
	movq	%rbx, %rsp
	jmp	LBB0_18
LBB0_13:
	movq	%rbx, %rsp
LBB0_14:
	movq	%r15, %rdi
	callq	_xmlFreeURI
	jmp	LBB0_18
LBB0_15:
	movq	%r15, %rdi
	callq	_xmlFreeURI
	jmp	LBB0_17
LBB0_16:
	movq	%r15, %rdi
	callq	_xmlFreeURI
	movq	%rbx, %rsp
LBB0_17:
	xorl	%r14d, %r14d
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%r14, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	":"

L_.str.1:                               ## @.str.1
	.asciz	"file:///"

L_.str.2:                               ## @.str.2
	.asciz	"file://localhost/"

	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.no_dead_strip	__xmlwriter_get_valid_file_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _xmlwriter_get_valid_file_path
__xmlwriter_get_valid_file_path:        ; @_xmlwriter_get_valid_file_path
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_xmlCreateURI
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_xmlURIEscapeStr
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_xmlParseURIReference
	mov	x0, x22
	bl	_xmlFree
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w2, #8
	bl	_strncasecmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w2, #17
	bl	_strncasecmp
	cbz	x0, LBB0_6
; %bb.3:
	mov	x19, x21
	b	LBB0_14
LBB0_4:
	ldrb	w8, [x21, #8]
	cbz	w8, LBB0_15
; %bb.5:
	add	x21, x21, #7
	b	LBB0_8
LBB0_6:
	ldrb	w8, [x21, #17]
	cbz	w8, LBB0_15
; %bb.7:
	add	x21, x21, #16
LBB0_8:
	mov	x23, sp
Lloh9:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	x9, x8
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	x0, x21
	mov	x1, x19
	bl	_VCWD_REALPATH
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x19
	bl	_expand_filepath
	cbz	w0, LBB0_12
LBB0_10:
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_memcpy
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	mov	x0, x22
	bl	_php_dirname
	cbz	x0, LBB0_13
; %bb.11:
	sub	x1, x29, #60
	mov	x0, x22
	bl	_php_sys_stat
	cbz	x0, LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_xmlFreeURI
	mov	sp, x23
	b	LBB0_16
LBB0_13:
	mov	sp, x23
LBB0_14:
	mov	x0, x20
	bl	_xmlFreeURI
	b	LBB0_17
LBB0_15:
	mov	x0, x20
	bl	_xmlFreeURI
LBB0_16:
	mov	x19, #0
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x19
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	":"

l_.str.1:                               ; @.str.1
	.asciz	"file:///"

l_.str.2:                               ; @.str.2
	.asciz	"file://localhost/"

	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.no_dead_strip	__xmlwriter_get_valid_file_path
.subsections_via_symbols
