	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tar_mode_u                     ## -- Begin function tar_mode_u
	.p2align	4, 0x90
_tar_mode_u:                            ## @tar_mode_u
	.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, %r14
	leaq	-64(%rbp), %rdi
	movq	%rdi, 8(%r14)
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_ARCHIVE_FORMAT_TAR_PAX_RESTRICTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_test_for_append
	movl	32(%r14), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_open
	movl	%eax, (%r14)
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%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_tar
	movq	%rbx, %rdi
	callq	_archive_read_support_format_gnutar
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_set_reader_options
	movl	(%r14), %esi
	movl	20(%r14), %edx
	movq	%rbx, %rdi
	callq	_archive_read_open_fd
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movl	32(%r14), %r12d
	movq	%rbx, %rdi
	callq	_archive_error_string
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	xorl	%esi, %esi
	movl	%r12d, %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_11:
	movq	%rbx, %rdi
	callq	_archive_read_header_position
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_archive_read_free
	xorl	%eax, %eax
	callq	_archive_write_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_archive_write_set_format
	movl	20(%r14), %esi
	movq	%rbx, %rdi
	callq	_archive_write_set_bytes_per_block
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	callq	_archive_write_set_bytes_in_last_block
	movl	(%r14), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	callq	_lseek
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_lafe_errc
LBB0_13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_set_writer_options
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_archive_write_open_fd
	cmpq	%rax, %r15
	je	LBB0_15
## %bb.14:
	movq	%rbx, %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_15:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_write_archive
	movl	(%r14), %edi
	callq	_close
	movl	$-1, (%r14)
	movq	8(%r14), %rax
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	8(%rbx), %rbx
	callq	_free
	movq	8(%r14), %rax
	movq	8(%rax), %rdi
	callq	_free
	movq	8(%r14), %rax
	movq	%rbx, 8(%rax)
	testq	%rbx, %rbx
	jne	LBB0_16
LBB0_18:
	movq	$0, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ARCHIVE_MATCH_EQUAL@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_archive_format
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_archive_read_next_header
	testq	%rax, %rax
	jne	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_archive_filter_code
	movq	_ARCHIVE_FILTER_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %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
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_ARCHIVE_MATCH_OLDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARCHIVE_MATCH_MTIME@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	24(%r14), %rdi
	orl	(%r13), %esi
	movq	-48(%rbp), %rdx
	callq	_archive_match_exclude_entry
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r14), %rdi
	callq	_archive_error_string
	movl	$1, %edi
	xorl	%esi, %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_lafe_errc
	jmp	LBB0_10
	.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_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,8,3                 ## @ARCHIVE_OK
L_.str.1:                               ## @.str.1
	.asciz	"Can't open %s: %s"

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

	.comm	_ARCHIVE_MATCH_MTIME,4,2        ## @ARCHIVE_MATCH_MTIME
	.comm	_ARCHIVE_MATCH_OLDER,4,2        ## @ARCHIVE_MATCH_OLDER
	.comm	_ARCHIVE_MATCH_EQUAL,4,2        ## @ARCHIVE_MATCH_EQUAL
L_.str.3:                               ## @.str.3
	.asciz	"Error : %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_u                     ; -- Begin function tar_mode_u
	.p2align	2
_tar_mode_u:                            ; @tar_mode_u
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	add	x8, sp, #24
	str	x8, [x0, #8]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, _ARCHIVE_FORMAT_TAR_PAX_RESTRICTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_FORMAT_TAR_PAX_RESTRICTED@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_test_for_append
Lloh3:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
	ldr	w0, [x19, #32]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _O_BINARY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_BINARY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_open
	str	w0, [x19]
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_lafe_errc
LBB0_2:
	bl	_archive_read_new
	mov	x20, x0
	bl	_archive_read_support_filter_all
	mov	x0, x20
	bl	_archive_read_support_format_tar
	mov	x0, x20
	bl	_archive_read_support_format_gnutar
	mov	x0, x19
	mov	x1, x20
	bl	_set_reader_options
	ldr	w1, [x19]
	ldr	w2, [x19, #20]
	mov	x0, x20
	bl	_archive_read_open_fd
Lloh14:
	adrp	x24, _ARCHIVE_OK@GOTPAGE
Lloh15:
	ldr	x24, [x24, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	ldr	w22, [x19, #32]
	mov	x0, x20
	bl	_archive_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	w1, #0
	bl	_lafe_errc
LBB0_4:
	add	x1, sp, #40
	mov	x0, x20
	bl	_archive_read_next_header
	cbz	x0, LBB0_12
LBB0_5:
	mov	x0, x20
	bl	_archive_read_header_position
	mov	x22, x0
	mov	x0, x20
	bl	_archive_read_free
	bl	_archive_write_new
	mov	x20, x0
	mov	x1, x21
	bl	_archive_write_set_format
	ldr	w1, [x19, #20]
	mov	x0, x20
	bl	_archive_write_set_bytes_per_block
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_archive_write_set_bytes_in_last_block
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_lseek
	tbz	x0, #63, LBB0_7
; %bb.6:
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str.4@PAGE
Lloh25:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_lafe_errc
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_set_writer_options
	ldr	x21, [x24]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_archive_write_open_fd
	cmp	x21, x0
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_archive_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh26:
	adrp	x2, l_.str.5@PAGE
Lloh27:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w0, #1
	mov	w1, #0
	bl	_lafe_errc
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_write_archive
	ldr	w0, [x19]
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldp	x0, x20, [x9]
	bl	_free
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	bl	_free
	ldr	x8, [x19, #8]
	str	x20, [x8, #8]
	mov	x9, x20
	cbnz	x20, LBB0_10
LBB0_11:
	str	xzr, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_12:
Lloh28:
	adrp	x25, _ARCHIVE_FILTER_NONE@GOTPAGE
Lloh29:
	ldr	x25, [x25, _ARCHIVE_FILTER_NONE@GOTPAGEOFF]
Lloh30:
	adrp	x26, _ARCHIVE_MATCH_MTIME@GOTPAGE
Lloh31:
	ldr	x26, [x26, _ARCHIVE_MATCH_MTIME@GOTPAGEOFF]
Lloh32:
	adrp	x22, l_.str.3@PAGE
Lloh33:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh34:
	adrp	x27, _ARCHIVE_MATCH_OLDER@GOTPAGE
Lloh35:
	ldr	x27, [x27, _ARCHIVE_MATCH_OLDER@GOTPAGEOFF]
Lloh36:
	adrp	x28, _ARCHIVE_MATCH_EQUAL@GOTPAGE
Lloh37:
	ldr	x28, [x28, _ARCHIVE_MATCH_EQUAL@GOTPAGEOFF]
Lloh38:
	adrp	x23, l_.str.2@PAGE
Lloh39:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
	bl	_archive_format
	mov	x21, x0
	add	x1, sp, #40
	mov	x0, x20
	bl	_archive_read_next_header
	cbnz	x0, LBB0_5
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #0
	bl	_archive_filter_code
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
	bl	_archive_read_free
	ldr	w0, [x19]
	bl	_close
	mov	w0, #1
	mov	w1, #0
	mov	x2, x23
	bl	_lafe_errc
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x19, #24]
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x28]
	orr	w1, w8, w9
	ldr	x2, [sp, #40]
	bl	_archive_match_exclude_entry
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x19, #24]
	bl	_archive_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	w0, #1
	mov	w1, #0
	mov	x2, x22
	bl	_lafe_errc
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.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_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,8,3                 ; @ARCHIVE_OK
l_.str.1:                               ; @.str.1
	.asciz	"Can't open %s: %s"

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

	.comm	_ARCHIVE_MATCH_MTIME,4,2        ; @ARCHIVE_MATCH_MTIME
	.comm	_ARCHIVE_MATCH_OLDER,4,2        ; @ARCHIVE_MATCH_OLDER
	.comm	_ARCHIVE_MATCH_EQUAL,4,2        ; @ARCHIVE_MATCH_EQUAL
l_.str.3:                               ; @.str.3
	.asciz	"Error : %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
