	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_closecal                       ## -- Begin function closecal
	.p2align	4, 0x90
_closecal:                              ## @closecal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$1072, %rsp                     ## imm = 0x430
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_doall@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r14
	callq	_rewind
	movq	%r14, %rdi
	callq	_fileno
	leaq	-1080(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:
	cmpl	$0, -1080(%rbp)
	je	LBB0_13
## %bb.3:
	leaq	-48(%rbp), %rdi
	callq	_pipe
	testq	%rax, %rax
	js	LBB0_13
## %bb.4:
	xorl	%eax, %eax
	callq	_fork
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.5:
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:
	movl	-48(%rbp), %edi
	callq	_close
	movl	-44(%rbp), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	$26, %edx
	callq	_write
	movl	-44(%rbp), %r15d
	movq	_pw@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
	movl	-44(%rbp), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	$7, %edx
	callq	_write
	movl	-44(%rbp), %r15d
	movq	(%r12), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
	movl	-44(%rbp), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	$11, %edx
	callq	_write
	movl	-44(%rbp), %r15d
	movq	_dayname@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
	movl	-44(%rbp), %edi
	leaq	L_.str.8(%rip), %rsi
	movl	$30, %edx
	callq	_write
	movq	%r14, %rdi
	callq	_fileno
	leaq	-1072(%rbp), %rsi
	movl	%eax, %edi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_read
	testl	%eax, %eax
	jle	LBB0_12
## %bb.10:
	leaq	-1072(%rbp), %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
	movq	%r14, %rdi
	callq	_fileno
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_read
	testl	%eax, %eax
	jg	LBB0_11
	jmp	LBB0_12
LBB0_17:
	movl	-48(%rbp), %edi
	callq	_close
LBB0_12:
	movl	-44(%rbp), %edi
	callq	_close
LBB0_13:
	movq	%r14, %rdi
	callq	_fclose
	movq	_path@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_unlink
	leaq	-1084(%rbp), %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_wait
	testq	%rax, %rax
	jns	LBB0_14
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_18
## %bb.16:
	addq	$1072, %rsp                     ## imm = 0x430
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
LBB0_6:
	movl	-48(%rbp), %edi
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%esi, %edi
	je	LBB0_8
## %bb.7:
	callq	_dup2
	movl	-48(%rbp), %edi
	callq	_close
LBB0_8:
	movl	-44(%rbp), %edi
	callq	_close
	movq	__PATH_SENDMAIL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	$0, (%rsp)
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %r8
	leaq	L_.str.4(%rip), %r9
	callq	_execl
	movl	(%rbx), %edi
	callq	_warn
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_doall,4,2                      ## @doall
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	__PATH_SENDMAIL,4,2             ## @_PATH_SENDMAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendmail"

L_.str.1:                               ## @.str.1
	.asciz	"-i"

L_.str.2:                               ## @.str.2
	.asciz	"-t"

L_.str.3:                               ## @.str.3
	.asciz	"-F"

L_.str.4:                               ## @.str.4
	.asciz	"\"Reminder Service\""

L_.str.5:                               ## @.str.5
	.asciz	"From: \"Reminder Service\" <"

	.comm	_pw,8,3                         ## @pw
L_.str.6:                               ## @.str.6
	.asciz	">\nTo: <"

L_.str.7:                               ## @.str.7
	.asciz	">\nSubject: "

	.comm	_dayname,8,3                    ## @dayname
L_.str.8:                               ## @.str.8
	.asciz	"'s Calendar\nPrecedence: bulk\n\n"

	.comm	_path,4,2                       ## @path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_closecal                       ; -- Begin function closecal
	.p2align	2
_closecal:                              ; @closecal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1056
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, _doall@GOTPAGE
Lloh4:
	ldr	x8, [x8, _doall@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x19, x0
	bl	_rewind
	mov	x0, x19
	bl	_fileno
	add	x1, sp, #8
	bl	_fstat
	cbnz	x0, LBB0_11
; %bb.2:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_11
; %bb.3:
	sub	x0, x29, #64
	bl	_pipe
	tbnz	x0, #63, LBB0_11
; %bb.4:
	bl	_fork
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.5:
	cbz	w0, LBB0_16
; %bb.6:
	ldur	w0, [x29, #-64]
	bl	_close
	ldur	w0, [x29, #-60]
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #26
	bl	_write
	ldur	w20, [x29, #-60]
Lloh8:
	adrp	x22, _pw@GOTPAGE
Lloh9:
	ldr	x22, [x22, _pw@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x21, [x8]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_write
	ldur	w0, [x29, #-60]
Lloh10:
	adrp	x1, l_.str.6@PAGE
Lloh11:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w2, #7
	bl	_write
	ldur	w20, [x29, #-60]
	ldr	x8, [x22]
	ldr	x21, [x8]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_write
	ldur	w0, [x29, #-60]
Lloh12:
	adrp	x1, l_.str.7@PAGE
Lloh13:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w2, #11
	bl	_write
	ldur	w20, [x29, #-60]
Lloh14:
	adrp	x8, _dayname@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dayname@GOTPAGEOFF]
Lloh16:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_write
	ldur	w0, [x29, #-60]
Lloh17:
	adrp	x1, l_.str.8@PAGE
Lloh18:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w2, #30
	bl	_write
	mov	x0, x19
	bl	_fileno
	add	x1, sp, #16
	mov	w2, #1024
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x2, x0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w0, [x29, #-60]
	add	x1, sp, #16
	bl	_write
	mov	x0, x19
	bl	_fileno
	add	x1, sp, #16
	mov	w2, #1024
	bl	_read
	mov	x2, x0
	cmp	w0, #0
	b.gt	LBB0_8
	b	LBB0_10
LBB0_9:
	ldur	w0, [x29, #-64]
	bl	_close
LBB0_10:
	ldur	w0, [x29, #-60]
	bl	_close
LBB0_11:
	mov	x0, x19
	bl	_fclose
Lloh19:
	adrp	x8, _path@GOTPAGE
Lloh20:
	ldr	x8, [x8, _path@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_unlink
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #4
	bl	_wait
	tbz	x0, #63, LBB0_12
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	add	sp, sp, #1056
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
LBB0_16:
	ldur	w0, [x29, #-64]
Lloh25:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	cmp	w0, w1
	b.eq	LBB0_18
; %bb.17:
	bl	_dup2
	ldur	w0, [x29, #-64]
	bl	_close
LBB0_18:
	ldur	w0, [x29, #-60]
	bl	_close
Lloh28:
	adrp	x19, __PATH_SENDMAIL@GOTPAGE
Lloh29:
	ldr	x19, [x19, __PATH_SENDMAIL@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
Lloh32:
	adrp	x2, l_.str.1@PAGE
Lloh33:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh34:
	adrp	x3, l_.str.2@PAGE
Lloh35:
	add	x3, x3, l_.str.2@PAGEOFF
Lloh36:
	adrp	x4, l_.str.3@PAGE
Lloh37:
	add	x4, x4, l_.str.3@PAGEOFF
Lloh38:
	adrp	x5, l_.str.4@PAGE
Lloh39:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	x6, #0
	bl	_execl
	ldr	w0, [x19]
	bl	_warn
	mov	w0, #1
	bl	__exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_doall,4,2                      ; @doall
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	__PATH_SENDMAIL,4,2             ; @_PATH_SENDMAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendmail"

l_.str.1:                               ; @.str.1
	.asciz	"-i"

l_.str.2:                               ; @.str.2
	.asciz	"-t"

l_.str.3:                               ; @.str.3
	.asciz	"-F"

l_.str.4:                               ; @.str.4
	.asciz	"\"Reminder Service\""

l_.str.5:                               ; @.str.5
	.asciz	"From: \"Reminder Service\" <"

	.comm	_pw,8,3                         ; @pw
l_.str.6:                               ; @.str.6
	.asciz	">\nTo: <"

l_.str.7:                               ; @.str.7
	.asciz	">\nSubject: "

	.comm	_dayname,8,3                    ; @dayname
l_.str.8:                               ; @.str.8
	.asciz	"'s Calendar\nPrecedence: bulk\n\n"

	.comm	_path,4,2                       ; @path
.subsections_via_symbols
