	.file	"408684.c"
	.intel_syntax noprefix
	.text
	.globl	is_integer
	.type	is_integer, @function
is_integer:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L2
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L2
	cmp	DWORD PTR -4[rbp], 1
	jg	.L3
	mov	eax, 0
	jmp	.L4
.L3:
	mov	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L5
.L7:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L6
	mov	eax, 0
	jmp	.L4
.L6:
	add	DWORD PTR -8[rbp], 1
.L5:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L7
	mov	eax, 1
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_integer, .-is_integer
	.section	.rodata
.LC0:
	.string	"%lld"
	.align 8
.LC1:
	.string	"Warning: Integer overflow with '%s'.\n"
	.text
	.globl	get_integer
	.type	get_integer, @function
get_integer:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L9
	mov	eax, 0
	jmp	.L12
.L9:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	cmp	rdx, rax
	je	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L12
.L11:
	mov	eax, 1
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_integer, .-get_integer
	.section	.rodata
.LC2:
	.string	"Usage: %s <num forks>\n"
	.align 8
.LC3:
	.string	"Error: Invalid number of forks '%s'.\n"
.LC4:
	.string	"randomsleep"
.LC5:
	.string	"Error: fork[%d] failed. %s.\n"
.LC6:
	.string	""
.LC7:
	.string	"Error: execl() failed. %s.\n"
.LC8:
	.string	"Error: wait() failed. %s.\n"
	.align 8
.LC9:
	.string	"Child with pid %ld has terminated.\n"
	.align 8
.LC10:
	.string	"All children are done sleeping."
	.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
	cmp	DWORD PTR -52[rbp], 2
	je	.L15
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L28
.L15:
	mov	DWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	is_integer
	xor	eax, 1
	test	al, al
	jne	.L17
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_integer
	xor	eax, 1
	test	al, al
	jne	.L17
	mov	eax, DWORD PTR -40[rbp]
	test	eax, eax
	jg	.L18
.L17:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L28
.L18:
	lea	rax, .LC4[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L19
.L23:
	call	fork@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L20
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L28
.L20:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L21
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	execl@PLT
	cmp	eax, -1
	jne	.L22
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L28
.L22:
	mov	eax, 0
	jmp	.L28
.L21:
	add	DWORD PTR -32[rbp], 1
.L19:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L23
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L24
.L27:
	lea	rax, -36[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jns	.L25
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L26
.L25:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L26:
	sub	DWORD PTR -28[rbp], 1
.L24:
	cmp	DWORD PTR -28[rbp], 0
	jg	.L27
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, 0
.L28:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	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	"408684.c"
	.text
	.align	2
	.global	is_integer
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_integer, %function
is_integer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L2
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bgt	.L3
	mov	r3, #0
	b	.L4
.L3:
	mov	r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L5
.L7:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L6
	mov	r3, #0
	b	.L4
.L6:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L7
	mov	r3, #1
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	is_integer, .-is_integer
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%lld\000"
	.align	2
.LC1:
	.ascii	"Warning: Integer overflow with '%s'.\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_integer
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_integer, %function
get_integer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #20
	mov	r2, r3
	ldr	r1, .L14+4
	ldr	r0, [fp, #-24]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L9
	mov	r3, #0
	b	.L12
.L9:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	beq	.L11
	ldr	r3, .L14+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L14+12
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L12
.L11:
	mov	r3, #1
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	.LC0
	.word	stderr
	.word	.LC1
	.size	get_integer, .-get_integer
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Usage: %s <num forks>\012\000"
	.align	2
.LC4:
	.ascii	"Error: Invalid number of forks '%s'.\012\000"
	.align	2
.LC5:
	.ascii	"randomsleep\000"
	.align	2
.LC6:
	.ascii	"Error: fork[%d] failed. %s.\012\000"
	.align	2
.LC7:
	.ascii	"\000"
	.align	2
.LC8:
	.ascii	"Error: execl() failed. %s.\012\000"
	.align	2
.LC9:
	.ascii	"Error: wait() failed. %s.\012\000"
	.align	2
.LC10:
	.ascii	"Child with pid %ld has terminated.\012\000"
	.align	2
.LC11:
	.ascii	"All children are done sleeping.\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	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	beq	.L17
	ldr	r3, .L32+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L32+8
	bl	fprintf
	mov	r3, #1
	b	.L30
.L17:
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	is_integer
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	get_integer
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bgt	.L20
.L19:
	ldr	r3, .L32+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L32+12
	bl	fprintf
	mov	r3, #1
	b	.L30
.L20:
	ldr	r3, .L32+16
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L21
.L25:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L22
	ldr	r3, .L32+4
	ldr	r4, [r3]
	ldr	r3, [fp, #-36]
	add	r5, r3, #1
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L32+20
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L30
.L22:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L23
	mov	r2, #0
	ldr	r1, .L32+24
	ldr	r0, [fp, #-28]
	bl	execl
	mov	r3, r0
	cmn	r3, #1
	bne	.L24
	ldr	r3, .L32+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L32+28
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L30
.L24:
	mov	r3, #0
	b	.L30
.L23:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L21:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-32]
	b	.L26
.L29:
	sub	r3, fp, #40
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L27
	ldr	r3, .L32+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L32+32
	mov	r0, r4
	bl	fprintf
	b	.L28
.L27:
	ldr	r1, [fp, #-24]
	ldr	r0, .L32+36
	bl	printf
.L28:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L26:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L29
	ldr	r0, .L32+40
	bl	puts
	mov	r3, #0
.L30:
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC12
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.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
