	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_savemail                       ## -- Begin function savemail
	.p2align	4, 0x90
_savemail:                              ## @savemail
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	$63, %edi
	callq	_umask
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_Fopen
	movq	%rax, %r13
	movl	%r14d, %edi
	callq	_umask
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	leaq	-52(%rbp), %rdi
	callq	_time
	movq	_myname@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	-52(%rbp), %rdi
	callq	_ctime
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_fread
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	movq	%r13, %rcx
	callq	_fwrite
	jmp	LBB0_4
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	movl	$1, %esi
	movl	$1, %edx
	movq	%r13, %rcx
	callq	_fwrite
	movq	%r13, %rdi
	callq	_fflush
	movq	%r13, %rdi
	callq	_ferror
	testq	%rax, %rax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
LBB0_7:
	movq	%r13, %rdi
	callq	_Fclose
	movq	%r15, %rdi
	callq	_rewind
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_warn
	movl	$-1, %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a"

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

L_.str.2:                               ## @.str.2
	.asciz	"From %s %s"

	.comm	_myname,8,3                     ## @myname
L_.str.3:                               ## @.str.3
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_savemail                       ; -- Begin function savemail
	.p2align	2
_savemail:                              ; @savemail
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@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	x23, x8, x9
	mov	sp, x23
	mov	w0, #63
	bl	_umask
	mov	x24, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_Fopen
	mov	x21, x0
	mov	x0, x24
	bl	_umask
	cbz	x21, LBB0_7
; %bb.1:
	sub	x0, x29, #60
	bl	_time
Lloh10:
	adrp	x8, _myname@GOTPAGE
Lloh11:
	ldr	x8, [x8, _myname@GOTPAGEOFF]
Lloh12:
	ldr	x24, [x8]
	sub	x0, x29, #60
	bl	_ctime
	stp	x24, x0, [sp, #-16]!
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_fprintf
	add	sp, sp, #16
	mov	x0, x23
	mov	w1, #1
	mov	x2, x22
	mov	x3, x19
	bl	_fread
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x2, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	w1, #1
	mov	x3, x21
	bl	_fwrite
	mov	x0, x23
	mov	w1, #1
	mov	x2, x22
	mov	x3, x19
	bl	_fread
	mov	x2, x0
	cmp	w0, #0
	b.gt	LBB0_3
LBB0_4:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #1
	mov	w2, #1
	mov	x3, x21
	bl	_fwrite
	mov	x0, x21
	bl	_fflush
	mov	x0, x21
	bl	_ferror
	cbz	x0, LBB0_6
; %bb.5:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_warn
LBB0_6:
	mov	x0, x21
	bl	_Fclose
	mov	x0, x19
	bl	_rewind
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_warn
	mov	w0, #-1
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a"

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

l_.str.2:                               ; @.str.2
	.asciz	"From %s %s"

	.comm	_myname,8,3                     ; @myname
l_.str.3:                               ; @.str.3
	.asciz	"\n"

.subsections_via_symbols
