	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_plain_header
_test_plain_header:                     ## @test_plain_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	$152, %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)
	callq	_extract_reference_file
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	movq	%r12, %rdi
	callq	_archive_read_support_filter_all
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %r15d
	movq	%r12, %rdi
	callq	_archive_read_support_format_all
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %r15d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$10240, %edx                    ## imm = 0x2800
	callq	_archive_read_open_filename
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %r15d
	leaq	-184(%rbp), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_archive_read_next_header
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	_AE_IFREG@GOTPCREL(%rip), %rax
	movl	$420, %ebx                      ## imm = 0x1A4
	orl	(%rax), %ebx
	movq	-184(%rbp), %rdi
	callq	_archive_entry_mode
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-184(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	-184(%rbp), %rdi
	callq	_archive_entry_mtime
	movl	$1322058763, %edi               ## imm = 0x4ECD040B
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-184(%rbp), %rdi
	callq	_archive_entry_size
	movl	$2844, %edi                     ## imm = 0xB1C
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-184(%rbp), %rdi
	callq	_archive_entry_is_encrypted
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_assertEqualInt
	movq	%r12, %rdi
	callq	_archive_read_has_encrypted_entries
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_assertEqualIntA
	leaq	-176(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$128, %edx
	callq	_archive_read_data
	movl	$128, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$28, %edx
	callq	_assertEqualMem
	movq	%r12, %rdi
	callq	_archive_file_count
	movl	$1, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_archive_read_next_header
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	_ARCHIVE_FILTER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_archive_filter_code
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	_ARCHIVE_FORMAT_7ZIP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_archive_format
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %ebx
	movq	%r12, %rdi
	callq	_archive_read_close
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movl	(%r13), %ebx
	movq	%r12, %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_2
## %bb.1:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_AE_IFREG,4,2                   ## @AE_IFREG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file1"

L_.str.1:                               ## @.str.1
	.asciz	"The libarchive distribution "

	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.comm	_ARCHIVE_FILTER_NONE,4,2        ## @ARCHIVE_FILTER_NONE
	.comm	_ARCHIVE_FORMAT_7ZIP,4,2        ## @ARCHIVE_FORMAT_7ZIP
	.no_dead_strip	_test_plain_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_plain_header
_test_plain_header:                     ; @test_plain_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	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
	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, #-40]
	bl	_extract_reference_file
	bl	_archive_read_new
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh3:
	adrp	x22, _ARCHIVE_OK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x19
	bl	_archive_read_support_filter_all
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x22]
	mov	x0, x19
	bl	_archive_read_support_format_all
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #10240
	bl	_archive_read_open_filename
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w20, [x22]
	mov	x1, sp
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
Lloh5:
	adrp	x8, _AE_IFREG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AE_IFREG@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	w9, #420
	orr	w20, w8, w9
	ldr	x0, [sp]
	bl	_archive_entry_mode
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualInt
	ldr	x0, [sp]
	bl	_archive_entry_pathname
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_assertEqualString
	ldr	x0, [sp]
	bl	_archive_entry_mtime
	mov	x1, x0
	mov	w0, #1035
	movk	w0, #20173, lsl #16
	bl	_assertEqualInt
	ldr	x0, [sp]
	bl	_archive_entry_size
	mov	x1, x0
	mov	w0, #2844
	bl	_assertEqualInt
	ldr	x0, [sp]
	bl	_archive_entry_is_encrypted
	mov	w1, #0
	bl	_assertEqualInt
	mov	x0, x19
	bl	_archive_read_has_encrypted_entries
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_assertEqualIntA
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #128
	bl	_archive_read_data
	mov	x1, x0
	mov	w0, #128
	bl	_assertEqualInt
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w2, #28
	bl	_assertEqualMem
	mov	x0, x19
	bl	_archive_file_count
	mov	x1, x0
	mov	w0, #1
	bl	_assertEqualInt
Lloh12:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	mov	x1, sp
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
Lloh15:
	adrp	x8, _ARCHIVE_FILTER_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ARCHIVE_FILTER_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_archive_filter_code
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
Lloh18:
	adrp	x8, _ARCHIVE_FORMAT_7ZIP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ARCHIVE_FORMAT_7ZIP@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_archive_format
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	w20, [x22]
	mov	x0, x19
	bl	_archive_read_close
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualInt
	ldr	w20, [x22]
	mov	x0, x19
	bl	_archive_read_free
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualInt
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	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
	add	sp, sp, #192
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_AE_IFREG,4,2                   ; @AE_IFREG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file1"

l_.str.1:                               ; @.str.1
	.asciz	"The libarchive distribution "

	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.comm	_ARCHIVE_FILTER_NONE,4,2        ; @ARCHIVE_FILTER_NONE
	.comm	_ARCHIVE_FORMAT_7ZIP,4,2        ; @ARCHIVE_FORMAT_7ZIP
	.no_dead_strip	_test_plain_header
.subsections_via_symbols
