	.file	"224913.c"
	.intel_syntax noprefix
	.text
	.globl	ch
	.bss
	.align 4
	.type	ch, @object
	.size	ch, 4
ch:
	.zero	4
	.globl	fp
	.align 8
	.type	fp, @object
	.size	fp, 8
fp:
	.zero	8
	.globl	fname
	.data
	.align 32
	.type	fname, @object
	.size	fname, 50
fname:
	.string	"44"
	.zero	47
	.section	.rodata
.LC0:
	.string	"Enter file name: "
.LC1:
	.string	"r"
.LC2:
	.string	"Error open file."
	.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
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC1[rip]
	lea	rdi, fname[rip]
	call	fopen@PLT
	mov	QWORD PTR fp[rip], rax
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	jne	.L3
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR ch[rip]
	mov	edi, eax
	call	putchar@PLT
.L3:
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR ch[rip], eax
	mov	eax, DWORD PTR ch[rip]
	cmp	eax, -1
	jne	.L4
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	pop	rbp
	.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	"224913.c"
	.text
	.comm	ch,4,4
	.comm	fp,4,4
	.global	fname
	.data
	.align	2
	.type	fname, %object
	.size	fname, 50
fname:
	.ascii	"44\000"
	.space	47
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter file name: \000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Error open file.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L6
	bl	printf
	ldr	r1, .L6+4
	ldr	r0, .L6+8
	bl	fopen
	mov	r3, r0
	ldr	r2, .L6+12
	str	r3, [r2]
	ldr	r3, .L6+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L6+16
	bl	puts
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, .L6+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	putchar
.L3:
	ldr	r3, .L6+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L6+20
	str	r3, [r2]
	ldr	r3, .L6+20
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L6+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.word	fname
	.word	fp
	.word	.LC2
	.word	ch
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
