	.file	"386848.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"flag.txt"
.LC2:
	.string	"Couldn't find a flag file."
.LC3:
	.string	"\n"
	.text
	.globl	print_flag
	.type	print_flag, @function
print_flag:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L1
.L2:
	mov	rdx, QWORD PTR -152[rbp]
	lea	rax, -144[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -144[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcspn@PLT
	mov	BYTE PTR -144[rbp+rax], 0
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	puts@PLT
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	print_flag, .-print_flag
	.section	.rodata
.LC4:
	.string	"Stage 1: "
.LC5:
	.string	"%lu"
.LC7:
	.string	"Stage 1 passed!"
.LC8:
	.string	"Stage 1 failed!"
.LC9:
	.string	"Stage 2: "
.LC10:
	.string	"Stage 2 passed!"
.LC11:
	.string	"Stage 2 failed!"
.LC12:
	.string	"Stage 3: "
.LC14:
	.string	"Stage 3 passed!"
.LC15:
	.string	"Stage 4: "
.LC16:
	.string	"Stage 3 failed!"
.LC17:
	.string	"Stage 4 passed!"
.LC18:
	.string	"Stage 5: "
.LC19:
	.string	"Stage 4 failed!"
.LC20:
	.string	"Stage 5 passed!"
.LC21:
	.string	"Stage 5 failed!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	movq	xmm1, QWORD PTR .LC6[rip]
	xorpd	xmm0, xmm1
	ucomisd	xmm0, QWORD PTR -16[rbp]
	jp	.L6
	ucomisd	xmm0, QWORD PTR -16[rbp]
	jne	.L6
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	ucomisd	xmm0, QWORD PTR -16[rbp]
	jp	.L26
	jmp	.L30
.L6:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L23
.L30:
	movsd	xmm0, QWORD PTR -16[rbp]
	comisd	xmm0, QWORD PTR -16[rbp]
	je	.L31
.L26:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm1, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR .LC13[rip]
	addsd	xmm0, xmm1
	ucomisd	xmm0, QWORD PTR -16[rbp]
	jp	.L13
	jmp	.L32
.L31:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 2
	jmp	.L23
.L32:
	ucomisd	xmm0, QWORD PTR -16[rbp]
	jne	.L13
	movsd	xmm0, QWORD PTR -16[rbp]
	addsd	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -16[rbp]
	jp	.L13
	ucomisd	xmm0, QWORD PTR -16[rbp]
	jne	.L13
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm1, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR .LC13[rip]
	addsd	xmm0, xmm1
	ucomisd	xmm0, QWORD PTR -16[rbp]
	jp	.L18
	ucomisd	xmm0, QWORD PTR -16[rbp]
	je	.L16
	jmp	.L18
.L13:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, 3
	jmp	.L23
.L16:
	movsd	xmm0, QWORD PTR -16[rbp]
	addsd	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -16[rbp]
	jp	.L29
	comisd	xmm0, QWORD PTR -16[rbp]
	je	.L18
.L29:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm1, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR .LC13[rip]
	addsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC13[rip]
	subsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -16[rbp]
	movsd	xmm3, QWORD PTR .LC13[rip]
	movapd	xmm2, xmm1
	subsd	xmm2, xmm3
	movsd	xmm1, QWORD PTR .LC13[rip]
	addsd	xmm1, xmm2
	ucomisd	xmm0, xmm1
	jp	.L20
	comisd	xmm0, xmm1
	jne	.L20
	jmp	.L33
.L18:
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	eax, 4
	jmp	.L23
.L20:
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	eax, 0
	call	print_flag
	mov	eax, 0
	jmp	.L23
.L33:
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	eax, 5
.L23:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC6:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.align 8
.LC13:
	.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	"386848.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"flag.txt\000"
	.align	2
.LC2:
	.ascii	"Couldn't find a flag file.\000"
	.align	2
.LC3:
	.ascii	"\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_flag
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_flag, %function
print_flag:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L5+4
	ldr	r0, .L5+8
	bl	fopen
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L5+12
	bl	puts
	b	.L1
.L2:
	sub	r3, fp, #136
	ldr	r2, [fp, #-140]
	mov	r1, #128
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #136
	ldr	r1, .L5+16
	mov	r0, r3
	bl	strcspn
	mov	r3, r0
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-132]
	sub	r3, fp, #136
	mov	r0, r3
	bl	puts
.L1:
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	print_flag, .-print_flag
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Stage 1: \000"
	.align	2
.LC6:
	.ascii	"%lu\000"
	.global	__aeabi_dcmpeq
	.align	2
.LC7:
	.ascii	"Stage 1 passed!\000"
	.align	2
.LC8:
	.ascii	"Stage 1 failed!\000"
	.align	2
.LC9:
	.ascii	"Stage 2: \000"
	.align	2
.LC10:
	.ascii	"Stage 2 passed!\000"
	.align	2
.LC11:
	.ascii	"Stage 2 failed!\000"
	.align	2
.LC12:
	.ascii	"Stage 3: \000"
	.global	__aeabi_dadd
	.align	2
.LC13:
	.ascii	"Stage 3 passed!\000"
	.align	2
.LC14:
	.ascii	"Stage 4: \000"
	.align	2
.LC15:
	.ascii	"Stage 3 failed!\000"
	.align	2
.LC16:
	.ascii	"Stage 4 passed!\000"
	.align	2
.LC17:
	.ascii	"Stage 5: \000"
	.global	__aeabi_dsub
	.align	2
.LC18:
	.ascii	"Stage 4 failed!\000"
	.align	2
.LC19:
	.ascii	"Stage 5 passed!\000"
	.align	2
.LC20:
	.ascii	"Stage 5 failed!\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L34+4
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L34+8
	bl	__isoc99_scanf
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r4, [fp, #-28]
	ldr	r3, [fp, #-24]
	eor	r5, r3, #-2147483648
	mov	r2, r4
	mov	r3, r5
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	ldr	r0, .L34+12
	bl	puts
	ldr	r0, .L34+16
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L34+8
	bl	__isoc99_scanf
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	b	.L32
.L31:
	ldr	r0, .L34+20
	bl	puts
	mov	r3, #1
	b	.L24
.L27:
	ldr	r0, .L34+24
	bl	puts
	ldr	r0, .L34+28
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L34+8
	bl	__isoc99_scanf
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r2, #0
	ldr	r3, .L34+32
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	b	.L15
.L32:
	ldr	r0, .L34+36
	bl	puts
	mov	r3, #2
	b	.L24
.L28:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r0, .L34+40
	bl	puts
	ldr	r0, .L34+44
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L34+8
	bl	__isoc99_scanf
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r2, #0
	ldr	r3, .L34+32
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	b	.L19
.L15:
	ldr	r0, .L34+48
	bl	puts
	mov	r3, #3
	b	.L24
.L18:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	ldr	r0, .L34+52
	bl	puts
	ldr	r0, .L34+56
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L34+8
	bl	__isoc99_scanf
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r2, #0
	ldr	r3, .L34+32
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L34+32
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	mov	r2, #0
	ldr	r3, .L34+32
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L34+32
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	b	.L33
.L19:
	ldr	r0, .L34+60
	bl	puts
	mov	r3, #4
	b	.L24
.L21:
	ldr	r0, .L34+64
	bl	puts
	bl	print_flag
	mov	r3, #0
	b	.L24
.L33:
	ldr	r0, .L34+68
	bl	puts
	mov	r3, #5
.L24:
	ldr	r2, .L34
	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, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC21
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC9
	.word	.LC8
	.word	.LC10
	.word	.LC12
	.word	1072693248
	.word	.LC11
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
