	.file	"645558.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\n\t---------------------------------------------"
	.align 8
.LC1:
	.string	"\tThis program double-space a text (double all  "
	.align 8
.LC2:
	.string	"\tnewline in the text file.                     "
	.align 8
.LC3:
	.string	"\t---------------------------------------------"
.LC4:
	.string	"\tOpen %s for reading data...\n"
.LC5:
	.string	"r"
	.align 8
.LC6:
	.string	"\tOpen %s for saving data.....\n"
.LC7:
	.string	"w"
.LC8:
	.string	"\tDouble-spacing text..."
.LC9:
	.string	"\tClosing and ending..."
.LC10:
	.string	"done"
	.align 8
.LC11:
	.string	"\tVerify the result accessing %s file!\n"
	.align 8
.LC12:
	.string	"\t---------------------------------------------\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
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	cmp	DWORD PTR -20[rbp], 3
	je	.L2
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	prn_info
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	double_space
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	double_space
	.type	double_space, @function
double_space:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	jmp	.L5
.L6:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	putc@PLT
	cmp	DWORD PTR -4[rbp], 10
	jne	.L5
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	putc@PLT
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L6
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	double_space, .-double_space
	.section	.rodata
.LC13:
	.string	"\tUsage %s infile outfile\n"
	.align 8
.LC14:
	.string	"\tThe contents fo infile is double-spaced"
.LC15:
	.string	"\tand written in outfile.\n"
	.text
	.globl	prn_info
	.type	prn_info, @function
prn_info:
.LFB8:
	.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
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	prn_info, .-prn_info
	.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	"645558.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\011-------------------------------------------"
	.ascii	"--\000"
	.align	2
.LC1:
	.ascii	"\011This program double-space a text (double all  \000"
	.align	2
.LC2:
	.ascii	"\011newline in the text file.                     \000"
	.align	2
.LC3:
	.ascii	"\011---------------------------------------------\000"
	.align	2
.LC4:
	.ascii	"\011Open %s for reading data...\012\000"
	.align	2
.LC5:
	.ascii	"r\000"
	.align	2
.LC6:
	.ascii	"\011Open %s for saving data.....\012\000"
	.align	2
.LC7:
	.ascii	"w\000"
	.align	2
.LC8:
	.ascii	"\011Double-spacing text...\000"
	.align	2
.LC9:
	.ascii	"\011Closing and ending...\000"
	.align	2
.LC10:
	.ascii	"done\000"
	.align	2
.LC11:
	.ascii	"\011Verify the result accessing %s file!\012\000"
	.align	2
.LC12:
	.ascii	"\011---------------------------------------------\012"
	.ascii	"\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, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, .L4
	bl	puts
	ldr	r0, .L4+4
	bl	puts
	ldr	r0, .L4+8
	bl	puts
	ldr	r0, .L4+12
	bl	puts
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	beq	.L2
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	prn_info
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L4+16
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L4+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L4+24
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L4+28
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r0, .L4+32
	bl	puts
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	double_space
	ldr	r0, .L4+36
	bl	printf
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r0, .L4+40
	bl	puts
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L4+44
	bl	printf
	ldr	r0, .L4+48
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.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
	.size	main, .-main
	.align	2
	.global	double_space
	.syntax unified
	.arm
	.fpu softvfp
	.type	double_space, %function
double_space:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	b	.L7
.L8:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	putc
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L7
	ldr	r1, [fp, #-20]
	mov	r0, #10
	bl	putc
.L7:
	ldr	r0, [fp, #-16]
	bl	getc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L8
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	double_space, .-double_space
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\011Usage %s infile outfile\012\000"
	.align	2
.LC14:
	.ascii	"\011The contents fo infile is double-spaced\000"
	.align	2
.LC15:
	.ascii	"\011and written in outfile.\012\000"
	.text
	.align	2
	.global	prn_info
	.syntax unified
	.arm
	.fpu softvfp
	.type	prn_info, %function
prn_info:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L10
	bl	printf
	ldr	r0, .L10+4
	bl	puts
	ldr	r0, .L10+8
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	prn_info, .-prn_info
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
