	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_archive_string_canonicalization
_test_archive_string_canonicalization:  ## @test_archive_string_canonicalization
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LC_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_setlocale
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	leaq	L_.str.1(%rip), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_archive_string_conversion_to_charset
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assertA
	leaq	L_.str.2(%rip), %r15
	movq	%r15, %rdi
	callq	_failure
	movq	%rbx, %rdi
	callq	_archive_string_conversion_charset_name
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_archive_string_conversion_to_charset
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assertA
	movq	%r15, %rdi
	callq	_failure
	movq	%rbx, %rdi
	callq	_archive_string_conversion_charset_name
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_archive_string_conversion_to_charset
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assertA
	movq	%r15, %rdi
	callq	_failure
	movq	%rbx, %rdi
	callq	_archive_string_conversion_charset_name
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	leaq	L_.str.5(%rip), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_archive_string_conversion_to_charset
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assertA
	leaq	L_.str.6(%rip), %r15
	movq	%r15, %rdi
	callq	_failure
	movq	%rbx, %rdi
	callq	_archive_string_conversion_charset_name
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_archive_string_conversion_to_charset
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assertA
	movq	%r15, %rdi
	callq	_failure
	movq	%rbx, %rdi
	callq	_archive_string_conversion_charset_name
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_archive_string_conversion_to_charset
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assertA
	movq	%r15, %rdi
	callq	_failure
	movq	%rbx, %rdi
	callq	_archive_string_conversion_charset_name
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	leaq	L_.str.9(%rip), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_archive_string_conversion_to_charset
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assertA
	leaq	L_.str.10(%rip), %r15
	movq	%r15, %rdi
	callq	_failure
	movq	%rbx, %rdi
	callq	_archive_string_conversion_charset_name
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_archive_string_conversion_to_charset
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assertA
	movq	%r15, %rdi
	callq	_failure
	movq	%rbx, %rdi
	callq	_archive_string_conversion_charset_name
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	leaq	L_.str.12(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_archive_string_conversion_to_charset
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assertA
	movq	%r15, %rdi
	callq	_failure
	movq	%rbx, %rdi
	callq	_archive_string_conversion_charset_name
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_assertEqualString
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_archive_read_free
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assertEqualInt                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LC_ALL,4,2                     ## @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"en_US.UTF-8"

L_.str.1:                               ## @.str.1
	.asciz	"UTF-8"

L_.str.2:                               ## @.str.2
	.asciz	"Charset name should be UTF-8"

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

L_.str.4:                               ## @.str.4
	.asciz	"utf8"

L_.str.5:                               ## @.str.5
	.asciz	"UTF-16BE"

L_.str.6:                               ## @.str.6
	.asciz	"Charset name should be UTF-16BE"

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

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

L_.str.9:                               ## @.str.9
	.asciz	"UTF-16LE"

L_.str.10:                              ## @.str.10
	.asciz	"Charset name should be UTF-16LE"

L_.str.11:                              ## @.str.11
	.asciz	"UTF16LE"

L_.str.12:                              ## @.str.12
	.asciz	"utf16le"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_test_archive_string_canonicalization
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_archive_string_canonicalization
_test_archive_string_canonicalization:  ; @test_archive_string_canonicalization
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _LC_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LC_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_setlocale
	bl	_archive_read_new
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh5:
	adrp	x20, l_.str.1@PAGE
Lloh6:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_archive_string_conversion_to_charset
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assertA
Lloh7:
	adrp	x22, l_.str.2@PAGE
Lloh8:
	add	x22, x22, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_failure
	mov	x0, x21
	bl	_archive_string_conversion_charset_name
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_archive_string_conversion_to_charset
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assertA
	mov	x0, x22
	bl	_failure
	mov	x0, x21
	bl	_archive_string_conversion_charset_name
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_archive_string_conversion_to_charset
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assertA
	mov	x0, x22
	bl	_failure
	mov	x0, x21
	bl	_archive_string_conversion_charset_name
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
Lloh13:
	adrp	x20, l_.str.5@PAGE
Lloh14:
	add	x20, x20, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_archive_string_conversion_to_charset
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assertA
Lloh15:
	adrp	x22, l_.str.6@PAGE
Lloh16:
	add	x22, x22, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_failure
	mov	x0, x21
	bl	_archive_string_conversion_charset_name
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_archive_string_conversion_to_charset
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assertA
	mov	x0, x22
	bl	_failure
	mov	x0, x21
	bl	_archive_string_conversion_charset_name
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_archive_string_conversion_to_charset
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assertA
	mov	x0, x22
	bl	_failure
	mov	x0, x21
	bl	_archive_string_conversion_charset_name
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
Lloh21:
	adrp	x20, l_.str.9@PAGE
Lloh22:
	add	x20, x20, l_.str.9@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_archive_string_conversion_to_charset
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assertA
Lloh23:
	adrp	x22, l_.str.10@PAGE
Lloh24:
	add	x22, x22, l_.str.10@PAGEOFF
	mov	x0, x22
	bl	_failure
	mov	x0, x21
	bl	_archive_string_conversion_charset_name
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
Lloh25:
	adrp	x1, l_.str.11@PAGE
Lloh26:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_archive_string_conversion_to_charset
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assertA
	mov	x0, x22
	bl	_failure
	mov	x0, x21
	bl	_archive_string_conversion_charset_name
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
Lloh27:
	adrp	x1, l_.str.12@PAGE
Lloh28:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_archive_string_conversion_to_charset
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assertA
	mov	x0, x22
	bl	_failure
	mov	x0, x21
	bl	_archive_string_conversion_charset_name
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualString
Lloh29:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh31:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_archive_read_free
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_assertEqualInt
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LC_ALL,4,2                     ; @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"en_US.UTF-8"

l_.str.1:                               ; @.str.1
	.asciz	"UTF-8"

l_.str.2:                               ; @.str.2
	.asciz	"Charset name should be UTF-8"

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

l_.str.4:                               ; @.str.4
	.asciz	"utf8"

l_.str.5:                               ; @.str.5
	.asciz	"UTF-16BE"

l_.str.6:                               ; @.str.6
	.asciz	"Charset name should be UTF-16BE"

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

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

l_.str.9:                               ; @.str.9
	.asciz	"UTF-16LE"

l_.str.10:                              ; @.str.10
	.asciz	"Charset name should be UTF-16LE"

l_.str.11:                              ; @.str.11
	.asciz	"UTF16LE"

l_.str.12:                              ; @.str.12
	.asciz	"utf16le"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_test_archive_string_canonicalization
.subsections_via_symbols
