	.file	"10354.c"
	.intel_syntax noprefix
	.text
	.globl	from
	.bss
	.align 8
	.type	from, @object
	.size	from, 8
from:
	.zero	8
	.globl	target
	.align 8
	.type	target, @object
	.size	target, 8
target:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"Please enter the resource filename"
.LC1:
	.string	"%s"
	.align 8
.LC2:
	.string	"Please enter the target filename"
.LC3:
	.string	"r"
.LC4:
	.string	"w"
	.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, 240
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -224[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR from[rip], rax
	lea	rax, -112[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR target[rip], rax
	jmp	.L2
.L3:
	movsx	eax, BYTE PTR -225[rbp]
	mov	edi, eax
	call	check_comment
.L2:
	mov	rax, QWORD PTR from[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -225[rbp], al
	cmp	BYTE PTR -225[rbp], -1
	jne	.L3
	mov	rax, QWORD PTR from[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR target[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	check_comment
	.type	check_comment, @function
check_comment:
.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	eax, edi
	mov	BYTE PTR -20[rbp], al
	cmp	BYTE PTR -20[rbp], 47
	jne	.L7
	mov	rax, QWORD PTR from[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 42
	jne	.L8
	mov	eax, 0
	call	block_comment
	jmp	.L11
.L8:
	cmp	BYTE PTR -1[rbp], 47
	jne	.L10
	mov	eax, 0
	call	single_comment
	mov	rax, QWORD PTR target[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	jmp	.L11
.L10:
	mov	rdx, QWORD PTR target[rip]
	movsx	eax, BYTE PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	mov	rdx, QWORD PTR target[rip]
	movsx	eax, BYTE PTR -1[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	jmp	.L11
.L7:
	mov	rdx, QWORD PTR target[rip]
	movsx	eax, BYTE PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check_comment, .-check_comment
	.globl	block_comment
	.type	block_comment, @function
block_comment:
.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
	jmp	.L13
.L16:
	cmp	BYTE PTR -1[rbp], 42
	jne	.L14
	mov	rax, QWORD PTR from[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -2[rbp], al
	cmp	BYTE PTR -2[rbp], 47
	je	.L17
.L14:
	cmp	BYTE PTR -1[rbp], 47
	jne	.L13
	cmp	BYTE PTR -2[rbp], 42
	je	.L18
.L13:
	mov	rax, QWORD PTR from[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], -1
	jne	.L16
	jmp	.L12
.L17:
	nop
	jmp	.L12
.L18:
	nop
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	block_comment, .-block_comment
	.globl	single_comment
	.type	single_comment, @function
single_comment:
.LFB9:
	.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
	jmp	.L20
.L22:
	cmp	BYTE PTR -1[rbp], 10
	je	.L23
.L20:
	mov	rax, QWORD PTR from[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], -1
	jne	.L22
	jmp	.L19
.L23:
	nop
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	single_comment, .-single_comment
	.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	"10354.c"
	.text
	.comm	from,4,4
	.comm	target,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Please enter the resource filename\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"Please enter the target filename\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #208
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L6+4
	bl	puts
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L6+8
	bl	__isoc99_scanf
	ldr	r0, .L6+12
	bl	puts
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L6+8
	bl	__isoc99_scanf
	sub	r3, fp, #208
	ldr	r1, .L6+16
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L6+20
	str	r3, [r2]
	sub	r3, fp, #108
	ldr	r1, .L6+24
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L6+28
	str	r3, [r2]
	b	.L2
.L5:
	ldrb	r3, [fp, #-209]	@ zero_extendqisi2
	mov	r0, r3
	bl	check_comment
.L2:
	ldr	r3, .L6+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-209]
	b	.L5
.L7:
	.align	2
.L6:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	from
	.word	.LC4
	.word	target
	.size	main, .-main
	.align	2
	.global	check_comment
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_comment, %function
check_comment:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L9
	ldr	r3, .L14
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L10
	bl	block_comment
	b	.L13
.L10:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L12
	bl	single_comment
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	b	.L13
.L12:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	ldr	r2, .L14+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputc
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L14+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputc
	b	.L13
.L9:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	ldr	r2, .L14+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputc
.L13:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	from
	.word	target
	.size	check_comment, .-check_comment
	.align	2
	.global	block_comment
	.syntax unified
	.arm
	.fpu softvfp
	.type	block_comment, %function
block_comment:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	b	.L17
.L21:
	ldr	r3, .L24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L22
.L18:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L17
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #42
	beq	.L23
.L17:
	ldr	r3, .L24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L18
	b	.L21
.L22:
	nop
	b	.L16
.L23:
	nop
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	from
	.size	block_comment, .-block_comment
	.align	2
	.global	single_comment
	.syntax unified
	.arm
	.fpu softvfp
	.type	single_comment, %function
single_comment:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	b	.L27
.L31:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L32
.L27:
	ldr	r3, .L33
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-5]
	b	.L31
.L32:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	from
	.size	single_comment, .-single_comment
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
