	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcv_sync                       ## -- Begin function rcv_sync
	.p2align	4, 0x90
_rcv_sync:                              ## @rcv_sync
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.1:
	movq	%rdi, %r14
	movq	_F_RCV_ON@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_24
## %bb.2:
	movq	_F_MODIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	8(%rbx), %rdi
	movq	_R_RECNOSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*(%rdi)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_F_RCV_NORM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_F_CLR
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_msgq_str
	movl	$1, %r15d
	jmp	LBB0_24
LBB0_5:
	movq	_RCV_PRESERVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LF_ISSET
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_F_RCV_NORM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
LBB0_7:
	movq	_RCV_EMAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LF_ISSET
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_rcv_email
LBB0_9:
	movq	_RCV_SNAPSHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LF_ISSET
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	_O_RECDIR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_opts_empty
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_22
## %bb.12:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_O_STR
	movq	%rax, %r13
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_join
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r13, %rdx
	callq	_rcv_mktemp
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %r13d
	movq	(%r14), %rax
	movq	_BUSY_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	*(%rax)
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_rcv_copy
	testq	%rax, %rax
	jne	LBB0_20
## %bb.17:
	movl	%r13d, %edi
	callq	_close
	testq	%rax, %rax
	jne	LBB0_20
## %bb.18:
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	callq	_rcv_mailfile
	testq	%rax, %rax
	je	LBB0_19
LBB0_20:
	movq	%r12, %rdi
	callq	_unlink
	movl	%r13d, %edi
	callq	_close
	movl	$1, %r15d
LBB0_21:
	movq	%r12, %rdi
	callq	_free
	movq	(%r14), %rax
	movq	_BUSY_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	jmp	LBB0_22
LBB0_10:
	xorl	%r15d, %r15d
LBB0_22:
	movq	_RCV_ENDSESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LF_ISSET
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	$1, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_file_end
	testq	%rax, %rax
	cmovnel	%ebx, %r15d
LBB0_24:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_msgq
	jmp	LBB0_22
LBB0_15:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_22
LBB0_19:
	xorl	%r15d, %r15d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_F_RCV_ON,4,2                   ## @F_RCV_ON
	.comm	_F_MODIFIED,4,2                 ## @F_MODIFIED
	.comm	_R_RECNOSYNC,4,2                ## @R_RECNOSYNC
	.comm	_F_RCV_NORM,4,2                 ## @F_RCV_NORM
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"060|File backup failed: %s"

	.comm	_RCV_PRESERVE,4,2               ## @RCV_PRESERVE
	.comm	_RCV_EMAIL,4,2                  ## @RCV_EMAIL
	.comm	_RCV_SNAPSHOT,4,2               ## @RCV_SNAPSHOT
	.comm	_O_RECDIR,4,2                   ## @O_RECDIR
L_.str.1:                               ## @.str.1
	.asciz	"vi.XXXXXX"

L_.str.2:                               ## @.str.2
	.asciz	"061|Copying file for recovery..."

	.comm	_BUSY_ON,4,2                    ## @BUSY_ON
	.comm	_BUSY_OFF,4,2                   ## @BUSY_OFF
	.comm	_RCV_ENDSESSION,4,2             ## @RCV_ENDSESSION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcv_sync                       ; -- Begin function rcv_sync
	.p2align	2
_rcv_sync:                              ; @rcv_sync
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_16
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _F_RCV_ON@GOTPAGE
Lloh1:
	ldr	x21, [x21, _F_RCV_ON@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _F_MODIFIED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _F_MODIFIED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_10
; %bb.3:
	ldr	x0, [x20, #8]
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _R_RECNOSYNC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _R_RECNOSYNC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	blr	x8
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _F_RCV_NORM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _F_RCV_NORM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_F_CLR
Lloh11:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh14:
	adrp	x3, l_.str@PAGE
Lloh15:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_msgq_str
	mov	w20, #1
	b	LBB0_16
LBB0_5:
	mov	w20, #0
	b	LBB0_16
LBB0_6:
Lloh16:
	adrp	x8, _RCV_PRESERVE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RCV_PRESERVE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_LF_ISSET
	cbz	x0, LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _F_RCV_NORM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _F_RCV_NORM@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_SET
LBB0_8:
Lloh22:
	adrp	x8, _RCV_EMAIL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RCV_EMAIL@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_LF_ISSET
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_rcv_email
LBB0_10:
Lloh25:
	adrp	x8, _RCV_SNAPSHOT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RCV_SNAPSHOT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_LF_ISSET
	cbz	x0, LBB0_13
; %bb.11:
Lloh28:
	adrp	x21, _O_RECDIR@GOTPAGE
Lloh29:
	ldr	x21, [x21, _O_RECDIR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_opts_empty
	cbz	x0, LBB0_17
; %bb.12:
	mov	w20, #1
	b	LBB0_14
LBB0_13:
	mov	w20, #0
LBB0_14:
Lloh30:
	adrp	x8, _RCV_ENDSESSION@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RCV_ENDSESSION@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_LF_ISSET
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #1
	bl	_file_end
	cmp	x0, #0
	csinc	w20, w20, wzr, eq
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_O_STR
	mov	x22, x0
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_join
	cbz	x0, LBB0_24
; %bb.18:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_rcv_mktemp
	cmn	w0, #1
	b.eq	LBB0_25
; %bb.19:
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh35:
	adrp	x9, _BUSY_ON@GOTPAGE
Lloh36:
	ldr	x9, [x9, _BUSY_ON@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x9]
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	blr	x8
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x22
	bl	_rcv_copy
	cbnz	x0, LBB0_22
; %bb.20:
	mov	x0, x22
	bl	_close
	cbnz	x0, LBB0_22
; %bb.21:
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_rcv_mailfile
	cbz	x0, LBB0_26
LBB0_22:
	mov	x0, x21
	bl	_unlink
	mov	x0, x22
	bl	_close
	mov	w20, #1
LBB0_23:
	mov	x0, x21
	bl	_free
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh40:
	adrp	x9, _BUSY_OFF@GOTPAGE
Lloh41:
	ldr	x9, [x9, _BUSY_OFF@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x9]
	mov	x0, x19
	mov	x1, #0
	blr	x8
	b	LBB0_14
LBB0_24:
Lloh43:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_msgq
	mov	w20, #1
	b	LBB0_14
LBB0_25:
	mov	x0, x21
	bl	_free
	mov	w20, #1
	b	LBB0_14
LBB0_26:
	mov	w20, #0
	b	LBB0_23
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_F_RCV_ON,4,2                   ; @F_RCV_ON
	.comm	_F_MODIFIED,4,2                 ; @F_MODIFIED
	.comm	_R_RECNOSYNC,4,2                ; @R_RECNOSYNC
	.comm	_F_RCV_NORM,4,2                 ; @F_RCV_NORM
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"060|File backup failed: %s"

	.comm	_RCV_PRESERVE,4,2               ; @RCV_PRESERVE
	.comm	_RCV_EMAIL,4,2                  ; @RCV_EMAIL
	.comm	_RCV_SNAPSHOT,4,2               ; @RCV_SNAPSHOT
	.comm	_O_RECDIR,4,2                   ; @O_RECDIR
l_.str.1:                               ; @.str.1
	.asciz	"vi.XXXXXX"

l_.str.2:                               ; @.str.2
	.asciz	"061|Copying file for recovery..."

	.comm	_BUSY_ON,4,2                    ; @BUSY_ON
	.comm	_BUSY_OFF,4,2                   ; @BUSY_OFF
	.comm	_RCV_ENDSESSION,4,2             ; @RCV_ENDSESSION
.subsections_via_symbols
