	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_filename
_test_filename:                         ## @test_filename
	.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
	movl	$9032, %eax                     ## imm = 0x2348
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r13d, %r13d
	movl	$0, %ebx
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	leaq	-8640(%rbp), %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %rbx
LBB0_2:
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.3:
	movslq	%ebx, %rdx
	cmpl	%r12d, %ebx
	jge	LBB0_5
## %bb.4:
	leaq	(%rdx,%rbp), %rdi
	addq	$-8640, %rdi                    ## imm = 0xDE40
	notl	%edx
	addl	%r12d, %edx
	incq	%rdx
	movl	$97, %esi
	callq	_memset
	movl	%r12d, %edx
	movl	%r12d, %ebx
LBB0_5:
	incl	%ebx
	movb	$47, -8640(%rbp,%rdx)
	movl	$1, %r13d
LBB0_6:
	movq	%r12, %rax
	addl	%r15d, %r12d
	addl	%r13d, %r12d
	cmpl	%r12d, %ebx
	movq	%rax, -9056(%rbp)               ## 8-byte Spill
	jge	LBB0_15
## %bb.7:
	movslq	%ebx, %r14
	leaq	(%r14,%rbp), %rdi
	addq	$-8640, %rdi                    ## imm = 0xDE40
	addl	%r15d, %r13d
	addl	%eax, %r13d
	movl	%ebx, %edx
	notl	%edx
	addl	%r13d, %edx
	incq	%rdx
	movl	$98, %esi
	callq	_memset
	movslq	%r12d, %rax
	subl	%ebx, %r12d
	movq	%r14, %rcx
	notq	%rcx
	addq	%rax, %rcx
	andq	$7, %r12
	je	LBB0_8
## %bb.9:
	negq	%r12
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	decq	%rdx
	cmpq	%rdx, %r12
	jne	LBB0_10
## %bb.11:
	subq	%rdx, %r14
	movq	%r14, %rbx
	cmpq	$7, %rcx
	jae	LBB0_13
	jmp	LBB0_15
LBB0_8:
                                        ## implicit-def: $rbx
	cmpq	$7, %rcx
	jb	LBB0_15
LBB0_13:
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	addq	$8, %rbx
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_15:
	movslq	%ebx, %rax
	movb	$0, -8640(%rbp,%rax)
	leaq	-9040(%rbp), %rdi
	leaq	-8640(%rbp), %r12
	movq	%r12, %rsi
	callq	_strcpy
	xorl	%eax, %eax
	callq	_archive_write_new
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r14, %rdi
	callq	_archive_write_set_format_ustar
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	%r14, %rdi
	callq	_archive_write_add_filter_none
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_archive_write_set_bytes_per_block
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	leaq	-8240(%rbp), %rsi
	leaq	-9064(%rbp), %rcx
	movq	%r14, %rdi
	movl	$8192, %edx                     ## imm = 0x2000
	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
	movq	%rax, -9048(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_archive_entry_copy_pathname
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	movl	$493, %r12d                     ## imm = 0x1ED
	movl	(%rax), %esi
	orl	%r12d, %esi
	movq	%r13, %rdi
	callq	_archive_entry_set_mode
	leaq	L_.str(%rip), %rdi
	movq	-9056(%rbp), %rsi               ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	callq	_failure
	movl	$0, %ebx
	cmpl	$101, %r15d
	jl	LBB0_17
## %bb.16:
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_17:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_archive_write_header
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%r13, %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
	leaq	-9040(%rbp), %rsi
	callq	_archive_entry_copy_pathname
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r12d, %esi
	movq	%rbx, %rdi
	callq	_archive_entry_set_mode
	leaq	L_.str(%rip), %rdi
	movq	-9056(%rbp), %rsi               ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	callq	_failure
	movl	$0, %r13d
	cmpl	$100, %r15d
	jl	LBB0_19
## %bb.18:
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_19:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_archive_write_header
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%rbx, %rdi
	callq	_archive_entry_free
	leaq	L_.str.1(%rip), %rsi
	leaq	-9040(%rbp), %r13
	movq	%r13, %rdi
	callq	_strcat
	xorl	%eax, %eax
	callq	_archive_entry_new
	movq	%rax, %rbx
	movq	%rax, -9048(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_archive_entry_copy_pathname
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_archive_entry_set_mode
	leaq	L_.str(%rip), %rdi
	movq	-9056(%rbp), %rsi               ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	callq	_failure
	movl	$0, %r12d
	cmpl	$100, %r15d
	jl	LBB0_21
## %bb.20:
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_21:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_archive_write_header
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%rbx, %rdi
	callq	_archive_entry_free
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%r14, %rdi
	callq	_archive_write_close
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r12), %ebx
	movq	%r14, %rdi
	callq	_archive_write_free
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r13, %rdi
	callq	_archive_read_support_format_all
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	%r13, %rdi
	callq	_archive_read_support_filter_all
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	-9064(%rbp), %rdx
	movq	%r13, %rdi
	leaq	-8240(%rbp), %rsi
	callq	_archive_read_open_memory
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	cmpl	$100, %r15d
	movq	-9056(%rbp), %r12               ## 8-byte Reload
	jg	LBB0_24
## %bb.22:
	leaq	-9048(%rbp), %rsi
	movq	%r13, %rdi
	callq	_archive_read_next_header
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_failure
	movq	-9048(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	-8640(%rbp), %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movl	$493, %r14d                     ## imm = 0x1ED
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	orl	%r14d, %ebx
	movq	-9048(%rbp), %rdi
	callq	_archive_entry_mode
	movslq	%eax, %rsi
	movl	%ebx, %edi
	callq	_assertEqualInt
	cmpl	$100, %r15d
	je	LBB0_24
## %bb.23:
	leaq	-9048(%rbp), %rsi
	movq	%r13, %rdi
	callq	_archive_read_next_header
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	orl	%r14d, %ebx
	movq	-9048(%rbp), %rdi
	callq	_archive_entry_mode
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_assert
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_failure
	movq	-9048(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	-9040(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	%r13, %rdi
	leaq	-9048(%rbp), %rsi
	callq	_archive_read_next_header
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	-9048(%rbp), %rdi
	callq	_archive_entry_mode
	xorl	%edi, %edi
	cmpl	%eax, %r14d
	sete	%dil
	callq	_assert
	movq	-9048(%rbp), %rdi
	callq	_archive_entry_pathname
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
LBB0_24:
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_failure
	leaq	-9048(%rbp), %rsi
	movq	%r13, %rdi
	callq	_archive_read_next_header
	movl	$1, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r13, %rdi
	callq	_archive_read_close
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r14), %ebx
	movq	%r13, %rdi
	callq	_archive_read_free
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_assertEqualInt
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	addq	$9032, %rsp                     ## imm = 0x2348
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dlen=%d, flen=%d"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
L_.str.1:                               ## @.str.1
	.asciz	"/"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
L_.str.2:                               ## @.str.2
	.asciz	"This fails if entries were written that should not have been written.  dlen=%d, flen=%d"

	.no_dead_strip	_test_filename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_filename
_test_filename:                         ; @test_filename
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w9, #9024
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #832
	mov	x19, x2
	mov	x20, x1
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	add	x0, sp, #416
	mov	x1, x21
	bl	_strcpy
	mov	x0, x21
	bl	_strlen
	mov	x8, x0
	cmp	w20, #1
	b.lt	LBB0_6
LBB0_2:
	sxtw	x9, w8
	cmp	w8, w20
	b.ge	LBB0_4
; %bb.3:
	add	x10, sp, #416
	add	x0, x10, x9
	mvn	w8, w8
	add	w8, w8, w20
	add	x2, x8, #1
	mov	w1, #97
	bl	_memset
	mov	w9, w20
	mov	x8, x20
LBB0_4:
	add	w8, w8, #1
	add	x10, sp, #416
	mov	w11, #47
	strb	w11, [x10, x9]
	mov	w9, #1
	b	LBB0_7
LBB0_5:
	mov	w8, #0
	cmp	w20, #1
	b.ge	LBB0_2
LBB0_6:
	mov	w9, #0
LBB0_7:
	add	w10, w19, w20
	add	w22, w10, w9
	cmp	w8, w22
	b.ge	LBB0_14
; %bb.8:
	mov	x10, x8
	sxtw	x21, w10
	add	x10, sp, #416
	add	x0, x10, x21
	add	w9, w9, w19
	add	w9, w9, w20
	mvn	w8, w8
	add	w8, w9, w8
	add	x2, x8, #1
	mov	w1, #98
	bl	_memset
	sxtw	x8, w22
	sub	x9, x8, x21
	cmp	x9, #4
	b.lo	LBB0_12
; %bb.9:
	and	x10, x9, #0xfffffffffffffffc
	add	x21, x10, x21
	mov	x11, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	subs	x11, x11, #4
	b.ne	LBB0_10
; %bb.11:
	cmp	x9, x10
	b.eq	LBB0_13
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x21, x21, #1
	cmp	x21, x8
	b.lt	LBB0_12
LBB0_13:
	mov	x8, x21
LBB0_14:
	add	x9, sp, #416
	strb	wzr, [x9, w8, sxtw]
	add	x0, sp, #16
	add	x1, sp, #416
	bl	_strcpy
	bl	_archive_write_new
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x21
	bl	_archive_write_set_format_ustar
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	mov	x0, x21
	bl	_archive_write_add_filter_none
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	mov	x0, x21
	mov	w1, #0
	bl	_archive_write_set_bytes_per_block
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	add	x1, sp, #816
	mov	x3, sp
	mov	x0, x21
	mov	w2, #8192
	bl	_archive_write_open_memory
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	bl	_archive_entry_new
	mov	x23, x0
	str	x0, [sp, #8]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	add	x1, sp, #416
	mov	x0, x23
	bl	_archive_entry_copy_pathname
Lloh5:
	adrp	x26, _S_IFREG@GOTPAGE
Lloh6:
	ldr	x26, [x26, _S_IFREG@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	w27, #493
	orr	w1, w8, w27
	mov	x0, x23
	bl	_archive_entry_set_mode
Lloh7:
	adrp	x22, l_.str@PAGE
Lloh8:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_failure
Lloh9:
	adrp	x28, _ARCHIVE_FAILED@GOTPAGE
Lloh10:
	ldr	x28, [x28, _ARCHIVE_FAILED@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w19, #100
	csel	w24, w8, wzr, gt
	mov	x0, x21
	mov	x1, x23
	bl	_archive_write_header
	mov	x2, x0
	mov	x0, x21
	mov	x1, x24
	bl	_assertEqualIntA
	mov	x0, x23
	bl	_archive_entry_free
	bl	_archive_entry_new
	mov	x23, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	add	x1, sp, #16
	mov	x0, x23
	bl	_archive_entry_copy_pathname
Lloh11:
	adrp	x25, _S_IFDIR@GOTPAGE
Lloh12:
	ldr	x25, [x25, _S_IFDIR@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w1, w8, w27
	mov	x0, x23
	bl	_archive_entry_set_mode
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_failure
	ldr	w8, [x28]
	cmp	w19, #99
	csel	w24, w8, wzr, gt
	mov	x0, x21
	mov	x1, x23
	bl	_archive_write_header
	mov	x2, x0
	mov	x0, x21
	mov	x1, x24
	bl	_assertEqualIntA
	mov	x0, x23
	bl	_archive_entry_free
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #16
	bl	_strcat
	bl	_archive_entry_new
	mov	x23, x0
	str	x0, [sp, #8]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	add	x1, sp, #16
	mov	x0, x23
	bl	_archive_entry_copy_pathname
	ldr	w8, [x25]
	orr	w1, w8, w27
	mov	x0, x23
	bl	_archive_entry_set_mode
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_failure
	ldr	w8, [x28]
	cmp	w19, #99
	csel	w22, w8, wzr, gt
	mov	x0, x21
	mov	x1, x23
	bl	_archive_write_header
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_assertEqualIntA
	mov	x0, x23
	bl	_archive_entry_free
Lloh15:
	adrp	x23, _ARCHIVE_OK@GOTPAGE
Lloh16:
	ldr	x23, [x23, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	x0, x21
	bl	_archive_write_close
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_assertEqualIntA
	ldr	w22, [x23]
	mov	x0, x21
	bl	_archive_write_free
	mov	x1, x0
	mov	x0, x22
	bl	_assertEqualInt
	bl	_archive_read_new
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x21
	bl	_archive_read_support_format_all
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	mov	x0, x21
	bl	_archive_read_support_filter_all
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	ldr	x2, [sp]
	add	x1, sp, #816
	mov	x0, x21
	bl	_archive_read_open_memory
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	cmp	w19, #100
	b.gt	LBB0_17
; %bb.15:
	add	x1, sp, #8
	mov	x0, x21
	bl	_archive_read_next_header
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_failure
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
	mov	x1, x0
	add	x0, sp, #416
	bl	_assertEqualString
	ldr	w8, [x26]
	orr	w22, w8, w27
	ldr	x0, [sp, #8]
	bl	_archive_entry_mode
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x22
	bl	_assertEqualInt
	cmp	w19, #100
	b.eq	LBB0_17
; %bb.16:
	add	x1, sp, #8
	mov	x0, x21
	bl	_archive_read_next_header
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	ldr	w8, [x25]
	mov	w22, #493
	orr	w24, w8, w22
	ldr	x0, [sp, #8]
	bl	_archive_entry_mode
	cmp	w24, w0
	cset	w0, eq
	bl	_assert
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_failure
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
	mov	x1, x0
	add	x0, sp, #16
	bl	_assertEqualString
	add	x1, sp, #8
	mov	x0, x21
	bl	_archive_read_next_header
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	ldr	w8, [x25]
	orr	w22, w8, w22
	ldr	x0, [sp, #8]
	bl	_archive_entry_mode
	cmp	w22, w0
	cset	w0, eq
	bl	_assert
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
	mov	x1, x0
	add	x0, sp, #16
	bl	_assertEqualString
LBB0_17:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_failure
	add	x1, sp, #8
	mov	x0, x21
	bl	_archive_read_next_header
	mov	x1, x0
	mov	w0, #1
	bl	_assertEqualInt
	ldr	w19, [x23]
	mov	x0, x21
	bl	_archive_read_close
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_assertEqualIntA
	ldr	w19, [x23]
	mov	x0, x21
	bl	_archive_read_free
	mov	x1, x0
	mov	x0, x19
	bl	_assertEqualInt
	ldur	x8, [x29, #-96]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #832
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dlen=%d, flen=%d"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
l_.str.1:                               ; @.str.1
	.asciz	"/"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
l_.str.2:                               ; @.str.2
	.asciz	"This fails if entries were written that should not have been written.  dlen=%d, flen=%d"

	.no_dead_strip	_test_filename
.subsections_via_symbols
