	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_linkify_tar
_test_linkify_tar:                      ## @test_linkify_tar
	.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
	xorl	%eax, %eax
	callq	_archive_entry_linkresolver_new
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_ARCHIVE_FORMAT_TAR_USTAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_archive_entry_linkresolver_set_strategy
	xorl	%eax, %eax
	callq	_archive_entry_new
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	leaq	L_.str(%rip), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_archive_entry_set_pathname
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_archive_entry_set_ino
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_archive_entry_set_dev
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_archive_entry_set_nlink
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_archive_entry_set_size
	leaq	-48(%rbp), %r14
	leaq	-56(%rbp), %r15
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_archive_entry_linkify
	xorl	%edi, %edi
	cmpq	$0, -56(%rbp)
	sete	%dil
	callq	_assert
	movq	-48(%rbp), %rdi
	callq	_archive_entry_size
	movl	$10, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	-48(%rbp), %rdi
	leaq	L_.str.1(%rip), %r12
	movq	%r12, %rsi
	callq	_archive_entry_set_pathname
	movq	-48(%rbp), %rdi
	movl	$2, %esi
	callq	_archive_entry_set_nlink
	movq	-48(%rbp), %rdi
	movl	$2, %esi
	callq	_archive_entry_set_ino
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_archive_entry_linkify
	xorl	%edi, %edi
	cmpq	$0, -56(%rbp)
	sete	%dil
	callq	_assert
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	-48(%rbp), %rdi
	callq	_archive_entry_hardlink
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	-48(%rbp), %rdi
	callq	_archive_entry_size
	movl	$10, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_archive_entry_linkify
	xorl	%edi, %edi
	cmpq	$0, -56(%rbp)
	sete	%dil
	callq	_assert
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	-48(%rbp), %rdi
	callq	_archive_entry_hardlink
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	-48(%rbp), %rdi
	callq	_archive_entry_size
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-48(%rbp), %rdi
	leaq	L_.str.2(%rip), %r12
	movq	%r12, %rsi
	callq	_archive_entry_set_pathname
	movq	-48(%rbp), %rdi
	movl	$2, %esi
	callq	_archive_entry_set_nlink
	movq	-48(%rbp), %rdi
	movq	_AE_IFDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_archive_entry_set_filetype
	movq	-48(%rbp), %rdi
	movl	$3, %esi
	callq	_archive_entry_set_ino
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_archive_entry_set_hardlink
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_archive_entry_linkify
	xorl	%edi, %edi
	cmpq	$0, -56(%rbp)
	sete	%dil
	callq	_assert
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	-48(%rbp), %rdi
	callq	_archive_entry_hardlink
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_archive_entry_linkify
	xorl	%edi, %edi
	cmpq	$0, -56(%rbp)
	sete	%dil
	callq	_assert
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	-48(%rbp), %rdi
	callq	_archive_entry_hardlink
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	-48(%rbp), %rdi
	callq	_archive_entry_free
	movq	%r13, %rdi
	callq	_archive_entry_linkresolver_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_FORMAT_TAR_USTAR,4,2   ## @ARCHIVE_FORMAT_TAR_USTAR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test1"

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

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

	.comm	_AE_IFDIR,4,2                   ## @AE_IFDIR
	.no_dead_strip	_test_linkify_tar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_linkify_tar
_test_linkify_tar:                      ; @test_linkify_tar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_archive_entry_linkresolver_new
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x8, _ARCHIVE_FORMAT_TAR_USTAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_FORMAT_TAR_USTAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_entry_linkresolver_set_strategy
	bl	_archive_entry_new
	mov	x21, x0
	str	x0, [sp, #8]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_archive_entry_set_pathname
	mov	x0, x21
	mov	w1, #1
	bl	_archive_entry_set_ino
	mov	x0, x21
	mov	w1, #2
	bl	_archive_entry_set_dev
	mov	x0, x21
	mov	w1, #1
	bl	_archive_entry_set_nlink
	mov	x0, x21
	mov	w1, #10
	bl	_archive_entry_set_size
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_archive_entry_linkify
	ldr	x8, [sp]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x0, [sp, #8]
	bl	_archive_entry_size
	mov	x1, x0
	mov	w0, #10
	bl	_assertEqualInt
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
	ldr	x0, [sp, #8]
Lloh5:
	adrp	x20, l_.str.1@PAGE
Lloh6:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_archive_entry_set_pathname
	ldr	x0, [sp, #8]
	mov	w1, #2
	bl	_archive_entry_set_nlink
	ldr	x0, [sp, #8]
	mov	w1, #2
	bl	_archive_entry_set_ino
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_archive_entry_linkify
	ldr	x8, [sp]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
	ldr	x0, [sp, #8]
	bl	_archive_entry_hardlink
	mov	x1, x0
	mov	x0, #0
	bl	_assertEqualString
	ldr	x0, [sp, #8]
	bl	_archive_entry_size
	mov	x1, x0
	mov	w0, #10
	bl	_assertEqualInt
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_archive_entry_linkify
	ldr	x8, [sp]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
	ldr	x0, [sp, #8]
	bl	_archive_entry_hardlink
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
	ldr	x0, [sp, #8]
	bl	_archive_entry_size
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	ldr	x0, [sp, #8]
Lloh7:
	adrp	x20, l_.str.2@PAGE
Lloh8:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_archive_entry_set_pathname
	ldr	x0, [sp, #8]
	mov	w1, #2
	bl	_archive_entry_set_nlink
	ldr	x0, [sp, #8]
Lloh9:
	adrp	x8, _AE_IFDIR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_IFDIR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_archive_entry_set_filetype
	ldr	x0, [sp, #8]
	mov	w1, #3
	bl	_archive_entry_set_ino
	ldr	x0, [sp, #8]
	mov	x1, #0
	bl	_archive_entry_set_hardlink
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_archive_entry_linkify
	ldr	x8, [sp]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
	ldr	x0, [sp, #8]
	bl	_archive_entry_hardlink
	mov	x1, x0
	mov	x0, #0
	bl	_assertEqualString
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_archive_entry_linkify
	ldr	x8, [sp]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
	ldr	x0, [sp, #8]
	bl	_archive_entry_hardlink
	mov	x1, x0
	mov	x0, #0
	bl	_assertEqualString
	ldr	x0, [sp, #8]
	bl	_archive_entry_free
	mov	x0, x19
	bl	_archive_entry_linkresolver_free
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_FORMAT_TAR_USTAR,4,2   ; @ARCHIVE_FORMAT_TAR_USTAR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test1"

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

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

	.comm	_AE_IFDIR,4,2                   ; @AE_IFDIR
	.no_dead_strip	_test_linkify_tar
.subsections_via_symbols
