	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tar_finish
_tar_finish:                            ## @tar_finish
	.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	%rbx
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_tar_clear_error
	movq	_tar_data@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	48(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_CLOSE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tar_close
	testq	%rax, %rax
	jne	LBB0_15
LBB0_2:
	leaq	-1056(%rbp), %rdi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_MemSet
	movq	(%r14), %rax
	cmpl	$0, 40(%rax)
	je	LBB0_3
## %bb.5:
	cmpq	$0, 24(%rax)
	je	LBB0_8
LBB0_6:
	movl	(%rax), %edi
	callq	_fsync
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.7:
	movq	(%r14), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	movl	(%rax), %edi
	leaq	-1056(%rbp), %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_write
	cmpq	$1024, %rax                     ## imm = 0x400
	jne	LBB0_13
## %bb.4:
	movq	(%r14), %rax
	cmpq	$0, 24(%rax)
	jne	LBB0_6
LBB0_8:
	movl	(%rax), %edi
	callq	_close
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.9:
	movq	(%r14), %rax
	movl	$-1, (%rax)
	cmpq	$0, 24(%rax)
	je	LBB0_12
## %bb.10:
	movl	16(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_fsync_fname
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:
	movq	(%r14), %rax
	movl	16(%rax), %edi
	callq	_fsync_parent_path
	testq	%rax, %rax
	jne	LBB0_15
LBB0_12:
	movl	$1, %ebx
	jmp	LBB0_15
LBB0_13:
	xorl	%ebx, %ebx
	cmpq	$0, (%r15)
	jne	LBB0_15
## %bb.14:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_tar_data,8,3                   ## @tar_data
	.comm	_CLOSE_NORMAL,4,2               ## @CLOSE_NORMAL
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOSPC,8,3                     ## @ENOSPC
	.comm	_ZLIB_OUT_SIZE,8,3              ## @ZLIB_OUT_SIZE
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_OK,8,3                       ## @Z_OK
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.comm	_Z_STREAM_ERROR,4,2             ## @Z_STREAM_ERROR
	.no_dead_strip	_tar_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tar_finish
_tar_finish:                            ; @tar_finish
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_tar_clear_error
Lloh3:
	adrp	x19, _tar_data@GOTPAGE
Lloh4:
	ldr	x19, [x19, _tar_data@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x0, [x8, #48]
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _CLOSE_NORMAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CLOSE_NORMAL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_tar_close
	cbnz	x0, LBB0_14
LBB0_2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #1024
	bl	_MemSet
	ldr	x8, [x19]
	ldr	w9, [x8, #40]
	cbz	w9, LBB0_6
; %bb.3:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_8
LBB0_4:
	ldr	w0, [x8]
	bl	_fsync
	cbnz	x0, LBB0_14
; %bb.5:
	ldr	x8, [x19]
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x20, _errno@GOTPAGE
Lloh9:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	str	xzr, [x20]
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #1024
	bl	_write
	cmp	x0, #1024
	b.ne	LBB0_13
; %bb.7:
	ldr	x8, [x19]
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_4
LBB0_8:
	ldr	w0, [x8]
	bl	_close
	cbnz	x0, LBB0_14
; %bb.9:
	ldr	x8, [x19]
	mov	w9, #-1
	str	w9, [x8]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_12
; %bb.10:
	ldr	w0, [x8, #16]
	mov	w1, #0
	bl	_fsync_fname
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_15
; %bb.11:
	ldr	x8, [x19]
	ldr	w0, [x8, #16]
	bl	_fsync_parent_path
	cbnz	x0, LBB0_14
LBB0_12:
	mov	w0, #1
	b	LBB0_15
LBB0_13:
	ldr	x8, [x20]
	cbz	x8, LBB0_17
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldur	x8, [x29, #-40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w0, #0
Lloh13:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_15
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_tar_data,8,3                   ; @tar_data
	.comm	_CLOSE_NORMAL,4,2               ; @CLOSE_NORMAL
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOSPC,8,3                     ; @ENOSPC
	.comm	_ZLIB_OUT_SIZE,8,3              ; @ZLIB_OUT_SIZE
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_OK,8,3                       ; @Z_OK
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.comm	_Z_STREAM_ERROR,4,2             ; @Z_STREAM_ERROR
	.no_dead_strip	_tar_finish
.subsections_via_symbols
