	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_pax_filename_encoding_1
_test_pax_filename_encoding_1:          ## @test_pax_filename_encoding_1
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movabsq	$34473507696897645, %rax        ## imm = 0x7A7978FC6F6E6D
	movq	%rax, -59(%rbp)
	movabsq	$8029475637140087393, %rax      ## imm = 0x6F6E6D8CCC636261
	movq	%rax, -64(%rbp)
	leaq	_test_pax_filename_encoding_1.testname(%rip), %r14
	movq	%r14, %rdi
	callq	_extract_reference_file
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %r12
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%rax, %rdi
	callq	_archive_read_support_format_tar
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movl	(%r13), %ebx
	movq	%r12, %rdi
	callq	_archive_read_support_filter_all
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movl	(%r13), %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$10240, %edx                    ## imm = 0x2800
	callq	_archive_read_open_filename
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	leaq	L_.str(%rip), %rdi
	callq	_failure
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-72(%rbp), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_archive_read_next_header
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-72(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	leaq	L_.str.1(%rip), %rdi
	callq	_failure
	movl	(%r13), %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_archive_read_next_header
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-72(%rbp), %rdi
	callq	_archive_entry_pathname
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	%r12, %rdi
	callq	_archive_read_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @test_pax_filename_encoding_1.testname
_test_pax_filename_encoding_1.testname:
	.asciz	"test_pax_filename_encoding.tar"

	.section	__TEXT,__cstring,cstring_literals
L___const.test_pax_filename_encoding_1.filename: ## @__const.test_pax_filename_encoding_1.filename
	.asciz	"abc\314\214mno\374xyz"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
L_.str:                                 ## @.str
	.asciz	"Invalid UTF8 in a pax archive pathname should cause a warning"

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
L_.str.1:                               ## @.str.1
	.asciz	"A pathname with hdrcharset=BINARY can have invalid UTF8\n characters in it without generating a warning"

	.no_dead_strip	_test_pax_filename_encoding_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_pax_filename_encoding_1
_test_pax_filename_encoding_1:          ; @test_pax_filename_encoding_1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.test_pax_filename_encoding_1.filename@PAGE
Lloh4:
	add	x8, x8, l___const.test_pax_filename_encoding_1.filename@PAGEOFF
	ldr	x9, [x8]
	str	x9, [sp, #8]
	ldur	x8, [x8, #5]
	stur	x8, [sp, #13]
Lloh5:
	adrp	x20, _test_pax_filename_encoding_1.testname@PAGE
Lloh6:
	add	x20, x20, _test_pax_filename_encoding_1.testname@PAGEOFF
	mov	x0, x20
	bl	_extract_reference_file
	bl	_archive_read_new
	mov	x19, x0
Lloh7:
	adrp	x22, _ARCHIVE_OK@GOTPAGE
Lloh8:
	ldr	x22, [x22, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w21, [x22]
	bl	_archive_read_support_format_tar
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualInt
	ldr	w21, [x22]
	mov	x0, x19
	bl	_archive_read_support_filter_all
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualInt
	ldr	w21, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #10240
	bl	_archive_read_open_filename
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualInt
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_failure
Lloh11:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	mov	x1, sp
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualInt
	ldr	x0, [sp]
	bl	_archive_entry_pathname
	mov	x1, x0
	add	x0, sp, #8
	bl	_assertEqualString
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_failure
	ldr	w20, [x22]
	mov	x1, sp
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualInt
	ldr	x0, [sp]
	bl	_archive_entry_pathname
	mov	x1, x0
	add	x0, sp, #8
	bl	_assertEqualString
	mov	x0, x19
	bl	_archive_read_free
	ldr	x8, [sp, #24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	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
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_test_pax_filename_encoding_1.testname: ; @test_pax_filename_encoding_1.testname
	.asciz	"test_pax_filename_encoding.tar"

	.section	__TEXT,__cstring,cstring_literals
l___const.test_pax_filename_encoding_1.filename: ; @__const.test_pax_filename_encoding_1.filename
	.asciz	"abc\314\214mno\374xyz"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
l_.str:                                 ; @.str
	.asciz	"Invalid UTF8 in a pax archive pathname should cause a warning"

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
l_.str.1:                               ; @.str.1
	.asciz	"A pathname with hdrcharset=BINARY can have invalid UTF8\n characters in it without generating a warning"

	.no_dead_strip	_test_pax_filename_encoding_1
.subsections_via_symbols
