	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function globtilde
_globtilde:                             ## @globtilde
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_CHAR_TILDE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.1:
	movq	_GLOB_TILDE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdx)
	je	LBB0_21
## %bb.2:
	movq	%rsi, %r14
	leaq	8(%r15), %rbx
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.3:
	movq	_CHAR_SLASH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.4:
	movq	%r14, %rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movb	%cl, (%rax)
	incq	%rax
	movq	8(%rbx), %rcx
	addq	$8, %rbx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	(%rdx), %rcx
	jne	LBB0_5
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rax
LBB0_9:
	movq	_CHAR_EOS@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	movb	%cl, (%rax)
	movb	(%r14), %al
	cmpb	(%r12), %al
	jne	LBB0_12
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	callq	_k_getpwuid
	jmp	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	callq	_k_getpwnam
LBB0_13:
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	movq	(%rax), %rax
LBB0_15:
	movb	(%rax), %dl
	movq	%r14, %rcx
	testb	%dl, %dl
	je	LBB0_18
## %bb.16:
	incq	%rax
	movq	%r14, %rcx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movsbq	%dl, %rdx
	movq	%rdx, (%rcx)
	addq	$8, %rcx
	movzbl	(%rax), %edx
	incq	%rax
	testb	%dl, %dl
	jne	LBB0_17
LBB0_18:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rax), %rdx
	movq	%rdx, (%rcx,%rax)
	movsbq	(%r12), %rsi
	addq	$8, %rax
	cmpq	%rsi, %rdx
	jne	LBB0_19
## %bb.20:
	movq	%r14, %r15
LBB0_21:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAR_TILDE,8,3                 ## @CHAR_TILDE
	.comm	_GLOB_TILDE,4,2                 ## @GLOB_TILDE
	.comm	_CHAR_SLASH,8,3                 ## @CHAR_SLASH
	.comm	_CHAR_EOS,1,0                   ## @CHAR_EOS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HOME"

	.no_dead_strip	_globtilde
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function globtilde
_globtilde:                             ; @globtilde
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CHAR_TILDE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHAR_TILDE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.1:
	ldr	w8, [x2]
Lloh3:
	adrp	x9, _GLOB_TILDE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GLOB_TILDE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.2:
	mov	x19, x1
	mov	x21, x20
	ldr	x9, [x21, #8]!
	cbz	x9, LBB0_6
; %bb.3:
Lloh6:
	adrp	x10, _CHAR_SLASH@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CHAR_SLASH@GOTPAGEOFF]
	ldr	x8, [x10]
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.4:
	mov	x8, x19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	strb	w9, [x8], #1
	ldr	x9, [x21, #8]!
	ldr	x11, [x10]
	cmp	x9, #0
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	x8, x19
LBB0_7:
Lloh8:
	adrp	x22, _CHAR_EOS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _CHAR_EOS@GOTPAGEOFF]
	ldrb	w9, [x22]
	strb	w9, [x8]
	ldrb	w8, [x19]
	ldrb	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.8:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_12
; %bb.9:
	bl	_getuid
	bl	_k_getpwuid
	cbnz	x0, LBB0_11
	b	LBB0_17
LBB0_10:
	mov	x0, x19
	bl	_k_getpwnam
	cbz	x0, LBB0_17
LBB0_11:
	ldr	x0, [x0]
LBB0_12:
	ldrb	w9, [x0]
	mov	x8, x19
	cbz	w9, LBB0_15
; %bb.13:
	add	x10, x0, #1
	mov	x8, x19
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	sxtb	x9, w9
	str	x9, [x8], #8
	ldrb	w9, [x10], #1
	cbnz	w9, LBB0_14
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21], #8
	str	x9, [x8], #8
	ldrsb	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.16:
	mov	x20, x19
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAR_TILDE,8,3                 ; @CHAR_TILDE
	.comm	_GLOB_TILDE,4,2                 ; @GLOB_TILDE
	.comm	_CHAR_SLASH,8,3                 ; @CHAR_SLASH
	.comm	_CHAR_EOS,1,0                   ; @CHAR_EOS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HOME"

	.no_dead_strip	_globtilde
.subsections_via_symbols
