	.file	"234516950.c"
	.intel_syntax noprefix
	.text
	.globl	locs
	.section	.rodata
.LC0:
	.string	"C"
.LC1:
	.string	"de_DE.ISO-8859-1"
.LC2:
	.string	"de_DE.UTF-8"
.LC3:
	.string	"ja_JP.EUC-JP"
	.section	.data.rel.local,"aw"
	.align 32
	.type	locs, @object
	.size	locs, 32
locs:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.globl	large
	.bss
	.align 32
	.type	large, @object
	.size	large, 50000
large:
	.zero	50000
	.section	.rodata
	.align 8
.LC4:
	.string	"cannot open temporary file: %m\n"
.LC5:
	.string	"cannot dup for locale %s: %m\n"
	.align 8
.LC6:
	.string	"cannot truncate file for locale %s: %m\n"
.LC7:
	.string	"a"
	.align 8
.LC8:
	.string	"cannot create FILE for locale %s: %m\n"
.LC9:
	.string	"%.*s"
	.align 8
.LC10:
	.string	"write error for locale %s: %m\n"
	.align 8
.LC11:
	.string	"cannot stat for locale %s: %m\n"
	.align 8
.LC12:
	.string	"file size incorrect for locale %s: %jd instead of %jd\n"
.LC13:
	.string	"locale %s OK\n"
	.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, 216
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -212[rbp], 0
	call	mtrace@PLT
	movabs	rax, 8099290917471741300
	movabs	rdx, 6365935270351497586
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -32[rbp], 5789784
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	mkstemp@PLT
	mov	DWORD PTR -208[rbp], eax
	cmp	DWORD PTR -208[rbp], -1
	jne	.L2
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	unlink@PLT
	mov	DWORD PTR -216[rbp], 0
	jmp	.L3
.L12:
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, locs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	mov	edi, 6
	call	setlocale@PLT
	mov	edx, 50000
	mov	esi, 1
	lea	rdi, large[rip]
	call	memset@PLT
	mov	BYTE PTR large[rip+49999], 0
	mov	eax, DWORD PTR -208[rbp]
	mov	edi, eax
	call	dup@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], -1
	jne	.L4
	mov	esi, 0
	mov	edi, 6
	call	setlocale@PLT
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -204[rbp]
	mov	esi, 0
	mov	edi, eax
	call	ftruncate@PLT
	test	eax, eax
	je	.L5
	mov	esi, 0
	mov	edi, 6
	call	setlocale@PLT
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -204[rbp]
	lea	rsi, .LC7[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR -200[rbp], rax
	cmp	QWORD PTR -200[rbp], 0
	jne	.L6
	mov	esi, 0
	mov	edi, 6
	call	setlocale@PLT
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rax
	lea	rdi, large[rip]
	call	fputs@PLT
	mov	rax, QWORD PTR -200[rbp]
	lea	rcx, large[rip]
	mov	edx, 30000
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	BYTE PTR large[rip+20000], 0
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, large[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fflush@PLT
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L8
.L7:
	mov	esi, 0
	mov	edi, 6
	call	setlocale@PLT
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	lea	rdx, -192[rbp]
	mov	eax, DWORD PTR -208[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	je	.L9
	mov	esi, 0
	mov	edi, 6
	call	setlocale@PLT
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -144[rbp]
	cmp	rax, 99999
	je	.L10
	mov	rbx, QWORD PTR -144[rbp]
	mov	esi, 0
	mov	edi, 6
	call	setlocale@PLT
	mov	ecx, 99999
	mov	rdx, rbx
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -212[rbp], 1
	jmp	.L11
.L10:
	mov	esi, 0
	mov	edi, 6
	call	setlocale@PLT
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	add	DWORD PTR -216[rbp], 1
.L3:
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, 3
	jbe	.L12
	mov	eax, DWORD PTR -208[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -212[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"234516950.c"
	.text
	.global	locs
	.section	.rodata
	.align	2
.LC0:
	.ascii	"C\000"
	.align	2
.LC1:
	.ascii	"de_DE.ISO-8859-1\000"
	.align	2
.LC2:
	.ascii	"de_DE.UTF-8\000"
	.align	2
.LC3:
	.ascii	"ja_JP.EUC-JP\000"
	.data
	.align	2
	.type	locs, %object
	.size	locs, 16
locs:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.comm	large,50000,4
	.section	.rodata
	.align	2
.LC4:
	.ascii	"test-vfprintfXXXXXX\000"
	.align	2
.LC5:
	.ascii	"cannot open temporary file: %m\012\000"
	.align	2
.LC6:
	.ascii	"cannot dup for locale %s: %m\012\000"
	.align	2
.LC7:
	.ascii	"cannot truncate file for locale %s: %m\012\000"
	.align	2
.LC8:
	.ascii	"a\000"
	.align	2
.LC9:
	.ascii	"cannot create FILE for locale %s: %m\012\000"
	.align	2
.LC10:
	.ascii	"%.*s\000"
	.align	2
.LC11:
	.ascii	"write error for locale %s: %m\012\000"
	.align	2
.LC12:
	.ascii	"cannot stat for locale %s: %m\012\000"
	.align	2
.LC13:
	.ascii	"file size incorrect for locale %s: %jd instead of %"
	.ascii	"jd\012\000"
	.align	2
.LC14:
	.ascii	"locale %s OK\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L15+8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-132]
	bl	mtrace
	ldr	r3, .L15+12
	sub	ip, fp, #28
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	sub	r3, fp, #28
	mov	r0, r3
	bl	mkstemp
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L15+16
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #28
	mov	r0, r3
	bl	unlink
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L3
.L12:
	ldr	r2, .L15+20
	ldr	r3, [fp, #-136]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	mov	r0, #6
	bl	setlocale
	ldr	r2, .L15+24
	mov	r1, #1
	ldr	r0, .L15+28
	bl	memset
	ldr	r3, .L15+28
	add	r3, r3, #49152
	mov	r2, #0
	strb	r2, [r3, #847]
	ldr	r0, [fp, #-128]
	bl	dup
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmn	r3, #1
	bne	.L4
	mov	r1, #0
	mov	r0, #6
	bl	setlocale
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+32
	bl	printf
	mov	r0, #1
	bl	exit
.L4:
	mov	r1, #0
	ldr	r0, [fp, #-124]
	bl	ftruncate
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	mov	r1, #0
	mov	r0, #6
	bl	setlocale
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+36
	bl	printf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r1, .L15+40
	ldr	r0, [fp, #-124]
	bl	fdopen
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L6
	mov	r1, #0
	mov	r0, #6
	bl	setlocale
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+44
	bl	printf
	mov	r0, #1
	bl	exit
.L6:
	ldr	r1, [fp, #-120]
	ldr	r0, .L15+28
	bl	fputs
	ldr	r3, .L15+28
	ldr	r2, .L15+48
	ldr	r1, .L15+52
	ldr	r0, [fp, #-120]
	bl	fprintf
	ldr	r3, .L15+28
	add	r3, r3, #16384
	mov	r2, #0
	strb	r2, [r3, #3616]
	ldr	r1, .L15+28
	ldr	r0, [fp, #-120]
	bl	fprintf
	ldr	r0, [fp, #-120]
	bl	fflush
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r0, [fp, #-120]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r0, [fp, #-120]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
.L7:
	mov	r1, #0
	mov	r0, #6
	bl	setlocale
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+56
	bl	printf
	mov	r0, #1
	bl	exit
.L8:
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	mov	r1, #0
	mov	r0, #6
	bl	setlocale
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+60
	bl	printf
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-72]
	ldr	r2, .L15+64
	cmp	r3, r2
	beq	.L10
	mov	r1, #0
	mov	r0, #6
	bl	setlocale
	mov	ip, r0
	ldr	r3, [fp, #-72]
	mov	r2, r3
	asr	r3, r2, #31
	adr	r1, .L15
	ldmia	r1, {r0-r1}
	stm	sp, {r0-r1}
	mov	r1, ip
	ldr	r0, .L15+68
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-132]
	b	.L11
.L10:
	mov	r1, #0
	mov	r0, #6
	bl	setlocale
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+72
	bl	printf
.L11:
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
.L3:
	ldr	r3, [fp, #-136]
	cmp	r3, #3
	bls	.L12
	ldr	r0, [fp, #-128]
	bl	close
	ldr	r3, [fp, #-132]
	ldr	r2, .L15+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	3
.L15:
	.word	99999
	.word	0
	.word	.LC15
	.word	.LC4
	.word	.LC5
	.word	locs
	.word	50000
	.word	large
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	30000
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	99999
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
