	.file	"817930.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Time's up!"
	.text
	.globl	alarm_handler
	.type	alarm_handler, @function
alarm_handler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	alarm_handler, .-alarm_handler
	.section	.rodata
.LC1:
	.string	"%d + %d = ?"
.LC2:
	.string	"%d"
	.text
	.globl	run_challenge
	.type	run_challenge, @function
run_challenge:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	rand@PLT
	and	eax, 2147483647
	mov	DWORD PTR -16[rbp], eax
	call	rand@PLT
	and	eax, 2147483647
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -20[rbp], 0
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	cmp	edx, eax
	sete	al
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	run_challenge, .-run_challenge
	.section	.rodata
.LC3:
	.string	"FLAG"
.LC4:
	.string	"No flag present"
.LC5:
	.string	"SEED"
.LC6:
	.string	"No seed present"
.LC7:
	.string	"Bad seed"
.LC8:
	.string	"TIMEOUT"
.LC9:
	.string	"You got it!\nHere's your flag:"
	.align 8
.LC10:
	.string	"Incorrect.\nBetter luck next time!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	test	rax, rax
	jne	.L6
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L6:
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -24[rbp], rax
	lea	rdi, .LC5[rip]
	call	getenv@PLT
	test	rax, rax
	jne	.L7
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L16
.L7:
	lea	rdi, .LC5[rip]
	call	getenv@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rdi, .LC5[rip]
	call	getenv@PLT
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	lea	rcx, -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	cmp	QWORD PTR -16[rbp], rax
	je	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 34
	je	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	jne	.L10
.L9:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L16
.L10:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	srand@PLT
	lea	rdi, .LC8[rip]
	call	getenv@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L11
	lea	rdi, .LC8[rip]
	call	getenv@PLT
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	lea	rcx, -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	cmp	QWORD PTR -16[rbp], rax
	je	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 34
	je	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	jne	.L13
.L12:
	mov	DWORD PTR -40[rbp], 5
	jmp	.L13
.L11:
	mov	DWORD PTR -40[rbp], 5
.L13:
	lea	rsi, alarm_handler[rip]
	mov	edi, 14
	call	signal@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	alarm@PLT
	mov	eax, 0
	call	run_challenge
	mov	BYTE PTR -41[rbp], al
	mov	esi, 1
	mov	edi, 14
	call	signal@PLT
	cmp	BYTE PTR -41[rbp], 0
	je	.L14
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L15
.L14:
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L15:
	mov	eax, 0
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"817930.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Time's up!\000"
	.text
	.align	2
	.global	alarm_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	alarm_handler, %function
alarm_handler:
	@ 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	r0, .L2
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	alarm_handler, .-alarm_handler
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d + %d = ?\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	run_challenge
	.syntax unified
	.arm
	.fpu softvfp
	.type	run_challenge, %function
run_challenge:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	rand
	mov	r3, r0
	bic	r3, r3, #-2147483648
	str	r3, [fp, #-16]
	bl	rand
	mov	r3, r0
	bic	r3, r3, #-2147483648
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, .L7+4
	bl	printf
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L7+12
	bl	__isoc99_scanf
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	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	.LC3
	.word	.LC1
	.word	stdout
	.word	.LC2
	.size	run_challenge, .-run_challenge
	.section	.rodata
	.align	2
.LC4:
	.ascii	"FLAG\000"
	.align	2
.LC5:
	.ascii	"No flag present\000"
	.align	2
.LC6:
	.ascii	"SEED\000"
	.align	2
.LC7:
	.ascii	"No seed present\000"
	.align	2
.LC8:
	.ascii	"Bad seed\000"
	.align	2
.LC9:
	.ascii	"TIMEOUT\000"
	.align	2
.LC10:
	.ascii	"You got it!\012Here's your flag:\000"
	.align	2
.LC11:
	.ascii	"Incorrect.\012Better luck next time!\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L22+4
	bl	getenv
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L22+8
	bl	puts
	mvn	r0, #0
	bl	exit
.L10:
	ldr	r0, .L22+4
	bl	getenv
	str	r0, [fp, #-20]
	ldr	r0, .L22+12
	bl	getenv
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L22+16
	bl	puts
	mvn	r3, #0
	b	.L20
.L11:
	ldr	r0, .L22+12
	bl	getenv
	str	r0, [fp, #-16]
	ldr	r0, .L22+12
	bl	getenv
	mov	r3, r0
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-28]
	sub	r3, fp, #28
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strtoul
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L13
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #34
	beq	.L13
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	bne	.L14
.L13:
	ldr	r0, .L22+20
	bl	puts
	mvn	r3, #0
	b	.L20
.L14:
	ldr	r0, [fp, #-12]
	bl	srand
	ldr	r0, .L22+24
	bl	getenv
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L15
	ldr	r0, .L22+24
	bl	getenv
	mov	r3, r0
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-28]
	sub	r3, fp, #28
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strtoul
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L16
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #34
	beq	.L16
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	bne	.L17
.L16:
	mov	r3, #5
	str	r3, [fp, #-24]
	b	.L17
.L15:
	mov	r3, #5
	str	r3, [fp, #-24]
.L17:
	ldr	r1, .L22+28
	mov	r0, #14
	bl	signal
	ldr	r0, [fp, #-24]
	bl	alarm
	bl	run_challenge
	mov	r3, r0
	strb	r3, [fp, #-29]
	mov	r1, #1
	mov	r0, #14
	bl	signal
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L22+32
	bl	puts
	ldr	r0, [fp, #-20]
	bl	puts
	b	.L19
.L18:
	ldr	r0, .L22+36
	bl	puts
.L19:
	mov	r3, #0
.L20:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC12
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	alarm_handler
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
