	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_copy
_test_copy:                             ## @test_copy
	.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
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_extract_reference_file
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	movq	%r13, %rdi
	callq	_archive_read_support_filter_all
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%rbx), %r15d
	movq	%r13, %rdi
	callq	_archive_read_support_format_all
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	movl	%eax, %r14d
	movl	(%rbx), %r15d
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$10240, %edx                    ## imm = 0x2800
	callq	_archive_read_open_fd
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	jmp	LBB0_3
LBB0_2:
	movl	(%rbx), %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$10240, %edx                    ## imm = 0x2800
	callq	_archive_read_open_filename
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	$-1, %r14d
LBB0_3:
	movl	(%rbx), %r12d
	leaq	-184(%rbp), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_archive_read_next_header
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	_AE_IFREG@GOTPCREL(%rip), %rax
	movq	%rbx, %r12
	movl	$438, %ebx                      ## imm = 0x1B6
	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.1(%rip), %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	-184(%rbp), %rdi
	callq	_archive_entry_mtime
	movl	$86401, %edi                    ## imm = 0x15181
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-184(%rbp), %rdi
	callq	_archive_entry_size
	movl	$60, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-184(%rbp), %rdi
	callq	_archive_entry_is_encrypted
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_assertEqualInt
	movq	%r13, %rdi
	callq	_archive_read_has_encrypted_entries
	movq	_ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_assert
	leaq	-176(%rbp), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$128, %edx
	callq	_archive_read_data
	movl	$60, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_assertEqualMem
	movq	%r13, %rdi
	callq	_archive_file_count
	movl	$1, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_archive_read_next_header
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	_ARCHIVE_FILTER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_archive_filter_code
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	_ARCHIVE_FORMAT_7ZIP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_archive_format
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r12), %ebx
	movq	%r13, %rdi
	callq	_archive_read_close
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movl	(%r12), %ebx
	movq	%r13, %rdi
	callq	_archive_read_free
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	cmpl	$-1, %r14d
	je	LBB0_5
## %bb.4:
	movl	%r14d, %edi
	callq	_close
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_read_format_7zip_copy.7z"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_AE_IFREG,4,2                   ## @AE_IFREG
L_.str.1:                               ## @.str.1
	.asciz	"file1"

	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED,8,3 ## @ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED
L_.str.2:                               ## @.str.2
	.asciz	"    "

	.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_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_copy
_test_copy:                             ; @test_copy
	.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]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_extract_reference_file
	bl	_archive_read_new
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh5:
	adrp	x22, _ARCHIVE_OK@GOTPAGE
Lloh6:
	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
	cbz	w20, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _O_BINARY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _O_BINARY@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	mov	x20, x0
	ldr	w21, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #10240
	bl	_archive_read_open_fd
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_assertEqualIntA
	b	LBB0_3
LBB0_2:
	ldr	w20, [x22]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #10240
	bl	_archive_read_open_filename
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	mov	w20, #-1
LBB0_3:
	ldr	w21, [x22]
	mov	x1, sp
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_assertEqualIntA
Lloh17:
	adrp	x8, _AE_IFREG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AE_IFREG@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mov	w9, #438
	orr	w21, w8, w9
	ldr	x0, [sp]
	bl	_archive_entry_mode
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualInt
	ldr	x0, [sp]
	bl	_archive_entry_pathname
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_assertEqualString
	ldr	x0, [sp]
	bl	_archive_entry_mtime
	mov	x1, x0
	mov	w0, #20865
	movk	w0, #1, lsl #16
	bl	_assertEqualInt
	ldr	x0, [sp]
	bl	_archive_entry_size
	mov	x1, x0
	mov	w0, #60
	bl	_assertEqualInt
	ldr	x0, [sp]
	bl	_archive_entry_is_encrypted
	mov	w1, #0
	bl	_assertEqualInt
	mov	x0, x19
	bl	_archive_read_has_encrypted_entries
Lloh22:
	adrp	x8, _ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, gt
	bl	_assert
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #128
	bl	_archive_read_data
	mov	x1, x0
	mov	w0, #60
	bl	_assertEqualInt
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w2, #4
	bl	_assertEqualMem
	mov	x0, x19
	bl	_archive_file_count
	mov	x1, x0
	mov	w0, #1
	bl	_assertEqualInt
Lloh27:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
Lloh29:
	ldr	w21, [x8]
	mov	x1, sp
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_assertEqualIntA
Lloh30:
	adrp	x8, _ARCHIVE_FILTER_NONE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ARCHIVE_FILTER_NONE@GOTPAGEOFF]
Lloh32:
	ldr	w21, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_archive_filter_code
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_assertEqualIntA
Lloh33:
	adrp	x8, _ARCHIVE_FORMAT_7ZIP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ARCHIVE_FORMAT_7ZIP@GOTPAGEOFF]
Lloh35:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_archive_format
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x22]
	mov	x0, x19
	bl	_archive_read_close
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualInt
	ldr	w21, [x22]
	mov	x0, x19
	bl	_archive_read_free
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualInt
	cmn	w20, #1
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_close
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_read_format_7zip_copy.7z"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_AE_IFREG,4,2                   ; @AE_IFREG
l_.str.1:                               ; @.str.1
	.asciz	"file1"

	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED,8,3 ; @ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED
l_.str.2:                               ; @.str.2
	.asciz	"    "

	.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_copy
.subsections_via_symbols
