	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_opencalin                      ## -- Begin function opencalin
	.p2align	4, 0x90
_opencalin:                             ## @opencalin
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_calendarFile@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_doall@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_calendarHomes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_chdir
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_1
LBB0_5:
	movl	(%rbx), %edi
	callq	_cal_fopen
	jmp	LBB0_1
LBB0_6:
	movq	_calendarNoMail@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_calendarFile,4,2               ## @calendarFile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_doall,8,3                      ## @doall
	.comm	_calendarHomes,8,3              ## @calendarHomes
	.comm	_calendarNoMail,4,2             ## @calendarNoMail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_opencalin                      ; -- Begin function opencalin
	.p2align	2
_opencalin:                             ; @opencalin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _calendarFile@GOTPAGE
Lloh1:
	ldr	x19, [x19, _calendarFile@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
Lloh4:
	adrp	x8, _doall@GOTPAGE
Lloh5:
	ldr	x8, [x8, _doall@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh7:
	adrp	x8, _calendarHomes@GOTPAGE
Lloh8:
	ldr	x8, [x8, _calendarHomes@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_chdir
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, #0
	b	LBB0_1
LBB0_5:
	ldr	w0, [x19]
	bl	_cal_fopen
	b	LBB0_1
LBB0_6:
Lloh10:
	adrp	x8, _calendarNoMail@GOTPAGE
Lloh11:
	ldr	x8, [x8, _calendarNoMail@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_stat
	cbz	x0, LBB0_1
; %bb.7:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	b	LBB0_1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_calendarFile,4,2               ; @calendarFile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_doall,8,3                      ; @doall
	.comm	_calendarHomes,8,3              ; @calendarHomes
	.comm	_calendarNoMail,4,2             ; @calendarNoMail
.subsections_via_symbols
