	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quit                           ## -- Begin function quit
	.p2align	4, 0x90
_quit:                                  ## @quit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATHSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_readonly@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_101
## %bb.1:
	movq	_edit@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_edstop
	jmp	LBB0_101
LBB0_3:
	movq	_mailname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_Fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_fileno
	movq	_LOCK_EX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_flock
	movq	%r14, %rdi
	callq	_fileno
	leaq	-112(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	xorl	%r15d, %r15d
	testq	%rax, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	js	LBB0_6
## %bb.7:
	movq	-112(%rbp), %r12
	movq	_mailsize@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %r12
	jle	LBB0_6
## %bb.8:
	leaq	L_str.21(%rip), %rdi
	callq	_puts
	movq	_tmpdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_snprintf
	movq	%r13, %rdi
	callq	_mkstemp
	cmpl	$-1, %eax
	je	LBB0_98
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_Fdopen
	testq	%rax, %rax
	je	LBB0_98
## %bb.10:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movl	%r12d, %ecx
	subl	%eax, %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.11:
	subl	%eax, %r12d
	incl	%r12d
	movq	_EOF@GOTPCREL(%rip), %rbx
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_getc
	cmpl	(%rbx), %eax
	je	LBB0_98
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_putc
	decl	%r12d
	cmpl	$1, %r12d
	jg	LBB0_12
LBB0_14:
	movq	%r14, %rdi
	callq	_Fclose
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_Fopen
	movq	%rax, %rcx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_98
## %bb.15:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_rm
	jmp	LBB0_16
LBB0_6:
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_16:
	leaq	L_.str.4(%rip), %rdi
	callq	_value
	testq	%rax, %rax
	movq	_MPRESERVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MBOX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %r14d
	cmovel	%ebx, %r14d
	movq	_MSAVED@GOTPCREL(%rip), %r12
	movq	_MDELETED@GOTPCREL(%rip), %rcx
	orl	%eax, %ebx
	orl	(%r12), %ebx
	orl	(%rcx), %ebx
	leaq	L_.str.5(%rip), %rdi
	callq	_value
	cmpq	$1, %rax
	movl	$0, %eax
	sbbl	%eax, %eax
	movq	_msgCount@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	jle	LBB0_25
## %bb.17:
	movl	(%r12), %ecx
	notl	%ecx
	orl	%ecx, %eax
	andl	%ebx, %eax
	movq	_message@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rdx,4), %rdx
	xorl	%r15d, %r15d
	movq	_MNEW@GOTPCREL(%rip), %r8
	movq	_MSTATUS@GOTPCREL(%rip), %rdi
	movq	_MTOUCH@GOTPCREL(%rip), %r9
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	addq	$4, %rcx
	cmpq	%rdx, %rcx
	jae	LBB0_25
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %esi
	movl	(%r8), %ebx
	testl	%esi, %ebx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	notl	%ebx
	andl	%ebx, %esi
	movl	%esi, (%rcx)
	orl	(%rdi), %esi
	movl	%esi, (%rcx)
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	(%rdi), %ebx
	andl	%esi, %ebx
	cmpl	$1, %ebx
	sbbl	$-1, %r15d
	testl	%esi, (%r9)
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	testl	%esi, %eax
	jne	LBB0_24
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	_MPRESERVE@GOTPCREL(%rip), %rbx
	orl	(%rbx), %esi
	movl	%esi, (%rcx)
	testl	%esi, %eax
	jne	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	orl	%r14d, %esi
	movl	%esi, (%rcx)
	jmp	LBB0_24
LBB0_25:
	movq	_Tflag@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.27:
	leaq	L_.str.3(%rip), %rsi
	callq	_Fopen
	movq	%rax, %rcx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_29
## %bb.28:
	movq	_Tflag@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_29
LBB0_4:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_101
LBB0_26:
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
LBB0_29:
	movq	_msgCount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	LBB0_30
## %bb.31:
	movq	_message@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%esi, %esi
	xorl	%r13d, %r13d
	xorl	%r8d, %r8d
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_32 Depth=1
	addq	$4, %r12
	movq	_msgCount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(,%rax,4), %rcx
	movq	_message@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rcx
	cmpq	%rcx, %r12
	jae	LBB0_37
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	movq	_MBOX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
	movq	_MPRESERVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %esi
	movq	_MODIFY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r13d
	movq	_Tflag@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_36
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	_MDELETED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MREAD@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	leaq	L_.str.6(%rip), %rdi
	movl	%esi, %r14d
	movq	%r12, %rsi
	movl	%r8d, %ebx
	callq	_hfield
	movl	%ebx, %r8d
	movl	%r14d, %esi
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.7(%rip), %rsi
	movq	%rax, %rdx
	callq	_fprintf
	movl	%ebx, %r8d
	movl	%r14d, %esi
	jmp	LBB0_36
LBB0_30:
	xorl	%r8d, %r8d
	xorl	%r13d, %r13d
	xorl	%esi, %esi
LBB0_37:
	movq	_Tflag@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_39
## %bb.38:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%esi, %r14d
	movl	%r8d, %ebx
	callq	_Fclose
	movl	%ebx, %r8d
	movl	%r14d, %esi
	movq	_msgCount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_39:
	movl	%esi, %ecx
	cmpq	%rcx, %rax
	jne	LBB0_43
## %bb.40:
	testl	%r13d, %r13d
	jne	LBB0_43
## %bb.41:
	testl	%r15d, %r15d
	jne	LBB0_43
## %bb.42:
	cmpl	$1, %esi
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.10(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_mailname@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_99
LBB0_43:
	testl	%r8d, %r8d
	je	LBB0_44
## %bb.47:
	movl	%r8d, -100(%rbp)                ## 4-byte Spill
	movl	%esi, -88(%rbp)                 ## 4-byte Spill
	leaq	L_.str.11(%rip), %rdi
	callq	_expand
	movq	%rax, %r14
	leaq	L_.str.12(%rip), %rdi
	callq	_value
                                        ## implicit-def: $r12
                                        ## implicit-def: $r13
	testq	%rax, %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_48
LBB0_67:
	leaq	L_.str.12(%rip), %rdi
	callq	_value
	testq	%rax, %rax
	je	LBB0_72
## %bb.68:
	leaq	L_.str.16(%rip), %rsi
	movq	%r14, %rdi
	callq	_Fopen
	testq	%rax, %rax
	je	LBB0_69
## %bb.71:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_fileno
	movl	%eax, %edi
	movl	$384, %esi                      ## imm = 0x180
	callq	_fchmod
LBB0_72:
	movq	_msgCount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	LBB0_78
## %bb.73:
	movq	_message@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_saveignore@GOTPCREL(%rip), %r15
	movq	%rcx, %rbx
	jmp	LBB0_74
LBB0_76:                                ##   in Loop: Header=BB0_74 Depth=1
	movq	_message@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_msgCount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_77:                                ##   in Loop: Header=BB0_74 Depth=1
	addq	$4, %rbx
	leaq	(%rcx,%rax,4), %rdx
	cmpq	%rdx, %rbx
	jae	LBB0_78
LBB0_74:                                ## =>This Inner Loop Header: Depth=1
	movq	_MBOX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rbx)
	je	LBB0_77
## %bb.75:                              ##   in Loop: Header=BB0_74 Depth=1
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_sendmessage
	testq	%rax, %rax
	jns	LBB0_76
## %bb.104:
	leaq	L_.str.14(%rip), %rdi
	movq	%r14, %rsi
	callq	_warnx
	movq	%r13, %rdi
	callq	_Fclose
	jmp	LBB0_86
LBB0_44:
	testl	%esi, %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_91
LBB0_45:
	movq	%r15, %rdi
	callq	_writeback
	movq	%rbx, %rdi
	jmp	LBB0_100
LBB0_48:
	movq	_tmpdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.13(%rip), %rdx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_mkstemp
	cmpl	$-1, %eax
	je	LBB0_50
## %bb.49:
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_Fdopen
	testq	%rax, %rax
	je	LBB0_50
## %bb.51:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_Fopen
	testq	%rax, %rax
	je	LBB0_52
## %bb.56:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_rm
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_Fopen
	testq	%rax, %rax
	je	LBB0_61
## %bb.57:
	movq	%rax, %rbx
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %r14
	movq	%rax, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	je	LBB0_60
LBB0_58:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_putc
	movq	%rbx, %rdi
	callq	_getc
	cmpl	(%r15), %eax
	jne	LBB0_58
LBB0_60:
	movq	%rbx, %rdi
	callq	_Fclose
	movq	%r14, %r15
	movq	-96(%rbp), %r14                 ## 8-byte Reload
LBB0_61:
	movq	%r12, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_63
## %bb.62:
	leaq	L_.str.14(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_warnx
	movq	%r13, %rdi
	callq	_Fclose
	jmp	LBB0_53
LBB0_78:
	leaq	L_.str.12(%rip), %rdi
	callq	_value
	testq	%rax, %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_84
## %bb.79:
	movq	%r13, %rbx
	movq	%r13, %rdi
	callq	_rewind
	movq	%r13, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	je	LBB0_83
LBB0_81:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_putc
	movq	%r12, %rdi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_83
## %bb.82:                              ##   in Loop: Header=BB0_81 Depth=1
	movq	%r13, %rdi
	callq	_getc
	cmpl	(%rbx), %eax
	jne	LBB0_81
LBB0_83:
	movq	%r13, %rdi
	callq	_Fclose
LBB0_84:
	movq	%r12, %rdi
	callq	_fflush
	movq	%r12, %rdi
	callq	_trunc
	movq	%r12, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_87
## %bb.85:
	leaq	L_.str.14(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
LBB0_86:
	movq	%r12, %rdi
	callq	_Fclose
	jmp	LBB0_99
LBB0_50:
	leaq	L_.str.14(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_warn
	jmp	LBB0_55
LBB0_69:
	leaq	L_.str.14(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
	jmp	LBB0_55
LBB0_87:
	movq	%r12, %rdi
	callq	_Fclose
	movl	-100(%rbp), %esi                ## 4-byte Reload
	cmpl	$1, %esi
	jne	LBB0_89
## %bb.88:
	leaq	L_str.20(%rip), %rdi
	callq	_puts
	jmp	LBB0_90
LBB0_89:
	leaq	L_.str.18(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_90:
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_45
LBB0_91:
	testq	%r15, %r15
	je	LBB0_97
## %bb.92:
	movq	_mailname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.15(%rip), %rsi
	callq	_Fopen
	testq	%rax, %rax
	je	LBB0_98
## %bb.93:
	movq	%rax, %r15
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	je	LBB0_96
LBB0_94:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_putc
	movq	%rbx, %rdi
	callq	_getc
	cmpl	(%r14), %eax
	jne	LBB0_94
LBB0_96:
	movq	%rbx, %rdi
	callq	_Fclose
	movq	%r15, %rdi
	callq	_trunc
	movq	%r15, %rdi
	callq	_Fclose
	movq	_mailname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_alter
	jmp	LBB0_99
LBB0_98:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_99:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_100:
	callq	_Fclose
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_101:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_105
## %bb.102:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_97:
	xorl	%eax, %eax
	callq	_demail
	movq	%rbx, %rdi
	jmp	LBB0_100
LBB0_52:
	leaq	L_.str.14(%rip), %rdi
	movq	%rbx, %rsi
	callq	_warn
	movq	%rbx, %rdi
	callq	_rm
LBB0_53:
	movq	%r12, %rdi
LBB0_54:
	callq	_Fclose
LBB0_55:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_Fclose
	jmp	LBB0_101
LBB0_63:
	movq	%r12, %rdi
	callq	_Fclose
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	testl	%eax, %eax
	js	LBB0_65
## %bb.64:
	movl	%eax, %edi
	callq	_close
LBB0_65:
	leaq	L_.str.15(%rip), %rsi
	movq	%r14, %rdi
	callq	_Fopen
	testq	%rax, %rax
	je	LBB0_103
## %bb.66:
	movq	%rax, %r12
	jmp	LBB0_67
LBB0_103:
	leaq	L_.str.14(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
	movq	%r13, %rdi
	jmp	LBB0_54
LBB0_105:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATHSIZE,4,2                   ## @PATHSIZE
	.comm	_readonly,8,3                   ## @readonly
	.comm	_edit,8,3                       ## @edit
	.comm	_mailname,8,3                   ## @mailname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_LOCK_EX,4,2                    ## @LOCK_EX
	.comm	_mailsize,8,3                   ## @mailsize
L_.str.2:                               ## @.str.2
	.asciz	"%s/mail.RqXXXXXXXXXX"

	.comm	_tmpdir,8,3                     ## @tmpdir
L_.str.3:                               ## @.str.3
	.asciz	"w"

	.comm	_EOF,4,2                        ## @EOF
L_.str.4:                               ## @.str.4
	.asciz	"hold"

	.comm	_MPRESERVE,4,2                  ## @MPRESERVE
	.comm	_MBOX,4,2                       ## @MBOX
	.comm	_MSAVED,4,2                     ## @MSAVED
	.comm	_MDELETED,4,2                   ## @MDELETED
L_.str.5:                               ## @.str.5
	.asciz	"keepsave"

	.comm	_message,8,3                    ## @message
	.comm	_msgCount,8,3                   ## @msgCount
	.comm	_MNEW,4,2                       ## @MNEW
	.comm	_MSTATUS,4,2                    ## @MSTATUS
	.comm	_MTOUCH,4,2                     ## @MTOUCH
	.comm	_Tflag,8,3                      ## @Tflag
	.comm	_MODIFY,4,2                     ## @MODIFY
	.comm	_MREAD,4,2                      ## @MREAD
L_.str.6:                               ## @.str.6
	.asciz	"article-id"

L_.str.7:                               ## @.str.7
	.asciz	"%s\n"

L_.str.8:                               ## @.str.8
	.asciz	"Held %d message%s in %s\n"

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

L_.str.10:                              ## @.str.10
	.asciz	"s"

L_.str.11:                              ## @.str.11
	.asciz	"&"

L_.str.12:                              ## @.str.12
	.asciz	"append"

L_.str.13:                              ## @.str.13
	.asciz	"%s/mail.RmXXXXXXXXXX"

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

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
L_.str.15:                              ## @.str.15
	.asciz	"r+"

L_.str.16:                              ## @.str.16
	.asciz	"a"

	.comm	_saveignore,4,2                 ## @saveignore
L_.str.18:                              ## @.str.18
	.asciz	"Saved %d messages in mbox\n"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_str:                                  ## @str
	.asciz	"Thou hast new mail."

L_str.20:                               ## @str.20
	.asciz	"Saved 1 message in mbox"

L_str.21:                               ## @str.21
	.asciz	"New mail has arrived."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quit                           ; -- Begin function quit
	.p2align	2
_quit:                                  ; @quit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x28, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PATHSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATHSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
Lloh8:
	adrp	x8, _readonly@GOTPAGE
Lloh9:
	ldr	x8, [x8, _readonly@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.1:
Lloh11:
	adrp	x8, _edit@GOTPAGE
Lloh12:
	ldr	x8, [x8, _edit@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	bl	_edstop
LBB0_3:
	mov	sp, x28
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_101
; %bb.4:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh17:
	adrp	x8, _mailname@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mailname@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Fopen
	cbz	x0, LBB0_26
; %bb.6:
	mov	x23, x0
	bl	_fileno
Lloh22:
	adrp	x8, _LOCK_EX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LOCK_EX@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_flock
	mov	x0, x23
	bl	_fileno
	sub	x1, x29, #96
	bl	_fstat
	tbnz	x0, #63, LBB0_16
; %bb.7:
	ldur	x19, [x29, #-96]
Lloh25:
	adrp	x21, _mailsize@GOTPAGE
Lloh26:
	ldr	x21, [x21, _mailsize@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x19, x8
	b.le	LBB0_16
; %bb.8:
Lloh27:
	adrp	x0, l_str.21@PAGE
Lloh28:
	add	x0, x0, l_str.21@PAGEOFF
	bl	_puts
Lloh29:
	adrp	x8, _tmpdir@GOTPAGE
Lloh30:
	ldr	x8, [x8, _tmpdir@GOTPAGEOFF]
Lloh31:
	ldr	x3, [x8]
Lloh32:
	adrp	x2, l_.str.2@PAGE
Lloh33:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x24
	mov	x1, x22
	bl	_snprintf
	mov	x0, x24
	bl	_mkstemp
	cmn	w0, #1
	b.eq	LBB0_87
; %bb.9:
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_Fdopen
	cbz	x0, LBB0_87
; %bb.10:
	mov	x20, x0
	ldr	x8, [x21]
	sub	w9, w19, w8
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.11:
	sub	w8, w19, w8
	add	w19, w8, #1
Lloh36:
	adrp	x21, _EOF@GOTPAGE
Lloh37:
	ldr	x21, [x21, _EOF@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_getc
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_87
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x1, x20
	bl	_putc
	sub	w19, w19, #1
	cmp	w19, #1
	b.gt	LBB0_12
LBB0_14:
	mov	x0, x20
	bl	_Fclose
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_Fopen
	cbz	x0, LBB0_87
; %bb.15:
	stp	x0, x23, [x29, #-128]           ; 16-byte Folded Spill
	stur	x24, [x29, #-136]               ; 8-byte Folded Spill
	mov	x0, x24
	bl	_rm
	b	LBB0_17
LBB0_16:
	stp	x24, xzr, [x29, #-136]          ; 16-byte Folded Spill
	stur	x23, [x29, #-120]               ; 8-byte Folded Spill
LBB0_17:
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_value
Lloh42:
	adrp	x27, _MPRESERVE@GOTPAGE
Lloh43:
	ldr	x27, [x27, _MPRESERVE@GOTPAGEOFF]
	ldr	w21, [x27]
Lloh44:
	adrp	x8, _MBOX@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MBOX@GOTPAGEOFF]
Lloh46:
	ldr	w23, [x8]
	cmp	x0, #0
	csel	w20, w23, w21, eq
Lloh47:
	adrp	x19, _MSAVED@GOTPAGE
Lloh48:
	ldr	x19, [x19, _MSAVED@GOTPAGEOFF]
	ldr	w24, [x19]
Lloh49:
	adrp	x8, _MDELETED@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MDELETED@GOTPAGEOFF]
Lloh51:
	ldr	w25, [x8]
Lloh52:
	adrp	x0, l_.str.5@PAGE
Lloh53:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_value
	ldr	w8, [x19]
	cmp	x0, #0
	mov	w9, #-1
	csinv	w8, w9, w8, eq
Lloh54:
	adrp	x16, _message@GOTPAGE
Lloh55:
	ldr	x16, [x16, _message@GOTPAGEOFF]
Lloh56:
	adrp	x9, _msgCount@GOTPAGE
Lloh57:
	ldr	x9, [x9, _msgCount@GOTPAGEOFF]
Lloh58:
	ldr	x10, [x9]
	cmp	x10, #1
	b.lt	LBB0_27
; %bb.18:
	mov	w19, #0
	orr	w9, w23, w21
	orr	w9, w9, w24
	orr	w9, w9, w25
	and	w8, w8, w9
	ldr	x9, [x16]
	add	x10, x9, x10, lsl #2
Lloh59:
	adrp	x11, _MNEW@GOTPAGE
Lloh60:
	ldr	x11, [x11, _MNEW@GOTPAGEOFF]
Lloh61:
	adrp	x12, _MSTATUS@GOTPAGE
Lloh62:
	ldr	x12, [x12, _MSTATUS@GOTPAGEOFF]
Lloh63:
	adrp	x13, _MTOUCH@GOTPAGE
Lloh64:
	ldr	x13, [x13, _MTOUCH@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x9, x9, #4
	cmp	x9, x10
	b.hs	LBB0_28
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x9]
	ldr	w15, [x11]
	tst	w15, w14
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	bic	w14, w14, w15
	str	w14, [x9]
	ldr	w15, [x12]
	orr	w14, w15, w14
	str	w14, [x9]
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w15, [x12]
	tst	w15, w14
	cinc	w19, w19, ne
	ldr	w15, [x13]
	tst	w15, w14
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	tst	w8, w14
	b.ne	LBB0_19
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w15, [x27]
	orr	w14, w15, w14
	str	w14, [x9]
	tst	w8, w14
	b.ne	LBB0_19
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=1
	orr	w14, w14, w20
	str	w14, [x9]
	b	LBB0_19
LBB0_26:
Lloh65:
	adrp	x0, l_str@PAGE
Lloh66:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_3
LBB0_27:
	mov	w19, #0
LBB0_28:
Lloh67:
	adrp	x26, _Tflag@GOTPAGE
Lloh68:
	ldr	x26, [x26, _Tflag@GOTPAGEOFF]
	ldr	x0, [x26]
	cbz	x0, LBB0_31
; %bb.29:
Lloh69:
	adrp	x1, l_.str.3@PAGE
Lloh70:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_Fopen
Lloh71:
	adrp	x16, _message@GOTPAGE
Lloh72:
	ldr	x16, [x16, _message@GOTPAGEOFF]
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
	cbnz	x0, LBB0_32
; %bb.30:
	stur	xzr, [x29, #-104]               ; 8-byte Folded Spill
	str	xzr, [x26]
	b	LBB0_32
LBB0_31:
                                        ; implicit-def: $x8
                                        ; kill: killed $x8
LBB0_32:
	stur	x28, [x29, #-112]               ; 8-byte Folded Spill
Lloh73:
	adrp	x8, _msgCount@GOTPAGE
Lloh74:
	ldr	x8, [x8, _msgCount@GOTPAGEOFF]
Lloh75:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_39
; %bb.33:
	mov	w20, #0
	mov	w25, #0
	mov	w28, #0
	ldr	x24, [x16]
Lloh76:
	adrp	x23, _MODIFY@GOTPAGE
Lloh77:
	ldr	x23, [x23, _MODIFY@GOTPAGEOFF]
Lloh78:
	adrp	x21, _MREAD@GOTPAGE
Lloh79:
	ldr	x21, [x21, _MREAD@GOTPAGEOFF]
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	add	x24, x24, #4
	ldr	x9, [x16]
Lloh80:
	adrp	x8, _msgCount@GOTPAGE
Lloh81:
	ldr	x8, [x8, _msgCount@GOTPAGEOFF]
Lloh82:
	ldr	x8, [x8]
	add	x9, x9, x8, lsl #2
	cmp	x24, x9
	b.hs	LBB0_40
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
Lloh83:
	adrp	x9, _MBOX@GOTPAGE
Lloh84:
	ldr	x9, [x9, _MBOX@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	tst	w9, w8
	cinc	w28, w28, ne
	ldr	w9, [x27]
	tst	w9, w8
	cinc	w20, w20, ne
	ldr	w9, [x23]
	tst	w9, w8
	cinc	w25, w25, ne
	ldr	x9, [x26]
	cbz	x9, LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	w9, [x21]
Lloh86:
	adrp	x10, _MDELETED@GOTPAGE
Lloh87:
	ldr	x10, [x10, _MDELETED@GOTPAGEOFF]
Lloh88:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_34
; %bb.37:                               ;   in Loop: Header=BB0_35 Depth=1
Lloh89:
	adrp	x0, l_.str.6@PAGE
Lloh90:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x24
	bl	_hfield
Lloh91:
	adrp	x16, _message@GOTPAGE
Lloh92:
	ldr	x16, [x16, _message@GOTPAGEOFF]
	cbz	x0, LBB0_34
; %bb.38:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	x2, x0
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
Lloh93:
	adrp	x1, l_.str.7@PAGE
Lloh94:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
Lloh95:
	adrp	x16, _message@GOTPAGE
Lloh96:
	ldr	x16, [x16, _message@GOTPAGEOFF]
	b	LBB0_34
LBB0_39:
	mov	w28, #0
	mov	w25, #0
	mov	w20, #0
LBB0_40:
	ldr	x9, [x26]
	cbz	x9, LBB0_42
; %bb.41:
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	bl	_Fclose
Lloh97:
	adrp	x8, _msgCount@GOTPAGE
Lloh98:
	ldr	x8, [x8, _msgCount@GOTPAGEOFF]
Lloh99:
	ldr	x8, [x8]
LBB0_42:
	cmp	x8, w20, uxtw
	ccmp	w25, #0, #0, eq
	ccmp	w19, #0, #0, eq
	b.eq	LBB0_55
; %bb.43:
	cbz	w28, LBB0_57
; %bb.44:
Lloh100:
	adrp	x0, l_.str.11@PAGE
Lloh101:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_expand
	mov	x23, x0
Lloh102:
	adrp	x0, l_.str.12@PAGE
Lloh103:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_value
                                        ; implicit-def: $x25
                                        ; implicit-def: $x24
	cbz	x0, LBB0_59
LBB0_45:
Lloh104:
	adrp	x0, l_.str.12@PAGE
Lloh105:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_value
	cbz	x0, LBB0_48
; %bb.46:
Lloh106:
	adrp	x1, l_.str.16@PAGE
Lloh107:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x23
	bl	_Fopen
	cbz	x0, LBB0_72
; %bb.47:
	mov	x25, x0
	bl	_fileno
	mov	w1, #384
	bl	_fchmod
LBB0_48:
Lloh108:
	adrp	x8, _msgCount@GOTPAGE
Lloh109:
	ldr	x8, [x8, _msgCount@GOTPAGEOFF]
Lloh110:
	ldr	x8, [x8]
	cmp	x8, #1
Lloh111:
	adrp	x9, _message@GOTPAGE
Lloh112:
	ldr	x9, [x9, _message@GOTPAGEOFF]
	b.lt	LBB0_66
; %bb.49:
	ldr	x9, [x9]
Lloh113:
	adrp	x19, _saveignore@GOTPAGE
Lloh114:
	ldr	x19, [x19, _saveignore@GOTPAGEOFF]
	mov	x21, x9
	b	LBB0_52
LBB0_50:                                ;   in Loop: Header=BB0_52 Depth=1
Lloh115:
	adrp	x8, _message@GOTPAGE
Lloh116:
	ldr	x8, [x8, _message@GOTPAGEOFF]
Lloh117:
	ldr	x9, [x8]
Lloh118:
	adrp	x8, _msgCount@GOTPAGE
Lloh119:
	ldr	x8, [x8, _msgCount@GOTPAGEOFF]
Lloh120:
	ldr	x8, [x8]
LBB0_51:                                ;   in Loop: Header=BB0_52 Depth=1
	add	x21, x21, #4
	add	x10, x9, x8, lsl #2
	cmp	x21, x10
	b.hs	LBB0_66
LBB0_52:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x21]
Lloh121:
	adrp	x11, _MBOX@GOTPAGE
Lloh122:
	ldr	x11, [x11, _MBOX@GOTPAGEOFF]
Lloh123:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_51
; %bb.53:                               ;   in Loop: Header=BB0_52 Depth=1
	ldr	w2, [x19]
	mov	x0, x21
	mov	x1, x25
	mov	x3, #0
	bl	_sendmessage
	tbz	x0, #63, LBB0_50
; %bb.54:
Lloh124:
	adrp	x0, l_.str.14@PAGE
Lloh125:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	x1, x23
	bl	_warnx
	mov	x0, x24
	bl	_Fclose
	b	LBB0_77
LBB0_55:
Lloh126:
	adrp	x8, l_.str.10@PAGE
Lloh127:
	add	x8, x8, l_.str.10@PAGEOFF
Lloh128:
	adrp	x9, l_.str.9@PAGE
Lloh129:
	add	x9, x9, l_.str.9@PAGEOFF
	cmp	w20, #1
	csel	x8, x9, x8, eq
Lloh130:
	adrp	x9, _mailname@GOTPAGE
Lloh131:
	ldr	x9, [x9, _mailname@GOTPAGEOFF]
Lloh132:
	ldr	x9, [x9]
	sub	sp, sp, #32
	stp	x8, x9, [sp, #8]
	str	x20, [sp]
Lloh133:
	adrp	x0, l_.str.8@PAGE
Lloh134:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	add	sp, sp, #32
LBB0_56:
	ldur	x0, [x29, #-120]                ; 8-byte Folded Reload
	bl	_Fclose
	ldur	x28, [x29, #-112]               ; 8-byte Folded Reload
	b	LBB0_3
LBB0_57:
	ldp	x23, x28, [x29, #-120]          ; 16-byte Folded Reload
Lloh135:
	adrp	x22, _mailname@GOTPAGE
Lloh136:
	ldr	x22, [x22, _mailname@GOTPAGEOFF]
	ldur	x24, [x29, #-128]               ; 8-byte Folded Reload
	cbz	w20, LBB0_82
LBB0_58:
	mov	x0, x24
	bl	_writeback
	b	LBB0_88
LBB0_59:
Lloh137:
	adrp	x8, _tmpdir@GOTPAGE
Lloh138:
	ldr	x8, [x8, _tmpdir@GOTPAGEOFF]
Lloh139:
	ldr	x3, [x8]
Lloh140:
	adrp	x2, l_.str.13@PAGE
Lloh141:
	add	x2, x2, l_.str.13@PAGEOFF
	ldur	x19, [x29, #-136]               ; 8-byte Folded Reload
	mov	x0, x19
	mov	x1, x22
	bl	_snprintf
	mov	x0, x19
	bl	_mkstemp
	cmn	w0, #1
	b.eq	LBB0_71
; %bb.60:
Lloh142:
	adrp	x1, l_.str.3@PAGE
Lloh143:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_Fdopen
	cbz	x0, LBB0_71
; %bb.61:
	mov	x22, x0
Lloh144:
	adrp	x1, l_.str@PAGE
Lloh145:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_Fopen
	cbz	x0, LBB0_94
; %bb.62:
	mov	x24, x0
	mov	x21, x19
	mov	x0, x19
	bl	_rm
Lloh146:
	adrp	x1, l_.str@PAGE
Lloh147:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_Fopen
	cbz	x0, LBB0_92
; %bb.63:
	mov	x25, x0
	bl	_getc
Lloh148:
	adrp	x19, _EOF@GOTPAGE
Lloh149:
	ldr	x19, [x19, _EOF@GOTPAGEOFF]
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_91
; %bb.65:                               ;   in Loop: Header=BB0_64 Depth=1
	mov	x1, x22
	bl	_putc
	mov	x0, x25
	bl	_getc
	b	LBB0_64
LBB0_66:
Lloh150:
	adrp	x0, l_.str.12@PAGE
Lloh151:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_value
	cbnz	x0, LBB0_75
; %bb.67:
	mov	x0, x24
	bl	_rewind
	mov	x0, x24
	bl	_getc
Lloh152:
	adrp	x19, _EOF@GOTPAGE
Lloh153:
	ldr	x19, [x19, _EOF@GOTPAGEOFF]
LBB0_68:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_74
; %bb.69:                               ;   in Loop: Header=BB0_68 Depth=1
	mov	x1, x25
	bl	_putc
	mov	x0, x25
	bl	_ferror
	cbnz	x0, LBB0_74
; %bb.70:                               ;   in Loop: Header=BB0_68 Depth=1
	mov	x0, x24
	bl	_getc
	b	LBB0_68
LBB0_71:
Lloh154:
	adrp	x0, l_.str.14@PAGE
Lloh155:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	x1, x19
	b	LBB0_73
LBB0_72:
Lloh156:
	adrp	x0, l_.str.14@PAGE
Lloh157:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	x1, x23
LBB0_73:
	bl	_warn
	b	LBB0_56
LBB0_74:
	mov	x0, x24
	bl	_Fclose
LBB0_75:
	mov	x0, x25
	bl	_fflush
	mov	x0, x25
	bl	_trunc
	mov	x0, x25
	bl	_ferror
	cbz	x0, LBB0_78
; %bb.76:
Lloh158:
	adrp	x0, l_.str.14@PAGE
Lloh159:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	x1, x23
	bl	_warn
LBB0_77:
	mov	x0, x25
	bl	_Fclose
	b	LBB0_56
LBB0_78:
	mov	x0, x25
	bl	_Fclose
	cmp	w28, #1
	b.ne	LBB0_80
; %bb.79:
Lloh160:
	adrp	x0, l_str.20@PAGE
Lloh161:
	add	x0, x0, l_str.20@PAGEOFF
	bl	_puts
	b	LBB0_81
LBB0_80:
	str	x28, [sp, #-16]!
Lloh162:
	adrp	x0, l_.str.18@PAGE
Lloh163:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_printf
	add	sp, sp, #16
LBB0_81:
	ldp	x24, x23, [x29, #-128]          ; 16-byte Folded Reload
Lloh164:
	adrp	x22, _mailname@GOTPAGE
Lloh165:
	ldr	x22, [x22, _mailname@GOTPAGEOFF]
	ldur	x28, [x29, #-112]               ; 8-byte Folded Reload
	cbnz	w20, LBB0_58
LBB0_82:
	cbz	x24, LBB0_90
; %bb.83:
	ldr	x0, [x22]
Lloh166:
	adrp	x1, l_.str.15@PAGE
Lloh167:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_Fopen
	cbz	x0, LBB0_87
; %bb.84:
	mov	x21, x0
	mov	x0, x24
	bl	_getc
Lloh168:
	adrp	x19, _EOF@GOTPAGE
Lloh169:
	ldr	x19, [x19, _EOF@GOTPAGEOFF]
LBB0_85:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_89
; %bb.86:                               ;   in Loop: Header=BB0_85 Depth=1
	mov	x1, x21
	bl	_putc
	mov	x0, x24
	bl	_getc
	b	LBB0_85
LBB0_87:
Lloh170:
	adrp	x0, l_str@PAGE
Lloh171:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_88:
	mov	x0, x23
	bl	_Fclose
	b	LBB0_3
LBB0_89:
	mov	x0, x24
	bl	_Fclose
	mov	x0, x21
	bl	_trunc
	mov	x0, x21
	bl	_Fclose
	ldr	x0, [x22]
	bl	_alter
	b	LBB0_88
LBB0_90:
	bl	_demail
	b	LBB0_88
LBB0_91:
	mov	x0, x25
	bl	_Fclose
LBB0_92:
	mov	x0, x22
	bl	_ferror
	cbz	x0, LBB0_96
; %bb.93:
Lloh172:
	adrp	x0, l_.str.14@PAGE
Lloh173:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	x1, x21
	bl	_warnx
	mov	x0, x24
	bl	_Fclose
	b	LBB0_95
LBB0_94:
Lloh174:
	adrp	x0, l_.str.14@PAGE
Lloh175:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	x1, x19
	bl	_warn
	mov	x0, x19
	bl	_rm
LBB0_95:
	mov	x0, x22
	bl	_Fclose
	b	LBB0_56
LBB0_96:
	mov	x0, x22
	bl	_Fclose
Lloh176:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh177:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh178:
	ldr	w8, [x8]
Lloh179:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh180:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh181:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh182:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh183:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh184:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x23
	mov	w2, #384
	bl	_open
	tbnz	w0, #31, LBB0_98
; %bb.97:
	bl	_close
LBB0_98:
Lloh185:
	adrp	x1, l_.str.15@PAGE
Lloh186:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x23
	bl	_Fopen
	cbz	x0, LBB0_100
; %bb.99:
	mov	x25, x0
	b	LBB0_45
LBB0_100:
Lloh187:
	adrp	x0, l_.str.14@PAGE
Lloh188:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	x1, x23
	bl	_warn
	mov	x0, x24
	bl	_Fclose
	b	LBB0_56
LBB0_101:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpAdd	Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGot	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpAdd	Lloh124, Lloh125
	.loh AdrpAdd	Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpAdd	Lloh128, Lloh129
	.loh AdrpAdd	Lloh126, Lloh127
	.loh AdrpLdrGot	Lloh135, Lloh136
	.loh AdrpAdd	Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh137, Lloh138, Lloh139
	.loh AdrpAdd	Lloh142, Lloh143
	.loh AdrpAdd	Lloh144, Lloh145
	.loh AdrpAdd	Lloh146, Lloh147
	.loh AdrpLdrGot	Lloh148, Lloh149
	.loh AdrpAdd	Lloh150, Lloh151
	.loh AdrpLdrGot	Lloh152, Lloh153
	.loh AdrpAdd	Lloh154, Lloh155
	.loh AdrpAdd	Lloh156, Lloh157
	.loh AdrpAdd	Lloh158, Lloh159
	.loh AdrpAdd	Lloh160, Lloh161
	.loh AdrpAdd	Lloh162, Lloh163
	.loh AdrpLdrGot	Lloh164, Lloh165
	.loh AdrpAdd	Lloh166, Lloh167
	.loh AdrpLdrGot	Lloh168, Lloh169
	.loh AdrpAdd	Lloh170, Lloh171
	.loh AdrpAdd	Lloh172, Lloh173
	.loh AdrpAdd	Lloh174, Lloh175
	.loh AdrpLdrGotLdr	Lloh182, Lloh183, Lloh184
	.loh AdrpLdrGotLdr	Lloh179, Lloh180, Lloh181
	.loh AdrpLdrGotLdr	Lloh176, Lloh177, Lloh178
	.loh AdrpAdd	Lloh185, Lloh186
	.loh AdrpAdd	Lloh187, Lloh188
	.cfi_endproc
                                        ; -- End function
	.comm	_PATHSIZE,4,2                   ; @PATHSIZE
	.comm	_readonly,8,3                   ; @readonly
	.comm	_edit,8,3                       ; @edit
	.comm	_mailname,8,3                   ; @mailname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_LOCK_EX,4,2                    ; @LOCK_EX
	.comm	_mailsize,8,3                   ; @mailsize
l_.str.2:                               ; @.str.2
	.asciz	"%s/mail.RqXXXXXXXXXX"

	.comm	_tmpdir,8,3                     ; @tmpdir
l_.str.3:                               ; @.str.3
	.asciz	"w"

	.comm	_EOF,4,2                        ; @EOF
l_.str.4:                               ; @.str.4
	.asciz	"hold"

	.comm	_MPRESERVE,4,2                  ; @MPRESERVE
	.comm	_MBOX,4,2                       ; @MBOX
	.comm	_MSAVED,4,2                     ; @MSAVED
	.comm	_MDELETED,4,2                   ; @MDELETED
l_.str.5:                               ; @.str.5
	.asciz	"keepsave"

	.comm	_message,8,3                    ; @message
	.comm	_msgCount,8,3                   ; @msgCount
	.comm	_MNEW,4,2                       ; @MNEW
	.comm	_MSTATUS,4,2                    ; @MSTATUS
	.comm	_MTOUCH,4,2                     ; @MTOUCH
	.comm	_Tflag,8,3                      ; @Tflag
	.comm	_MODIFY,4,2                     ; @MODIFY
	.comm	_MREAD,4,2                      ; @MREAD
l_.str.6:                               ; @.str.6
	.asciz	"article-id"

l_.str.7:                               ; @.str.7
	.asciz	"%s\n"

l_.str.8:                               ; @.str.8
	.asciz	"Held %d message%s in %s\n"

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

l_.str.10:                              ; @.str.10
	.asciz	"s"

l_.str.11:                              ; @.str.11
	.asciz	"&"

l_.str.12:                              ; @.str.12
	.asciz	"append"

l_.str.13:                              ; @.str.13
	.asciz	"%s/mail.RmXXXXXXXXXX"

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

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
l_.str.15:                              ; @.str.15
	.asciz	"r+"

l_.str.16:                              ; @.str.16
	.asciz	"a"

	.comm	_saveignore,4,2                 ; @saveignore
l_.str.18:                              ; @.str.18
	.asciz	"Saved %d messages in mbox\n"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_str:                                  ; @str
	.asciz	"Thou hast new mail."

l_str.20:                               ; @str.20
	.asciz	"Saved 1 message in mbox"

l_str.21:                               ; @str.21
	.asciz	"New mail has arrived."

.subsections_via_symbols
