	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expand_user_path               ## -- Begin function expand_user_path
	.p2align	4, 0x90
_expand_user_path:                      ## @expand_user_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
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	cmpb	$126, (%rdi)
	jne	LBB0_2
## %bb.3:
	movl	%esi, %r15d
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchrnul
	movq	%rax, %r14
	incq	%rbx
	movq	%rax, %rsi
	subq	%rbx, %rsi
	je	LBB0_4
## %bb.7:
	movq	%rbx, %rdi
	callq	_getpw_str
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	(%rax), %rsi
	leaq	-32(%rbp), %rdi
LBB0_9:
	callq	_strbuf_addstr
	jmp	LBB0_10
LBB0_2:
	movq	%rbx, %r14
LBB0_10:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strbuf_addstr
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	jmp	LBB0_12
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	leaq	-32(%rbp), %rdi
	movq	%rax, %rsi
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.6:
	callq	_strbuf_add_real_path
	jmp	LBB0_10
LBB0_11:
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HOME"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expand_user_path               ; -- Begin function expand_user_path
	.p2align	2
_expand_user_path:                      ; @expand_user_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	ldrb	w8, [x0]
	cmp	w8, #126
	b.ne	LBB0_6
; %bb.2:
	mov	x20, x1
	mov	x0, x21
	mov	w1, #47
	bl	_strchrnul
	mov	x19, x0
	add	x0, x21, #1
	subs	x1, x19, x0
	b.eq	LBB0_8
; %bb.3:
	bl	_getpw_str
	cbz	x0, LBB0_11
; %bb.4:
	ldr	x1, [x0]
LBB0_5:
	add	x0, sp, #8
	bl	_strbuf_addstr
	b	LBB0_7
LBB0_6:
	mov	x19, x21
LBB0_7:
	add	x0, sp, #8
	mov	x1, x19
	bl	_strbuf_addstr
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	b	LBB0_12
LBB0_8:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_11
; %bb.9:
	mov	x1, x0
	cbz	w20, LBB0_5
; %bb.10:
	add	x0, sp, #8
	bl	_strbuf_add_real_path
	b	LBB0_7
LBB0_11:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, #0
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HOME"

.subsections_via_symbols
