	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h_ctype2
_h_ctype2:                              ## @h_ctype2
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_LC_ALL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rsi
	callq	_setlocale
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ATF_REQUIRE_STREQ
	movq	_LC_CTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	callq	_setlocale
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rsi
	movq	_VIS_WHITE@GOTPCREL(%rip), %rax
	movq	_VIS_OCTAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_strvis
	leaq	L_.str.2(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_setlocale
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_ATF_REQUIRE
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.4(%rip), %rdi
	leaq	-92(%rbp), %rbx
	movq	%rbx, %rax
	cmoveq	%r13, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$9, %ebx
	movq	%r14, %r15
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-64(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rdi
	xorl	%esi, %esi
	leaq	L_.str.12(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_EQ_MSG
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	32(%r15), %esi
	movq	%r13, %rdi
	leaq	L_.str.13(%rip), %rdx
	movl	%r13d, %ecx
	movl	%esi, %r8d
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_EQ_MSG
	decq	%rbx
	je	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	8(%r15), %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mbsinit
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_ATF_REQUIRE
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=2
	addl	%ebx, %r14d
	addq	%rbx, %r12
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-64(%rbp), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_mbrtowc
	cmpq	$-2, %rax
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rax, %r15
	cmpq	$-1, %rax
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	testq	%r15, %r15
	jne	LBB0_19
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ATF_REQUIRE_EQ
	leaq	L_.str.7(%rip), %rdi
	callq	_atf_tc_fail
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=2
	addl	%r15d, %r14d
	movl	-64(%rbp), %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rcx
	cmpl	(%rcx,%r13,4), %eax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	24(%rbx), %rax
	cmpl	(%rax,%r13,4), %r14d
	je	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=2
	leaq	L_.str.8(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movl	(%rax,%r13,4), %esi
	movl	(%rcx,%r13,4), %edx
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-64(%rbp), %esi
	leaq	L_.str.10(%rip), %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.11(%rip), %rdi
	callq	_atf_tc_fail
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r13
	addq	%r15, %r12
	xorl	%r14d, %r14d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_8:
	movq	%rsp, %r13
	movq	_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	8(%r15), %rax
	movq	%rax, -64(%rbp)
	leal	(,%rbx,4), %edx
	movq	%r14, %rdi
	movl	$255, %esi
	callq	_memset
	movl	(%r12), %edx
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_mbsrtowcs
	movl	32(%r15), %esi
	leaq	L_.str.13(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	movl	%eax, %ecx
	movl	%esi, %r8d
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_EQ_MSG
	movq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ATF_REQUIRE_EQ
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.15(%rip), %r12
	leaq	L_.str.16(%rip), %r13
	leaq	L_.str.11(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%r14,%rbx,4), %eax
	incq	%rbx
	testl	%eax, %eax
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	cmpl	(%rcx,%rbx,4), %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	L_.str.14(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r14,%rbx,4), %esi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	%r15, %rdi
	callq	_atf_tc_fail
	jmp	LBB0_12
LBB0_13:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_14:
	movl	%ebx, %edi
	movl	32(%r15), %esi
	leaq	L_.str.17(%rip), %rdx
	movl	%ebx, %ecx
	movl	%esi, %r8d
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_EQ_MSG
	movq	%r13, %rsp
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
LBB0_15:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE,4,2                       ## @SIZE
	.comm	_LC_ALL,4,2                     ## @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"C"

	.comm	_LC_CTYPE,4,2                   ## @LC_CTYPE
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Locale %s not found.\n"

	.comm	_VIS_WHITE,4,2                  ## @VIS_WHITE
	.comm	_VIS_OCTAL,4,2                  ## @VIS_OCTAL
L_.str.2:                               ## @.str.2
	.asciz	"Checking string: \"%s\"\n"

L_.str.3:                               ## @.str.3
	.asciz	"Using locale: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"Using mbstate: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"yes"

L_.str.6:                               ## @.str.6
	.asciz	"no"

	.comm	_errno,8,3                      ## @errno
	.comm	_EILSEQ,8,3                     ## @EILSEQ
L_.str.7:                               ## @.str.7
	.asciz	"Invalid sequence"

L_.str.8:                               ## @.str.8
	.asciz	"At position %zd:\n"

L_.str.9:                               ## @.str.9
	.asciz	"  expected: 0x%04X (%u)\n"

L_.str.10:                              ## @.str.10
	.asciz	"  got     : 0x%04X (%u)\n"

L_.str.11:                              ## @.str.11
	.asciz	"Test failed"

L_.str.12:                              ## @.str.12
	.asciz	"Incorrect terminating character: 0x%04X (expected: 0x00)"

L_.str.13:                              ## @.str.13
	.asciz	"Incorrect length: %zd (expected: %zd)"

L_.str.14:                              ## @.str.14
	.asciz	"At position %d:\n"

L_.str.15:                              ## @.str.15
	.asciz	"  expected: 0x%04X\n"

L_.str.16:                              ## @.str.16
	.asciz	"  got     : 0x%04X\n"

L_.str.17:                              ## @.str.17
	.asciz	"Incorrect length: %d (expected: %zd)"

L_str:                                  ## @str
	.asciz	"Ok."

	.no_dead_strip	_h_ctype2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h_ctype2
_h_ctype2:                              ; @h_ctype2
	.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, #32
	mov	x20, x1
	mov	x19, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x23, _LC_ALL@GOTPAGE
Lloh9:
	ldr	x23, [x23, _LC_ALL@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh10:
	adrp	x22, l_.str@PAGE
Lloh11:
	add	x22, x22, l_.str@PAGEOFF
	mov	x1, x22
	bl	_setlocale
	mov	x1, x22
	bl	_ATF_REQUIRE_STREQ
Lloh12:
	adrp	x8, _LC_CTYPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LC_CTYPE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_setlocale
	cbz	x0, LBB0_18
; %bb.1:
	stur	x24, [x29, #-112]               ; 8-byte Folded Spill
Lloh15:
	adrp	x8, _VIS_WHITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VIS_WHITE@GOTPAGEOFF]
	ldr	x1, [x19, #8]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _VIS_OCTAL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VIS_OCTAL@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_strvis
	str	x21, [sp, #-16]!
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	ldr	w0, [x23]
	mov	x1, #0
	bl	_setlocale
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_ATF_REQUIRE
	str	x21, [sp, #-16]!
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	add	sp, sp, #16
Lloh25:
	adrp	x8, l_.str.5@PAGE
Lloh26:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh27:
	adrp	x9, l_.str.6@PAGE
Lloh28:
	add	x9, x9, l_.str.6@PAGEOFF
	cmp	w20, #0
	csel	x8, x9, x8, eq
	str	x8, [sp, #-16]!
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	sub	x8, x29, #92
	csel	x20, xzr, x8, eq
	bl	_printf
	add	sp, sp, #16
	sub	x0, x29, #92
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w22, #9
Lloh31:
	adrp	x24, l_.str.9@PAGE
Lloh32:
	add	x24, x24, l_.str.9@PAGEOFF
Lloh33:
	adrp	x25, l_.str.10@PAGE
Lloh34:
	add	x25, x25, l_.str.10@PAGEOFF
Lloh35:
	adrp	x26, l_.str.11@PAGE
Lloh36:
	add	x26, x26, l_.str.11@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	w3, [x29, #-104]
	sxtw	x0, w3
	mov	w1, #0
Lloh37:
	adrp	x2, l_.str.12@PAGE
Lloh38:
	add	x2, x2, l_.str.12@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_ATF_REQUIRE_EQ_MSG
	ldr	w1, [x19, #32]
	str	x1, [sp, #-16]!
	mov	x0, x27
                                        ; kill: def $w1 killed $w1 killed $x1
Lloh39:
	adrp	x2, l_.str.13@PAGE
Lloh40:
	add	x2, x2, l_.str.13@PAGEOFF
	mov	x3, x27
	bl	_ATF_REQUIRE_EQ_MSG
	add	sp, sp, #16
	subs	x22, x22, #1
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x28, [x19, #8]
	mov	x0, x20
	bl	_mbsinit
	cmp	x0, #0
	cset	w0, ne
	bl	_ATF_REQUIRE
	mov	w23, #0
	mov	x27, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	w23, w23, w22
	mov	x21, x22
	add	x28, x28, x22
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x0, x29, #104
	mov	x1, x28
	mov	x2, x22
	mov	x3, x20
	bl	_mbrtowc
	cmn	x0, #2
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x21, x0
	cmn	x0, #1
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	cbnz	x21, LBB0_9
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=2
Lloh41:
	adrp	x8, _errno@GOTPAGE
Lloh42:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh43:
	ldr	x0, [x8]
Lloh44:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh46:
	ldr	x1, [x8]
	bl	_ATF_REQUIRE_EQ
Lloh47:
	adrp	x0, l_.str.7@PAGE
Lloh48:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_atf_tc_fail
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	w23, w23, w21
	ldur	w8, [x29, #-104]
	ldr	x9, [x19, #16]
	ldr	w9, [x9, x27, lsl #2]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x27, lsl #2]
	cmp	w23, w8
	b.eq	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=2
	str	x27, [sp, #-16]!
Lloh49:
	adrp	x0, l_.str.8@PAGE
Lloh50:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	lsl	x8, x27, #2
	ldp	x9, x10, [x19, #16]
	ldr	w9, [x9, x8]
	ldr	w8, [x10, x8]
	stp	x9, x8, [sp, #-16]!
	mov	x0, x24
	bl	_printf
	add	sp, sp, #16
	ldur	w8, [x29, #-104]
	stp	x8, x23, [sp, #-16]!
	mov	x0, x25
	bl	_printf
	add	sp, sp, #16
	mov	x0, x26
	bl	_atf_tc_fail
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w23, #0
	add	x27, x27, #1
	add	x28, x28, x21
	b	LBB0_5
LBB0_13:
	mov	x25, sp
Lloh51:
	adrp	x22, _SIZE@GOTPAGE
Lloh52:
	ldr	x22, [x22, _SIZE@GOTPAGEOFF]
	ldr	w12, [x22]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh53:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh54:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x19, #8]
	stur	x8, [x29, #-104]
	lsl	w2, w12, #2
	mov	x0, x21
	mov	w1, #255
	bl	_memset
	ldr	w2, [x22]
	sub	x1, x29, #104
	mov	x0, x21
	mov	x3, x20
	bl	_mbsrtowcs
	ldr	w1, [x19, #32]
	str	x1, [sp, #-16]!
Lloh55:
	adrp	x2, l_.str.13@PAGE
Lloh56:
	add	x2, x2, l_.str.13@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x3, x0
	bl	_ATF_REQUIRE_EQ_MSG
	add	sp, sp, #16
	ldur	x0, [x29, #-104]
	mov	x1, #0
	bl	_ATF_REQUIRE_EQ
	ldr	w8, [x21]
	cbz	w8, LBB0_19
; %bb.14:
	mov	x26, #0
Lloh57:
	adrp	x20, l_.str.14@PAGE
Lloh58:
	add	x20, x20, l_.str.14@PAGEOFF
Lloh59:
	adrp	x22, l_.str.15@PAGE
Lloh60:
	add	x22, x22, l_.str.15@PAGEOFF
Lloh61:
	adrp	x23, l_.str.16@PAGE
Lloh62:
	add	x23, x23, l_.str.16@PAGEOFF
Lloh63:
	adrp	x24, l_.str.11@PAGE
Lloh64:
	add	x24, x24, l_.str.11@PAGEOFF
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x3, x26, #1
	add	x8, x21, x26, lsl #2
	ldr	w8, [x8, #4]
	mov	x26, x3
	cbz	w8, LBB0_20
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	w9, [x9, x26, lsl #2]
	cmp	w8, w9
	b.eq	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	str	x26, [sp, #-16]!
	mov	x0, x20
	bl	_printf
	add	sp, sp, #16
	ldr	x8, [x19, #16]
	lsl	x27, x26, #2
	ldr	w8, [x8, x27]
	str	x8, [sp, #-16]!
	mov	x0, x22
	bl	_printf
	add	sp, sp, #16
	ldr	w8, [x21, x27]
	str	x8, [sp, #-16]!
	mov	x0, x23
	bl	_printf
	add	sp, sp, #16
	mov	x0, x24
	bl	_atf_tc_fail
	b	LBB0_15
LBB0_18:
Lloh65:
	adrp	x8, _stderr@GOTPAGE
Lloh66:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh68:
	adrp	x1, l_.str.1@PAGE
Lloh69:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	b	LBB0_21
LBB0_19:
	mov	w3, #0
LBB0_20:
	mov	w0, w3
	ldr	w1, [x19, #32]
	str	x1, [sp, #-16]!
Lloh70:
	adrp	x2, l_.str.17@PAGE
Lloh71:
	add	x2, x2, l_.str.17@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_ATF_REQUIRE_EQ_MSG
	add	sp, sp, #16
	mov	sp, x25
Lloh72:
	adrp	x0, l_str@PAGE
Lloh73:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldur	x24, [x29, #-112]               ; 8-byte Folded Reload
LBB0_21:
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh74:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh75:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh76:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	sub	sp, x29, #80
	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_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE,4,2                       ; @SIZE
	.comm	_LC_ALL,4,2                     ; @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"C"

	.comm	_LC_CTYPE,4,2                   ; @LC_CTYPE
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Locale %s not found.\n"

	.comm	_VIS_WHITE,4,2                  ; @VIS_WHITE
	.comm	_VIS_OCTAL,4,2                  ; @VIS_OCTAL
l_.str.2:                               ; @.str.2
	.asciz	"Checking string: \"%s\"\n"

l_.str.3:                               ; @.str.3
	.asciz	"Using locale: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"Using mbstate: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"yes"

l_.str.6:                               ; @.str.6
	.asciz	"no"

	.comm	_errno,8,3                      ; @errno
	.comm	_EILSEQ,8,3                     ; @EILSEQ
l_.str.7:                               ; @.str.7
	.asciz	"Invalid sequence"

l_.str.8:                               ; @.str.8
	.asciz	"At position %zd:\n"

l_.str.9:                               ; @.str.9
	.asciz	"  expected: 0x%04X (%u)\n"

l_.str.10:                              ; @.str.10
	.asciz	"  got     : 0x%04X (%u)\n"

l_.str.11:                              ; @.str.11
	.asciz	"Test failed"

l_.str.12:                              ; @.str.12
	.asciz	"Incorrect terminating character: 0x%04X (expected: 0x00)"

l_.str.13:                              ; @.str.13
	.asciz	"Incorrect length: %zd (expected: %zd)"

l_.str.14:                              ; @.str.14
	.asciz	"At position %d:\n"

l_.str.15:                              ; @.str.15
	.asciz	"  expected: 0x%04X\n"

l_.str.16:                              ; @.str.16
	.asciz	"  got     : 0x%04X\n"

l_.str.17:                              ; @.str.17
	.asciz	"Incorrect length: %d (expected: %zd)"

l_str:                                  ; @str
	.asciz	"Ok."

	.no_dead_strip	_h_ctype2
.subsections_via_symbols
