	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_read_format_mtree3
_test_read_format_mtree3:               ## @test_read_format_mtree3
	.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
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_assertMakeDir
	movq	%rbx, %rdi
	callq	_assertChdir
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	$420, %esi                      ## imm = 0x1A4
	callq	_assertMakeFile
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	%rbx, %rdi
	callq	_archive_read_support_filter_all
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r12), %r14d
	movq	%rbx, %rdi
	callq	_archive_read_support_format_all
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r12), %r14d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_archive_read_set_options
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r12), %r14d
	leaq	_test_read_format_mtree3.archive(%rip), %rsi
	movq	%rbx, %rdi
	movl	$79, %edx
	callq	_archive_read_open_memory
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r12), %r15d
	leaq	-48(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_archive_read_next_header
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	callq	_assertEqualString
	movq	-48(%rbp), %rdi
	callq	_archive_entry_filetype
	movq	_AE_IFREG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_assertEqualInt
	movq	-48(%rbp), %rdi
	callq	_archive_entry_is_encrypted
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_assertEqualInt
	movq	%rbx, %rdi
	callq	_archive_read_has_encrypted_entries
	movq	_ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_assertEqualIntA
	movl	(%r12), %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_archive_read_next_header
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edi
	callq	_assertEqualString
	movq	-48(%rbp), %rdi
	callq	_archive_entry_filetype
	movq	_AE_IFLNK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_assertEqualInt
	movq	-48(%rbp), %rdi
	callq	_archive_entry_is_encrypted
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_assertEqualInt
	movq	%rbx, %rdi
	callq	_archive_read_has_encrypted_entries
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_assertEqualIntA
	movl	(%r12), %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_archive_read_next_header
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %edi
	callq	_assertEqualString
	movq	-48(%rbp), %rdi
	callq	_archive_entry_filetype
	movq	_AE_IFREG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_assertEqualInt
	movq	-48(%rbp), %rdi
	callq	_archive_entry_is_encrypted
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_assertEqualInt
	movq	%rbx, %rdi
	callq	_archive_read_has_encrypted_entries
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_assertEqualIntA
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_archive_read_next_header
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%rbx, %rdi
	callq	_archive_file_count
	movl	$3, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movl	(%r12), %r14d
	movq	%rbx, %rdi
	callq	_archive_read_close
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movl	(%r12), %r14d
	movq	%rbx, %rdi
	callq	_archive_read_free
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	leaq	L_.str.7(%rip), %rdi
	callq	_assertChdir
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @test_read_format_mtree3.archive
_test_read_format_mtree3.archive:
	.asciz	"#mtree\na type=file contents=file\nb type=link link=a\nc type=file contents=file\n"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mtree3"

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

L_.str.2:                               ## @.str.2
	.asciz	"file contents"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
L_.str.3:                               ## @.str.3
	.asciz	"mtree:checkfs"

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

	.comm	_AE_IFREG,4,2                   ## @AE_IFREG
	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED,4,2 ## @ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED
L_.str.5:                               ## @.str.5
	.asciz	"b"

	.comm	_AE_IFLNK,4,2                   ## @AE_IFLNK
L_.str.6:                               ## @.str.6
	.asciz	"c"

	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
L_.str.7:                               ## @.str.7
	.asciz	".."

	.no_dead_strip	_test_read_format_mtree3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_read_format_mtree3
_test_read_format_mtree3:               ; @test_read_format_mtree3
	.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
Lloh0:
	adrp	x19, l_.str@PAGE
Lloh1:
	add	x19, x19, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #511
	bl	_assertMakeDir
	mov	x0, x19
	bl	_assertChdir
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #420
	bl	_assertMakeFile
	bl	_archive_read_new
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh6:
	adrp	x21, _ARCHIVE_OK@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w20, [x21]
	mov	x0, x19
	bl	_archive_read_support_filter_all
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	w20, [x21]
	mov	x0, x19
	bl	_archive_read_support_format_all
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	w20, [x21]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_archive_read_set_options
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	w20, [x21]
Lloh10:
	adrp	x1, _test_read_format_mtree3.archive@PAGE
Lloh11:
	add	x1, x1, _test_read_format_mtree3.archive@PAGEOFF
	mov	x0, x19
	mov	w2, #79
	bl	_archive_read_open_memory
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	w20, [x21]
	add	x1, sp, #8
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_assertEqualString
	ldr	x0, [sp, #8]
	bl	_archive_entry_filetype
Lloh14:
	adrp	x22, _AE_IFREG@GOTPAGE
Lloh15:
	ldr	x22, [x22, _AE_IFREG@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_assertEqualInt
	ldr	x0, [sp, #8]
	bl	_archive_entry_is_encrypted
	mov	w1, #0
	bl	_assertEqualInt
	mov	x0, x19
	bl	_archive_read_has_encrypted_entries
	mov	x1, x0
Lloh16:
	adrp	x23, _ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED@GOTPAGE
Lloh17:
	ldr	x23, [x23, _ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_assertEqualIntA
	ldr	w20, [x21]
	add	x1, sp, #8
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_assertEqualString
	ldr	x0, [sp, #8]
	bl	_archive_entry_filetype
Lloh20:
	adrp	x8, _AE_IFLNK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AE_IFLNK@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_assertEqualInt
	ldr	x0, [sp, #8]
	bl	_archive_entry_is_encrypted
	mov	w1, #0
	bl	_assertEqualInt
	mov	x0, x19
	bl	_archive_read_has_encrypted_entries
	mov	x1, x0
	ldr	w2, [x23]
	mov	x0, x19
	bl	_assertEqualIntA
	ldr	w20, [x21]
	add	x1, sp, #8
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_assertEqualString
	ldr	x0, [sp, #8]
	bl	_archive_entry_filetype
	ldr	w1, [x22]
	bl	_assertEqualInt
	ldr	x0, [sp, #8]
	bl	_archive_entry_is_encrypted
	mov	w1, #0
	bl	_assertEqualInt
	mov	x0, x19
	bl	_archive_read_has_encrypted_entries
	mov	x1, x0
	ldr	w2, [x23]
	mov	x0, x19
	bl	_assertEqualIntA
Lloh25:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	mov	x0, x19
	bl	_archive_file_count
	mov	x1, x0
	mov	w0, #3
	bl	_assertEqualInt
	ldr	w20, [x21]
	mov	x0, x19
	bl	_archive_read_close
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualInt
	ldr	w20, [x21]
	mov	x0, x19
	bl	_archive_read_free
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualInt
Lloh28:
	adrp	x0, l_.str.7@PAGE
Lloh29:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_assertChdir
	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	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_test_read_format_mtree3.archive:       ; @test_read_format_mtree3.archive
	.asciz	"#mtree\na type=file contents=file\nb type=link link=a\nc type=file contents=file\n"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mtree3"

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

l_.str.2:                               ; @.str.2
	.asciz	"file contents"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
l_.str.3:                               ; @.str.3
	.asciz	"mtree:checkfs"

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

	.comm	_AE_IFREG,4,2                   ; @AE_IFREG
	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED,4,2 ; @ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED
l_.str.5:                               ; @.str.5
	.asciz	"b"

	.comm	_AE_IFLNK,4,2                   ; @AE_IFLNK
l_.str.6:                               ; @.str.6
	.asciz	"c"

	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
l_.str.7:                               ; @.str.7
	.asciz	".."

	.no_dead_strip	_test_read_format_mtree3
.subsections_via_symbols
