	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_archive_string_normalization_mac_nfd
_test_archive_string_normalization_mac_nfd: ## @test_archive_string_normalization_mac_nfd
	.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	$1592, %rsp                     ## imm = 0x638
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SCONV_SET_OPT_NORMALIZATION_D@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_LC_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_setlocale
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_is_wc_unicode
	movq	%rbx, -1616(%rbp)               ## 8-byte Spill
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	addq	$1592, %rsp                     ## imm = 0x638
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_skipping                       ## TAILCALL
LBB0_4:
	leaq	-1528(%rbp), %rdi
	callq	_archive_string_init
	leaq	-1536(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	leaq	L_.str.2(%rip), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_archive_string_conversion_from_charset
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assertA
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_archive_string_conversion_from_charset
	xorl	%edi, %edi
	movq	%rax, -1576(%rbp)               ## 8-byte Spill
	testq	%rax, %rax
	setne	%dil
	callq	_assertA
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, -1552(%rbp)               ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_archive_string_conversion_from_charset
	xorl	%edi, %edi
	movq	%rax, -1568(%rbp)               ## 8-byte Spill
	testq	%rax, %rax
	setne	%dil
	callq	_assertA
	xorl	%eax, %eax
	callq	_archive_write_new
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_archive_string_conversion_to_charset
	xorl	%edi, %edi
	movq	%rax, -1560(%rbp)               ## 8-byte Spill
	testq	%rax, %rax
	setne	%dil
	callq	_assertA
	movq	%r13, -1584(%rbp)               ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_8
## %bb.5:
	cmpq	$0, -1576(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_8
## %bb.6:
	cmpq	$0, -1568(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_8
## %bb.7:
	cmpq	$0, -1560(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_8
## %bb.9:
	movq	%rbx, -1600(%rbp)               ## 8-byte Spill
	movq	-1584(%rbp), %rdi               ## 8-byte Reload
	movl	%r12d, %esi
	callq	_archive_string_conversion_set_opt
	movq	-1576(%rbp), %rdi               ## 8-byte Reload
	movl	%r12d, %esi
	callq	_archive_string_conversion_set_opt
	movq	-1568(%rbp), %rdi               ## 8-byte Reload
	movl	%r12d, %esi
	callq	_archive_string_conversion_set_opt
	movq	-1560(%rbp), %rdi               ## 8-byte Reload
	movl	%r12d, %esi
	callq	_archive_string_conversion_set_opt
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	leaq	-560(%rbp), %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%r12, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_35
## %bb.10:
	movl	$1, %r13d
	leaq	-560(%rbp), %r14
	leaq	-720(%rbp), %r15
	movq	%r12, -1608(%rbp)               ## 8-byte Spill
	jmp	LBB0_11
LBB0_32:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.14(%rip), %rdi
	leaq	-640(%rbp), %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_failure
	movq	-1544(%rbp), %rsi
	movq	%r12, %rdi
LBB0_33:                                ##   in Loop: Header=BB0_11 Depth=1
	callq	_assertEqualWString
	leaq	-560(%rbp), %r14
	leaq	-1536(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_archive_mstring_copy_wcs
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	%rbx, %rdi
	leaq	-1624(%rbp), %rsi
	leaq	-1632(%rbp), %rdx
	movq	-1560(%rbp), %rcx               ## 8-byte Reload
	callq	_archive_mstring_get_mbs_l
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	leaq	L_.str.15(%rip), %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_failure
	movq	-1624(%rbp), %rsi
	leaq	-880(%rbp), %rdi
	callq	_assertEqualUTF8String
	movq	-1608(%rbp), %r12               ## 8-byte Reload
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%r12, %rdx
	callq	_fgets
	incl	%r13d
	testq	%rax, %rax
	je	LBB0_35
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$35, -560(%rbp)
	je	LBB0_34
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movl	$59, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_34
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	incq	%rbx
	movb	$0, (%rax)
	leaq	-640(%rbp), %rdi
	movq	%r14, %rsi
	movl	$79, %edx
	callq	_strncpy
	movb	$0, -561(%rbp)
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_34
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movb	$0, (%rax)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$79, %edx
	callq	_strncpy
	movb	$0, -641(%rbp)
	movq	%r15, %rbx
	leaq	-800(%rbp), %r15
	movq	%r15, %rdi
	leaq	-1360(%rbp), %rsi
	leaq	-960(%rbp), %rdx
	leaq	-1120(%rbp), %rcx
	leaq	-640(%rbp), %r8
	movl	$1, %r9d
	callq	_scan_unicode_pattern
	movl	%eax, %r14d
	leaq	-880(%rbp), %rdi
	leaq	-1520(%rbp), %rsi
	leaq	-1040(%rbp), %rdx
	leaq	-1200(%rbp), %rcx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_scan_unicode_pattern
	cmpq	$0, -1616(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-1528(%rbp), %rdi
	movq	%r15, %rsi
	movq	-1584(%rbp), %rdx               ## 8-byte Reload
	callq	_archive_strcpy_l
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	testl	%r14d, %r14d
	movl	%r14d, -1588(%rbp)              ## 4-byte Spill
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.6(%rip), %rdi
	leaq	-640(%rbp), %rsi
	leaq	-720(%rbp), %rbx
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_failure
	movq	-1528(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %r15
	callq	_assertEqualUTF8String
	leaq	-880(%rbp), %rbx
	jmp	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.7(%rip), %rdi
	leaq	-640(%rbp), %rsi
	leaq	-720(%rbp), %r15
	movq	%r15, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_failure
	movq	-1528(%rbp), %rsi
	leaq	-880(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_assertEqualUTF8String
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	-1528(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-1584(%rbp), %rdx               ## 8-byte Reload
	callq	_archive_strcpy_l
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	leaq	L_.str.8(%rip), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_failure
	movq	-1528(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_assertEqualUTF8String
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-1560(%rbp), %rdx               ## 8-byte Reload
	callq	_archive_strcpy_l
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_failure
	movq	-1528(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_assertEqualUTF8String
	movq	%r12, %rdi
	leaq	-960(%rbp), %rsi
	movl	$100000, %edx                   ## imm = 0x186A0
	movq	-1576(%rbp), %rcx               ## 8-byte Reload
	callq	_archive_strncpy_l
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movl	-1588(%rbp), %r14d              ## 4-byte Reload
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.6(%rip), %rdi
	leaq	-640(%rbp), %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_failure
	movq	-1528(%rbp), %rsi
	leaq	-800(%rbp), %rdi
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.7(%rip), %rdi
	leaq	-640(%rbp), %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_failure
	movq	-1528(%rbp), %rsi
	movq	%rbx, %rdi
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	callq	_assertEqualUTF8String
	leaq	-1528(%rbp), %rdi
	leaq	-1120(%rbp), %rsi
	movl	$100000, %edx                   ## imm = 0x186A0
	movq	-1568(%rbp), %rcx               ## 8-byte Reload
	callq	_archive_strncpy_l
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	testl	%r14d, %r14d
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.6(%rip), %rdi
	leaq	-640(%rbp), %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_failure
	movq	-1528(%rbp), %rsi
	leaq	-800(%rbp), %r15
	movq	%r15, %rdi
	callq	_assertEqualUTF8String
	jmp	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.7(%rip), %rdi
	leaq	-640(%rbp), %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_failure
	movq	-1528(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_assertEqualUTF8String
	leaq	-800(%rbp), %r15
LBB0_24:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	-1536(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$100000, %edx                   ## imm = 0x186A0
	movq	-1584(%rbp), %rcx               ## 8-byte Reload
	callq	_archive_mstring_copy_mbs_len_l
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-1552(%rbp), %rdi               ## 8-byte Reload
	movq	%rbx, %rsi
	leaq	-1544(%rbp), %rdx
	callq	_archive_mstring_get_wcs
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	testl	%r14d, %r14d
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.9(%rip), %rdi
	leaq	-640(%rbp), %rsi
	leaq	-720(%rbp), %r15
	movq	%r15, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_failure
	movq	-1544(%rbp), %rsi
	leaq	-1360(%rbp), %rdi
	callq	_assertEqualWString
	leaq	-1520(%rbp), %r12
	jmp	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.10(%rip), %rdi
	leaq	-640(%rbp), %rsi
	leaq	-720(%rbp), %r15
	movq	%r15, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_failure
	movq	-1544(%rbp), %rsi
	leaq	-1520(%rbp), %r12
	movq	%r12, %rdi
	callq	_assertEqualWString
LBB0_27:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	-1536(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	-960(%rbp), %rsi
	movl	$100000, %edx                   ## imm = 0x186A0
	movq	-1576(%rbp), %rcx               ## 8-byte Reload
	callq	_archive_mstring_copy_mbs_len_l
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-1552(%rbp), %rdi               ## 8-byte Reload
	movq	%rbx, %rsi
	leaq	-1544(%rbp), %rdx
	callq	_archive_mstring_get_wcs
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	testl	%r14d, %r14d
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.11(%rip), %rdi
	leaq	-640(%rbp), %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_failure
	movq	-1544(%rbp), %rsi
	leaq	-1360(%rbp), %rdi
	jmp	LBB0_30
LBB0_29:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.12(%rip), %rdi
	leaq	-640(%rbp), %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_failure
	movq	-1544(%rbp), %rsi
	movq	%r12, %rdi
LBB0_30:                                ##   in Loop: Header=BB0_11 Depth=1
	callq	_assertEqualWString
	leaq	-1536(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	-1120(%rbp), %rsi
	movl	$100000, %edx                   ## imm = 0x186A0
	movq	-1568(%rbp), %rcx               ## 8-byte Reload
	callq	_archive_mstring_copy_mbs_len_l
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-1552(%rbp), %rdi               ## 8-byte Reload
	movq	%rbx, %rsi
	leaq	-1544(%rbp), %rdx
	callq	_archive_mstring_get_wcs
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	testl	%r14d, %r14d
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.13(%rip), %rdi
	leaq	-640(%rbp), %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_failure
	movq	-1544(%rbp), %rsi
	leaq	-1360(%rbp), %rdi
	jmp	LBB0_33
LBB0_8:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-1552(%rbp), %rdi               ## 8-byte Reload
	callq	_archive_read_free
	jmp	LBB0_36
LBB0_35:
	leaq	-1528(%rbp), %rdi
	callq	_archive_string_free
	leaq	-1536(%rbp), %rdi
	callq	_archive_mstring_clean
	movq	%r12, %rdi
	callq	_fclose
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	-1552(%rbp), %rdi               ## 8-byte Reload
	callq	_archive_read_free
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movl	(%r14), %ebx
	movq	-1600(%rbp), %rdi               ## 8-byte Reload
	callq	_archive_write_free
LBB0_36:
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.37:
	addq	$1592, %rsp                     ## imm = 0x638
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCONV_SET_OPT_NORMALIZATION_D,4,2 ## @SCONV_SET_OPT_NORMALIZATION_D
	.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	"A test of string normalization for NFD requires a suitable locale; en_US.UTF-8 not available on this system"

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

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

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

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
L_.str.5:                               ## @.str.5
	.asciz	"r"

L_.str.6:                               ## @.str.6
	.asciz	"NFC(%s) should not be converted to NFD(%s):%d"

L_.str.7:                               ## @.str.7
	.asciz	"NFC(%s) should be converted to NFD(%s):%d"

L_.str.8:                               ## @.str.8
	.asciz	"NFD(%s) should not be any changed:%d"

L_.str.9:                               ## @.str.9
	.asciz	"UTF-8 NFC(%s) should not be converted to WCS NFD(%s):%d"

L_.str.10:                              ## @.str.10
	.asciz	"UTF-8 NFC(%s) should be converted to WCS NFD(%s):%d"

L_.str.11:                              ## @.str.11
	.asciz	"UTF-16BE NFC(%s) should not be converted to WCS NFD(%s):%d"

L_.str.12:                              ## @.str.12
	.asciz	"UTF-16BE NFC(%s) should be converted to WCS NFD(%s):%d"

L_.str.13:                              ## @.str.13
	.asciz	"UTF-16LE NFC(%s) should not be converted to WCS NFD(%s):%d"

L_.str.14:                              ## @.str.14
	.asciz	"UTF-16LE NFC(%s) should be converted to WCS NFD(%s):%d"

L_.str.15:                              ## @.str.15
	.asciz	"WCS NFD(%s) should be UTF-8 NFD:%d"

	.no_dead_strip	_test_archive_string_normalization_mac_nfd
.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_normalization_mac_nfd
_test_archive_string_normalization_mac_nfd: ; @test_archive_string_normalization_mac_nfd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #1568
	mov	x26, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _SCONV_SET_OPT_NORMALIZATION_D@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCONV_SET_OPT_NORMALIZATION_D@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
Lloh6:
	adrp	x8, _LC_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LC_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_setlocale
	mov	x19, x0
	bl	_is_wc_unicode
	cmp	x19, #0
	ccmp	w0, #0, #0, eq
	b.eq	LBB0_7
; %bb.1:
	add	x0, sp, #72
	bl	_archive_string_init
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	bl	_archive_read_new
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh11:
	adrp	x25, l_.str.2@PAGE
Lloh12:
	add	x25, x25, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x25
	mov	w2, #0
	bl	_archive_string_conversion_from_charset
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assertA
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_archive_string_conversion_from_charset
	mov	x23, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assertA
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_archive_string_conversion_from_charset
	mov	x24, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assertA
	bl	_archive_write_new
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x22
	mov	x1, x25
	mov	w2, #0
	bl	_archive_string_conversion_to_charset
	mov	x25, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assertA
	cbz	x21, LBB0_34
; %bb.2:
	cbz	x23, LBB0_34
; %bb.3:
	cbz	x24, LBB0_34
; %bb.4:
	cbz	x25, LBB0_34
; %bb.5:
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	mov	x0, x21
	mov	x1, x27
	bl	_archive_string_conversion_set_opt
	mov	x0, x23
	mov	x1, x27
	bl	_archive_string_conversion_set_opt
	mov	x0, x24
	mov	x1, x27
	bl	_archive_string_conversion_set_opt
	mov	x0, x25
	mov	x1, x27
	bl	_archive_string_conversion_set_opt
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x26
	bl	_fopen
	mov	x26, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	add	x0, sp, #1040
	mov	w1, #512
	mov	x2, x26
	bl	_fgets
	cbz	x0, LBB0_35
; %bb.6:
	mov	w28, #1
	add	x22, sp, #880
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_12
LBB0_7:
	ldur	x8, [x29, #-96]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.8:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	add	sp, sp, #1568
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_skipping
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	stp	x22, x8, [sp]
	add	x1, sp, #960
Lloh24:
	adrp	x0, l_.str.14@PAGE
Lloh25:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_failure
	ldr	x1, [sp, #56]
	add	x0, sp, #80
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_assertEqualWString
	add	x0, sp, #64
	add	x1, sp, #80
	bl	_archive_mstring_copy_wcs
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	add	x0, sp, #64
	add	x1, sp, #48
	add	x2, sp, #40
	mov	x3, x25
	bl	_archive_mstring_get_mbs_l
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	mov	x8, x28
	str	x8, [sp]
	add	x1, sp, #880
Lloh26:
	adrp	x0, l_.str.15@PAGE
Lloh27:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_failure
	ldr	x1, [sp, #48]
	add	x0, sp, #720
	bl	_assertEqualUTF8String
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x0, sp, #1040
	mov	w1, #512
	mov	x2, x26
	bl	_fgets
	add	w28, w28, #1
	cbz	x0, LBB0_35
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [sp, #1040]
	cmp	w8, #35
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x0, sp, #1040
	mov	w1, #59
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x27, x0
	strb	wzr, [x27], #1
	add	x0, sp, #960
	add	x1, sp, #1040
	mov	w2, #79
	bl	_strncpy
	strb	wzr, [sp, #1039]
	mov	x0, x27
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	strb	wzr, [x0]
	add	x0, sp, #880
	mov	x1, x27
	mov	w2, #79
	bl	_strncpy
	strb	wzr, [sp, #959]
	add	x0, sp, #800
	add	x1, sp, #240
	add	x2, sp, #640
	add	x3, sp, #480
	add	x4, sp, #960
	mov	w5, #1
	bl	_scan_unicode_pattern
	mov	x27, x0
	add	x0, sp, #720
	add	x1, sp, #80
	add	x2, sp, #560
	add	x3, sp, #400
	add	x4, sp, #880
	mov	w5, #0
	bl	_scan_unicode_pattern
	cbz	x19, LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x0, sp, #72
	add	x1, sp, #800
	mov	x2, x21
	bl	_archive_strcpy_l
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	mov	x8, x28
	cbz	w27, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	stp	x22, x8, [sp]
	add	x1, sp, #960
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_failure
	ldr	x1, [sp, #72]
	add	x0, sp, #800
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	stp	x22, x8, [sp]
	add	x1, sp, #960
Lloh30:
	adrp	x0, l_.str.7@PAGE
Lloh31:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_failure
	ldr	x1, [sp, #72]
	add	x0, sp, #720
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_assertEqualUTF8String
	add	x0, sp, #72
	add	x1, sp, #720
	mov	x2, x21
	bl	_archive_strcpy_l
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	str	x28, [sp]
	add	x1, sp, #880
Lloh32:
	adrp	x19, l_.str.8@PAGE
Lloh33:
	add	x19, x19, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_failure
	ldr	x1, [sp, #72]
	add	x0, sp, #720
	bl	_assertEqualUTF8String
	add	x0, sp, #72
	add	x1, sp, #720
	mov	x2, x25
	bl	_archive_strcpy_l
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	str	x28, [sp]
	add	x1, sp, #880
	mov	x0, x19
	bl	_failure
	ldr	x1, [sp, #72]
	add	x0, sp, #720
	bl	_assertEqualUTF8String
	add	x0, sp, #72
	add	x1, sp, #640
	mov	w2, #34464
	movk	w2, #1, lsl #16
	mov	x3, x23
	bl	_archive_strncpy_l
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	mov	x8, x28
	cbz	w27, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	stp	x22, x8, [sp]
	add	x1, sp, #960
Lloh34:
	adrp	x0, l_.str.6@PAGE
Lloh35:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_failure
	ldr	x1, [sp, #72]
	add	x0, sp, #800
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	stp	x22, x8, [sp]
	add	x1, sp, #960
Lloh36:
	adrp	x0, l_.str.7@PAGE
Lloh37:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_failure
	ldr	x1, [sp, #72]
	add	x0, sp, #720
LBB0_22:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_assertEqualUTF8String
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	add	x0, sp, #72
	add	x1, sp, #480
	mov	w2, #34464
	movk	w2, #1, lsl #16
	mov	x3, x24
	bl	_archive_strncpy_l
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	mov	x8, x28
	cbz	w27, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_12 Depth=1
	stp	x22, x8, [sp]
	add	x1, sp, #960
Lloh38:
	adrp	x0, l_.str.6@PAGE
Lloh39:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_failure
	ldr	x1, [sp, #72]
	add	x0, sp, #800
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=1
	stp	x22, x8, [sp]
	add	x1, sp, #960
Lloh40:
	adrp	x0, l_.str.7@PAGE
Lloh41:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_failure
	ldr	x1, [sp, #72]
	add	x0, sp, #720
LBB0_25:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_assertEqualUTF8String
LBB0_26:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x0, sp, #64
	add	x1, sp, #800
	mov	w2, #34464
	movk	w2, #1, lsl #16
	mov	x3, x21
	bl	_archive_mstring_copy_mbs_len_l
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	add	x1, sp, #64
	add	x2, sp, #56
	mov	x0, x20
	bl	_archive_mstring_get_wcs
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	mov	x8, x28
	cbz	w27, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_12 Depth=1
	stp	x22, x8, [sp]
	add	x1, sp, #960
Lloh42:
	adrp	x0, l_.str.9@PAGE
Lloh43:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_failure
	ldr	x1, [sp, #56]
	add	x0, sp, #240
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_12 Depth=1
	stp	x22, x8, [sp]
	add	x1, sp, #960
Lloh44:
	adrp	x0, l_.str.10@PAGE
Lloh45:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_failure
	ldr	x1, [sp, #56]
	add	x0, sp, #80
LBB0_29:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_assertEqualWString
	add	x0, sp, #64
	add	x1, sp, #640
	mov	w2, #34464
	movk	w2, #1, lsl #16
	mov	x3, x23
	bl	_archive_mstring_copy_mbs_len_l
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	add	x1, sp, #64
	add	x2, sp, #56
	mov	x0, x20
	bl	_archive_mstring_get_wcs
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	mov	x8, x28
	cbz	w27, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_12 Depth=1
	stp	x22, x8, [sp]
	add	x1, sp, #960
Lloh46:
	adrp	x0, l_.str.11@PAGE
Lloh47:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_failure
	ldr	x1, [sp, #56]
	add	x0, sp, #240
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_12 Depth=1
	stp	x22, x8, [sp]
	add	x1, sp, #960
Lloh48:
	adrp	x0, l_.str.12@PAGE
Lloh49:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_failure
	ldr	x1, [sp, #56]
	add	x0, sp, #80
LBB0_32:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_assertEqualWString
	add	x0, sp, #64
	add	x1, sp, #480
	mov	w2, #34464
	movk	w2, #1, lsl #16
	mov	x3, x24
	bl	_archive_mstring_copy_mbs_len_l
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	add	x1, sp, #64
	add	x2, sp, #56
	mov	x0, x20
	bl	_archive_mstring_get_wcs
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	mov	x8, x28
	cbz	w27, LBB0_9
; %bb.33:                               ;   in Loop: Header=BB0_12 Depth=1
	stp	x22, x8, [sp]
	add	x1, sp, #960
Lloh50:
	adrp	x0, l_.str.13@PAGE
Lloh51:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_failure
	ldr	x1, [sp, #56]
	add	x0, sp, #240
	b	LBB0_10
LBB0_34:
Lloh52:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh54:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_archive_read_free
	b	LBB0_36
LBB0_35:
	add	x0, sp, #72
	bl	_archive_string_free
	add	x0, sp, #64
	bl	_archive_mstring_clean
	mov	x0, x26
	bl	_fclose
Lloh55:
	adrp	x21, _ARCHIVE_OK@GOTPAGE
Lloh56:
	ldr	x21, [x21, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w19, [x21]
	mov	x0, x20
	bl	_archive_read_free
	mov	x1, x0
	mov	x0, x19
	bl	_assertEqualInt
	ldr	w19, [x21]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_archive_write_free
LBB0_36:
	mov	x1, x0
	mov	x0, x19
	bl	_assertEqualInt
	ldur	x8, [x29, #-96]
Lloh57:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh58:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.37:
	add	sp, sp, #1568
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_38:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_SCONV_SET_OPT_NORMALIZATION_D,4,2 ; @SCONV_SET_OPT_NORMALIZATION_D
	.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	"A test of string normalization for NFD requires a suitable locale; en_US.UTF-8 not available on this system"

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

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

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

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
l_.str.5:                               ; @.str.5
	.asciz	"r"

l_.str.6:                               ; @.str.6
	.asciz	"NFC(%s) should not be converted to NFD(%s):%d"

l_.str.7:                               ; @.str.7
	.asciz	"NFC(%s) should be converted to NFD(%s):%d"

l_.str.8:                               ; @.str.8
	.asciz	"NFD(%s) should not be any changed:%d"

l_.str.9:                               ; @.str.9
	.asciz	"UTF-8 NFC(%s) should not be converted to WCS NFD(%s):%d"

l_.str.10:                              ; @.str.10
	.asciz	"UTF-8 NFC(%s) should be converted to WCS NFD(%s):%d"

l_.str.11:                              ; @.str.11
	.asciz	"UTF-16BE NFC(%s) should not be converted to WCS NFD(%s):%d"

l_.str.12:                              ; @.str.12
	.asciz	"UTF-16BE NFC(%s) should be converted to WCS NFD(%s):%d"

l_.str.13:                              ; @.str.13
	.asciz	"UTF-16LE NFC(%s) should not be converted to WCS NFD(%s):%d"

l_.str.14:                              ; @.str.14
	.asciz	"UTF-16LE NFC(%s) should be converted to WCS NFD(%s):%d"

l_.str.15:                              ; @.str.15
	.asciz	"WCS NFD(%s) should be UTF-8 NFD:%d"

	.no_dead_strip	_test_archive_string_normalization_mac_nfd
.subsections_via_symbols
