	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_truncation
_test_truncation:                       ## @test_truncation
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$2000000, %edi                  ## imm = 0x1E8480
	callq	_malloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	testq	%rbx, %rbx
	je	LBB0_27
## %bb.1:
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_malloc
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	testq	%r12, %r12
	je	LBB0_2
## %bb.5:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	$10000, %edx                    ## imm = 0x2710
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	xorl	%eax, %eax
	callq	_archive_write_new
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	movq	%r14, %rdi
	callq	_archive_write_set_format_ustar
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%rbx), %r15d
	movq	%r14, %rdi
	callq	_archive_write_add_filter_compress
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	*-96(%rbp)                      ## 8-byte Folded Reload
	movl	(%rbx), %r14d
	testl	%r13d, %r13d
	jne	LBB0_9
## %bb.6:
	cmpl	%r14d, %eax
	je	LBB0_9
## %bb.7:
	leaq	L_.str(%rip), %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_skipping
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_archive_write_free
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.8:
	movq	%r12, %rdi
	jmp	LBB0_4
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.3:
	movq	%rbx, %rdi
LBB0_4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_9:
	testl	%r13d, %r13d
	setne	%cl
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	sete	%al
	andb	%cl, %al
	movb	%al, -96(%rbp)                  ## 1-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_archive_write_set_bytes_per_block
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-112(%rbp), %rcx
	movl	$2000000, %edx                  ## imm = 0x1E8480
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_archive_write_open_memory
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	xorl	%eax, %eax
	callq	_archive_entry_new
	movq	%rax, %r13
	movq	%rax, -104(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_AE_IFREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_archive_entry_set_filetype
	movl	$10000, %esi                    ## imm = 0x2710
	movq	%r13, %rdi
	callq	_archive_entry_set_size
	leaq	-64(%rbp), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	callq	_sprintf
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_archive_entry_copy_pathname
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_failure
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_archive_write_header
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_rand
	movb	%al, (%r12,%rbx)
	incq	%rbx
	cmpq	$10000, %rbx                    ## imm = 0x2710
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_failure
	movl	$10000, %edx                    ## imm = 0x2710
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_archive_write_data
	movq	%rbx, %rdi
	movl	$10000, %esi                    ## imm = 0x2710
	movl	%eax, %edx
	callq	_assertEqualIntA
	testl	%eax, %eax
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	%r15d
	movq	-104(%rbp), %r13
	cmpl	$100, %r15d
	jne	LBB0_11
## %bb.18:
	movq	%r13, %rdi
	callq	_archive_entry_free
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_archive_write_close
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r15), %r14d
	movq	%rbx, %rdi
	callq	_archive_write_free
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movl	(%r15), %r14d
	movq	%rbx, %rdi
	callq	_archive_read_support_format_all
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r15), %r14d
	movq	%rbx, %rdi
	callq	_archive_read_support_filter_all
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r15), %r14d
	movq	-112(%rbp), %rdx
	movq	%rdx, %rax
	shrq	$6, %rax
	subq	%rax, %rdx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_archive_read_open_memory
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	leaq	-64(%rbp), %r15
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	leaq	-104(%rbp), %rsi
	callq	_archive_read_next_header
	cmpl	%eax, %r14d
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_sprintf
	movq	-104(%rbp), %rdi
	callq	_archive_entry_pathname
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movl	$10000, %edx                    ## imm = 0x2710
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_archive_read_data
	cmpq	$10000, %rax                    ## imm = 0x2710
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=1
	incl	%r13d
	cmpl	$100, %r13d
	jne	LBB0_20
	jmp	LBB0_23
LBB0_16:
	movq	%rbx, %rdi
	callq	_archive_write_free
	jmp	LBB0_26
LBB0_15:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_archive_write_free
	jmp	LBB0_26
LBB0_22:
	leaq	L_.str.2(%rip), %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_failure
	movq	%rbx, %rdi
	callq	_archive_error_string
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
LBB0_23:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	cmpb	$0, -96(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_25
## %bb.24:
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_archive_read_close
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_archive_read_free
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
LBB0_26:
	movq	%r12, %rdi
	callq	_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s writing not supported on this platform"

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.comm	_AE_IFREG,4,2                   ## @AE_IFREG
L_.str.1:                               ## @.str.1
	.asciz	"%s%d"

L_.str.2:                               ## @.str.2
	.asciz	"Should have non-NULL error message for %s"

	.no_dead_strip	_test_truncation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_truncation
_test_truncation:                       ; @test_truncation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	mov	w0, #33920
	movk	w0, #30, lsl #16
	bl	_malloc
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cbz	x19, LBB0_23
; %bb.1:
	mov	w0, #10000
	bl	_malloc
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cbz	x20, LBB0_6
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #10000
	bl	_memset
	bl	_archive_write_new
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh3:
	adrp	x27, _ARCHIVE_OK@GOTPAGE
Lloh4:
	ldr	x27, [x27, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w25, [x27]
	mov	x0, x22
	bl	_archive_write_set_format_ustar
	mov	x2, x0
	mov	x0, x22
	mov	x1, x25
	bl	_assertEqualIntA
	ldr	w25, [x27]
	mov	x0, x22
	bl	_archive_write_add_filter_compress
	mov	x2, x0
	mov	x0, x22
	mov	x1, x25
	bl	_assertEqualIntA
	mov	x0, x22
	blr	x24
	ldr	w24, [x27]
	cbnz	w23, LBB0_9
; %bb.3:
	cmp	w0, w24
	b.eq	LBB0_9
; %bb.4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_skipping
	ldr	w21, [x27]
	mov	x0, x22
	bl	_archive_write_free
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualInt
	mov	x0, x19
	bl	_free
	ldr	x8, [sp, #56]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.5:
	mov	x0, x20
	b	LBB0_8
LBB0_6:
	ldr	x8, [sp, #56]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.7:
	mov	x0, x19
LBB0_8:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_free
LBB0_9:
	cmp	w23, #0
Lloh13:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ccmp	w0, w8, #0, ne
	cset	w8, eq
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	mov	x0, x22
	mov	w1, #10
	bl	_archive_write_set_bytes_per_block
	mov	x2, x0
	mov	x0, x22
	mov	x1, x24
	bl	_assertEqualIntA
	ldr	w23, [x27]
	add	x3, sp, #24
	mov	x0, x22
	mov	x1, x19
	mov	w2, #33920
	movk	w2, #30, lsl #16
	bl	_archive_write_open_memory
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_assertEqualIntA
	bl	_archive_entry_new
	mov	x25, x0
	str	x0, [sp, #32]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh16:
	adrp	x8, _AE_IFREG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AE_IFREG@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_archive_entry_set_filetype
	mov	w28, #10000
	mov	x0, x25
	mov	w1, #10000
	bl	_archive_entry_set_size
	mov	w23, #0
Lloh19:
	adrp	x24, l_.str.1@PAGE
Lloh20:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	add	x0, sp, #40
	mov	x1, x24
	mov	x2, x21
	mov	x3, x23
	bl	_sprintf
	add	x1, sp, #40
	mov	x0, x25
	bl	_archive_entry_copy_pathname
	add	x0, sp, #40
	bl	_failure
	ldr	w26, [x27]
	mov	x0, x22
	mov	x1, x25
	bl	_archive_write_header
	mov	x2, x0
	mov	x0, x22
	mov	x1, x26
	bl	_assertEqualIntA
	cbz	w0, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x25, #0
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_rand
	strb	w0, [x20, x25]
	add	x25, x25, #1
	cmp	x25, x28
	b.ne	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #40
	bl	_failure
	mov	x0, x22
	mov	x1, x20
	mov	w2, #10000
	bl	_archive_write_data
	mov	x2, x0
	mov	x0, x22
	mov	w1, #10000
	bl	_assertEqualIntA
	cbz	w0, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w23, w23, #1
	ldr	x25, [sp, #32]
	cmp	w23, #100
	b.ne	LBB0_10
; %bb.15:
	mov	x0, x25
	bl	_archive_entry_free
	ldr	w23, [x27]
	mov	x0, x22
	bl	_archive_write_close
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_assertEqualIntA
	ldr	w23, [x27]
	mov	x0, x22
	bl	_archive_write_free
	mov	x1, x0
	mov	x0, x23
	bl	_assertEqualInt
	bl	_archive_read_new
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	w23, [x27]
	mov	x0, x22
	bl	_archive_read_support_format_all
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_assertEqualIntA
	ldr	w23, [x27]
	mov	x0, x22
	bl	_archive_read_support_filter_all
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_assertEqualIntA
	ldr	w23, [x27]
	ldr	x8, [sp, #24]
	sub	x2, x8, x8, lsr #6
	mov	x0, x22
	mov	x1, x19
	bl	_archive_read_open_memory
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_assertEqualIntA
	mov	w23, #0
Lloh21:
	adrp	x24, l_.str.1@PAGE
Lloh22:
	add	x24, x24, l_.str.1@PAGEOFF
	mov	w25, #10000
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x27]
	add	x1, sp, #32
	mov	x0, x22
	bl	_archive_read_next_header
	cmp	w26, w0
	b.ne	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x0, sp, #40
	mov	x1, x24
	mov	x2, x21
	mov	x3, x23
	bl	_sprintf
	ldr	x0, [sp, #32]
	bl	_archive_entry_pathname
	mov	x1, x0
	add	x0, sp, #40
	bl	_assertEqualString
	mov	x0, x22
	mov	x1, x20
	mov	w2, #10000
	bl	_archive_read_data
	cmp	x0, x25
	b.ne	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w23, w23, #1
	cmp	w23, #100
	b.ne	LBB0_16
	b	LBB0_21
LBB0_19:
	mov	x0, x22
	bl	_archive_write_free
	b	LBB0_22
LBB0_20:
	str	x21, [sp]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_failure
	mov	x0, x22
	bl	_archive_error_string
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
LBB0_21:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w8, #0
Lloh25:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
	csel	x8, x8, x27, ne
	ldr	w21, [x8]
	mov	x0, x22
	bl	_archive_read_close
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x27]
	mov	x0, x22
	bl	_archive_read_free
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualInt
LBB0_22:
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_free
LBB0_23:
	ldr	x8, [sp, #56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s writing not supported on this platform"

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.comm	_AE_IFREG,4,2                   ; @AE_IFREG
l_.str.1:                               ; @.str.1
	.asciz	"%s%d"

l_.str.2:                               ; @.str.2
	.asciz	"Should have non-NULL error message for %s"

	.no_dead_strip	_test_truncation
.subsections_via_symbols
