	.file	"645583.c"
	.intel_syntax noprefix
	.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, 1040
	mov	DWORD PTR -1028[rbp], edi
	mov	QWORD PTR -1040[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1028[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -1040[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	filter
	mov	DWORD PTR -1012[rbp], eax
	mov	eax, DWORD PTR -1012[rbp]
	jmp	.L5
.L2:
	mov	eax, -1
.L5:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"w"
.LC2:
	.string	"filter_out"
	.text
	.globl	filter
	.type	filter, @function
filter:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1968
	mov	QWORD PTR -6056[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -6056[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -6032[rbp], rax
	cmp	QWORD PTR -6032[rbp], 0
	jne	.L8
	mov	eax, -1
	jmp	.L22
.L8:
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -6024[rbp], rax
	cmp	QWORD PTR -6024[rbp], 0
	jne	.L10
	mov	eax, -1
	jmp	.L22
.L10:
	mov	DWORD PTR -6040[rbp], 0
	jmp	.L11
.L12:
	mov	rdx, QWORD PTR -6032[rbp]
	lea	rax, -5008[rbp]
	mov	esi, 5000
	mov	rdi, rax
	call	fgets@PLT
	mov	rdx, QWORD PTR -6024[rbp]
	lea	rax, -5008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	add	DWORD PTR -6040[rbp], 1
.L11:
	cmp	DWORD PTR -6040[rbp], 0
	jle	.L12
	jmp	.L13
.L21:
	mov	DWORD PTR -6048[rbp], 0
	mov	DWORD PTR -6044[rbp], 0
	mov	DWORD PTR -6036[rbp], 0
	lea	rax, -6016[rbp]
	mov	edx, 1000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L14
.L20:
	mov	eax, DWORD PTR -6044[rbp]
	cdqe
	movzx	edx, BYTE PTR -5008[rbp+rax]
	mov	eax, DWORD PTR -6048[rbp]
	cdqe
	mov	BYTE PTR -6016[rbp+rax], dl
	mov	eax, DWORD PTR -6044[rbp]
	cdqe
	movzx	eax, BYTE PTR -5008[rbp+rax]
	cmp	al, 32
	je	.L15
	mov	eax, DWORD PTR -6044[rbp]
	cdqe
	movzx	eax, BYTE PTR -5008[rbp+rax]
	cmp	al, 9
	je	.L15
	mov	eax, DWORD PTR -6044[rbp]
	cdqe
	movzx	eax, BYTE PTR -5008[rbp+rax]
	cmp	al, 10
	jne	.L16
.L15:
	cmp	DWORD PTR -6036[rbp], 1
	jne	.L17
	lea	rax, -6016[rbp]
	mov	rdi, rax
	call	atof@PLT
	movsd	xmm1, QWORD PTR .LC3[rip]
	comisd	xmm1, xmm0
	jb	.L17
	mov	rdx, QWORD PTR -6024[rbp]
	lea	rax, -5008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L17:
	lea	rax, -6016[rbp]
	mov	edx, 1000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	add	DWORD PTR -6036[rbp], 1
	mov	DWORD PTR -6048[rbp], 0
	jmp	.L19
.L16:
	add	DWORD PTR -6048[rbp], 1
.L19:
	add	DWORD PTR -6044[rbp], 1
.L14:
	cmp	DWORD PTR -6036[rbp], 1
	jle	.L20
.L13:
	mov	rdx, QWORD PTR -6032[rbp]
	lea	rax, -5008[rbp]
	mov	esi, 5000
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L21
	mov	rax, QWORD PTR -6032[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -6024[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L22:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	filter, .-filter
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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	"645583.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1016
	str	r0, [fp, #-1016]
	str	r1, [fp, #-1020]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1016]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-1020]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #1008
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1008
	mov	r0, r3
	bl	filter
	str	r0, [fp, #-1012]
	ldr	r3, [fp, #-1012]
	b	.L5
.L2:
	mvn	r3, #0
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"filter_out\000"
	.global	__aeabi_dcmple
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	filter
	.syntax unified
	.arm
	.fpu softvfp
	.type	filter, %function
filter:
	@ args = 0, pretend = 0, frame = 6040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #6016
	sub	sp, sp, #28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-1940]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L27+4
	ldr	r0, [r3, #-1940]
	bl	fopen
	str	r0, [r4, #-1916]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1916]
	cmp	r3, #0
	bne	.L10
	mvn	r3, #0
	b	.L24
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L27+8
	ldr	r0, .L27+12
	bl	fopen
	str	r0, [r4, #-1912]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1912]
	cmp	r3, #0
	bne	.L12
	mvn	r3, #0
	b	.L24
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1924]
	b	.L13
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r2, [r2, #-1916]
	ldr	r1, .L27+16
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r1, [r2, #-1912]
	mov	r0, r3
	bl	fputs
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1924]
	add	r3, r3, #1
	str	r3, [r2, #-1924]
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1924]
	cmp	r3, #0
	ble	.L14
	b	.L15
.L23:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1932]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1928]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1920]
	sub	r3, fp, #5952
	sub	r3, r3, #12
	sub	r3, r3, #52
	mov	r2, #1000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L16
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1928]
	add	r3, r2, r3
	sub	r3, r3, #908
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1932]
	add	r3, r1, r3
	sub	r3, r3, #1904
	sub	r3, r3, #4
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1928]
	add	r3, r2, r3
	sub	r3, r3, #908
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L17
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1928]
	add	r3, r2, r3
	sub	r3, r3, #908
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L17
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1928]
	add	r3, r2, r3
	sub	r3, r3, #908
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L18
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1920]
	cmp	r3, #1
	bne	.L19
	sub	r3, fp, #5952
	sub	r3, r3, #12
	sub	r3, r3, #52
	mov	r0, r3
	bl	atof
	mov	r2, #0
	ldr	r3, .L27+20
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r1, [r2, #-1912]
	mov	r0, r3
	bl	fputs
.L19:
	sub	r3, fp, #5952
	sub	r3, r3, #12
	sub	r3, r3, #52
	mov	r2, #1000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1920]
	add	r3, r3, #1
	str	r3, [r2, #-1920]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1932]
	b	.L21
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1932]
	add	r3, r3, #1
	str	r3, [r2, #-1932]
.L21:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1928]
	add	r3, r3, #1
	str	r3, [r2, #-1928]
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1920]
	cmp	r3, #1
	ble	.L22
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r2, [r2, #-1916]
	ldr	r1, .L27+16
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1916]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1912]
	bl	fclose
	mov	r3, #0
.L24:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	5000
	.word	1072693248
	.size	filter, .-filter
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
