	.file	"248580011.c"
	.intel_syntax noprefix
	.text
	.globl	fp
	.bss
	.align 8
	.type	fp, @object
	.size	fp, 8
fp:
	.zero	8
	.globl	fp2
	.align 8
	.type	fp2, @object
	.size	fp2, 8
fp2:
	.zero	8
	.text
	.globl	check_comment
	.type	check_comment, @function
check_comment:
.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	eax, edi
	mov	BYTE PTR -20[rbp], al
	cmp	BYTE PTR -20[rbp], 47
	jne	.L2
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 42
	jne	.L3
	mov	eax, 0
	call	check_block_comment
	jmp	.L6
.L3:
	cmp	BYTE PTR -1[rbp], 47
	jne	.L5
	mov	eax, 0
	call	check_single_comment
	jmp	.L6
.L5:
	mov	rdx, QWORD PTR fp2[rip]
	movsx	eax, BYTE PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	mov	rdx, QWORD PTR fp2[rip]
	movsx	eax, BYTE PTR -1[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	jmp	.L6
.L2:
	mov	rdx, QWORD PTR fp2[rip]
	movsx	eax, BYTE PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_comment, .-check_comment
	.globl	check_block_comment
	.type	check_block_comment, @function
check_block_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, 16
	jmp	.L8
.L10:
	cmp	BYTE PTR -2[rbp], 42
	jne	.L8
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 47
	je	.L11
.L8:
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -2[rbp], al
	cmp	BYTE PTR -2[rbp], -1
	jne	.L10
	jmp	.L7
.L11:
	nop
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check_block_comment, .-check_block_comment
	.globl	check_single_comment
	.type	check_single_comment, @function
check_single_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
.L15:
	cmp	BYTE PTR -1[rbp], 10
	je	.L16
.L13:
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], -1
	jne	.L15
	jmp	.L12
.L16:
	nop
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check_single_comment, .-check_single_comment
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"testfile.txt"
.LC2:
	.string	"w"
.LC3:
	.string	"solved.txt"
	.text
	.globl	main
	.type	main, @function
main:
.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
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR fp[rip], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR fp2[rip], rax
	jmp	.L18
.L19:
	movsx	eax, BYTE PTR -1[rbp]
	mov	edi, eax
	call	check_comment
.L18:
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], -1
	jne	.L19
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR fp2[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"248580011.c"
	.text
	.comm	fp,4,4
	.comm	fp2,4,4
	.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	.L2
	ldr	r3, .L7
	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	.L3
	bl	check_block_comment
	b	.L6
.L3:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L5
	bl	check_single_comment
	b	.L6
.L5:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	ldr	r2, .L7+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputc
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L7+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputc
	b	.L6
.L2:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	ldr	r2, .L7+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputc
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	fp
	.word	fp2
	.size	check_comment, .-check_comment
	.align	2
	.global	check_block_comment
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_block_comment, %function
check_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	.L10
.L14:
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L15
.L10:
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L10
	b	.L14
.L15:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	fp
	.size	check_block_comment, .-check_block_comment
	.align	2
	.global	check_single_comment
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_single_comment, %function
check_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	.L19
.L23:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L24
.L19:
	ldr	r3, .L25
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-5]
	b	.L23
.L24:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	fp
	.size	check_single_comment, .-check_single_comment
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"testfile.txt\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"solved.txt\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L31
	ldr	r0, .L31+4
	bl	fopen
	mov	r3, r0
	ldr	r2, .L31+8
	str	r3, [r2]
	ldr	r1, .L31+12
	ldr	r0, .L31+16
	bl	fopen
	mov	r3, r0
	ldr	r2, .L31+20
	str	r3, [r2]
	b	.L28
.L30:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	bl	check_comment
.L28:
	ldr	r3, .L31+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-5]
	b	.L30
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	.LC1
	.word	fp
	.word	.LC2
	.word	.LC3
	.word	fp2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
