	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expand_tilde                   ## -- Begin function expand_tilde
	.p2align	4, 0x90
_expand_tilde:                          ## @expand_tilde
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	cmpb	$126, (%rax)
	jne	LBB0_14
## %bb.3:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	(%r12), %rax
	movb	$0, (%r15)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	1(%rax), %rdi
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %r14d
	testb	%r14b, %r14b
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$47, %r14b
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	jmp	LBB0_4
LBB0_7:
	movb	$0, (%rbx)
	cmpb	$0, (%rdi)
	je	LBB0_8
## %bb.9:
	callq	_getpwnam
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_strlcpy
	jmp	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	callq	_get_home_path
LBB0_11:
	movb	%r14b, (%rbx)
	cmpb	$0, (%r15)
	je	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_psprintf
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	%rbx, (%r12)
LBB0_13:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expand_tilde                   ; -- Begin function expand_tilde
	.p2align	2
_expand_tilde:                          ; @expand_tilde
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_13
; %bb.2:
	ldrb	w8, [x8]
	cmp	w8, #126
	b.ne	LBB0_13
; %bb.3:
	mov	x24, sp
Lloh3:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	x20, [x19]
	strb	wzr, [x21]
	add	x0, x20, #1
	mov	x23, x0
	ldrb	w25, [x23]
	cbz	w25, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w25, #47
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrb	w25, [x23]
	cbnz	w25, LBB0_4
LBB0_6:
	strb	wzr, [x23]
	ldrb	w8, [x0]
	cbz	w8, LBB0_9
; %bb.7:
	bl	_getpwnam
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w1, [x0]
	mov	x0, x21
	mov	x2, x22
	bl	_strlcpy
	b	LBB0_10
LBB0_9:
	mov	x0, x21
	bl	_get_home_path
LBB0_10:
	strb	w25, [x23]
	ldrb	w8, [x21]
	cbz	w8, LBB0_12
; %bb.11:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x23
	bl	_psprintf
	mov	x21, x0
	mov	x0, x20
	bl	_free
	str	x21, [x19]
LBB0_12:
	mov	sp, x24
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

.subsections_via_symbols
