	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unpack_test
_unpack_test:                           ## @unpack_test
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$509, %esi                      ## imm = 0x1FD
	callq	_assertMakeDir
	movq	%rbx, %rdi
	callq	_assertChdir
	movq	%rbx, %rdi
	callq	_extract_reference_file
	movq	_testprog@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_systemf
	movl	%eax, %r12d
	movslq	(%r13), %rsi
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_failure
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_assertEqualInt
	xorl	%eax, %eax
	callq	_canSymlink
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movslq	(%r13), %rsi
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_failure
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_assertTextFileContents
LBB0_2:
	leaq	L_.str.3(%rip), %r14
	movq	%r14, %rdi
	movl	$420, %esi                      ## imm = 0x1A4
	callq	_assertIsReg
	leaq	L_.str.4(%rip), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_failure
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_assertFileSize
	leaq	L_.str.5(%rip), %r15
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_assertFileSize
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_failure
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_assertFileNLinks
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_failure
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_assertIsHardlink
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_assertFileSize
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_assertFileSize
	xorl	%eax, %eax
	callq	_canSymlink
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.6(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	callq	_assertIsSymlink
LBB0_4:
	leaq	L_.str.7(%rip), %rdi
	movl	$509, %esi                      ## imm = 0x1FD
	callq	_assertIsDir
	leaq	L_.str.8(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assertChdir                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s -i %s < %s >unpack.out 2>unpack.err"

	.comm	_testprog,4,2                   ## @testprog
L_.str.1:                               ## @.str.1
	.asciz	"Error invoking %s -i %s < %s"

L_.str.2:                               ## @.str.2
	.asciz	"unpack.err"

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

L_.str.4:                               ## @.str.4
	.asciz	"%s"

L_.str.5:                               ## @.str.5
	.asciz	"linkfile"

L_.str.6:                               ## @.str.6
	.asciz	"symlink"

L_.str.7:                               ## @.str.7
	.asciz	"dir"

L_.str.8:                               ## @.str.8
	.asciz	".."

	.no_dead_strip	_unpack_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unpack_test
_unpack_test:                           ; @unpack_test
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w1, #509
	bl	_assertMakeDir
	mov	x0, x19
	bl	_assertChdir
	mov	x0, x19
	bl	_extract_reference_file
Lloh0:
	adrp	x23, _testprog@GOTPAGE
Lloh1:
	ldr	x23, [x23, _testprog@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_systemf
	mov	x22, x0
	ldrsw	x1, [x23]
	stp	x21, x19, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_failure
	mov	x0, x22
	mov	w1, #0
	bl	_assertEqualInt
	bl	_canSymlink
	cbz	x0, LBB0_2
; %bb.1:
	ldrsw	x1, [x23]
	stp	x21, x19, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_failure
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_assertTextFileContents
LBB0_2:
Lloh10:
	adrp	x20, l_.str.3@PAGE
Lloh11:
	add	x20, x20, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w1, #420
	bl	_assertIsReg
Lloh12:
	adrp	x21, l_.str.4@PAGE
Lloh13:
	add	x21, x21, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	bl	_failure
	mov	x0, x20
	mov	w1, #10
	bl	_assertFileSize
Lloh14:
	adrp	x22, l_.str.5@PAGE
Lloh15:
	add	x22, x22, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	w1, #10
	bl	_assertFileSize
	mov	x0, x21
	mov	x1, x19
	bl	_failure
	mov	x0, x20
	mov	w1, #2
	bl	_assertFileNLinks
	mov	x0, x21
	mov	x1, x19
	bl	_failure
	mov	x0, x22
	mov	x1, x20
	bl	_assertIsHardlink
	mov	x0, x20
	mov	w1, #10
	bl	_assertFileSize
	mov	x0, x22
	mov	w1, #10
	bl	_assertFileSize
	bl	_canSymlink
	cbz	x0, LBB0_4
; %bb.3:
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #0
	bl	_assertIsSymlink
LBB0_4:
Lloh20:
	adrp	x0, l_.str.7@PAGE
Lloh21:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	w1, #509
	bl	_assertIsDir
Lloh22:
	adrp	x0, l_.str.8@PAGE
Lloh23:
	add	x0, x0, l_.str.8@PAGEOFF
	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
	b	_assertChdir
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s -i %s < %s >unpack.out 2>unpack.err"

	.comm	_testprog,4,2                   ; @testprog
l_.str.1:                               ; @.str.1
	.asciz	"Error invoking %s -i %s < %s"

l_.str.2:                               ; @.str.2
	.asciz	"unpack.err"

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

l_.str.4:                               ; @.str.4
	.asciz	"%s"

l_.str.5:                               ; @.str.5
	.asciz	"linkfile"

l_.str.6:                               ; @.str.6
	.asciz	"symlink"

l_.str.7:                               ; @.str.7
	.asciz	"dir"

l_.str.8:                               ; @.str.8
	.asciz	".."

	.no_dead_strip	_unpack_test
.subsections_via_symbols
