	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_restore
_read_restore:                          ## @read_restore
	.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	8(%rdi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_26
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movq	8(%rbx), %r15
	leaq	L_.str(%rip), %rdx
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	callq	_hc_fopen
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	16(%rbx), %r12
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movl	$24, %esi
	movl	$1, %edx
	callq	_hc_fread
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.7:
	movl	(%r12), %edi
	testl	%edi, %edi
	jle	LBB0_8
## %bb.9:
	cmpl	$251, %edi
	jb	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_6
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
LBB0_3:
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_event_log_error
	movl	$-1, %ebx
	jmp	LBB0_27
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_event_log_error
	leaq	-44(%rbp), %rdi
	callq	_hc_fclose
	movl	$-1, %ebx
	jmp	LBB0_27
LBB0_11:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	$8, %esi
	callq	_hccalloc
	movq	%rax, 8(%r12)
	movq	_HCBUFSIZ_LARGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_hcmalloc
	movq	%rax, %rbx
	cmpl	$0, (%r12)
	je	LBB0_18
## %bb.12:
	xorl	%r13d, %r13d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_hcstrdup
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%r13,8)
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jae	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_HCBUFSIZ_LARGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rdx
	callq	_hc_fgets
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movb	$0, -1(%rax,%rbx)
	jmp	LBB0_17
LBB0_18:
	movq	%rbx, %rdi
	callq	_hcfree
	leaq	-44(%rbp), %rdi
	callq	_hc_fclose
	movq	16(%r12), %rdi
	callq	_hc_path_exist
	movq	16(%r12), %rbx
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movq	%rbx, %rdi
	callq	_hc_path_is_directory
	movq	16(%r12), %rbx
	testl	%eax, %eax
	je	LBB0_19
## %bb.21:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	16(%r13), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_26
## %bb.22:
	movq	16(%r12), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_event_log_warning
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_event_log_warning
	movq	16(%r12), %rdi
	callq	_chdir
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	16(%r12), %rdx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_event_log_error
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_event_log_warning
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_event_log_warning
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_event_log_warning
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_event_log_warning
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_event_log_warning
	movl	$-1, %ebx
	jmp	LBB0_27
LBB0_19:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	jmp	LBB0_3
LBB0_14:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_event_log_error
	leaq	-44(%rbp), %rdi
	callq	_hc_fclose
	movq	%rbx, %rdi
	callq	_hcfree
	movl	$-1, %ebx
	jmp	LBB0_27
LBB0_24:
	movq	(%r13), %rdi
	callq	_hcstrdup
	movq	%rax, %r15
	movq	8(%r13), %rdi
	callq	_hcstrdup
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_folder_config_destroy
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_folder_config_init
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_hcfree
	movq	%rbx, %rdi
	callq	_hcfree
	movl	$-1, %ebx
	cmpl	$-1, %r12d
	je	LBB0_27
## %bb.25:
	movq	%r14, %rdi
	callq	_pidfile_ctx_destroy
	movq	%r14, %rdi
	callq	_pidfile_ctx_init
	cmpl	$-1, %eax
	je	LBB0_27
LBB0_26:
	xorl	%ebx, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

L_.str.1:                               ## @.str.1
	.asciz	"Restore file '%s': %s"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"Cannot read %s"

L_.str.3:                               ## @.str.3
	.asciz	"Unusually low number of arguments (argc) within restore file %s"

L_.str.4:                               ## @.str.4
	.asciz	"Unusually high number of arguments (argc) within restore file %s"

	.comm	_HCBUFSIZ_LARGE,8,3             ## @HCBUFSIZ_LARGE
L_.str.5:                               ## @.str.5
	.asciz	"%s: %s"

L_.str.6:                               ## @.str.6
	.asciz	"Changing current working directory to '%s'"

L_.str.7:                               ## @.str.7
	.asciz	"Directory '%s' needed to restore the session was not found."

L_.str.8:                               ## @.str.8
	.asciz	"Either create the directory, or update the directory within the .restore file."

L_.str.9:                               ## @.str.9
	.asciz	"Restore files can be analyzed and modified with analyze_hc_restore.pl:"

L_.str.10:                              ## @.str.10
	.asciz	"    https://github.com/philsmd/analyze_hc_restore"

L_.str.11:                              ## @.str.11
	.asciz	"Directory must contain all files and folders from the original command line."

	.no_dead_strip	_read_restore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_restore
_read_restore:                          ; @read_restore
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	ldr	x20, [x0, #8]
	ldr	w8, [x20]
	cbz	w8, LBB0_26
; %bb.1:
	mov	x19, x0
	ldr	x23, [x0]
	ldr	x21, [x20, #8]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #12
	mov	x1, x21
	bl	_hc_fopen
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x20, [x20, #16]
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #24
	mov	w2, #1
	bl	_hc_fread
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.3:
	ldr	w0, [x20]
	cmp	w0, #0
	b.le	LBB0_9
; %bb.4:
	cmp	w0, #251
	b.lo	LBB0_11
; %bb.5:
Lloh2:
	adrp	x1, l_.str.4@PAGE
Lloh3:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_6:
Lloh4:
	adrp	x8, _errno@GOTPAGE
Lloh5:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	mov	x2, x21
	bl	_event_log_error
	mov	w0, #-1
	b	LBB0_27
LBB0_8:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x19
	mov	x2, x21
	bl	_event_log_error
	add	x0, sp, #12
	bl	_hc_fclose
	mov	w0, #-1
	b	LBB0_27
LBB0_11:
	mov	w1, #8
	bl	_hccalloc
	str	x0, [x20, #8]
Lloh13:
	adrp	x24, _HCBUFSIZ_LARGE@GOTPAGE
Lloh14:
	ldr	x24, [x24, _HCBUFSIZ_LARGE@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_hcmalloc
	mov	x22, x0
	ldr	w8, [x20]
	cbz	w8, LBB0_17
; %bb.12:
	mov	x25, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x22
	bl	_hcstrdup
	ldr	x8, [x20, #8]
	str	x0, [x8, x25, lsl #3]
	add	x25, x25, #1
	ldrsw	x8, [x20]
	cmp	x25, x8
	b.hs	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	sub	x1, x8, #1
	add	x2, sp, #12
	mov	x0, x22
	bl	_hc_fgets
	cbz	x0, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x22
	bl	_strlen
	cbz	x0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x0, x22
	sturb	wzr, [x8, #-1]
	b	LBB0_13
LBB0_17:
	mov	x0, x22
	bl	_hcfree
	add	x0, sp, #12
	bl	_hc_fclose
	ldr	x0, [x20, #16]
	bl	_hc_path_exist
	ldr	x21, [x20, #16]
	cbz	w0, LBB0_22
; %bb.18:
	mov	x0, x21
	bl	_hc_path_is_directory
	ldr	x21, [x20, #16]
	cbz	w0, LBB0_22
; %bb.19:
	ldr	w1, [x23, #16]
	mov	x0, x21
	mov	w2, #8
	bl	_strncmp
	cbz	x0, LBB0_26
; %bb.20:
	ldr	x8, [x20, #16]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_event_log_warning
	mov	x0, x19
	mov	x1, #0
	bl	_event_log_warning
	ldr	x0, [x20, #16]
	bl	_chdir
	cbz	x0, LBB0_24
; %bb.21:
	ldr	x2, [x20, #16]
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_event_log_error
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_event_log_warning
Lloh21:
	adrp	x1, l_.str.9@PAGE
Lloh22:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_event_log_warning
Lloh23:
	adrp	x1, l_.str.10@PAGE
Lloh24:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_event_log_warning
Lloh25:
	adrp	x1, l_.str.11@PAGE
Lloh26:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_event_log_warning
	mov	x0, x19
	mov	x1, #0
	bl	_event_log_warning
	mov	w0, #-1
	b	LBB0_27
LBB0_22:
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_7
LBB0_23:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_event_log_error
	add	x0, sp, #12
	bl	_hc_fclose
	mov	x0, x22
	bl	_hcfree
	mov	w0, #-1
	b	LBB0_27
LBB0_24:
	ldr	x0, [x23]
	bl	_hcstrdup
	mov	x20, x0
	ldr	x0, [x23, #8]
	bl	_hcstrdup
	mov	x21, x0
	mov	x0, x19
	bl	_folder_config_destroy
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_folder_config_init
	mov	x22, x0
	mov	x0, x20
	bl	_hcfree
	mov	x0, x21
	bl	_hcfree
	cmn	w22, #1
	b.eq	LBB0_28
; %bb.25:
	mov	x0, x19
	bl	_pidfile_ctx_destroy
	mov	x0, x19
	bl	_pidfile_ctx_init
	cmn	w0, #1
	b.eq	LBB0_27
LBB0_26:
	mov	w0, #0
LBB0_27:
	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
	add	sp, sp, #96
	ret
LBB0_28:
	mov	w0, #-1
	b	LBB0_27
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

l_.str.1:                               ; @.str.1
	.asciz	"Restore file '%s': %s"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"Cannot read %s"

l_.str.3:                               ; @.str.3
	.asciz	"Unusually low number of arguments (argc) within restore file %s"

l_.str.4:                               ; @.str.4
	.asciz	"Unusually high number of arguments (argc) within restore file %s"

	.comm	_HCBUFSIZ_LARGE,8,3             ; @HCBUFSIZ_LARGE
l_.str.5:                               ; @.str.5
	.asciz	"%s: %s"

l_.str.6:                               ; @.str.6
	.asciz	"Changing current working directory to '%s'"

l_.str.7:                               ; @.str.7
	.asciz	"Directory '%s' needed to restore the session was not found."

l_.str.8:                               ; @.str.8
	.asciz	"Either create the directory, or update the directory within the .restore file."

l_.str.9:                               ; @.str.9
	.asciz	"Restore files can be analyzed and modified with analyze_hc_restore.pl:"

l_.str.10:                              ; @.str.10
	.asciz	"    https://github.com/philsmd/analyze_hc_restore"

l_.str.11:                              ; @.str.11
	.asciz	"Directory must contain all files and folders from the original command line."

	.no_dead_strip	_read_restore
.subsections_via_symbols
