	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tilde_expand_filename          ## -- Begin function tilde_expand_filename
	.p2align	4, 0x90
_tilde_expand_filename:                 ## @tilde_expand_filename
	.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	%r12
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	cmpb	$126, (%rdi)
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %r12
	incq	%rbx
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, %r14
	subq	%rbx, %rax
	jbe	LBB0_8
## %bb.4:
	movq	%rax, %rcx
	shlq	$32, %rcx
	movslq	%eax, %r15
	movabsq	$545460846593, %rax             ## imm = 0x7F00000001
	cmpq	%rax, %rcx
	jb	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_6:
	leaq	-176(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movb	$0, -176(%rbp,%r15)
	movq	%r12, %rdi
	callq	_getpwnam
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	leaq	-176(%rbp), %rsi
	jmp	LBB0_10
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_18
## %bb.2:
	movq	%rbx, %rdi
	addq	$160, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xstrdup                        ## TAILCALL
LBB0_8:
	movq	%r12, %rdi
	callq	_getpwuid
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%r12, %rsi
LBB0_10:
	xorl	%eax, %eax
	callq	_fatal
LBB0_11:
	movq	(%r15), %rdi
	callq	_strlen
	movq	(%r15), %rdx
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	cltq
	cmpb	$47, -1(%rax,%rdx)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.3(%rip), %rcx
LBB0_14:
	leaq	1(%r14), %r8
	testq	%r14, %r14
	cmoveq	%rbx, %r8
	leaq	L_.str.5(%rip), %rsi
	leaq	-184(%rbp), %rdi
	callq	_xasprintf
	movq	_PATH_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_16
## %bb.15:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_16:
	movq	-184(%rbp), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$160, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tilde_expand_filename: ~username too long"

L_.str.1:                               ## @.str.1
	.asciz	"tilde_expand_filename: No such user %s"

L_.str.2:                               ## @.str.2
	.asciz	"tilde_expand_filename: No such uid %ld"

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

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"%s%s%s"

	.comm	_PATH_MAX,8,3                   ## @PATH_MAX
L_.str.6:                               ## @.str.6
	.asciz	"tilde_expand_filename: Path too long"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tilde_expand_filename          ; -- Begin function tilde_expand_filename
	.p2align	2
_tilde_expand_filename:                 ; @tilde_expand_filename
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldrb	w8, [x0]
	cmp	w8, #126
	b.ne	LBB0_6
; %bb.1:
	mov	x21, x1
	add	x19, x0, #1
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	mov	x20, x0
	subs	x22, x0, x19
	b.ls	LBB0_8
; %bb.2:
	sxtw	x21, w22
	mov	x8, #1
	movk	x8, #127, lsl #32
	cmp	x8, x22, lsl #32
	b.hi	LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
LBB0_4:
	add	x23, sp, #24
	add	x0, sp, #24
	mov	x1, x19
	mov	x2, x22
	bl	_memcpy
	strb	wzr, [x23, x21]
	add	x0, sp, #24
	bl	_getpwnam
	mov	x22, x0
	cbnz	x0, LBB0_11
; %bb.5:
	str	x23, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.7:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #224
	b	_xstrdup
LBB0_8:
	mov	x0, x21
	bl	_getpwuid
	mov	x22, x0
	cbnz	x0, LBB0_11
; %bb.9:
	str	x21, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	bl	_fatal
LBB0_11:
	ldr	x0, [x22]
	bl	_strlen
	ldr	x2, [x22]
Lloh12:
	adrp	x3, l_.str.3@PAGE
Lloh13:
	add	x3, x3, l_.str.3@PAGEOFF
	cbz	w0, LBB0_13
; %bb.12:
	add	x8, x2, w0, sxtw
	ldurb	w8, [x8, #-1]
Lloh14:
	adrp	x9, l_.str.4@PAGE
Lloh15:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w8, #47
	csel	x3, x9, x3, eq
LBB0_13:
	cmp	x20, #0
	csinc	x4, x19, x20, eq
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #16
	bl	_xasprintf
Lloh18:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_15
; %bb.14:
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_fatal
LBB0_15:
	ldr	x0, [sp, #16]
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tilde_expand_filename: ~username too long"

l_.str.1:                               ; @.str.1
	.asciz	"tilde_expand_filename: No such user %s"

l_.str.2:                               ; @.str.2
	.asciz	"tilde_expand_filename: No such uid %ld"

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

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"%s%s%s"

	.comm	_PATH_MAX,8,3                   ; @PATH_MAX
l_.str.6:                               ; @.str.6
	.asciz	"tilde_expand_filename: Path too long"

.subsections_via_symbols
