	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fn_tilde_expand                ## -- Begin function fn_tilde_expand
	.p2align	4, 0x90
_fn_tilde_expand:                       ## @fn_tilde_expand
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpb	$126, (%rdi)
	jne	LBB0_11
## %bb.1:
	leaq	1(%r15), %r12
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	subq	%r15, %rbx
	leaq	1(%rbx), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_el_calloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %r13
	leaq	-1(%rbx), %rdx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_strncpy
	movb	$0, -1(%r13,%rbx)
	cmpb	$0, (%r13)
	je	LBB0_7
LBB0_4:
	movq	%r13, %rdi
	callq	_getpwnam
	jmp	LBB0_8
LBB0_5:
	movq	%r12, %rdi
	callq	_strdup
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	%rax, %r13
	cmpb	$0, (%r13)
	jne	LBB0_4
LBB0_7:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	callq	_getpwuid
LBB0_8:
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_el_free
	testq	%r12, %r12
	je	LBB0_11
## %bb.9:
	addq	%r14, %r15
	movq	(%r12), %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	addl	$2, %eax
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_el_calloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%rax, %r14
	movq	(%r12), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r15, %r8
	callq	_snprintf
	jmp	LBB0_14
LBB0_11:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strdup                         ## TAILCALL
LBB0_13:
	xorl	%r14d, %r14d
LBB0_14:
	movq	%r14, %rax
	addq	$8, %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
	.asciz	"%s/%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fn_tilde_expand                ; -- Begin function fn_tilde_expand
	.p2align	2
_fn_tilde_expand:                       ; @fn_tilde_expand
	.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	x19, x0
	ldrb	w8, [x0]
	cmp	w8, #126
	b.ne	LBB0_11
; %bb.1:
	add	x22, x19, #1
	mov	x0, x22
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.2:
	sub	x23, x0, x19
	add	x20, x23, #1
	mov	x0, x20
	mov	w1, #1
	bl	_el_calloc
	cbz	x0, LBB0_12
; %bb.3:
	mov	x21, x0
	sub	x23, x23, #1
	mov	x1, x22
	mov	x2, x23
	bl	_strncpy
	strb	wzr, [x21, x23]
	ldrb	w8, [x21]
	cbz	w8, LBB0_7
LBB0_4:
	mov	x0, x21
	bl	_getpwnam
	b	LBB0_8
LBB0_5:
	mov	x0, x22
	bl	_strdup
	cbz	x0, LBB0_12
; %bb.6:
	mov	x21, x0
	mov	x20, #0
	ldrb	w8, [x21]
	cbnz	w8, LBB0_4
LBB0_7:
	bl	_getuid
	bl	_getpwuid
LBB0_8:
	mov	x22, x0
	mov	x0, x21
	bl	_el_free
	cbz	x22, LBB0_11
; %bb.9:
	add	x19, x19, x20
	ldr	x0, [x22]
	bl	_strlen
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
	add	w8, w20, w0
	add	w8, w8, #2
	sxtw	x21, w8
	mov	x0, x21
	mov	w1, #1
	bl	_el_calloc
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.10:
	ldr	x3, [x22]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x4, x19
	bl	_snprintf
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	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
	b	_strdup
LBB0_12:
	mov	x20, #0
LBB0_13:
	mov	x0, x20
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

.subsections_via_symbols
