	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_write_v7tar_header
_archive_write_v7tar_header:            ## @archive_write_v7tar_header
	.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	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r13
	movq	16(%r13), %r15
	testq	%r15, %r15
	jne	LBB0_4
## %bb.1:
	cmpl	$0, (%r13)
	je	LBB0_3
## %bb.2:
	movq	24(%r13), %r15
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_archive_string_default_conversion_for_write
	movq	%rax, %r15
	movq	%rax, 24(%r13)
	movl	$1, (%r13)
LBB0_4:
	movq	%r12, %rdi
	callq	_archive_entry_pathname
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	callq	_archive_entry_hardlink
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	callq	_archive_entry_symlink
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_archive_entry_filetype
	movq	_AE_IFREG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_archive_entry_set_size
LBB0_10:
	movq	_AE_IFDIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_archive_entry_filetype
	cmpq	%rax, %rbx
	jne	LBB0_16
## %bb.11:
	movq	%r12, %rdi
	callq	_archive_entry_pathname
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_16
## %bb.13:
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	cmpb	$47, -1(%rax,%rbx)
	je	LBB0_16
## %bb.14:
	leaq	-560(%rbp), %rdi
	callq	_archive_string_init
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movq	%rax, -568(%rbp)                ## 8-byte Spill
	leaq	2(%rax), %rsi
	leaq	-560(%rbp), %rdi
	callq	_archive_string_ensure
	testq	%rax, %rax
	je	LBB0_23
## %bb.15:
	leaq	-560(%rbp), %rdi
	movq	%rbx, %rsi
	movq	-568(%rbp), %rdx                ## 8-byte Reload
	callq	_archive_strncpy
	leaq	-560(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_archive_strappend_char
	movl	-560(%rbp), %esi
	movq	%r12, %rdi
	callq	_archive_entry_copy_pathname
	movq	%rbx, %rdi
	callq	_archive_string_free
LBB0_16:
	leaq	-560(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	$1, %ecx
	movq	%r15, %r8
	callq	_format_header_v7tar
	movl	%eax, %ebx
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jl	LBB0_20
## %bb.17:
	leaq	-560(%rbp), %rsi
	movq	%r14, %rdi
	movl	$512, %edx                      ## imm = 0x200
	callq	___archive_write_output
	movl	%eax, %r14d
	cmpl	(%r15), %eax
	jge	LBB0_19
## %bb.18:
	xorl	%edi, %edi
	callq	_archive_entry_free
	movl	%r14d, %ebx
	jmp	LBB0_21
LBB0_5:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_19:
	cmpl	%ebx, %r14d
	cmovll	%r14d, %ebx
	movq	%r12, %rdi
	callq	_archive_entry_size
	movq	%rax, 8(%r13)
	negl	%eax
	andl	$511, %eax                      ## imm = 0x1FF
	movl	%eax, 4(%r13)
LBB0_20:
	xorl	%edi, %edi
	callq	_archive_entry_free
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.22:
	movl	%ebx, %eax
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	leaq	-560(%rbp), %rdi
	callq	_archive_string_free
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't record entry in tar file without pathname"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_AE_IFREG,8,3                   ## @AE_IFREG
	.comm	_AE_IFDIR,8,3                   ## @AE_IFDIR
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate v7tar data"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.no_dead_strip	_archive_write_v7tar_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archive_write_v7tar_header
_archive_write_v7tar_header:            ; @archive_write_v7tar_header
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #528
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x24, [x0, #8]
	ldr	x21, [x24, #16]
	cbnz	x21, LBB0_4
; %bb.1:
	ldr	w8, [x24]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x21, [x24, #24]
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_archive_string_default_conversion_for_write
	mov	x21, x0
	str	x0, [x24, #24]
	mov	w8, #1
	str	w8, [x24]
LBB0_4:
	mov	x0, x19
	bl	_archive_entry_pathname
	cbz	x0, LBB0_18
; %bb.5:
	mov	x0, x19
	bl	_archive_entry_hardlink
	cbnz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_archive_entry_symlink
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_archive_entry_filetype
Lloh3:
	adrp	x8, _AE_IFREG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_IFREG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_archive_entry_set_size
LBB0_9:
Lloh6:
	adrp	x8, _AE_IFDIR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_IFDIR@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
	mov	x0, x19
	bl	_archive_entry_filetype
	cmp	x22, x0
	b.ne	LBB0_15
; %bb.10:
	mov	x0, x19
	bl	_archive_entry_pathname
	cbz	x0, LBB0_15
; %bb.11:
	mov	x22, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_15
; %bb.12:
	mov	x0, x22
	bl	_strlen
	add	x8, x22, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	b.eq	LBB0_15
; %bb.13:
	add	x0, sp, #8
	bl	_archive_string_init
	mov	x0, x22
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	add	x1, x23, #2
	add	x0, sp, #8
	bl	_archive_string_ensure
	cbz	x0, LBB0_23
; %bb.14:
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x23
	bl	_archive_strncpy
	add	x0, sp, #8
	mov	w1, #47
	bl	_archive_strappend_char
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_archive_entry_copy_pathname
	add	x0, sp, #8
	bl	_archive_string_free
LBB0_15:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	mov	w3, #1
	mov	x4, x21
	bl	_format_header_v7tar
	mov	x21, x0
Lloh9:
	adrp	x22, _ARCHIVE_WARN@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ARCHIVE_WARN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.lt	LBB0_20
; %bb.16:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #512
	bl	___archive_write_output
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ge	LBB0_19
; %bb.17:
	mov	x0, #0
	bl	_archive_entry_free
	mov	x21, x20
	b	LBB0_21
LBB0_18:
Lloh11:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_archive_set_error
Lloh16:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	b	LBB0_21
LBB0_19:
	cmp	w20, w21
	csel	w21, w20, w21, lt
	mov	x0, x19
	bl	_archive_entry_size
	str	x0, [x24, #8]
	neg	w8, w0
	and	w8, w8, #0x1ff
	str	w8, [x24, #4]
LBB0_20:
	mov	x0, #0
	bl	_archive_entry_free
LBB0_21:
	ldur	x8, [x29, #-72]
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_24
; %bb.22:
	mov	x0, x21
	add	sp, sp, #528
	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
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_23:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_archive_set_error
	add	x0, sp, #8
	bl	_archive_string_free
Lloh27:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh29:
	ldr	w21, [x8]
	b	LBB0_21
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't record entry in tar file without pathname"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_AE_IFREG,8,3                   ; @AE_IFREG
	.comm	_AE_IFDIR,8,3                   ; @AE_IFDIR
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate v7tar data"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.no_dead_strip	_archive_write_v7tar_header
.subsections_via_symbols
