	.file	"247017583.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n\nTime expired, quitting"
	.text
	.globl	quitOnTimeout
	.type	quitOnTimeout, @function
quitOnTimeout:
.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, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	quitOnTimeout, .-quitOnTimeout
	.section	.rodata
	.align 8
.LC1:
	.string	"Total System Memory in MB = %d MB\n"
	.align 8
.LC2:
	.string	"Will consume somewhat less: %d MB\n"
	.align 8
.LC3:
	.string	"Will consume instead mem = %d MB\n"
	.align 8
.LC4:
	.string	"Will quite in %d seconds if no normal termination\n"
.LC5:
	.string	"%8d"
.LC6:
	.string	"\n\n Sleeping for %d seconds\n"
	.align 8
.LC7:
	.string	"\n\n Quitting and releasing memory"
	.text
	.globl	main
	.type	main, @function
main:
.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	sysinfo@PLT
	mov	rax, QWORD PTR -96[rbp]
	shr	rax, 20
	mov	DWORD PTR -144[rbp], eax
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -144[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -144[rbp], eax
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -148[rbp], 2
	jne	.L3
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -144[rbp], eax
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	lea	rsi, quitOnTimeout[rip]
	mov	edi, 14
	call	signal@PLT
	mov	esi, 20
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 20
	call	alarm@PLT
	mov	DWORD PTR -140[rbp], 0
	jmp	.L4
.L5:
	mov	edi, 16777216
	call	malloc@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	ecx, DWORD PTR -140[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, 16777216
	mov	esi, ecx
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -140[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -140[rbp], 16
.L4:
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, DWORD PTR -144[rbp]
	jle	.L5
	mov	esi, 5
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 5
	call	sleep@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.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	"247017583.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\012Time expired, quitting\000"
	.text
	.align	2
	.global	quitOnTimeout
	.syntax unified
	.arm
	.fpu softvfp
	.type	quitOnTimeout, %function
quitOnTimeout:
	@ 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, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	quitOnTimeout, .-quitOnTimeout
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Total System Memory in MB = %d MB\012\000"
	.align	2
.LC2:
	.ascii	"Will consume somewhat less: %d MB\012\000"
	.align	2
.LC3:
	.ascii	"Will consume instead mem = %d MB\012\000"
	.align	2
.LC4:
	.ascii	"Will quite in %d seconds if no normal termination\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"%8d\000"
	.align	2
.LC6:
	.ascii	"\012\012 Sleeping for %d seconds\012\000"
	.align	2
.LC7:
	.ascii	"\012\012 Quitting and releasing memory\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #72
	mov	r0, r3
	bl	sysinfo
	ldr	r3, [fp, #-56]
	lsr	r3, r3, #20
	str	r3, [fp, #-84]
	ldr	r1, [fp, #-84]
	ldr	r0, .L9+4
	bl	printf
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, .L9+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-84]
	ldr	r1, [fp, #-84]
	ldr	r0, .L9+12
	bl	printf
	ldr	r3, [fp, #-88]
	cmp	r3, #2
	bne	.L5
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-84]
	ldr	r1, [fp, #-84]
	ldr	r0, .L9+16
	bl	printf
.L5:
	ldr	r1, .L9+20
	mov	r0, #14
	bl	signal
	mov	r1, #20
	ldr	r0, .L9+24
	bl	printf
	mov	r0, #20
	bl	alarm
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L6
.L7:
	mov	r0, #16777216
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-76]
	mov	r2, #16777216
	ldr	r1, [fp, #-80]
	ldr	r0, [fp, #-76]
	bl	memset
	ldr	r1, [fp, #-80]
	ldr	r0, .L9+28
	bl	printf
	ldr	r3, .L9+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-80]
	add	r3, r3, #16
	str	r3, [fp, #-80]
.L6:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	ble	.L7
	mov	r1, #5
	ldr	r0, .L9+36
	bl	printf
	mov	r0, #5
	bl	sleep
	ldr	r0, .L9+40
	bl	puts
	mov	r0, #0
	bl	exit
.L10:
	.align	2
.L9:
	.word	.LC8
	.word	.LC1
	.word	1717986919
	.word	.LC2
	.word	.LC3
	.word	quitOnTimeout
	.word	.LC4
	.word	.LC5
	.word	stdout
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
