	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_format
_test_format:                           ## @test_format
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$1000000, %edi                  ## imm = 0xF4240
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_archive_write_new
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r12, %rdi
	callq	*%r14
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assertA
	movq	%r12, %rdi
	callq	_archive_write_add_filter_none
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	leaq	-136(%rbp), %rcx
	movl	$1000000, %edx                  ## imm = 0xF4240
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_archive_write_open_memory
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	xorl	%eax, %eax
	callq	_archive_entry_new
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$10, %edx
	callq	_archive_entry_set_mtime
	movq	%r13, %rdi
	callq	_archive_entry_mtime
	xorl	%edi, %edi
	cmpq	$1, %rax
	sete	%dil
	callq	_assert
	movq	%r13, %rdi
	callq	_archive_entry_mtime_nsec
	xorl	%edi, %edi
	cmpl	$10, %eax
	sete	%dil
	callq	_assert
	leaq	L_.str(%rip), %r15
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_archive_entry_copy_pathname
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcpy
	movq	%r14, %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_archive_entry_pathname
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	_S_IFREG@GOTPCREL(%rip), %rbx
	movl	$493, %eax                      ## imm = 0x1ED
	movl	(%rbx), %esi
	orl	%eax, %esi
	movq	%r13, %rdi
	callq	_archive_entry_set_mode
	movslq	(%rbx), %rbx
	orq	$493, %rbx                      ## imm = 0x1ED
	movq	%r13, %rdi
	callq	_archive_entry_mode
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_archive_entry_set_size
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_archive_write_header
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	%r13, %rdi
	callq	_archive_entry_free
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	$9, %edx
	callq	_archive_write_data
	xorl	%edi, %edi
	cmpl	$8, %eax
	sete	%dil
	callq	_assertA
	xorl	%eax, %eax
	callq	_archive_entry_new
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$10, %edx
	callq	_archive_entry_set_mtime
	movq	%r15, %rdi
	callq	_archive_entry_mtime
	xorl	%edi, %edi
	cmpq	$1, %rax
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_archive_entry_mtime_nsec
	xorl	%edi, %edi
	cmpl	$10, %eax
	sete	%dil
	callq	_assert
	leaq	L_.str.3(%rip), %r14
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_archive_entry_copy_pathname
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	movq	%r13, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_archive_entry_pathname
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	_S_IFREG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$493, %eax                      ## imm = 0x1ED
	orl	%eax, %esi
	movq	%r15, %rdi
	callq	_archive_entry_set_mode
	movslq	(%rbx), %rbx
	orq	$493, %rbx                      ## imm = 0x1ED
	movq	%r15, %rdi
	callq	_archive_entry_mode
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_archive_entry_set_size
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_archive_write_header
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	%r15, %rdi
	callq	_archive_entry_free
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	$5, %edx
	callq	_archive_write_data
	xorl	%edi, %edi
	cmpl	$4, %eax
	sete	%dil
	callq	_assertA
	xorl	%eax, %eax
	callq	_archive_entry_new
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	leaq	L_.str.5(%rip), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_archive_entry_copy_pathname
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_archive_entry_set_size
	movq	_AE_IFREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_archive_entry_set_filetype
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_archive_write_header
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	movq	%r12, %rdi
	callq	_archive_error_string
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_archive_entry_free
	xorl	%eax, %eax
	callq	_archive_entry_new
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_archive_entry_copy_pathname
	movq	%rbx, %rdi
	callq	_archive_entry_unset_size
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_archive_entry_set_filetype
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_archive_write_header
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	movq	%r12, %rdi
	callq	_archive_error_string
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_archive_entry_free
	xorl	%eax, %eax
	callq	_archive_entry_new
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-128(%rbp), %r13                ## 8-byte Reload
	callq	_archive_entry_copy_pathname
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_archive_entry_set_size
	movl	(%r15), %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_archive_write_header
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	movq	%r12, %rdi
	callq	_archive_error_string
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_archive_entry_free
	xorl	%eax, %eax
	callq	_archive_entry_new
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_archive_entry_set_size
	movq	_AE_IFREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_archive_entry_set_filetype
	movl	(%r15), %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_archive_write_header
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	movq	%r12, %rdi
	callq	_archive_error_string
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_archive_entry_free
	xorl	%eax, %eax
	callq	_archive_entry_new
	movq	%rax, %rbx
	movq	%rax, -120(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	movl	$11, %esi
	movl	$110, %edx
	callq	_archive_entry_set_mtime
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_archive_entry_copy_pathname
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	movl	$493, %esi                      ## imm = 0x1ED
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_archive_entry_set_mode
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_archive_entry_set_size
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_archive_write_header
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	%rbx, %rdi
	callq	_archive_entry_size
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	movq	%rbx, %rdi
	callq	_archive_entry_free
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$9, %edx
	callq	_archive_write_data
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r12, %rdi
	callq	_archive_write_close
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r14), %ebx
	movq	%r12, %rdi
	callq	_archive_write_free
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	leaq	80(%r13), %r15
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	movl	$5, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r13, %rbx
	addq	$81, %rbx
	xorl	%r14d, %r14d
	leaq	L_.str.7(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$-69, %r14
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$5, %edx
	callq	_memcmp
	decq	%r14
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:
	movl	$79, %eax
	subq	%r14, %rax
	cmpq	$149, %rax
	setb	%bl
	subq	%r14, %r15
	movb	$88, (%r15)
	jmp	LBB0_8
LBB0_1:
	movb	$1, %bl
	movb	$88, (%r15)
	jmp	LBB0_8
LBB0_7:
	movl	$80, %eax
	subq	%r14, %rax
	cmpq	$149, %rax
	setb	%bl
LBB0_8:
	leaq	L_.str.8(%rip), %rdi
	callq	_failure
	movzbl	%bl, %edi
	callq	_assert
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r14, %rdi
	callq	_archive_read_support_format_all
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	%r14, %rdi
	callq	_archive_read_support_filter_all
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	-136(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_archive_read_open_memory
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	leaq	-120(%rbp), %rsi
	movq	%r14, %rdi
	callq	_archive_read_next_header
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	-120(%rbp), %rdi
	callq	_archive_entry_mtime
	movl	$1, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	movq	-120(%rbp), %rdi
	callq	_archive_entry_mtime_nsec
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	-120(%rbp), %rdi
	callq	_archive_entry_atime
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	-120(%rbp), %rdi
	callq	_archive_entry_ctime
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	-120(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movl	$493, %r15d                     ## imm = 0x1ED
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	orl	%r15d, %ebx
	movq	-120(%rbp), %rdi
	callq	_archive_entry_mode
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	movq	-120(%rbp), %rdi
	callq	_archive_entry_size
	movl	$8, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	leaq	-112(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$10, %edx
	callq	_archive_read_data
	xorl	%edi, %edi
	cmpl	$8, %eax
	sete	%dil
	callq	_assertA
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_assertEqualMem
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-120(%rbp), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_archive_read_next_header
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	-120(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_archive_read_next_header
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	-120(%rbp), %rdi
	callq	_archive_entry_mtime
	movl	$11, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	movq	-120(%rbp), %rdi
	callq	_archive_entry_mtime_nsec
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	-120(%rbp), %rdi
	callq	_archive_entry_atime
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	-120(%rbp), %rdi
	callq	_archive_entry_ctime
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	-120(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	-120(%rbp), %rdi
	callq	_archive_entry_mode
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	movq	-120(%rbp), %rdi
	callq	_archive_entry_size
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	movq	%r14, %rdi
	leaq	-112(%rbp), %rsi
	movl	$10, %edx
	callq	_archive_read_data
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_archive_read_next_header
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r12), %ebx
	movq	%r14, %rdi
	callq	_archive_read_close
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r12), %ebx
	movq	%r14, %rdi
	callq	_archive_read_free
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	jmp	LBB0_11
LBB0_9:
	movq	%r14, %rdi
	callq	_archive_read_free
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file"

L_.str.1:                               ## @.str.1
	.asciz	"XXXX"

	.comm	_S_IFREG,4,2                    ## @S_IFREG
L_.str.2:                               ## @.str.2
	.asciz	"12345678"

L_.str.3:                               ## @.str.3
	.asciz	"file2"

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

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

	.comm	_AE_IFREG,4,2                   ## @AE_IFREG
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
L_.str.6:                               ## @.str.6
	.asciz	"dir"

	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
L_.str.7:                               ## @.str.7
	.asciz	"07070"

L_.str.8:                               ## @.str.8
	.asciz	"Unable to locate the second header for damage-recovery test."

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.no_dead_strip	_test_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_format
_test_format:                           ; @test_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	mov	w0, #16960
	movk	w0, #15, lsl #16
	bl	_malloc
	mov	x19, x0
	bl	_archive_write_new
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x20
	blr	x21
	cmp	w0, #0
	cset	w0, eq
	bl	_assertA
	mov	x0, x20
	bl	_archive_write_add_filter_none
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16960
	movk	w2, #15, lsl #16
	bl	_archive_write_open_memory
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	bl	_archive_entry_new
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	w21, #1
	mov	x0, x22
	mov	w1, #1
	mov	w2, #10
	bl	_archive_entry_set_mtime
	mov	x0, x22
	bl	_archive_entry_mtime
	cmp	x0, #1
	cset	w0, eq
	bl	_assert
	mov	x0, x22
	bl	_archive_entry_mtime_nsec
	cmp	w0, #10
	cset	w0, eq
	bl	_assert
Lloh3:
	adrp	x24, l_.str@PAGE
Lloh4:
	add	x24, x24, l_.str@PAGEOFF
	mov	x0, x24
	bl	_strdup
	mov	x25, x0
	mov	x0, x22
	mov	x1, x25
	bl	_archive_entry_copy_pathname
Lloh5:
	adrp	x23, l_.str.1@PAGE
Lloh6:
	add	x23, x23, l_.str.1@PAGEOFF
	mov	x0, x25
	mov	x1, x23
	bl	_strcpy
	mov	x0, x25
	bl	_free
	mov	x0, x22
	bl	_archive_entry_pathname
	mov	x1, x0
	mov	x0, x24
	bl	_assertEqualString
Lloh7:
	adrp	x27, _S_IFREG@GOTPAGE
Lloh8:
	ldr	x27, [x27, _S_IFREG@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	w28, #493
	orr	w1, w8, w28
	mov	x0, x22
	bl	_archive_entry_set_mode
	ldrsw	x8, [x27]
	orr	x24, x8, x28
	mov	x0, x22
	bl	_archive_entry_mode
	cmp	x0, x24
	cset	w0, eq
	bl	_assert
	mov	x0, x22
	mov	w1, #8
	bl	_archive_entry_set_size
	mov	x0, x20
	mov	x1, x22
	bl	_archive_write_header
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	mov	x0, x22
	bl	_archive_entry_free
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #9
	bl	_archive_write_data
	cmp	w0, #8
	cset	w0, eq
	bl	_assertA
	bl	_archive_entry_new
	mov	x24, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x24
	mov	w1, #1
	mov	w2, #10
	bl	_archive_entry_set_mtime
	mov	x0, x24
	bl	_archive_entry_mtime
	cmp	x0, #1
	cset	w0, eq
	bl	_assert
	mov	x0, x24
	bl	_archive_entry_mtime_nsec
	cmp	w0, #10
	cset	w0, eq
	bl	_assert
Lloh11:
	adrp	x25, l_.str.3@PAGE
Lloh12:
	add	x25, x25, l_.str.3@PAGEOFF
	mov	x0, x25
	bl	_strdup
	mov	x26, x0
	mov	x0, x24
	mov	x1, x26
	bl	_archive_entry_copy_pathname
	mov	x0, x26
	mov	x1, x23
	bl	_strcpy
	mov	x0, x26
	bl	_free
	mov	x0, x24
	bl	_archive_entry_pathname
	mov	x1, x0
	mov	x0, x25
	bl	_assertEqualString
	ldr	w8, [x27]
	orr	w1, w8, w28
	mov	x0, x24
	bl	_archive_entry_set_mode
	ldrsw	x8, [x27]
	orr	x22, x8, x28
	mov	x0, x24
	bl	_archive_entry_mode
	cmp	x0, x22
	cset	w0, eq
	bl	_assert
	mov	x0, x24
	mov	w1, #4
	bl	_archive_entry_set_size
	mov	x0, x20
	mov	x1, x24
	bl	_archive_write_header
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	mov	x0, x24
	bl	_archive_entry_free
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w2, #5
	bl	_archive_write_data
	cmp	w0, #4
	cset	w0, eq
	bl	_assertA
	bl	_archive_entry_new
	mov	x24, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh15:
	adrp	x23, l_.str.5@PAGE
Lloh16:
	add	x23, x23, l_.str.5@PAGEOFF
	mov	x0, x24
	mov	x1, x23
	bl	_archive_entry_copy_pathname
	mov	x0, x24
	mov	w1, #0
	bl	_archive_entry_set_size
Lloh17:
	adrp	x22, _AE_IFREG@GOTPAGE
Lloh18:
	ldr	x22, [x22, _AE_IFREG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x24
	bl	_archive_entry_set_filetype
Lloh19:
	adrp	x26, _ARCHIVE_OK@GOTPAGE
Lloh20:
	ldr	x26, [x26, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w25, [x26]
	mov	x0, x20
	mov	x1, x24
	bl	_archive_write_header
	mov	x1, x0
	mov	x0, x25
	bl	_assertEqualInt
	mov	x0, x20
	bl	_archive_error_string
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x24
	bl	_archive_entry_free
	bl	_archive_entry_new
	mov	x24, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x24
	mov	x1, x23
	bl	_archive_entry_copy_pathname
	mov	x0, x24
	bl	_archive_entry_unset_size
	ldr	w1, [x22]
	mov	x0, x24
	bl	_archive_entry_set_filetype
Lloh21:
	adrp	x27, _ARCHIVE_FAILED@GOTPAGE
Lloh22:
	ldr	x27, [x27, _ARCHIVE_FAILED@GOTPAGEOFF]
	ldr	w25, [x27]
	mov	x0, x20
	mov	x1, x24
	bl	_archive_write_header
	mov	x1, x0
	mov	x0, x25
	bl	_assertEqualInt
	mov	x0, x20
	bl	_archive_error_string
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x24
	bl	_archive_entry_free
	bl	_archive_entry_new
	mov	x24, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x24
	mov	x1, x23
	bl	_archive_entry_copy_pathname
	mov	x0, x24
	mov	w1, #0
	bl	_archive_entry_set_size
	ldr	w23, [x27]
	mov	x0, x20
	mov	x1, x24
	bl	_archive_write_header
	mov	x1, x0
	mov	x0, x23
	bl	_assertEqualInt
	mov	x0, x20
	bl	_archive_error_string
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x24
	bl	_archive_entry_free
	bl	_archive_entry_new
	mov	x23, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x23
	mov	w1, #0
	bl	_archive_entry_set_size
	ldr	w1, [x22]
	mov	x0, x23
	bl	_archive_entry_set_filetype
	ldr	w24, [x27]
	mov	x0, x20
	mov	x1, x23
	bl	_archive_write_header
	mov	x1, x0
	mov	x0, x24
	bl	_assertEqualInt
	mov	x0, x20
	bl	_archive_error_string
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x23
	bl	_archive_entry_free
	bl	_archive_entry_new
	mov	x23, x0
	str	x0, [sp, #16]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x23
	mov	w1, #11
	mov	w2, #110
	bl	_archive_entry_set_mtime
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x23
	bl	_archive_entry_copy_pathname
Lloh25:
	adrp	x24, _S_IFDIR@GOTPAGE
Lloh26:
	ldr	x24, [x24, _S_IFDIR@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w1, w8, w28
	mov	x0, x23
	bl	_archive_entry_set_mode
	mov	x0, x23
	mov	w1, #512
	bl	_archive_entry_set_size
	mov	x0, x20
	mov	x1, x23
	bl	_archive_write_header
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	mov	x0, x23
	bl	_archive_entry_size
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	mov	x0, x23
	bl	_archive_entry_free
	mov	x0, x20
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #9
	bl	_archive_write_data
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_assertEqualIntA
	ldr	w22, [x26]
	mov	x0, x20
	bl	_archive_write_close
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_assertEqualIntA
	ldr	w22, [x26]
	mov	x0, x20
	bl	_archive_write_free
	mov	x1, x0
	mov	x0, x22
	bl	_assertEqualInt
	add	x20, x19, #80
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	w2, #5
	bl	_memcmp
	cbz	x0, LBB0_5
; %bb.1:
	mov	w22, #81
Lloh31:
	adrp	x20, l_.str.7@PAGE
Lloh32:
	add	x20, x20, l_.str.7@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x22, #150
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x19, x22
	mov	x1, x20
	mov	w2, #5
	bl	_memcmp
	add	x22, x22, #1
	cbnz	x0, LBB0_2
; %bb.4:
	sub	x8, x22, #2
	cmp	x8, #149
	cset	w21, lo
	add	x8, x19, x22
	sub	x20, x8, #1
LBB0_5:
	mov	w8, #88
	strb	w8, [x20]
	b	LBB0_7
LBB0_6:
	sub	x8, x22, #1
	cmp	x8, #149
	cset	w21, lo
LBB0_7:
Lloh33:
	adrp	x0, l_.str.8@PAGE
Lloh34:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_failure
	mov	x0, x21
	bl	_assert
	bl	_archive_read_new
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x20
	bl	_archive_read_support_format_all
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	mov	x0, x20
	bl	_archive_read_support_filter_all
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_archive_read_open_memory
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	add	x1, sp, #16
	mov	x0, x20
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_assertEqualIntA
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x0, [sp, #16]
	bl	_archive_entry_mtime
	mov	x1, x0
	mov	w0, #1
	bl	_assertEqualInt
	ldr	x0, [sp, #16]
	bl	_archive_entry_mtime_nsec
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	x0, [sp, #16]
	bl	_archive_entry_atime
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	x0, [sp, #16]
	bl	_archive_entry_ctime
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	x0, [sp, #16]
	bl	_archive_entry_pathname
	mov	x1, x0
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_assertEqualString
Lloh37:
	adrp	x8, _S_IFREG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _S_IFREG@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	mov	w22, #493
	orr	w21, w8, w22
	ldr	x0, [sp, #16]
	bl	_archive_entry_mode
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualInt
	ldr	x0, [sp, #16]
	bl	_archive_entry_size
	mov	x1, x0
	mov	w0, #8
	bl	_assertEqualInt
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #10
	bl	_archive_read_data
	cmp	w0, #8
	cset	w0, eq
	bl	_assertA
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	w2, #8
	bl	_assertEqualMem
Lloh42:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh44:
	ldr	w21, [x8]
	add	x1, sp, #16
	mov	x0, x20
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	x0, [sp, #16]
	bl	_archive_entry_pathname
	mov	x1, x0
Lloh45:
	adrp	x0, l_.str.5@PAGE
Lloh46:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_assertEqualString
	ldr	w21, [x26]
	add	x1, sp, #16
	mov	x0, x20
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	x0, [sp, #16]
	bl	_archive_entry_mtime
	mov	x1, x0
	mov	w0, #11
	bl	_assertEqualInt
	ldr	x0, [sp, #16]
	bl	_archive_entry_mtime_nsec
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	x0, [sp, #16]
	bl	_archive_entry_atime
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	x0, [sp, #16]
	bl	_archive_entry_ctime
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	x0, [sp, #16]
	bl	_archive_entry_pathname
	mov	x1, x0
Lloh47:
	adrp	x0, l_.str.6@PAGE
Lloh48:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_assertEqualString
	ldr	w8, [x24]
	orr	w21, w8, w22
	ldr	x0, [sp, #16]
	bl	_archive_entry_mode
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualInt
	ldr	x0, [sp, #16]
	bl	_archive_entry_size
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #10
	bl	_archive_read_data
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_assertEqualIntA
	add	x1, sp, #16
	mov	x0, x20
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x20
	mov	w1, #1
	bl	_assertEqualIntA
	ldr	w21, [x26]
	mov	x0, x20
	bl	_archive_read_close
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x26]
	mov	x0, x20
	bl	_archive_read_free
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualInt
	mov	x0, x19
	bl	_free
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_archive_read_free
LBB0_10:
	ldr	x8, [sp, #88]
Lloh49:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh50:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file"

l_.str.1:                               ; @.str.1
	.asciz	"XXXX"

	.comm	_S_IFREG,4,2                    ; @S_IFREG
l_.str.2:                               ; @.str.2
	.asciz	"12345678"

l_.str.3:                               ; @.str.3
	.asciz	"file2"

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

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

	.comm	_AE_IFREG,4,2                   ; @AE_IFREG
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
l_.str.6:                               ; @.str.6
	.asciz	"dir"

	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
l_.str.7:                               ; @.str.7
	.asciz	"07070"

l_.str.8:                               ; @.str.8
	.asciz	"Unable to locate the second header for damage-recovery test."

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.no_dead_strip	_test_format
.subsections_via_symbols
