	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _tarAddFile
__tarAddFile:                           ## @_tarAddFile
	.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
	movl	$32840, %eax                    ## imm = 0x8048
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	movq	16(%rsi), %r15
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseeko
	movq	%r15, %rdi
	callq	_ftello
	movq	%rax, (%r14)
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_2:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseeko
	movq	%r14, %rdi
	callq	__tarWriteHeader
	leaq	-32816(%rbp), %rdi
	movl	$1, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	movq	%r15, %rcx
	callq	_fread
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-32816(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %ecx
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_fwrite
	addq	%rax, %rbx
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	movq	%r15, %rcx
	callq	_fread
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_READ_ERROR_EXIT
LBB0_7:
	movq	%r15, %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_9:
	cmpq	(%r14), %rbx
	je	LBB0_11
## %bb.10:
	movq	_INT64_FORMAT@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	leaq	-32848(%rbp), %r15
	movq	%r15, %rdi
	movl	$32, %esi
	movl	%ebx, %ecx
	callq	_snprintf
	movq	(%r12), %rdx
	movl	(%r14), %ecx
	leaq	-32880(%rbp), %r12
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_snprintf
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_fatal
LBB0_11:
	leaq	511(%rbx), %r15
	andq	$-512, %r15                     ## imm = 0xFE00
	movq	%r15, %rax
	subq	%rbx, %rax
	je	LBB0_14
## %bb.12:
	cmpq	$2, %rax
	movl	$1, %ebx
	cmovaeq	%rax, %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %esi
	xorl	%edi, %edi
	callq	_fputc
	decq	%rbx
	jne	LBB0_13
LBB0_14:
	addq	%r15, (%r13)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$32840, %rsp                    ## imm = 0x8048
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not determine seek position in archive file: %m"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_WRITE_ERROR_EXIT,4,2           ## @WRITE_ERROR_EXIT
L_.str.1:                               ## @.str.1
	.asciz	"could not close temporary file: %m"

	.comm	_INT64_FORMAT,8,3               ## @INT64_FORMAT
L_.str.2:                               ## @.str.2
	.asciz	"actual file length (%s) does not match expected (%s)"

	.comm	_EOF,8,3                        ## @EOF
	.no_dead_strip	__tarAddFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _tarAddFile
__tarAddFile:                           ; @_tarAddFile
	.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	w9, #32864
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #8, lsl #12             ; =32768
	sub	sp, sp, #96
	mov	x19, x1
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x22, [x0]
	ldr	x20, [x1, #16]
Lloh5:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_fseeko
	mov	x0, x20
	bl	_ftello
	str	x0, [x19]
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
LBB0_2:
Lloh10:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_fseeko
	mov	x0, x19
	bl	__tarWriteHeader
	add	x0, sp, #88
	mov	w1, #1
	mov	w2, #32768
	mov	x3, x20
	bl	_fread
	cbz	x0, LBB0_5
; %bb.3:
	mov	x2, x0
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x19, #8]
	add	x0, sp, #88
	mov	w1, #1
	bl	_fwrite
	add	x21, x0, x21
	add	x0, sp, #88
	mov	w1, #1
	mov	w2, #32768
	mov	x3, x20
	bl	_fread
	mov	x2, x0
	cbnz	x0, LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x21, #0
LBB0_6:
	mov	x0, x20
	bl	_feof
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_READ_ERROR_EXIT
LBB0_8:
	mov	x0, x20
	bl	_fclose
	cbz	x0, LBB0_10
; %bb.9:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_10:
	ldr	x8, [x19]
	cmp	x21, x8
	b.eq	LBB0_12
; %bb.11:
Lloh15:
	adrp	x20, _INT64_FORMAT@GOTPAGE
Lloh16:
	ldr	x20, [x20, _INT64_FORMAT@GOTPAGEOFF]
	ldr	x2, [x20]
	add	x23, sp, #56
	add	x0, sp, #56
	mov	w1, #32
	mov	x3, x21
	bl	_snprintf
	ldr	x2, [x20]
	ldr	w3, [x19]
	add	x20, sp, #24
	add	x0, sp, #24
	mov	w1, #32
	bl	_snprintf
	stp	x23, x20, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal
LBB0_12:
	add	x8, x21, #511
	and	x20, x8, #0xfffffffffffffe00
	subs	x8, x20, x21
	b.eq	LBB0_15
; %bb.13:
	cmp	x8, #1
	csinc	x21, x8, xzr, hi
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #8]
	mov	w0, #0
	bl	_fputc
	subs	x21, x21, #1
	b.ne	LBB0_14
LBB0_15:
	ldr	x8, [x22]
	add	x8, x8, x20
	str	x8, [x22]
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	add	sp, sp, #8, lsl #12             ; =32768
	add	sp, sp, #96
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not determine seek position in archive file: %m"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_WRITE_ERROR_EXIT,4,2           ; @WRITE_ERROR_EXIT
l_.str.1:                               ; @.str.1
	.asciz	"could not close temporary file: %m"

	.comm	_INT64_FORMAT,8,3               ; @INT64_FORMAT
l_.str.2:                               ; @.str.2
	.asciz	"actual file length (%s) does not match expected (%s)"

	.comm	_EOF,8,3                        ; @EOF
	.no_dead_strip	__tarAddFile
.subsections_via_symbols
