	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_symlink
_test_symlink:                          ## @test_symlink
	.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	$24, %rsp
	.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
	callq	_extract_reference_file
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_slurpfile
	movq	%rax, %r12
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	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), %r14
	movl	(%r14), %r15d
	movq	%rbx, %rdi
	callq	_archive_read_support_format_zip
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r14), %r15d
	movq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	_read_open_memory_seek
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r14), %r12d
	leaq	-48(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_archive_read_next_header
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	L_.str.1(%rip), %r12
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	_AE_IFREG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-48(%rbp), %rdi
	callq	_archive_entry_filetype
	movl	%r13d, %edi
	movl	%eax, %esi
	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	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_assertEqualIntA
	movl	(%r14), %r13d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_archive_read_next_header
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	_AE_IFLNK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-48(%rbp), %rdi
	callq	_archive_entry_filetype
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-48(%rbp), %rdi
	callq	_archive_entry_size
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-48(%rbp), %rdi
	callq	_archive_entry_symlink
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	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	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_assertEqualIntA
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_archive_read_next_header
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r14), %r15d
	movq	%rbx, %rdi
	callq	_archive_read_close
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r14), %r15d
	movq	%rbx, %rdi
	callq	_archive_read_free
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_read_format_zip_symlink.zip"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
L_.str.1:                               ## @.str.1
	.asciz	"file"

	.comm	_AE_IFREG,4,2                   ## @AE_IFREG
L_.str.2:                               ## @.str.2
	.asciz	"symlink"

	.comm	_AE_IFLNK,4,2                   ## @AE_IFLNK
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.no_dead_strip	_test_symlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_symlink
_test_symlink:                          ; @test_symlink
	.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
	bl	_extract_reference_file
	add	x0, sp, #8
	mov	x1, x19
	bl	_slurpfile
	mov	x19, x0
	bl	_archive_read_new
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh2:
	adrp	x23, _ARCHIVE_OK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w21, [x23]
	mov	x0, x20
	bl	_archive_read_support_format_zip
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x23]
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	bl	_read_open_memory_seek
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x23]
	mov	x1, sp
	mov	x0, x20
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	x0, [sp]
	bl	_archive_entry_pathname
	mov	x1, x0
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_assertEqualString
Lloh6:
	adrp	x8, _AE_IFREG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_IFREG@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	ldr	x0, [sp]
	bl	_archive_entry_filetype
	mov	x1, x0
	mov	x0, x22
	bl	_assertEqualInt
	ldr	x0, [sp]
	bl	_archive_entry_is_encrypted
	mov	w1, #0
	bl	_assertEqualInt
	mov	x0, x20
	bl	_archive_read_has_encrypted_entries
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_assertEqualIntA
	ldr	w22, [x23]
	mov	x1, sp
	mov	x0, x20
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_assertEqualIntA
	ldr	x0, [sp]
	bl	_archive_entry_pathname
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_assertEqualString
Lloh11:
	adrp	x8, _AE_IFLNK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AE_IFLNK@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	ldr	x0, [sp]
	bl	_archive_entry_filetype
	mov	x1, x0
	mov	x0, x22
	bl	_assertEqualInt
	ldr	x0, [sp]
	bl	_archive_entry_size
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	ldr	x0, [sp]
	bl	_archive_entry_symlink
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualString
	ldr	x0, [sp]
	bl	_archive_entry_is_encrypted
	mov	w1, #0
	bl	_assertEqualInt
	mov	x0, x20
	bl	_archive_read_has_encrypted_entries
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_assertEqualIntA
Lloh14:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	mov	x1, sp
	mov	x0, x20
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x23]
	mov	x0, x20
	bl	_archive_read_close
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x23]
	mov	x0, x20
	bl	_archive_read_free
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	mov	x0, x19
	bl	_free
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_read_format_zip_symlink.zip"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
l_.str.1:                               ; @.str.1
	.asciz	"file"

	.comm	_AE_IFREG,4,2                   ; @AE_IFREG
l_.str.2:                               ; @.str.2
	.asciz	"symlink"

	.comm	_AE_IFLNK,4,2                   ; @AE_IFLNK
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.no_dead_strip	_test_symlink
.subsections_via_symbols
