	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expand_path                    ## -- Begin function expand_path
	.p2align	4, 0x90
_expand_path:                           ## @expand_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_jv_get_kind
	movq	_JV_KIND_STRING@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movl	%ebx, %edi
	callq	_jv_string_value
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_jv_copy
	movl	%eax, %edi
	callq	_jv_string_length_bytes
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.1:
	cmpb	$126, (%r14)
	jne	LBB0_7
## %bb.2:
	cmpb	$47, 1(%r14)
	jne	LBB0_7
## %bb.3:
	xorl	%eax, %eax
	callq	_get_home
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_jv_is_valid
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	%r15d, %edi
	callq	_jv_string_value
	addq	$2, %r14
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_jv_string_fmt
	jmp	LBB0_6
LBB0_5:
	movl	%r15d, %edi
	callq	_jv_invalid_get_msg
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_jv_string_value
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_jv_string_fmt
	movl	%eax, %edi
	callq	_jv_invalid_with_msg
LBB0_6:
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_jv_free
	movl	%ebx, %edi
	callq	_jv_free
	movl	%r14d, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JV_KIND_STRING,8,3             ## @JV_KIND_STRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

L_.str.1:                               ## @.str.1
	.asciz	"Could not expand %s. (%s)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expand_path                    ; -- Begin function expand_path
	.p2align	2
_expand_path:                           ; @expand_path
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_jv_get_kind
Lloh0:
	adrp	x8, _JV_KIND_STRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JV_KIND_STRING@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_jv_string_value
	mov	x21, x0
	mov	x0, x19
	bl	_jv_copy
	bl	_jv_string_length_bytes
	cmp	w0, #2
	b.lt	LBB0_7
; %bb.1:
	ldrb	w8, [x21]
	cmp	w8, #126
	b.ne	LBB0_7
; %bb.2:
	ldrb	w8, [x21, #1]
	cmp	w8, #47
	b.ne	LBB0_7
; %bb.3:
	bl	_get_home
	mov	x20, x0
	bl	_jv_is_valid
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_jv_string_value
	mov	x1, x0
	add	x2, x21, #2
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_jv_string_fmt
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_jv_invalid_get_msg
	mov	x20, x0
	bl	_jv_string_value
	mov	x2, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_jv_string_fmt
	bl	_jv_invalid_with_msg
LBB0_6:
	mov	x21, x0
	mov	x0, x20
	bl	_jv_free
	mov	x0, x19
	bl	_jv_free
	mov	x19, x21
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_JV_KIND_STRING,8,3             ; @JV_KIND_STRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

l_.str.1:                               ; @.str.1
	.asciz	"Could not expand %s. (%s)"

.subsections_via_symbols
