	.file	"534626.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Insert number to find!"
	.align 8
.LC1:
	.string	"Generating numbers from 0 to %d ... "
.LC2:
	.string	"Done"
	.align 8
.LC3:
	.string	"[Pai] process %d exited. found number at row %d\n"
	.align 8
.LC4:
	.string	"[Pai] process %d exited. nothing found\n"
	.align 8
.LC5:
	.string	"[Pai] process %d exited. something went wrong\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
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -84[rbp], 1
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	DWORD PTR -52[rbp], 100
	mov	DWORD PTR -48[rbp], 10000
	mov	DWORD PTR -44[rbp], 10000
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -76[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 2
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -72[rbp], 0
	jmp	.L4
.L5:
	call	rand@PLT
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -72[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rcx, rdx
	cdq
	idiv	DWORD PTR -44[rbp]
	mov	eax, edx
	mov	DWORD PTR [rcx], eax
	add	DWORD PTR -72[rbp], 1
.L4:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L5
	add	DWORD PTR -76[rbp], 1
.L3:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -68[rbp], 0
	jmp	.L7
.L12:
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jne	.L8
	mov	DWORD PTR -64[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -56[rbp], eax
	jne	.L10
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	_exit@PLT
.L10:
	add	DWORD PTR -64[rbp], 1
.L9:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L11
	mov	edi, -1
	call	_exit@PLT
.L8:
	add	DWORD PTR -68[rbp], 1
.L7:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L12
	mov	DWORD PTR -60[rbp], 0
	jmp	.L13
.L17:
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR -80[rbp]
	sar	eax, 8
	movzx	eax, al
	cmp	eax, 254
	jg	.L15
	mov	eax, DWORD PTR -80[rbp]
	sar	eax, 8
	movzx	edx, al
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L14:
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	add	DWORD PTR -60[rbp], 1
.L13:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L17
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"534626.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Insert number to find!\000"
	.align	2
.LC1:
	.ascii	"Generating numbers from 0 to %d ... \000"
	.global	__aeabi_idivmod
	.align	2
.LC2:
	.ascii	"Done\000"
	.align	2
.LC3:
	.ascii	"[Pai] process %d exited. found number at row %d\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"[Pai] process %d exited. nothing found\012\000"
	.align	2
.LC5:
	.ascii	"[Pai] process %d exited. something went wrong\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L20+4
	bl	puts
	mvn	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-44]
	mov	r3, #100
	str	r3, [fp, #-40]
	ldr	r3, .L20+8
	str	r3, [fp, #-36]
	ldr	r3, .L20+8
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, .L20+12
	bl	printf
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L3
.L6:
	ldr	r3, [fp, #-36]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L4
.L5:
	bl	rand
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	add	r4, r2, r3
	ldr	r1, [fp, #-32]
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [r4]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L4:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L3:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L6
	ldr	r0, .L20+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L7
.L12:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L8
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L9
.L11:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bne	.L10
	ldr	r0, [fp, #-56]
	bl	_exit
.L10:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L9:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L11
	mvn	r0, #0
	bl	_exit
.L8:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L7:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L12
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L13
.L17:
	sub	r3, fp, #68
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-68]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-68]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #254
	bgt	.L15
	ldr	r3, [fp, #-68]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, .L20+20
	bl	printf
	b	.L16
.L15:
	ldr	r1, [fp, #-24]
	ldr	r0, .L20+24
	bl	printf
	b	.L16
.L14:
	ldr	r1, [fp, #-24]
	ldr	r0, .L20+28
	bl	printf
.L16:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L13:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L17
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC6
	.word	.LC0
	.word	10000
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
