	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_read_format_ustar_filename_CP866_KOI8R
_test_read_format_ustar_filename_CP866_KOI8R: ## @test_read_format_ustar_filename_CP866_KOI8R
	.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	%rdi, %r14
	movq	_LC_ALL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_setlocale
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_setlocale
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	movq	%r12, %rdi
	callq	_archive_read_support_filter_all
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %r15d
	movq	%r12, %rdi
	callq	_archive_read_support_format_all
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_archive_read_set_options
	cmpl	%eax, %ebx
	jne	LBB0_3
## %bb.4:
	movl	(%r13), %r15d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$10240, %edx                    ## imm = 0x2800
	callq	_archive_read_open_filename
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %r15d
	leaq	-48(%rbp), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_archive_read_next_header
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	-48(%rbp), %rdi
	callq	_archive_entry_size
	movl	$6, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-48(%rbp), %rdi
	callq	_archive_entry_is_encrypted
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_assertEqualInt
	movq	%r12, %rdi
	callq	_archive_read_has_encrypted_entries
	movq	_ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_assertEqualIntA
	movl	(%r13), %r15d
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_archive_read_next_header
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	-48(%rbp), %rdi
	callq	_archive_entry_size
	movl	$6, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-48(%rbp), %rdi
	callq	_archive_entry_is_encrypted
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_assertEqualInt
	movq	%r12, %rdi
	callq	_archive_read_has_encrypted_entries
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_assertEqualIntA
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_archive_read_next_header
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	_ARCHIVE_FILTER_COMPRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_archive_filter_code
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	_ARCHIVE_FORMAT_TAR_USTAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_archive_format
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %r14d
	movq	%r12, %rdi
	callq	_archive_read_close
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.4(%rip), %rdi
	callq	_skipping
LBB0_5:
	movl	(%r13), %ebx
	movq	%r12, %rdi
	callq	_archive_read_free
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_skipping                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LC_ALL,4,2                     ## @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Russian_Russia.20866"

L_.str.1:                               ## @.str.1
	.asciz	"ru_RU.KOI8-R"

L_.str.2:                               ## @.str.2
	.asciz	"ru_RU.KOI8-R locale not available on this system."

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
L_.str.3:                               ## @.str.3
	.asciz	"hdrcharset=CP866"

L_.str.4:                               ## @.str.4
	.asciz	"This system cannot convert character-set from CP866 to KOI8-R."

L_.str.5:                               ## @.str.5
	.asciz	"\360\362\351\367\345\364"

	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED,4,2 ## @ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED
L_.str.6:                               ## @.str.6
	.asciz	"\320\322\311\327\305\324"

	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.comm	_ARCHIVE_FILTER_COMPRESS,4,2    ## @ARCHIVE_FILTER_COMPRESS
	.comm	_ARCHIVE_FORMAT_TAR_USTAR,4,2   ## @ARCHIVE_FORMAT_TAR_USTAR
	.no_dead_strip	_test_read_format_ustar_filename_CP866_KOI8R
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_read_format_ustar_filename_CP866_KOI8R
_test_read_format_ustar_filename_CP866_KOI8R: ; @test_read_format_ustar_filename_CP866_KOI8R
	.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
	mov	x20, x0
Lloh0:
	adrp	x19, _LC_ALL@GOTPAGE
Lloh1:
	ldr	x19, [x19, _LC_ALL@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_setlocale
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_setlocale
	cbz	x0, LBB0_6
LBB0_2:
	bl	_archive_read_new
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh6:
	adrp	x22, _ARCHIVE_OK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x19
	bl	_archive_read_support_filter_all
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x22]
	mov	x0, x19
	bl	_archive_read_support_format_all
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x22]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_archive_read_set_options
	cmp	w21, w0
	b.ne	LBB0_4
; %bb.3:
	ldr	w21, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #10240
	bl	_archive_read_open_filename
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w20, [x22]
	add	x1, sp, #8
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_assertEqualString
	ldr	x0, [sp, #8]
	bl	_archive_entry_size
	mov	x1, x0
	mov	w0, #6
	bl	_assertEqualInt
	ldr	x0, [sp, #8]
	bl	_archive_entry_is_encrypted
	mov	w1, #0
	bl	_assertEqualInt
	mov	x0, x19
	bl	_archive_read_has_encrypted_entries
	mov	x1, x0
Lloh12:
	adrp	x21, _ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED@GOTPAGE
Lloh13:
	ldr	x21, [x21, _ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_assertEqualIntA
	ldr	w20, [x22]
	add	x1, sp, #8
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_assertEqualString
	ldr	x0, [sp, #8]
	bl	_archive_entry_size
	mov	x1, x0
	mov	w0, #6
	bl	_assertEqualInt
	ldr	x0, [sp, #8]
	bl	_archive_entry_is_encrypted
	mov	w1, #0
	bl	_assertEqualInt
	mov	x0, x19
	bl	_archive_read_has_encrypted_entries
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x19
	bl	_assertEqualIntA
Lloh16:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
Lloh19:
	adrp	x8, _ARCHIVE_FILTER_COMPRESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ARCHIVE_FILTER_COMPRESS@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_archive_filter_code
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
Lloh22:
	adrp	x8, _ARCHIVE_FORMAT_TAR_USTAR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ARCHIVE_FORMAT_TAR_USTAR@GOTPAGEOFF]
Lloh24:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_archive_format
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	w20, [x22]
	mov	x0, x19
	bl	_archive_read_close
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualInt
	b	LBB0_5
LBB0_4:
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_skipping
LBB0_5:
	ldr	w20, [x22]
	mov	x0, x19
	bl	_archive_read_free
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualInt
	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
LBB0_6:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	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
	b	_skipping
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_LC_ALL,4,2                     ; @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Russian_Russia.20866"

l_.str.1:                               ; @.str.1
	.asciz	"ru_RU.KOI8-R"

l_.str.2:                               ; @.str.2
	.asciz	"ru_RU.KOI8-R locale not available on this system."

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
l_.str.3:                               ; @.str.3
	.asciz	"hdrcharset=CP866"

l_.str.4:                               ; @.str.4
	.asciz	"This system cannot convert character-set from CP866 to KOI8-R."

l_.str.5:                               ; @.str.5
	.asciz	"\360\362\351\367\345\364"

	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED,4,2 ; @ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED
l_.str.6:                               ; @.str.6
	.asciz	"\320\322\311\327\305\324"

	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.comm	_ARCHIVE_FILTER_COMPRESS,4,2    ; @ARCHIVE_FILTER_COMPRESS
	.comm	_ARCHIVE_FORMAT_TAR_USTAR,4,2   ; @ARCHIVE_FORMAT_TAR_USTAR
	.no_dead_strip	_test_read_format_ustar_filename_CP866_KOI8R
.subsections_via_symbols
