	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function append_char_function
_append_char_function:                  ## @append_char_function
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpb	$126, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_fn_tilde_expand
	movq	%rax, %r14
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	testq	%r14, %r14
	cmovneq	%r14, %rbx
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	movl	-24(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_el_free
LBB0_8:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rbx
	testq	%r14, %r14
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" "

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

	.no_dead_strip	_append_char_function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function append_char_function
_append_char_function:                  ; @append_char_function
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldrb	w8, [x0]
	cmp	w8, #126
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_fn_tilde_expand
	mov	x19, x0
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
	cmp	x19, #0
	csel	x0, x20, x19, eq
	add	x1, sp, #8
	bl	_stat
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x20, x20, x8, eq
LBB0_5:
	cbz	x19, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_el_free
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" "

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

	.no_dead_strip	_append_char_function
.subsections_via_symbols
