	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getfold                        ## -- Begin function getfold
	.p2align	4, 0x90
_getfold:                               ## @getfold
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_value
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpb	$47, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	callq	_strlcpy
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_homedir@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	leaq	L_.str.2(%rip), %rcx
	cmovneq	%rdx, %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %r8
	callq	_snprintf
LBB0_5:
	testl	%eax, %eax
	sets	%cl
	cmpl	%r14d, %eax
	setge	%al
	orb	%cl, %al
	movzbl	%al, %eax
	negl	%eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"folder"

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

	.comm	_homedir,8,3                    ## @homedir
L_.str.2:                               ## @.str.2
	.asciz	"."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getfold                        ; -- Begin function getfold
	.p2align	2
_getfold:                               ; @getfold
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_value
	cbz	x0, LBB0_3
; %bb.1:
	mov	x4, x0
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x4
	mov	x2, x19
	bl	_strlcpy
	b	LBB0_5
LBB0_3:
	mov	w0, #-1
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _homedir@GOTPAGE
Lloh3:
	ldr	x8, [x8, _homedir@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x3, x9, x8, eq
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_snprintf
LBB0_5:
	cmp	w0, #0
	ccmp	w0, w19, #0, ge
	cset	w8, ge
	sbfx	w0, w8, #0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"folder"

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

	.comm	_homedir,8,3                    ; @homedir
l_.str.2:                               ; @.str.2
	.asciz	"."

.subsections_via_symbols
