	.file	"212642306.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	""
.LC1:
	.string	"locale : %s\n"
.LC2:
	.string	"MB_CUR_MAX %Zd\n"
.LC3:
	.string	"---- test 1 ------"
	.align 8
.LC4:
	.string	"size of string by mbstowcs %d\n"
.LC5:
	.string	"orig string %s\n"
.LC6:
	.string	"string by wctomb %s\n"
.LC7:
	.string	"string by %%C %C"
.LC8:
	.string	"%C\n"
.LC9:
	.string	"string by %%S %S\n"
	.align 4
.LC10:
	.string	"H"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"l"
	.string	""
	.string	""
	.string	"l"
	.string	""
	.string	""
	.string	"o"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
.LC11:
	.string	"---- test 2 ------"
.LC12:
	.string	"wchar string %S\n"
.LC13:
	.string	"wchar %C\n"
	.align 8
.LC14:
	.string	"size of string by wcstombs %d\n"
.LC15:
	.string	"size of string by wcslen %d\n"
.LC16:
	.string	"char %s\n"
.LC17:
	.string	"World"
.LC18:
	.string	"------------------"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 232
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -224[rbp], 0
	mov	DWORD PTR -220[rbp], 0
	mov	DWORD PTR -208[rbp], 87
	mov	DWORD PTR -204[rbp], 111
	mov	DWORD PTR -200[rbp], 114
	mov	DWORD PTR -196[rbp], 108
	mov	DWORD PTR -192[rbp], 100
	mov	DWORD PTR -188[rbp], 0
	mov	DWORD PTR -134[rbp], 1819043144
	mov	WORD PTR -130[rbp], 111
	mov	DWORD PTR -228[rbp], 0
	lea	rsi, .LC0[rip]
	mov	edi, 6
	call	setlocale@PLT
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -216[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	call	__ctype_get_mb_cur_max@PLT
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -134[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rcx, -134[rbp]
	lea	rax, -176[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	mbstowcs@PLT
	mov	DWORD PTR -224[rbp], eax
	mov	eax, DWORD PTR -224[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -224[rbp]
	movsx	rbx, eax
	lea	rax, -134[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	je	.L2
	mov	DWORD PTR -228[rbp], 1
.L2:
	mov	edx, DWORD PTR -176[rbp]
	lea	rax, -128[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	wctomb@PLT
	add	DWORD PTR -220[rbp], eax
	mov	eax, DWORD PTR -172[rbp]
	lea	rcx, -128[rbp]
	mov	edx, DWORD PTR -220[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	mov	esi, eax
	mov	rdi, rdx
	call	wctomb@PLT
	add	DWORD PTR -220[rbp], eax
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	BYTE PTR -128[rbp+rax], 0
	lea	rax, -134[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -176[rbp]
	cmp	eax, 72
	je	.L3
	mov	DWORD PTR -228[rbp], 1
.L3:
	mov	eax, DWORD PTR -172[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, 101
	je	.L4
	mov	DWORD PTR -228[rbp], 1
.L4:
	lea	rax, -176[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -176[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	wcscmp@PLT
	test	eax, eax
	je	.L5
	mov	DWORD PTR -228[rbp], 1
.L5:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rax, -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -208[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	wcslen@PLT
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	lea	rcx, -208[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	wcstombs@PLT
	mov	DWORD PTR -224[rbp], eax
	mov	eax, DWORD PTR -224[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -224[rbp]
	movsx	rbx, eax
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	wcslen@PLT
	cmp	rbx, rax
	je	.L6
	mov	DWORD PTR -228[rbp], 1
.L6:
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	wcslen@PLT
	mov	DWORD PTR -224[rbp], eax
	mov	eax, DWORD PTR -224[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -128[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L7
	mov	DWORD PTR -228[rbp], 1
.L7:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -228[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"212642306.c"
	.text
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"locale : %s\012\000"
	.align	2
.LC4:
	.ascii	"MB_CUR_MAX %Zd\012\000"
	.align	2
.LC5:
	.ascii	"---- test 1 ------\000"
	.align	2
.LC6:
	.ascii	"size of string by mbstowcs %d\012\000"
	.align	2
.LC7:
	.ascii	"orig string %s\012\000"
	.align	2
.LC8:
	.ascii	"string by wctomb %s\012\000"
	.align	2
.LC9:
	.ascii	"string by %%C %C\000"
	.align	2
.LC10:
	.ascii	"%C\012\000"
	.align	2
.LC11:
	.ascii	"string by %%S %S\012\000"
	.align	2
.LC12:
	.ascii	"H\000\000\000e\000\000\000l\000\000\000l\000\000\000"
	.ascii	"o\000\000\000\000\000\000\000"
	.align	2
.LC13:
	.ascii	"---- test 2 ------\000"
	.align	2
.LC14:
	.ascii	"wchar string %S\012\000"
	.align	2
.LC15:
	.ascii	"wchar %C\012\000"
	.align	2
.LC16:
	.ascii	"size of string by wcstombs %d\012\000"
	.align	2
.LC17:
	.ascii	"size of string by wcslen %d\012\000"
	.align	2
.LC18:
	.ascii	"char %s\012\000"
	.align	2
.LC19:
	.ascii	"World\000"
	.align	2
.LC20:
	.ascii	"------------------\000"
	.align	2
.LC0:
	.word	87
	.word	111
	.word	114
	.word	108
	.word	100
	.word	0
	.align	2
.LC1:
	.ascii	"Hello\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #192
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-192]
	mov	r3, #0
	str	r3, [fp, #-188]
	ldr	r3, .L10+4
	sub	ip, fp, #180
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r2, .L10+8
	sub	r3, fp, #116
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-196]
	ldr	r1, .L10+12
	mov	r0, #6
	bl	setlocale
	str	r0, [fp, #-184]
	ldr	r1, [fp, #-184]
	ldr	r0, .L10+16
	bl	printf
	bl	__ctype_get_mb_cur_max
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L10+20
	bl	printf
	ldr	r0, .L10+24
	bl	puts
	sub	r3, fp, #116
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r1, fp, #116
	sub	r3, fp, #156
	mov	r0, r3
	bl	mbstowcs
	mov	r3, r0
	str	r3, [fp, #-192]
	ldr	r1, [fp, #-192]
	ldr	r0, .L10+28
	bl	printf
	sub	r3, fp, #116
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-192]
	cmp	r2, r3
	beq	.L2
	mov	r3, #1
	str	r3, [fp, #-196]
.L2:
	ldr	r2, [fp, #-156]
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	wctomb
	mov	r2, r0
	ldr	r3, [fp, #-188]
	add	r3, r3, r2
	str	r3, [fp, #-188]
	sub	r2, fp, #108
	ldr	r3, [fp, #-188]
	add	r3, r2, r3
	ldr	r2, [fp, #-152]
	mov	r1, r2
	mov	r0, r3
	bl	wctomb
	mov	r2, r0
	ldr	r3, [fp, #-188]
	add	r3, r3, r2
	str	r3, [fp, #-188]
	sub	r2, fp, #108
	ldr	r3, [fp, #-188]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, .L10+32
	bl	printf
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L10+36
	bl	printf
	ldr	r3, [fp, #-156]
	mov	r1, r3
	ldr	r0, .L10+40
	bl	printf
	ldr	r3, [fp, #-156]
	cmp	r3, #72
	beq	.L3
	mov	r3, #1
	str	r3, [fp, #-196]
.L3:
	ldr	r3, [fp, #-152]
	mov	r1, r3
	ldr	r0, .L10+44
	bl	printf
	ldr	r3, [fp, #-152]
	cmp	r3, #101
	beq	.L4
	mov	r3, #1
	str	r3, [fp, #-196]
.L4:
	sub	r3, fp, #156
	mov	r1, r3
	ldr	r0, .L10+48
	bl	printf
	sub	r3, fp, #156
	ldr	r1, .L10+52
	mov	r0, r3
	bl	wcscmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	mov	r3, #1
	str	r3, [fp, #-196]
.L5:
	ldr	r0, .L10+56
	bl	puts
	sub	r3, fp, #180
	mov	r1, r3
	ldr	r0, .L10+60
	bl	printf
	ldr	r3, [fp, #-180]
	mov	r1, r3
	ldr	r0, .L10+64
	bl	printf
	sub	r3, fp, #180
	mov	r0, r3
	bl	wcslen
	mov	r3, r0
	add	r3, r3, #1
	lsl	r2, r3, #2
	sub	r1, fp, #180
	sub	r3, fp, #108
	mov	r0, r3
	bl	wcstombs
	mov	r3, r0
	str	r3, [fp, #-192]
	ldr	r1, [fp, #-192]
	ldr	r0, .L10+68
	bl	printf
	sub	r3, fp, #180
	mov	r0, r3
	bl	wcslen
	mov	r2, r0
	ldr	r3, [fp, #-192]
	cmp	r2, r3
	beq	.L6
	mov	r3, #1
	str	r3, [fp, #-196]
.L6:
	sub	r3, fp, #180
	mov	r0, r3
	bl	wcslen
	mov	r3, r0
	str	r3, [fp, #-192]
	ldr	r1, [fp, #-192]
	ldr	r0, .L10+72
	bl	printf
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L10+76
	bl	printf
	sub	r3, fp, #108
	ldr	r1, .L10+80
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	mov	r3, #1
	str	r3, [fp, #-196]
.L7:
	ldr	r0, .L10+84
	bl	puts
	ldr	r3, [fp, #-196]
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC21
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
