	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_name_to_uri
_file_name_to_uri:                      ## @file_name_to_uri
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
	movq	(%rbx), %rdi
	callq	_ends_with_dirsep
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %r13
	cmoveq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %ebx
	addl	%ebx, %eax
	incl	%eax
	movslq	%eax, %r14
	movq	%r14, %rdi
	callq	_OPENSSL_zalloc
	movq	%rax, %rbx
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_OPENSSL_strlcat
	movq	(%r12), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_OPENSSL_strlcat
	movq	(%r12), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_OPENSSL_strlcat
	jmp	LBB0_3
LBB0_1:
	movq	_OSSL_STORE_F_FILE_NAME_TO_URI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OSSL_STOREerr
LBB0_3:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	setne	%al
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

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

	.comm	_OSSL_STORE_F_FILE_NAME_TO_URI,4,2 ## @OSSL_STORE_F_FILE_NAME_TO_URI
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_file_name_to_uri
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_name_to_uri
_file_name_to_uri:                      ; @file_name_to_uri
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	cmp	x1, #0
	cset	w0, ne
	bl	_assert
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x21]
	bl	_ends_with_dirsep
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x22, x9, x8, eq
	ldr	x0, [x21]
	bl	_strlen
	mov	x23, x0
	mov	x0, x22
	bl	_strlen
	mov	x24, x0
	mov	x0, x19
	bl	_strlen
	add	w8, w23, w24
	add	w8, w8, w0
	add	w8, w8, #1
	sxtw	x24, w8
	mov	x0, x24
	bl	_OPENSSL_zalloc
	mov	x23, x0
	str	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x1, [x21]
	mov	x0, x23
	mov	x2, x24
	bl	_OPENSSL_strlcat
	ldr	x0, [x20]
	mov	x1, x22
	mov	x2, x24
	bl	_OPENSSL_strlcat
	ldr	x0, [x20]
	mov	x1, x19
	mov	x2, x24
	bl	_OPENSSL_strlcat
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _OSSL_STORE_F_FILE_NAME_TO_URI@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OSSL_STORE_F_FILE_NAME_TO_URI@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_OSSL_STOREerr
LBB0_3:
	cmp	x23, #0
	cset	w0, ne
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

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

	.comm	_OSSL_STORE_F_FILE_NAME_TO_URI,4,2 ; @OSSL_STORE_F_FILE_NAME_TO_URI
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_file_name_to_uri
.subsections_via_symbols
