	.file	"310544.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"out.txt"
.LC2:
	.string	"File error."
.LC3:
	.string	"%c%c%c%c%c%c\n"
.LC4:
	.string	"\nPress a key to quit."
	.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
	sub	rsp, 16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L2:
	mov	BYTE PTR -13[rbp], 65
	jmp	.L3
.L12:
	mov	BYTE PTR -12[rbp], 65
	jmp	.L4
.L11:
	mov	BYTE PTR -11[rbp], 65
	jmp	.L5
.L10:
	mov	BYTE PTR -10[rbp], 65
	jmp	.L6
.L9:
	mov	BYTE PTR -9[rbp], 65
	jmp	.L7
.L8:
	movsx	esi, BYTE PTR -9[rbp]
	movsx	r8d, BYTE PTR -10[rbp]
	movsx	edi, BYTE PTR -11[rbp]
	movsx	ecx, BYTE PTR -12[rbp]
	movsx	edx, BYTE PTR -13[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	movzx	eax, BYTE PTR -9[rbp]
	add	eax, 1
	mov	BYTE PTR -9[rbp], al
.L7:
	cmp	BYTE PTR -9[rbp], 89
	jle	.L8
	movzx	eax, BYTE PTR -10[rbp]
	add	eax, 1
	mov	BYTE PTR -10[rbp], al
.L6:
	cmp	BYTE PTR -10[rbp], 89
	jle	.L9
	movzx	eax, BYTE PTR -11[rbp]
	add	eax, 1
	mov	BYTE PTR -11[rbp], al
.L5:
	cmp	BYTE PTR -11[rbp], 89
	jle	.L10
	movzx	eax, BYTE PTR -12[rbp]
	add	eax, 1
	mov	BYTE PTR -12[rbp], al
.L4:
	cmp	BYTE PTR -12[rbp], 89
	jle	.L11
	movzx	eax, BYTE PTR -13[rbp]
	add	eax, 1
	mov	BYTE PTR -13[rbp], al
.L3:
	cmp	BYTE PTR -13[rbp], 89
	jle	.L12
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	eax, 0
	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	"310544.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"out.txt\000"
	.align	2
.LC2:
	.ascii	"File error.\000"
	.align	2
.LC3:
	.ascii	"%c%c%c%c%c%c\012\000"
	.align	2
.LC4:
	.ascii	"\012Press a key to quit.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r1, .L14
	ldr	r0, .L14+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L14+8
	bl	puts
.L2:
	mov	r3, #65
	strb	r3, [fp, #-13]
	b	.L3
.L12:
	mov	r3, #65
	strb	r3, [fp, #-12]
	b	.L4
.L11:
	mov	r3, #65
	strb	r3, [fp, #-11]
	b	.L5
.L10:
	mov	r3, #65
	strb	r3, [fp, #-10]
	b	.L6
.L9:
	mov	r3, #65
	strb	r3, [fp, #-9]
	b	.L7
.L8:
	ldrb	r0, [fp, #-13]	@ zero_extendqisi2
	ldrb	ip, [fp, #-12]	@ zero_extendqisi2
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	ldrb	r1, [fp, #-9]	@ zero_extendqisi2
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r1, .L14+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-9]
.L7:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #89
	bls	.L8
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-10]
.L6:
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	cmp	r3, #89
	bls	.L9
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-11]
.L5:
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	cmp	r3, #89
	bls	.L10
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-12]
.L4:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #89
	bls	.L11
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-13]
.L3:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #89
	bls	.L12
	ldr	r0, .L14+16
	bl	printf
	bl	getchar
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
