	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edstop                         ## -- Begin function edstop
	.p2align	4, 0x90
_edstop:                                ## @edstop
	.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	$56, %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, %rcx
	movq	_readonly@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_52
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_holdsigs
	movq	_Tflag@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rsi
	callq	_Fopen
	movq	_Tflag@GOTPCREL(%rip), %rsi
	movq	%rax, %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	$0, (%rsi)
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_4:
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
LBB0_5:
	movq	_msgCount@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_14
## %bb.6:
	movq	_message@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	movq	_MODIFY@GOTPCREL(%rip), %r15
	movq	_MDELETED@GOTPCREL(%rip), %r12
	movq	_MSTATUS@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	addq	$4, %rbx
	movq	_msgCount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	movq	_message@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	cmpq	%rax, %rbx
	jae	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	movq	_MNEW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	orl	(%r13), %eax
	movl	%eax, (%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %ecx
	movl	(%r15), %edx
	orl	%ecx, %edx
	orl	(%r13), %edx
	andl	%eax, %edx
	cmpl	$1, %edx
	sbbl	$-1, %r14d
	cmpq	$0, (%rsi)
	je	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_MREAD@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_hfield
	movq	_Tflag@GOTPCREL(%rip), %rsi
	testq	%rax, %rax
	je	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	callq	_fprintf
	movq	_Tflag@GOTPCREL(%rip), %rsi
	jmp	LBB0_7
LBB0_14:
	cmpq	$0, (%rsi)
	je	LBB0_16
## %bb.15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rsi, %rbx
	callq	_Fclose
	cmpq	$0, (%rbx)
	setne	%al
	jmp	LBB0_17
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	testl	%r14d, %r14d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_51
## %bb.18:
	testb	%al, %al
	jne	LBB0_51
## %bb.19:
	movq	_mailname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	-88(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_32
## %bb.20:
	movq	-88(%rbp), %rax
	movq	_mailsize@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jle	LBB0_32
## %bb.21:
	movq	_tmpdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.3(%rip), %rdx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_mkstemp
	cmpl	$-1, %eax
	je	LBB0_23
## %bb.22:
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_Fdopen
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_24
LBB0_23:
	leaq	L_.str.4(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_warn
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_relsesigs
	xorl	%edi, %edi
	callq	_reset
LBB0_24:
	movq	_mailname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_Fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	movq	_mailname@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_warn
	movq	%r14, %rdi
	callq	_Fclose
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_rm
	xorl	%eax, %eax
	callq	_relsesigs
	xorl	%edi, %edi
	callq	_reset
LBB0_26:
	movq	(%r15), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_fseeko
	movq	%rbx, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	je	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_putc
	movq	%rbx, %rdi
	callq	_getc
	cmpl	(%r15), %eax
	jne	LBB0_27
LBB0_28:
	movq	%rbx, %rdi
	callq	_Fclose
	movq	%r14, %rdi
	callq	_Fclose
	leaq	L_.str.5(%rip), %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_Fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
	movq	%r14, %rdi
	callq	_rm
	xorl	%eax, %eax
	callq	_relsesigs
	xorl	%edi, %edi
	callq	_reset
LBB0_30:
	movq	%r14, %rdi
	callq	_rm
	jmp	LBB0_33
LBB0_32:
	xorl	%ebx, %ebx
LBB0_33:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_mailname@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_fflush
	movq	(%rbx), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_Fopen
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_35
## %bb.34:
	movq	_mailname@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_warn
	xorl	%eax, %eax
	callq	_relsesigs
	xorl	%edi, %edi
	callq	_reset
LBB0_35:
	movq	%r14, %rdi
	callq	_trunc
	movq	_msgCount@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_41
## %bb.36:
	movq	_message@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	movq	_MDELETED@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_38 Depth=1
	addq	$4, %rbx
	movq	_msgCount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	(%r12), %rax
	cmpq	%rax, %rbx
	jae	LBB0_41
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	testl	%eax, (%rbx)
	jne	LBB0_37
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	incl	%r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_sendmessage
	testq	%rax, %rax
	jns	LBB0_37
## %bb.40:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	_mailname@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_warnx
	xorl	%eax, %eax
	callq	_relsesigs
	xorl	%edi, %edi
	callq	_reset
	jmp	LBB0_37
LBB0_41:
	testl	%r15d, %r15d
	sete	%r12b
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	sete	%r15b
	je	LBB0_45
## %bb.42:
	movq	%rbx, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	je	LBB0_44
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_putc
	movq	%rbx, %rdi
	callq	_getc
	cmpl	(%r13), %eax
	jne	LBB0_43
LBB0_44:
	movq	%rbx, %rdi
	callq	_Fclose
LBB0_45:
	andb	%r15b, %r12b
	movq	%r14, %rdi
	callq	_fflush
	movq	%r14, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_47
## %bb.46:
	movq	_mailname@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_warn
	xorl	%eax, %eax
	callq	_relsesigs
	xorl	%edi, %edi
	callq	_reset
LBB0_47:
	movq	%r14, %rdi
	callq	_Fclose
	testb	%r12b, %r12b
	je	LBB0_49
## %bb.48:
	movq	_mailname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_rm
	leaq	L_str.10(%rip), %rdi
	jmp	LBB0_50
LBB0_49:
	leaq	L_str(%rip), %rdi
LBB0_50:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	_stdout@GOTPCREL(%rip), %r14
	callq	_puts
	movq	(%r14), %rdi
	callq	_fflush
LBB0_51:
	xorl	%eax, %eax
	callq	_relsesigs
LBB0_52:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_54
## %bb.53:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_54:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATHSIZE,4,2                   ## @PATHSIZE
	.comm	_readonly,8,3                   ## @readonly
	.comm	_Tflag,8,3                      ## @Tflag
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

	.comm	_message,8,3                    ## @message
	.comm	_msgCount,8,3                   ## @msgCount
	.comm	_MNEW,4,2                       ## @MNEW
	.comm	_MSTATUS,4,2                    ## @MSTATUS
	.comm	_MODIFY,4,2                     ## @MODIFY
	.comm	_MDELETED,4,2                   ## @MDELETED
	.comm	_MREAD,4,2                      ## @MREAD
L_.str.1:                               ## @.str.1
	.asciz	"article-id"

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

	.comm	_mailname,8,3                   ## @mailname
	.comm	_mailsize,8,3                   ## @mailsize
L_.str.3:                               ## @.str.3
	.asciz	"%s/mbox.XXXXXXXXXX"

	.comm	_tmpdir,8,3                     ## @tmpdir
L_.str.4:                               ## @.str.4
	.asciz	"%s"

L_.str.5:                               ## @.str.5
	.asciz	"r"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_EOF,4,2                        ## @EOF
L_.str.6:                               ## @.str.6
	.asciz	"\"%s\" "

	.comm	_stdout,8,3                     ## @stdout
L_.str.7:                               ## @.str.7
	.asciz	"r+"

L_str:                                  ## @str
	.asciz	"complete"

L_str.10:                               ## @str.10
	.asciz	"removed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edstop                         ; -- Begin function edstop
	.p2align	2
_edstop:                                ; @edstop
	.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, #48
	mov	x12, 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	w13, [x8]
	mov	x9, x13
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x13, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh8:
	adrp	x8, _readonly@GOTPAGE
Lloh9:
	ldr	x8, [x8, _readonly@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbnz	x8, LBB0_54
; %bb.1:
	stur	x13, [x29, #-120]               ; 8-byte Folded Spill
	stur	x12, [x29, #-104]               ; 8-byte Folded Spill
	bl	_holdsigs
Lloh11:
	adrp	x27, _Tflag@GOTPAGE
Lloh12:
	ldr	x27, [x27, _Tflag@GOTPAGEOFF]
	ldr	x0, [x27]
	cbz	x0, LBB0_4
; %bb.2:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Fopen
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.3:
	str	xzr, [x27]
	b	LBB0_5
LBB0_4:
                                        ; implicit-def: $x21
LBB0_5:
	stur	x19, [x29, #-112]               ; 8-byte Folded Spill
Lloh15:
	adrp	x8, _msgCount@GOTPAGE
Lloh16:
	ldr	x8, [x8, _msgCount@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.6:
	mov	w28, #0
Lloh18:
	adrp	x25, _message@GOTPAGE
Lloh19:
	ldr	x25, [x25, _message@GOTPAGEOFF]
	ldr	x22, [x25]
Lloh20:
	adrp	x19, _MNEW@GOTPAGE
Lloh21:
	ldr	x19, [x19, _MNEW@GOTPAGEOFF]
Lloh22:
	adrp	x24, _MODIFY@GOTPAGE
Lloh23:
	ldr	x24, [x24, _MODIFY@GOTPAGEOFF]
Lloh24:
	adrp	x26, _MDELETED@GOTPAGE
Lloh25:
	ldr	x26, [x26, _MDELETED@GOTPAGEOFF]
Lloh26:
	adrp	x20, _MSTATUS@GOTPAGE
Lloh27:
	ldr	x20, [x20, _MSTATUS@GOTPAGEOFF]
Lloh28:
	adrp	x23, _MREAD@GOTPAGE
Lloh29:
	ldr	x23, [x23, _MREAD@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #4
	ldr	x8, [x25]
Lloh30:
	adrp	x9, _msgCount@GOTPAGE
Lloh31:
	ldr	x9, [x9, _msgCount@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	cmp	x22, x8
	b.hs	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bic	w8, w8, w9
	str	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w10, [x24]
	ldr	w9, [x26]
	orr	w10, w9, w10
	ldr	w11, [x20]
	orr	w10, w10, w11
	tst	w10, w8
	cinc	w28, w28, ne
	ldr	x10, [x27]
	cbz	x10, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w10, [x23]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_hfield
	cbz	x0, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x2, x0
	mov	x0, x21
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	b	LBB0_7
LBB0_14:
	mov	w28, #0
LBB0_15:
	ldr	x8, [x27]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_Fclose
	ldr	x8, [x27]
	cmp	x8, #0
	cset	w8, ne
LBB0_17:
	cbz	w28, LBB0_53
; %bb.18:
	tbnz	w8, #0, LBB0_53
; %bb.19:
Lloh37:
	adrp	x23, _mailname@GOTPAGE
Lloh38:
	ldr	x23, [x23, _mailname@GOTPAGEOFF]
	ldr	x0, [x23]
	sub	x1, x29, #96
	bl	_stat
	tbnz	x0, #63, LBB0_29
; %bb.20:
	ldur	x8, [x29, #-96]
Lloh39:
	adrp	x22, _mailsize@GOTPAGE
Lloh40:
	ldr	x22, [x22, _mailsize@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.le	LBB0_29
; %bb.21:
Lloh41:
	adrp	x8, _tmpdir@GOTPAGE
Lloh42:
	ldr	x8, [x8, _tmpdir@GOTPAGEOFF]
Lloh43:
	ldr	x3, [x8]
Lloh44:
	adrp	x2, l_.str.3@PAGE
Lloh45:
	add	x2, x2, l_.str.3@PAGEOFF
	ldp	x1, x24, [x29, #-120]           ; 16-byte Folded Reload
	mov	x0, x24
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_snprintf
	mov	x0, x24
	bl	_mkstemp
	cmn	w0, #1
	b.eq	LBB0_23
; %bb.22:
Lloh46:
	adrp	x1, l_.str@PAGE
Lloh47:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Fdopen
	mov	x20, x0
	cbnz	x0, LBB0_24
LBB0_23:
Lloh48:
	adrp	x0, l_.str.4@PAGE
Lloh49:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x24
	bl	_warn
	bl	_relsesigs
	mov	w0, #0
	bl	_reset
	mov	x20, #0
LBB0_24:
	ldr	x0, [x23]
Lloh50:
	adrp	x1, l_.str.5@PAGE
Lloh51:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_Fopen
	mov	x21, x0
	cbnz	x0, LBB0_26
; %bb.25:
	ldr	x1, [x23]
Lloh52:
	adrp	x0, l_.str.4@PAGE
Lloh53:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warn
	mov	x0, x20
	bl	_Fclose
	mov	x0, x24
	bl	_rm
	bl	_relsesigs
	mov	w0, #0
	bl	_reset
LBB0_26:
	ldr	x1, [x22]
Lloh54:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_fseeko
	mov	x0, x21
	bl	_getc
Lloh57:
	adrp	x19, _EOF@GOTPAGE
Lloh58:
	ldr	x19, [x19, _EOF@GOTPAGEOFF]
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	x1, x20
	bl	_putc
	mov	x0, x21
	bl	_getc
	b	LBB0_27
LBB0_29:
	mov	x20, #0
	b	LBB0_33
LBB0_30:
	mov	x0, x21
	bl	_Fclose
	mov	x0, x20
	bl	_Fclose
Lloh59:
	adrp	x1, l_.str.5@PAGE
Lloh60:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x24
	bl	_Fopen
	mov	x20, x0
	cbnz	x0, LBB0_32
; %bb.31:
Lloh61:
	adrp	x0, l_.str.4@PAGE
Lloh62:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x24
	bl	_warn
	mov	x0, x24
	bl	_rm
	bl	_relsesigs
	mov	w0, #0
	bl	_reset
LBB0_32:
	mov	x0, x24
	bl	_rm
LBB0_33:
	ldr	x8, [x23]
	str	x8, [sp, #-16]!
Lloh63:
	adrp	x0, l_.str.6@PAGE
Lloh64:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	add	sp, sp, #16
Lloh65:
	adrp	x24, _stdout@GOTPAGE
Lloh66:
	ldr	x24, [x24, _stdout@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_fflush
	ldr	x0, [x23]
Lloh67:
	adrp	x1, l_.str.7@PAGE
Lloh68:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_Fopen
	mov	x19, x0
	cbnz	x0, LBB0_35
; %bb.34:
	ldr	x1, [x23]
Lloh69:
	adrp	x0, l_.str.4@PAGE
Lloh70:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warn
	bl	_relsesigs
	mov	w0, #0
	bl	_reset
LBB0_35:
	mov	x0, x19
	bl	_trunc
Lloh71:
	adrp	x8, _msgCount@GOTPAGE
Lloh72:
	ldr	x8, [x8, _msgCount@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_41
; %bb.36:
	mov	w25, #0
Lloh74:
	adrp	x26, _message@GOTPAGE
Lloh75:
	ldr	x26, [x26, _message@GOTPAGEOFF]
	ldr	x21, [x26]
Lloh76:
	adrp	x27, _MDELETED@GOTPAGE
Lloh77:
	ldr	x27, [x27, _MDELETED@GOTPAGEOFF]
Lloh78:
	adrp	x22, l_.str.4@PAGE
Lloh79:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=1
	add	x21, x21, #4
	ldr	x8, [x26]
Lloh80:
	adrp	x9, _msgCount@GOTPAGE
Lloh81:
	ldr	x9, [x9, _msgCount@GOTPAGEOFF]
Lloh82:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	cmp	x21, x8
	b.hs	LBB0_42
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_37
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	add	w25, w25, #1
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	mov	x3, #0
	bl	_sendmessage
	tbz	x0, #63, LBB0_37
; %bb.40:                               ;   in Loop: Header=BB0_38 Depth=1
	ldr	x1, [x23]
	mov	x0, x22
	bl	_warnx
	bl	_relsesigs
	mov	w0, #0
	bl	_reset
	b	LBB0_37
LBB0_41:
	mov	w25, #0
LBB0_42:
	cmp	w25, #0
	ccmp	x20, #0, #0, eq
	cset	w21, eq
	cbz	x20, LBB0_47
; %bb.43:
	mov	x0, x20
	bl	_getc
Lloh83:
	adrp	x22, _EOF@GOTPAGE
Lloh84:
	ldr	x22, [x22, _EOF@GOTPAGEOFF]
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_46
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	mov	x1, x19
	bl	_putc
	mov	x0, x20
	bl	_getc
	b	LBB0_44
LBB0_46:
	mov	x0, x20
	bl	_Fclose
LBB0_47:
	mov	x0, x19
	bl	_fflush
	mov	x0, x19
	bl	_ferror
	cbz	x0, LBB0_49
; %bb.48:
	ldr	x1, [x23]
Lloh85:
	adrp	x0, l_.str.4@PAGE
Lloh86:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warn
	bl	_relsesigs
	mov	w0, #0
	bl	_reset
LBB0_49:
	mov	x0, x19
	bl	_Fclose
	cbz	w21, LBB0_51
; %bb.50:
	ldr	x0, [x23]
	bl	_rm
Lloh87:
	adrp	x0, l_str.10@PAGE
Lloh88:
	add	x0, x0, l_str.10@PAGEOFF
	b	LBB0_52
LBB0_51:
Lloh89:
	adrp	x0, l_str@PAGE
Lloh90:
	add	x0, x0, l_str@PAGEOFF
LBB0_52:
	bl	_puts
	ldr	x0, [x24]
	bl	_fflush
LBB0_53:
	bl	_relsesigs
	ldur	x12, [x29, #-104]               ; 8-byte Folded Reload
LBB0_54:
	mov	sp, x12
	ldur	x8, [x29, #-88]
Lloh91:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh92:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh93:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_56
; %bb.55:
	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_56:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.cfi_endproc
                                        ; -- End function
	.comm	_PATHSIZE,4,2                   ; @PATHSIZE
	.comm	_readonly,8,3                   ; @readonly
	.comm	_Tflag,8,3                      ; @Tflag
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

	.comm	_message,8,3                    ; @message
	.comm	_msgCount,8,3                   ; @msgCount
	.comm	_MNEW,4,2                       ; @MNEW
	.comm	_MSTATUS,4,2                    ; @MSTATUS
	.comm	_MODIFY,4,2                     ; @MODIFY
	.comm	_MDELETED,4,2                   ; @MDELETED
	.comm	_MREAD,4,2                      ; @MREAD
l_.str.1:                               ; @.str.1
	.asciz	"article-id"

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

	.comm	_mailname,8,3                   ; @mailname
	.comm	_mailsize,8,3                   ; @mailsize
l_.str.3:                               ; @.str.3
	.asciz	"%s/mbox.XXXXXXXXXX"

	.comm	_tmpdir,8,3                     ; @tmpdir
l_.str.4:                               ; @.str.4
	.asciz	"%s"

l_.str.5:                               ; @.str.5
	.asciz	"r"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_EOF,4,2                        ; @EOF
l_.str.6:                               ; @.str.6
	.asciz	"\"%s\" "

	.comm	_stdout,8,3                     ; @stdout
l_.str.7:                               ; @.str.7
	.asciz	"r+"

l_str:                                  ; @str
	.asciz	"complete"

l_str.10:                               ; @str.10
	.asciz	"removed"

.subsections_via_symbols
