	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	_archModeWrite@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	%rsp, %r12
	movq	32(%rbx), %r13
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_setFilePath
	movq	%rbx, %rdi
	callq	_ParallelBackupStart
	movl	%eax, 4(%r13)
	movq	_PG_BINARY_W@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_cfopen_write
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_fatal
LBB0_3:
	movq	%r15, 8(%r13)
	movq	_archTar@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_WriteHead
	movq	_archDirectory@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_WriteToc
	movq	%r15, %rdi
	callq	_cfclose
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_5:
	movl	4(%r13), %esi
	movq	%rbx, %rdi
	callq	_WriteDataChunks
	movl	4(%r13), %esi
	movq	%rbx, %rdi
	callq	_ParallelBackupEnd
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.6:
	movl	(%r13), %edi
	callq	_fsync_dir_recurse
LBB0_7:
	movq	%r12, %rsp
LBB0_8:
	movq	$0, 8(%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_archModeWrite,8,3              ## @archModeWrite
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"toc.dat"

	.comm	_PG_BINARY_W,4,2                ## @PG_BINARY_W
L_.str.1:                               ## @.str.1
	.asciz	"could not open output file \"%s\": %m"

	.comm	_archTar,4,2                    ## @archTar
	.comm	_archDirectory,4,2              ## @archDirectory
L_.str.2:                               ## @.str.2
	.asciz	"could not close TOC file: %m"

	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _archModeWrite@GOTPAGE
Lloh4:
	ldr	x9, [x9, _archModeWrite@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	mov	x22, sp
	ldr	x23, [x19, #32]
Lloh6:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_setFilePath
	mov	x0, x19
	bl	_ParallelBackupStart
	str	w0, [x23, #4]
Lloh13:
	adrp	x8, _PG_BINARY_W@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PG_BINARY_W@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_cfopen_write
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.2:
	str	x20, [sp, #-16]!
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
	add	sp, sp, #16
LBB0_3:
	str	x21, [x23, #8]
Lloh18:
	adrp	x8, _archTar@GOTPAGE
Lloh19:
	ldr	x8, [x8, _archTar@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_WriteHead
Lloh21:
	adrp	x8, _archDirectory@GOTPAGE
Lloh22:
	ldr	x8, [x8, _archDirectory@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_WriteToc
	mov	x0, x21
	bl	_cfclose
	cbz	x0, LBB0_5
; %bb.4:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal
LBB0_5:
	ldr	w1, [x23, #4]
	mov	x0, x19
	bl	_WriteDataChunks
	ldr	w1, [x23, #4]
	mov	x0, x19
	bl	_ParallelBackupEnd
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x23]
	bl	_fsync_dir_recurse
LBB0_7:
	mov	sp, x22
LBB0_8:
	str	xzr, [x19, #8]
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #48
	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
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_archModeWrite,8,3              ; @archModeWrite
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"toc.dat"

	.comm	_PG_BINARY_W,4,2                ; @PG_BINARY_W
l_.str.1:                               ; @.str.1
	.asciz	"could not open output file \"%s\": %m"

	.comm	_archTar,4,2                    ; @archTar
	.comm	_archDirectory,4,2              ; @archDirectory
l_.str.2:                               ; @.str.2
	.asciz	"could not close TOC file: %m"

	.no_dead_strip	__CloseArchive
.subsections_via_symbols
