	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _CloseArchive
__CloseArchive:                         ## @_CloseArchive
	.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	%rdi, %r13
	movq	(%rdi), %rax
	movq	_archModeWrite@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	64(%r13), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$119, %edx
	callq	_tarOpen
	movq	%rax, %r14
	movq	%rax, 16(%r12)
	movq	%r13, %rdi
	callq	_WriteHead
	movq	%r13, %rdi
	callq	_WriteToc
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_tarClose
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_WriteDataChunks
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	$119, %edx
	callq	_tarOpen
	movq	%rax, %r14
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_tarPrintf
	movq	__scriptOut@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	movl	$1, (%r12)
	movq	%r14, 8(%r12)
	xorl	%eax, %eax
	callq	_NewRestoreOptions
	movq	%rax, %r15
	movq	40(%r13), %rsi
	movq	%rax, %rdi
	movl	$32, %edx
	callq	_memcpy
	movq	$0, 24(%r15)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	movq	40(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	48(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_SetArchiveOptions
	movl	32(%r13), %ebx
	movl	$0, 32(%r13)
	movq	%r13, %rdi
	callq	_RestoreArchive
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_SetArchiveOptions
	movl	%ebx, 32(%r13)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_tarClose
	movl	$0, (%r12)
	movl	$1024, %ebx                     ## imm = 0x400
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %esi
	xorl	%edi, %edi
	callq	_fputc
	decl	%ebx
	jne	LBB0_2
## %bb.3:
	cmpq	$0, 24(%r13)
	je	LBB0_6
## %bb.4:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	callq	_fsync_fname
LBB0_6:
	movq	$0, 8(%r13)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_archModeWrite,8,3              ## @archModeWrite
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"toc.dat"

L_.str.1:                               ## @.str.1
	.asciz	"restore.sql"

L_.str.2:                               ## @.str.2
	.asciz	"--\n-- NOTE:\n--\n-- File paths need to be edited. Search for $$PATH$$ and\n-- replace it with the path to the directory containing\n-- the extracted data files.\n--\n"

	.comm	__scriptOut,4,2                 ## @_scriptOut
	.comm	_EOF,8,3                        ## @EOF
	.comm	_WRITE_ERROR_EXIT,4,2           ## @WRITE_ERROR_EXIT
	.no_dead_strip	__CloseArchive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _CloseArchive
__CloseArchive:                         ; @_CloseArchive
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _archModeWrite@GOTPAGE
Lloh1:
	ldr	x9, [x9, _archModeWrite@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	x24, [x19, #64]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #119
	bl	_tarOpen
	mov	x20, x0
	str	x0, [x24, #16]
	mov	x0, x19
	bl	_WriteHead
	mov	x0, x19
	bl	_WriteToc
	mov	x0, x19
	mov	x1, x20
	bl	_tarClose
	mov	x0, x19
	mov	x1, #0
	bl	_WriteDataChunks
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #119
	bl	_tarOpen
	mov	x20, x0
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_tarPrintf
Lloh9:
	adrp	x8, __scriptOut@GOTPAGE
Lloh10:
	ldr	x8, [x8, __scriptOut@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	mov	w8, #1
	str	w8, [x24]
	str	x20, [x24, #8]
	bl	_NewRestoreOptions
	mov	x21, x0
	ldr	x1, [x19, #40]
	mov	w2, #32
	bl	_memcpy
	stp	xzr, xzr, [x21, #16]
	str	xzr, [x21, #8]
	movi.2s	v0, #1
	str	d0, [x21]
	ldp	x23, x22, [x19, #40]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x21
	bl	_SetArchiveOptions
	ldr	w21, [x19, #32]
	str	wzr, [x19, #32]
	mov	x0, x19
	bl	_RestoreArchive
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_SetArchiveOptions
	str	w21, [x19, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_tarClose
	str	wzr, [x24]
	mov	w20, #1024
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24, #4]
	mov	w0, #0
	bl	_fputc
	subs	w20, w20, #1
	b.ne	LBB0_2
; %bb.3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.5:
	mov	w1, #0
	bl	_fsync_fname
LBB0_6:
	str	xzr, [x19, #8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_archModeWrite,8,3              ; @archModeWrite
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"toc.dat"

l_.str.1:                               ; @.str.1
	.asciz	"restore.sql"

l_.str.2:                               ; @.str.2
	.asciz	"--\n-- NOTE:\n--\n-- File paths need to be edited. Search for $$PATH$$ and\n-- replace it with the path to the directory containing\n-- the extracted data files.\n--\n"

	.comm	__scriptOut,4,2                 ; @_scriptOut
	.comm	_EOF,8,3                        ; @EOF
	.comm	_WRITE_ERROR_EXIT,4,2           ; @WRITE_ERROR_EXIT
	.no_dead_strip	__CloseArchive
.subsections_via_symbols
