	.file	"221017.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	" ~"
.LC1:
	.string	"\t~"
	.section	.data.rel.local,"aw"
	.align 16
	.type	default_prefixes, @object
	.size	default_prefixes, 24
default_prefixes:
	.quad	.LC0
	.quad	.LC1
	.quad	0
	.section	.rodata
.LC2:
	.string	" "
.LC3:
	.string	"\n"
	.section	.data.rel.local
	.align 16
	.type	default_suffixes, @object
	.size	default_suffixes, 24
default_suffixes:
	.quad	.LC2
	.quad	.LC3
	.quad	0
	.globl	tilde_expansion_failure_hook
	.bss
	.align 8
	.type	tilde_expansion_failure_hook, @object
	.size	tilde_expansion_failure_hook, 8
tilde_expansion_failure_hook:
	.zero	8
	.globl	tilde_additional_prefixes
	.section	.data.rel.local
	.align 8
	.type	tilde_additional_prefixes, @object
	.size	tilde_additional_prefixes, 8
tilde_additional_prefixes:
	.quad	default_prefixes
	.globl	tilde_additional_suffixes
	.align 8
	.type	tilde_additional_suffixes, @object
	.size	tilde_additional_suffixes, 8
tilde_additional_suffixes:
	.quad	default_suffixes
	.text
	.type	tilde_find_prefix, @function
tilde_find_prefix:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	r13, QWORD PTR tilde_additional_prefixes[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	r14d, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L2
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 126
	jne	.L3
.L2:
	mov	eax, 0
	jmp	.L4
.L3:
	test	r13, r13
	je	.L5
	mov	r12d, 0
	jmp	.L6
.L10:
	mov	ebx, 0
	jmp	.L7
.L9:
	movsx	rax, ebx
	sal	rax, 3
	add	rax, r13
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	movsx	rax, ebx
	sal	rax, 3
	add	rax, r13
	mov	rax, QWORD PTR [rax]
	movsx	rsi, r12d
	mov	rcx, QWORD PTR -40[rbp]
	add	rcx, rsi
	mov	rsi, rax
	mov	rdi, rcx
	call	strncmp@PLT
	test	eax, eax
	jne	.L8
	movsx	rax, ebx
	sal	rax, 3
	add	rax, r13
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, r12d
	jmp	.L4
.L8:
	add	ebx, 1
.L7:
	movsx	rax, ebx
	sal	rax, 3
	add	rax, r13
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L9
	add	r12d, 1
.L6:
	cmp	r12d, r14d
	jl	.L10
.L5:
	mov	eax, r14d
.L4:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	tilde_find_prefix, .-tilde_find_prefix
	.type	tilde_find_suffix, @function
tilde_find_suffix:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	QWORD PTR -40[rbp], rdi
	mov	r13, QWORD PTR tilde_additional_suffixes[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	r14d, eax
	mov	ebx, 0
	jmp	.L12
.L19:
	movsx	rdx, ebx
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L13
	movsx	rdx, ebx
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L13
	mov	r12d, 0
	jmp	.L14
.L18:
	movsx	rax, r12d
	sal	rax, 3
	add	rax, r13
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	movsx	rax, r12d
	sal	rax, 3
	add	rax, r13
	mov	rax, QWORD PTR [rax]
	movsx	rsi, ebx
	mov	rcx, QWORD PTR -40[rbp]
	add	rcx, rsi
	mov	rsi, rax
	mov	rdi, rcx
	call	strncmp@PLT
	test	eax, eax
	jne	.L15
	mov	eax, ebx
	jmp	.L16
.L15:
	add	r12d, 1
.L14:
	test	r13, r13
	je	.L17
	movsx	rax, r12d
	sal	rax, 3
	add	rax, r13
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L18
.L17:
	add	ebx, 1
.L12:
	cmp	ebx, r14d
	jl	.L19
.L13:
	mov	eax, ebx
.L16:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	tilde_find_suffix, .-tilde_find_suffix
	.globl	tilde_expand
	.type	tilde_expand, @function
tilde_expand:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 64
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 0
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -56[rbp], eax
	mov	QWORD PTR -48[rbp], 0
.L26:
	lea	rdx, -60[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	tilde_find_prefix
	mov	ebx, eax
	mov	eax, DWORD PTR -52[rbp]
	add	eax, ebx
	cmp	DWORD PTR -56[rbp], eax
	jg	.L21
	lea	eax, 20[rbx]
	add	DWORD PTR -56[rbp], eax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L22
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	mov	edi, eax
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -48[rbp], rax
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	xrealloc
	mov	QWORD PTR -48[rbp], rax
.L21:
	movsx	rdx, ebx
	mov	eax, DWORD PTR -52[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	add	DWORD PTR -52[rbp], ebx
	movsx	rax, ebx
	add	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	tilde_find_suffix
	mov	r12d, eax
	test	ebx, ebx
	jne	.L23
	test	r12d, r12d
	jne	.L23
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	jmp	.L28
.L23:
	lea	eax, 1[r12]
	mov	edi, eax
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -40[rbp], rax
	movsx	rdx, r12d
	mov	rcx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	movsx	rdx, r12d
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	movsx	rax, r12d
	add	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	tilde_expand_word
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	cmp	DWORD PTR -56[rbp], eax
	jg	.L25
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 20
	add	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	xrealloc
	mov	QWORD PTR -48[rbp], rax
.L25:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	eax, DWORD PTR -60[rbp]
	add	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L26
.L28:
	call	__stack_chk_fail@PLT
.L27:
	add	rsp, 64
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	tilde_expand, .-tilde_expand
	.section	.rodata
.LC4:
	.string	"HOME"
	.text
	.globl	tilde_expand_word
	.type	tilde_expand_word, @function
tilde_expand_word:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	cmp	QWORD PTR -88[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	mov	eax, 0
	call	xmalloc
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	jmp	.L31
.L30:
	mov	eax, 0
.L31:
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	je	.L32
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 126
	jne	.L32
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L33
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L34
.L33:
	lea	rdi, .LC4[rip]
	call	getenv@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 1
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L35
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	jmp	.L36
.L35:
	mov	eax, 0
.L36:
	add	rax, rbx
	add	rax, 1
	mov	rdi, rax
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], 0
	cmp	QWORD PTR -24[rbp], 0
	je	.L37
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L37:
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	mov	eax, 0
	call	xmalloc
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L32
.L34:
	mov	edi, 257
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -72[rbp], 1
	jmp	.L38
.L41:
	cmp	DWORD PTR -68[rbp], 47
	je	.L46
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -68[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -72[rbp], 1
.L38:
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	jne	.L41
	jmp	.L40
.L46:
	nop
.L40:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	getpwnam@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L42
	mov	rax, QWORD PTR tilde_expansion_failure_hook[rip]
	test	rax, rax
	je	.L43
	mov	rdx, QWORD PTR tilde_expansion_failure_hook[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	rdx
	cdqe
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L43
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 1
	mov	rdi, rax
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -56[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L44
.L42:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 1
	mov	rdi, rax
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
.L44:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	mov	eax, 0
	call	xmalloc
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
.L43:
	call	endpwent@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
.L32:
	mov	rax, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	tilde_expand_word, .-tilde_expand_word
	.type	xmalloc, @function
xmalloc:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L48
	mov	eax, 0
	call	memory_error_and_abort
.L48:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	xmalloc, .-xmalloc
	.type	xrealloc, @function
xrealloc:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L51
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L52
.L51:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -8[rbp], rax
.L52:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L53
	mov	eax, 0
	call	memory_error_and_abort
.L53:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	xrealloc, .-xrealloc
	.section	.rodata
	.align 8
.LC5:
	.string	"readline: Out of virtual memory!\n"
	.text
	.type	memory_error_and_abort, @function
memory_error_and_abort:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	print@PLT
	call	abort@PLT
	.cfi_endproc
.LFE12:
	.size	memory_error_and_abort, .-memory_error_and_abort
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"221017.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	" ~\000"
	.align	2
.LC1:
	.ascii	"\011~\000"
	.data
	.align	2
	.type	default_prefixes, %object
	.size	default_prefixes, 12
default_prefixes:
	.word	.LC0
	.word	.LC1
	.word	0
	.section	.rodata
	.align	2
.LC2:
	.ascii	" \000"
	.align	2
.LC3:
	.ascii	"\012\000"
	.data
	.align	2
	.type	default_suffixes, %object
	.size	default_suffixes, 12
default_suffixes:
	.word	.LC2
	.word	.LC3
	.word	0
	.global	tilde_expansion_failure_hook
	.bss
	.align	2
	.type	tilde_expansion_failure_hook, %object
	.size	tilde_expansion_failure_hook, 4
tilde_expansion_failure_hook:
	.space	4
	.global	tilde_additional_prefixes
	.data
	.align	2
	.type	tilde_additional_prefixes, %object
	.size	tilde_additional_prefixes, 4
tilde_additional_prefixes:
	.word	default_prefixes
	.global	tilde_additional_suffixes
	.align	2
	.type	tilde_additional_suffixes, %object
	.size	tilde_additional_suffixes, 4
tilde_additional_suffixes:
	.word	default_suffixes
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tilde_find_prefix, %function
tilde_find_prefix:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L11
	ldr	r4, [r3]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	mov	r9, r3
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #126
	bne	.L3
.L2:
	mov	r3, #0
	b	.L4
.L3:
	cmp	r4, #0
	beq	.L5
	mov	r5, #0
	b	.L6
.L10:
	mov	r6, #0
	b	.L7
.L9:
	mov	r2, r5
	ldr	r3, [fp, #-32]
	add	r7, r3, r2
	mov	r3, r6
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r8, [r3]
	mov	r3, r6
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r1, r8
	mov	r0, r7
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	mov	r3, r6
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r3, r5, r3
	b	.L4
.L8:
	add	r6, r6, #1
.L7:
	mov	r3, r6
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
	add	r5, r5, #1
.L6:
	cmp	r5, r9
	blt	.L10
.L5:
	mov	r3, r9
.L4:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L12:
	.align	2
.L11:
	.word	tilde_additional_prefixes
	.size	tilde_find_prefix, .-tilde_find_prefix
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tilde_find_suffix, %function
tilde_find_suffix:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	str	r0, [fp, #-32]
	ldr	r3, .L22
	ldr	r5, [r3]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	mov	r9, r3
	mov	r4, #0
	b	.L14
.L21:
	mov	r2, r4
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L15
	mov	r2, r4
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L15
	mov	r6, #0
	b	.L16
.L20:
	mov	r2, r4
	ldr	r3, [fp, #-32]
	add	r7, r3, r2
	mov	r3, r6
	lsl	r3, r3, #2
	add	r3, r5, r3
	ldr	r8, [r3]
	mov	r3, r6
	lsl	r3, r3, #2
	add	r3, r5, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r1, r8
	mov	r0, r7
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	mov	r3, r4
	b	.L18
.L17:
	add	r6, r6, #1
.L16:
	cmp	r5, #0
	beq	.L19
	mov	r3, r6
	lsl	r3, r3, #2
	add	r3, r5, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
.L19:
	add	r4, r4, #1
.L14:
	cmp	r4, r9
	blt	.L21
.L15:
	mov	r3, r4
.L18:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L23:
	.align	2
.L22:
	.word	tilde_additional_suffixes
	.size	tilde_find_suffix, .-tilde_find_suffix
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tilde_expand
	.syntax unified
	.arm
	.fpu softvfp
	.type	tilde_expand, %function
tilde_expand:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-36]
.L30:
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	tilde_find_prefix
	mov	r4, r0
	ldr	r3, [fp, #-28]
	add	r3, r4, r3
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bgt	.L25
	add	r3, r4, #20
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-36]
	b	.L25
.L26:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	xrealloc
	str	r0, [fp, #-36]
.L25:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r4
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	strncpy
	ldr	r3, [fp, #-28]
	add	r3, r3, r4
	str	r3, [fp, #-28]
	mov	r2, r4
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-48]
	bl	tilde_find_suffix
	mov	r5, r0
	cmp	r4, #0
	bne	.L27
	cmp	r5, #0
	bne	.L27
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	b	.L32
.L27:
	add	r3, r5, #1
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-24]
	mov	r3, r5
	mov	r2, r3
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-24]
	bl	strncpy
	mov	r2, r5
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	mov	r2, r5
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-24]
	bl	tilde_expand_word
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bgt	.L29
	ldr	r3, [fp, #-40]
	add	r3, r3, #20
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	xrealloc
	str	r0, [fp, #-36]
.L29:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-20]
	bl	free
	b	.L30
.L32:
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC4
	.size	tilde_expand, .-tilde_expand
	.section	.rodata
	.align	2
.LC5:
	.ascii	"HOME\000"
	.text
	.align	2
	.global	tilde_expand_word
	.syntax unified
	.arm
	.fpu softvfp
	.type	tilde_expand_word, %function
tilde_expand_word:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L36
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	xmalloc
	mov	r3, r0
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	strcpy
	mov	r3, r0
	b	.L37
.L36:
	mov	r3, #0
.L37:
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #126
	bne	.L38
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L40
.L39:
	ldr	r0, .L53
	bl	getenv
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L41
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	b	.L42
.L41:
	mov	r3, #0
.L42:
	add	r3, r3, r4
	add	r3, r3, #1
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L43
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-40]
	bl	strcpy
.L43:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	strcat
	ldr	r0, [fp, #-44]
	bl	free
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	xmalloc
	mov	r3, r0
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	strcpy
	str	r0, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	free
	b	.L38
.L40:
	ldr	r0, .L53+4
	bl	xmalloc
	str	r0, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L44
.L47:
	ldr	r3, [fp, #-28]
	cmp	r3, #47
	beq	.L52
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L44:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L47
	b	.L46
.L52:
	nop
.L46:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-32]
	bl	getpwnam
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L48
	ldr	r3, .L53+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L49
	ldr	r3, .L53+8
	ldr	r3, [r3]
	ldr	r0, [fp, #-32]
	blx	r3
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L49
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r4, r0
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-40]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-40]
	bl	strcpy
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	strcat
	ldr	r0, [fp, #-20]
	bl	free
	b	.L50
.L48:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	strcpy
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	strcat
.L50:
	ldr	r0, [fp, #-44]
	bl	free
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	xmalloc
	mov	r3, r0
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	strcpy
	str	r0, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	free
.L49:
	bl	endpwent
	ldr	r0, [fp, #-32]
	bl	free
.L38:
	ldr	r3, [fp, #-44]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC5
	.word	257
	.word	tilde_expansion_failure_hook
	.size	tilde_expand_word, .-tilde_expand_word
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xmalloc, %function
xmalloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L56
	bl	memory_error_and_abort
.L56:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	xmalloc, .-xmalloc
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xrealloc, %function
xrealloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	b	.L60
.L59:
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	realloc
	str	r0, [fp, #-8]
.L60:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L61
	bl	memory_error_and_abort
.L61:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	xrealloc, .-xrealloc
	.section	.rodata
	.align	2
.LC6:
	.ascii	"readline: Out of virtual memory!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	memory_error_and_abort, %function
memory_error_and_abort:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L64
	bl	print
	bl	abort
.L65:
	.align	2
.L64:
	.word	.LC6
	.size	memory_error_and_abort, .-memory_error_and_abort
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
