	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tar_mode_r                     ## -- Begin function tar_mode_r
	.p2align	4, 0x90
_tar_mode_r:                            ## @tar_mode_r
	.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, %r14
	callq	_test_for_append
	movq	_ARCHIVE_FORMAT_TAR_PAX_RESTRICTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	4(%r14), %edi
	movq	_O_BINARY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$438, %edx                      ## imm = 0x1B6
	xorl	%eax, %eax
	callq	_open
	movl	%eax, (%r14)
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_lafe_errc
LBB0_2:
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_archive_read_support_filter_all
	movq	%rbx, %rdi
	callq	_archive_read_support_format_empty
	movq	%rbx, %rdi
	callq	_archive_read_support_format_tar
	movq	%rbx, %rdi
	callq	_archive_read_support_format_gnutar
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_set_reader_options
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$10240, %edx                    ## imm = 0x2800
	callq	_archive_read_open_fd
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_archive_errno
	movl	%eax, %r15d
	movl	4(%r14), %r13d
	movq	%rbx, %rdi
	callq	_archive_error_string
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	movl	%r15d, %esi
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_lafe_errc
LBB0_4:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_archive_read_next_header
	testq	%rax, %rax
	je	LBB0_5
LBB0_9:
	movq	%rbx, %rdi
	callq	_archive_read_header_position
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_archive_read_free
	xorl	%eax, %eax
	callq	_archive_write_new
	movq	%rax, %r15
	movl	8(%r14), %edi
	callq	_cset_get_format
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movl	8(%r14), %edi
	callq	_cset_get_format
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_archive_write_set_format_by_name
	movq	_ARCHIVE_FORMAT_BASE_MASK@GOTPCREL(%rip), %rbx
	andl	(%rbx), %r12d
	movq	%r15, %rdi
	callq	_archive_format
	andl	(%rbx), %eax
	cmpl	%eax, %r12d
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rbx
	je	LBB0_16
## %bb.11:
	movq	_ARCHIVE_FORMAT_EMPTY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_16
## %bb.12:
	movl	8(%r14), %edi
	callq	_cset_get_format
	movl	4(%r14), %r8d
	leaq	L_.str.3(%rip), %rdx
	movl	$1, %edi
	xorl	%esi, %esi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_lafe_errc
	jmp	LBB0_16
LBB0_5:
	movq	_ARCHIVE_FILTER_NONE@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_archive_format
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_archive_read_next_header
	testq	%rax, %rax
	jne	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_archive_filter_code
	cmpq	(%r13), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_archive_read_free
	movl	(%r14), %edi
	callq	_close
	movl	$1, %edi
	xorl	%esi, %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_lafe_errc
	jmp	LBB0_8
LBB0_13:
	movq	_ARCHIVE_FORMAT_EMPTY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_15
## %bb.14:
	movq	_ARCHIVE_FORMAT_TAR_PAX_RESTRICTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_15:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_archive_write_set_format
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rbx
LBB0_16:
	movl	(%r14), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %esi
	callq	_lseek
	testq	%rax, %rax
	jns	LBB0_18
## %bb.17:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_lafe_errc
LBB0_18:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_set_writer_options
	movl	(%rbx), %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_archive_write_open_fd
	cmpl	%eax, %ebx
	je	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	callq	_archive_error_string
	leaq	L_.str.5(%rip), %rdx
	movl	$1, %edi
	xorl	%esi, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_lafe_errc
LBB0_20:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_write_archive
	movl	(%r14), %edi
	callq	_close
	movl	$-1, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_FORMAT_TAR_PAX_RESTRICTED,4,2 ## @ARCHIVE_FORMAT_TAR_PAX_RESTRICTED
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot open %s"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
L_.str.1:                               ## @.str.1
	.asciz	"Can't read archive %s: %s"

	.comm	_ARCHIVE_FILTER_NONE,8,3        ## @ARCHIVE_FILTER_NONE
L_.str.2:                               ## @.str.2
	.asciz	"Cannot append to compressed archive."

	.comm	_ARCHIVE_FORMAT_BASE_MASK,4,2   ## @ARCHIVE_FORMAT_BASE_MASK
	.comm	_ARCHIVE_FORMAT_EMPTY,4,2       ## @ARCHIVE_FORMAT_EMPTY
L_.str.3:                               ## @.str.3
	.asciz	"Format %s is incompatible with the archive %s."

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.4:                               ## @.str.4
	.asciz	"Could not seek to archive end"

L_.str.5:                               ## @.str.5
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tar_mode_r                     ; -- Begin function tar_mode_r
	.p2align	2
_tar_mode_r:                            ; @tar_mode_r
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	bl	_test_for_append
Lloh0:
	adrp	x24, _ARCHIVE_FORMAT_TAR_PAX_RESTRICTED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ARCHIVE_FORMAT_TAR_PAX_RESTRICTED@GOTPAGEOFF]
	ldr	w20, [x24]
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _O_BINARY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _O_BINARY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w8, #438
	str	x8, [sp]
	bl	_open
	str	w0, [x19]
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_lafe_errc
LBB0_2:
	bl	_archive_read_new
	mov	x21, x0
	bl	_archive_read_support_filter_all
	mov	x0, x21
	bl	_archive_read_support_format_empty
	mov	x0, x21
	bl	_archive_read_support_format_tar
	mov	x0, x21
	bl	_archive_read_support_format_gnutar
	mov	x0, x19
	mov	x1, x21
	bl	_set_reader_options
	ldr	w1, [x19]
	mov	x0, x21
	mov	w2, #10240
	bl	_archive_read_open_fd
Lloh16:
	adrp	x23, _ARCHIVE_OK@GOTPAGE
Lloh17:
	ldr	x23, [x23, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_archive_errno
	mov	x22, x0
	ldr	w25, [x19, #4]
	mov	x0, x21
	bl	_archive_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x0, [sp]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x1, x22
	bl	_lafe_errc
LBB0_4:
	add	x1, sp, #24
	mov	x0, x21
	bl	_archive_read_next_header
	cbz	x0, LBB0_8
LBB0_5:
	mov	x0, x21
	bl	_archive_read_header_position
	mov	x22, x0
	mov	x0, x21
	bl	_archive_read_free
	bl	_archive_write_new
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_cset_get_format
	cbz	x0, LBB0_12
; %bb.6:
	ldr	w0, [x19, #8]
	bl	_cset_get_format
	mov	x1, x0
	mov	x0, x21
	bl	_archive_write_set_format_by_name
Lloh20:
	adrp	x24, _ARCHIVE_FORMAT_BASE_MASK@GOTPAGE
Lloh21:
	ldr	x24, [x24, _ARCHIVE_FORMAT_BASE_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w20, w8, w20
	mov	x0, x21
	bl	_archive_format
	ldr	w8, [x24]
	and	w8, w8, w0
Lloh22:
	adrp	x9, _ARCHIVE_FORMAT_EMPTY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ARCHIVE_FORMAT_EMPTY@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w20, w8
	ccmp	w20, w9, #4, ne
	b.eq	LBB0_13
; %bb.7:
	ldr	w0, [x19, #8]
	bl	_cset_get_format
	ldr	w8, [x19, #4]
	stp	x0, x8, [sp]
Lloh25:
	adrp	x2, l_.str.3@PAGE
Lloh26:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	w1, #0
	bl	_lafe_errc
	b	LBB0_13
LBB0_8:
Lloh27:
	adrp	x25, _ARCHIVE_FILTER_NONE@GOTPAGE
Lloh28:
	ldr	x25, [x25, _ARCHIVE_FILTER_NONE@GOTPAGEOFF]
Lloh29:
	adrp	x22, l_.str.2@PAGE
Lloh30:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	bl	_archive_format
	mov	x20, x0
	add	x1, sp, #24
	mov	x0, x21
	bl	_archive_read_next_header
	cbnz	x0, LBB0_5
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #0
	bl	_archive_filter_code
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	bl	_archive_read_free
	ldr	w0, [x19]
	bl	_close
	mov	w0, #1
	mov	w1, #0
	mov	x2, x22
	bl	_lafe_errc
	b	LBB0_9
LBB0_12:
Lloh31:
	adrp	x8, _ARCHIVE_FORMAT_EMPTY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ARCHIVE_FORMAT_EMPTY@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x24]
	cmp	w20, w8
	csel	w1, w9, w20, eq
	mov	x0, x21
	bl	_archive_write_set_format
LBB0_13:
	ldr	w0, [x19]
Lloh34:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_lseek
	tbz	x0, #63, LBB0_15
; %bb.14:
Lloh37:
	adrp	x8, _errno@GOTPAGE
Lloh38:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x2, l_.str.4@PAGE
Lloh41:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_lafe_errc
LBB0_15:
	mov	x0, x19
	mov	x1, x21
	bl	_set_writer_options
	ldr	w20, [x23]
	ldr	w1, [x19]
	mov	x0, x21
	bl	_archive_write_open_fd
	cmp	w20, w0
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_archive_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh42:
	adrp	x2, l_.str.5@PAGE
Lloh43:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w0, #1
	mov	w1, #0
	bl	_lafe_errc
LBB0_17:
	mov	x0, x21
	mov	x1, x19
	bl	_write_archive
	ldr	w0, [x19]
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_FORMAT_TAR_PAX_RESTRICTED,4,2 ; @ARCHIVE_FORMAT_TAR_PAX_RESTRICTED
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot open %s"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
l_.str.1:                               ; @.str.1
	.asciz	"Can't read archive %s: %s"

	.comm	_ARCHIVE_FILTER_NONE,8,3        ; @ARCHIVE_FILTER_NONE
l_.str.2:                               ; @.str.2
	.asciz	"Cannot append to compressed archive."

	.comm	_ARCHIVE_FORMAT_BASE_MASK,4,2   ; @ARCHIVE_FORMAT_BASE_MASK
	.comm	_ARCHIVE_FORMAT_EMPTY,4,2       ; @ARCHIVE_FORMAT_EMPTY
l_.str.3:                               ; @.str.3
	.asciz	"Format %s is incompatible with the archive %s."

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.4:                               ; @.str.4
	.asciz	"Could not seek to archive end"

l_.str.5:                               ; @.str.5
	.asciz	"%s"

.subsections_via_symbols
