	.file	"59181.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
.LC2:
	.string	"running %d\r"
.LC3:
	.string	"running %d\n"
	.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, 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], 1
	jne	.L2
	mov	DWORD PTR -36[rbp], 0
	jmp	.L3
.L7:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	lea	rax, -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	mov	edx, DWORD PTR -36[rbp]
	lea	rax, -16[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	call	vfork@PLT
	endbr64
	test	eax, eax
	jne	.L17
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, 0
	mov	rdi, rax
	mov	eax, 0
	call	execl@PLT
	mov	edi, 0
	call	_exit@PLT
.L17:
	mov	edx, DWORD PTR -36[rbp]
	movsx	rax, edx
	imul	rax, rax, 274877907
	shr	rax, 32
	sar	eax, 6
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 1000
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -36[rbp], 100
.L3:
	cmp	DWORD PTR -36[rbp], 899999
	jle	.L7
	jmp	.L18
.L2:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edx, 5
	mov	esi, 0
	mov	edi, 0
	call	setpriority@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L9
.L13:
	cmp	DWORD PTR -32[rbp], 99
	je	.L10
	call	fork@PLT
	test	eax, eax
	jne	.L11
.L10:
	mov	DWORD PTR -40[rbp], 0
	mov	edx, 15
	mov	esi, 0
	mov	edi, 0
	call	setpriority@PLT
	mov	edi, 60
	call	sleep@PLT
.L12:
	lea	rax, -40[rbp]
	mov	edx, 100000
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	umtx_sleep@PLT
	jmp	.L12
.L11:
	add	DWORD PTR -32[rbp], 1
.L9:
	cmp	DWORD PTR -32[rbp], 99
	jle	.L13
	nop
.L14:
	mov	edx, 0
	mov	esi, 0
	mov	edi, 0
	call	wait3@PLT
	test	eax, eax
	jns	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L14
	mov	edi, 0
	call	_exit@PLT
.L18:
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	mov	edi, 1
	call	sleep@PLT
	jmp	.L15
	.cfi_endproc
.LFE6:
	.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	"59181.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"running %d\015\000"
	.align	2
.LC3:
	.ascii	"running %d\012\000"
	.align	2
.LC4:
	.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, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bne	.L2
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L3
.L7:
	ldr	r3, [fp, #-44]
	ldr	r2, [r3]
	sub	r3, fp, #32
	ldr	r1, .L19+4
	mov	r0, r3
	bl	asprintf
	sub	r3, fp, #28
	ldr	r2, [fp, #-20]
	ldr	r1, .L19+8
	mov	r0, r3
	bl	asprintf
	bl	vfork
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	ldr	r0, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r2, [fp, #-28]
	mov	r3, #0
	bl	execl
	mov	r0, #0
	bl	_exit
.L17:
	ldr	r1, [fp, #-20]
	ldr	r3, .L19+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L6
	ldr	r1, [fp, #-20]
	ldr	r0, .L19+16
	bl	printf
	ldr	r3, .L19+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L6:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-20]
	add	r3, r3, #100
	str	r3, [fp, #-20]
.L3:
	ldr	r3, [fp, #-20]
	ldr	r2, .L19+24
	cmp	r3, r2
	blt	.L7
	b	.L18
.L2:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-12]
	mov	r2, #5
	mov	r1, #0
	mov	r0, #0
	bl	setpriority
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L9
.L13:
	ldr	r3, [fp, #-16]
	cmp	r3, #99
	beq	.L10
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
.L10:
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r2, #15
	mov	r1, #0
	mov	r0, #0
	bl	setpriority
	mov	r0, #60
	bl	sleep
.L12:
	sub	r3, fp, #24
	ldr	r2, .L19+28
	mov	r1, #0
	mov	r0, r3
	bl	umtx_sleep
	b	.L12
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L9:
	ldr	r3, [fp, #-16]
	cmp	r3, #99
	ble	.L13
	nop
.L14:
	mov	r2, #0
	mov	r1, #0
	mov	r0, #0
	bl	wait3
	mov	r3, r0
	cmp	r3, #0
	bge	.L14
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L14
	mov	r0, #0
	bl	_exit
.L18:
	ldr	r1, [fp, #-20]
	ldr	r0, .L19+32
	bl	printf
.L15:
	mov	r0, #1
	bl	sleep
	b	.L15
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	274877907
	.word	.LC2
	.word	stdout
	.word	900000
	.word	100000
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
