	.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	$9016, %eax                     ## imm = 0x2338
	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, %r12d
	movl	%esi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rsi
	leaq	-8640(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strcpy
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	leaq	(%rax,%rbp), %rbx
	addq	$-8640, %rbx                    ## imm = 0xDE40
	testl	%r13d, %r13d
	jle	LBB0_5
LBB0_4:
	movl	%r13d, %edx
	movq	%rbx, %rdi
	movl	$97, %esi
	callq	_memset
	leal	-1(%r13), %eax
	movb	$47, 1(%rbx,%rax)
	addq	%rax, %rbx
	addq	$2, %rbx
LBB0_5:
	testl	%r12d, %r12d
	jle	LBB0_7
## %bb.6:
	movl	%r12d, %edx
	movq	%rbx, %rdi
	movl	$98, %esi
	callq	_memset
	leal	-1(%r12), %eax
	addq	%rax, %rbx
	incq	%rbx
LBB0_7:
	movb	$0, (%rbx)
	leaq	-9040(%rbp), %rdi
	leaq	-8640(%rbp), %r14
	movq	%r14, %rsi
	callq	_strcpy
	xorl	%eax, %eax
	callq	_archive_write_new
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_archive_write_set_format_pax_restricted
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	%r15, %rdi
	callq	_archive_write_add_filter_none
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	%r15, %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	-9056(%rbp), %rcx
	movq	%r15, %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, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_archive_entry_copy_pathname
	movq	_S_IFREG@GOTPCREL(%rip), %rcx
	movl	$493, %eax                      ## imm = 0x1ED
	movl	(%rcx), %esi
	orl	%eax, %esi
	movq	%rbx, %rdi
	callq	_archive_entry_set_mode
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_failure
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_archive_write_header
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	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	%r12, %r14
	leaq	-9040(%rbp), %r12
	movq	%r12, %rsi
	callq	_archive_entry_copy_pathname
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$493, %eax                      ## imm = 0x1ED
	orl	%eax, %esi
	movq	%rbx, %rdi
	callq	_archive_entry_set_mode
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_failure
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_archive_write_header
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	%rbx, %rdi
	callq	_archive_entry_free
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %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	%r12, %rsi
	callq	_archive_entry_copy_pathname
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$493, %eax                      ## imm = 0x1ED
	orl	%eax, %esi
	movq	%rbx, %rdi
	callq	_archive_entry_set_mode
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_failure
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_archive_write_header
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	%rbx, %rdi
	callq	_archive_entry_free
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_archive_write_close
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r14), %ebx
	movq	%r15, %rdi
	callq	_archive_write_free
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_archive_read_support_format_all
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	%r15, %rdi
	callq	_archive_read_support_filter_all
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	movq	-9056(%rbp), %rdx
	movq	%r15, %rdi
	leaq	-8240(%rbp), %rsi
	callq	_archive_read_open_memory
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assertA
	leaq	-9048(%rbp), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_archive_read_next_header
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assertA
	movq	-9048(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	-8640(%rbp), %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$493, %r14d                     ## imm = 0x1ED
	orl	%r14d, %ebx
	movq	-9048(%rbp), %rdi
	callq	_archive_entry_mode
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_archive_read_next_header
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assertA
	movq	-9048(%rbp), %rdi
	callq	_archive_entry_pathname
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	_S_IFDIR@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	orl	%r14d, %ebx
	movq	-9048(%rbp), %rdi
	callq	_archive_entry_mode
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	leaq	-9048(%rbp), %r14
	movq	%r14, %rsi
	callq	_archive_read_next_header
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assertA
	movq	-9048(%rbp), %rdi
	callq	_archive_entry_pathname
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movl	$493, %ebx                      ## imm = 0x1ED
	orl	(%r13), %ebx
	movq	-9048(%rbp), %rdi
	callq	_archive_entry_mode
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_archive_read_next_header
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_assert
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r15, %rdi
	callq	_archive_read_close
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r14), %ebx
	movq	%r15, %rdi
	callq	_archive_read_free
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$9016, %rsp                     ## imm = 0x2338
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-8640(%rbp), %rbx
	testl	%r13d, %r13d
	jg	LBB0_4
	jmp	LBB0_5
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pathname %d/%d"

	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
L_.str.1:                               ## @.str.1
	.asciz	"Dirname %d/%d"

L_.str.2:                               ## @.str.2
	.asciz	"/"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.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, #-88]
	add	x21, sp, #424
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
	add	x0, sp, #424
	bl	_strcpy
	add	x0, sp, #424
	bl	_strlen
	add	x21, x21, w0, sxtw
LBB0_2:
	subs	w22, w20, #1
	b.lt	LBB0_4
; %bb.3:
	mov	w2, w20
	mov	x0, x21
	mov	w1, #97
	bl	_memset
	add	x8, x21, x22
	add	x21, x8, #2
	mov	w9, #47
	strb	w9, [x8, #1]
LBB0_4:
	subs	w22, w19, #1
	b.lt	LBB0_6
; %bb.5:
	mov	w2, w19
	mov	x0, x21
	mov	w1, #98
	bl	_memset
	add	x8, x22, x21
	add	x21, x8, #1
LBB0_6:
	strb	wzr, [x21]
	add	x0, sp, #24
	add	x1, sp, #424
	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_pax_restricted
	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, #824
	add	x3, sp, #8
	mov	x0, x21
	mov	w2, #8192
	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
	add	x1, sp, #424
	mov	x0, x22
	bl	_archive_entry_copy_pathname
Lloh5:
	adrp	x26, _S_IFREG@GOTPAGE
Lloh6:
	ldr	x26, [x26, _S_IFREG@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	w24, #493
	orr	w1, w8, w24
	mov	x0, x22
	bl	_archive_entry_set_mode
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_failure
	mov	x0, x21
	mov	x1, x22
	bl	_archive_write_header
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	mov	x0, x22
	bl	_archive_entry_free
	bl	_archive_entry_new
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	add	x1, sp, #24
	mov	x0, x22
	bl	_archive_entry_copy_pathname
Lloh9:
	adrp	x25, _S_IFDIR@GOTPAGE
Lloh10:
	ldr	x25, [x25, _S_IFDIR@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w1, w8, w24
	mov	x0, x22
	bl	_archive_entry_set_mode
Lloh11:
	adrp	x23, l_.str.1@PAGE
Lloh12:
	add	x23, x23, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_failure
	mov	x0, x21
	mov	x1, x22
	bl	_archive_write_header
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	mov	x0, x22
	bl	_archive_entry_free
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	bl	_strcat
	bl	_archive_entry_new
	mov	x22, x0
	str	x0, [sp, #16]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	add	x1, sp, #24
	mov	x0, x22
	bl	_archive_entry_copy_pathname
	ldr	w8, [x25]
	orr	w1, w8, w24
	mov	x0, x22
	bl	_archive_entry_set_mode
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_failure
	mov	x0, x21
	mov	x1, x22
	bl	_archive_write_header
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	mov	x0, x22
	bl	_archive_entry_free
Lloh15:
	adrp	x22, _ARCHIVE_OK@GOTPAGE
Lloh16:
	ldr	x22, [x22, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w19, [x22]
	mov	x0, x21
	bl	_archive_write_close
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_assertEqualIntA
	ldr	w19, [x22]
	mov	x0, x21
	bl	_archive_write_free
	mov	x1, x0
	mov	x0, x19
	bl	_assertEqualInt
	bl	_archive_read_new
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	bl	_archive_read_support_format_all
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	mov	x0, x19
	bl	_archive_read_support_filter_all
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	ldr	x2, [sp, #8]
	add	x1, sp, #824
	mov	x0, x19
	bl	_archive_read_open_memory
	cmp	x0, #0
	cset	w0, eq
	bl	_assertA
	add	x1, sp, #16
	mov	x0, x19
	bl	_archive_read_next_header
	cmp	w0, #0
	cset	w0, eq
	bl	_assertA
	ldr	x0, [sp, #16]
	bl	_archive_entry_pathname
	mov	x1, x0
	add	x0, sp, #424
	bl	_assertEqualString
	ldr	w8, [x26]
	orr	w20, w8, w24
	ldr	x0, [sp, #16]
	bl	_archive_entry_mode
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualInt
	add	x1, sp, #16
	mov	x0, x19
	bl	_archive_read_next_header
	cmp	w0, #0
	cset	w0, eq
	bl	_assertA
	ldr	x0, [sp, #16]
	bl	_archive_entry_pathname
	mov	x1, x0
	add	x0, sp, #24
	bl	_assertEqualString
	ldr	w8, [x25]
	orr	w20, w8, w24
	ldr	x0, [sp, #16]
	bl	_archive_entry_mode
	cmp	w20, w0
	cset	w0, eq
	bl	_assert
	add	x1, sp, #16
	mov	x0, x19
	bl	_archive_read_next_header
	cmp	w0, #0
	cset	w0, eq
	bl	_assertA
	ldr	x0, [sp, #16]
	bl	_archive_entry_pathname
	mov	x1, x0
	add	x0, sp, #24
	bl	_assertEqualString
	ldr	w8, [x25]
	orr	w20, w8, w24
	ldr	x0, [sp, #16]
	bl	_archive_entry_mode
	cmp	w20, w0
	cset	w0, eq
	bl	_assert
	add	x1, sp, #16
	mov	x0, x19
	bl	_archive_read_next_header
	cmp	w0, #1
	cset	w0, eq
	bl	_assert
	ldr	w20, [x22]
	mov	x0, x19
	bl	_archive_read_close
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	w20, [x22]
	mov	x0, x19
	bl	_archive_read_free
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualInt
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pathname %d/%d"

	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
l_.str.1:                               ; @.str.1
	.asciz	"Dirname %d/%d"

l_.str.2:                               ; @.str.2
	.asciz	"/"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_test_filename
.subsections_via_symbols
