	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_write_shar_finish_entry
_archive_write_shar_finish_entry:       ## @archive_write_shar_finish_entry
	.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
	movq	(%rdi), %rbx
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	cmpq	$0, 48(%rbx)
	movq	32(%rbx), %rax
	je	LBB0_15
## %bb.2:
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_5
## %bb.4:
	movl	40(%rbx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_uuencode_line
LBB0_5:
	leaq	8(%rbx), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_archive_strcat
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_archive_strcat
	movq	16(%rbx), %rdi
LBB0_6:
	leaq	8(%rbx), %r15
	callq	_archive_entry_mode
	andl	$4095, %eax                     ## imm = 0xFFF
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_archive_string_sprintf
	movq	16(%rbx), %rdi
	callq	_archive_entry_pathname
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_shar_quote
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_archive_strcat
	movq	16(%rbx), %rdi
	callq	_archive_entry_uname
	movq	%rax, %r13
	movq	16(%rbx), %rdi
	callq	_archive_entry_gname
	movq	%rax, %r12
	movq	%r13, %rax
	orq	%r12, %rax
	je	LBB0_12
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_archive_strcat
	testq	%r13, %r13
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_shar_quote
LBB0_9:
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_archive_strcat
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_shar_quote
LBB0_11:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_archive_strcat
	movq	16(%rbx), %rdi
	callq	_archive_entry_pathname
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_shar_quote
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_archive_strcat
LBB0_12:
	movq	16(%rbx), %rdi
	callq	_archive_entry_fflags_text
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_archive_string_sprintf
	movq	16(%rbx), %rdi
	callq	_archive_entry_pathname
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_shar_quote
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	jmp	LBB0_19
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_15:
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	cmpl	$0, 24(%rbx)
	jne	LBB0_18
## %bb.17:
	leaq	8(%rbx), %rdi
	movl	$10, %esi
	callq	_archive_strappend_char
LBB0_18:
	leaq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_19:
	callq	_archive_strcat
LBB0_20:
	movq	16(%rbx), %rdi
	callq	_archive_entry_free
	movq	$0, 16(%rbx)
	movl	8(%rbx), %edx
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	jg	LBB0_22
## %bb.21:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_22:
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	___archive_write_output
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_24
## %bb.23:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_archive_string_empty
	movl	(%r14), %eax
	jmp	LBB0_26
LBB0_24:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"`\nend\n"

L_.str.1:                               ## @.str.1
	.asciz	"SHAR_END\n"

L_.str.2:                               ## @.str.2
	.asciz	"chmod %o "

L_.str.3:                               ## @.str.3
	.asciz	"\n"

L_.str.4:                               ## @.str.4
	.asciz	"chown "

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

L_.str.6:                               ## @.str.6
	.asciz	" "

L_.str.7:                               ## @.str.7
	.asciz	"chflags %s "

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.no_dead_strip	_archive_write_shar_finish_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archive_write_shar_finish_entry
_archive_write_shar_finish_entry:       ; @archive_write_shar_finish_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x20, [x0]
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_25
; %bb.1:
	ldr	x9, [x20, #48]
	ldr	x8, [x20, #32]
	cbz	x9, LBB0_14
; %bb.2:
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x3, [x20]
	cmp	x3, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	w2, [x20, #40]
	mov	x0, x19
	mov	x1, x20
	bl	_uuencode_line
LBB0_5:
	add	x21, x20, #8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_archive_strcat
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_archive_strcat
	ldr	x0, [x20, #16]
LBB0_6:
	add	x21, x20, #8
	bl	_archive_entry_mode
	and	w8, w0, #0xfff
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_archive_string_sprintf
	ldr	x0, [x20, #16]
	bl	_archive_entry_pathname
	mov	x1, x0
	mov	x0, x21
	mov	w2, #1
	bl	_shar_quote
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_archive_strcat
	ldr	x0, [x20, #16]
	bl	_archive_entry_uname
	mov	x23, x0
	ldr	x0, [x20, #16]
	bl	_archive_entry_gname
	orr	x8, x23, x0
	cbz	x8, LBB0_12
; %bb.7:
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_archive_strcat
	cbz	x23, LBB0_9
; %bb.8:
	mov	x0, x21
	mov	x1, x23
	mov	w2, #1
	bl	_shar_quote
LBB0_9:
	cbz	x22, LBB0_11
; %bb.10:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_archive_strcat
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	bl	_shar_quote
LBB0_11:
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_archive_strcat
	ldr	x0, [x20, #16]
	bl	_archive_entry_pathname
	mov	x1, x0
	mov	x0, x21
	mov	w2, #1
	bl	_shar_quote
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_archive_strcat
LBB0_12:
	ldr	x0, [x20, #16]
	bl	_archive_entry_fflags_text
	cbz	x0, LBB0_19
; %bb.13:
	str	x0, [sp]
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_archive_string_sprintf
	ldr	x0, [x20, #16]
	bl	_archive_entry_pathname
	mov	x1, x0
	mov	x0, x21
	mov	w2, #1
	bl	_shar_quote
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	b	LBB0_18
LBB0_14:
	cbz	x8, LBB0_19
; %bb.15:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_17
; %bb.16:
	add	x0, x20, #8
	mov	w1, #10
	bl	_archive_strappend_char
LBB0_17:
	add	x0, x20, #8
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_18:
	bl	_archive_strcat
LBB0_19:
	ldr	x0, [x20, #16]
	bl	_archive_entry_free
	str	xzr, [x20, #16]
	mov	x21, x20
	ldr	w2, [x21, #8]!
	cmp	w2, #16, lsl #12                ; =65536
	b.ge	LBB0_21
; %bb.20:
Lloh22:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_24
LBB0_21:
	ldr	w1, [x20, #12]
	mov	x0, x19
	bl	___archive_write_output
Lloh24:
	adrp	x19, _ARCHIVE_OK@GOTPAGE
Lloh25:
	ldr	x19, [x19, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x21
	bl	_archive_string_empty
	ldr	w0, [x19]
	b	LBB0_25
LBB0_23:
Lloh26:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x8]
LBB0_25:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"`\nend\n"

l_.str.1:                               ; @.str.1
	.asciz	"SHAR_END\n"

l_.str.2:                               ; @.str.2
	.asciz	"chmod %o "

l_.str.3:                               ; @.str.3
	.asciz	"\n"

l_.str.4:                               ; @.str.4
	.asciz	"chown "

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

l_.str.6:                               ; @.str.6
	.asciz	" "

l_.str.7:                               ; @.str.7
	.asciz	"chflags %s "

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.no_dead_strip	_archive_write_shar_finish_entry
.subsections_via_symbols
