	.file	"76698982.c"
	.intel_syntax noprefix
	.text
	.globl	errorMessage
	.bss
	.align 32
	.type	errorMessage, @object
	.size	errorMessage, 64
errorMessage:
	.zero	64
	.section	.rodata
	.align 8
.LC0:
	.string	"Unrecognized parameter mode '%d'\n"
	.text
	.globl	getParameter
	.type	getParameter, @function
getParameter:
.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 -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	je	.L2
	cmp	DWORD PTR -32[rbp], 1
	je	.L3
	jmp	.L6
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	jmp	.L5
.L3:
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	lea	rdi, errorMessage[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, errorMessage[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getParameter, .-getParameter
	.globl	getAddress
	.type	getAddress, @function
getAddress:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getAddress, .-getAddress
	.section	.rodata
	.align 8
.LC1:
	.string	"Unknow instruction '%d' at '%d'\n"
	.text
	.globl	tick
	.type	tick, @function
tick:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	je	.L28
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	edx, edx, 100
	sub	eax, edx
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	sar	eax, 31
	sub	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -40[rbp], eax
	mov	ecx, DWORD PTR -40[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -40[rbp], edx
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 274877907
	shr	rdx, 32
	sar	edx, 6
	sar	eax, 31
	sub	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -36[rbp], eax
	mov	ecx, DWORD PTR -36[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -36[rbp], edx
	cmp	DWORD PTR -44[rbp], 8
	jg	.L12
	cmp	DWORD PTR -44[rbp], 0
	jle	.L13
	cmp	DWORD PTR -44[rbp], 8
	ja	.L13
	mov	eax, DWORD PTR -44[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L15[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L15[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L15:
	.long	.L13-.L15
	.long	.L22-.L15
	.long	.L21-.L15
	.long	.L20-.L15
	.long	.L19-.L15
	.long	.L18-.L15
	.long	.L17-.L15
	.long	.L16-.L15
	.long	.L14-.L15
	.text
.L12:
	cmp	DWORD PTR -44[rbp], 99
	je	.L23
	jmp	.L13
.L22:
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	getParameter
	mov	r12d, eax
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	getParameter
	mov	ebx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	r13, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	getAddress
	cdqe
	sal	rax, 2
	add	rax, r13
	lea	edx, [r12+rbx]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 4[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], edx
	jmp	.L9
.L21:
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	getParameter
	mov	r12d, eax
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	getParameter
	mov	ebx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	r13, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	getAddress
	cdqe
	sal	rax, 2
	lea	rdx, 0[r13+rax]
	mov	eax, r12d
	imul	eax, ebx
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 4[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], edx
	jmp	.L9
.L20:
	mov	rax, QWORD PTR -56[rbp]
	mov	rbx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	getAddress
	cdqe
	sal	rax, 2
	lea	rdx, [rbx+rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 2[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], edx
	jmp	.L9
.L19:
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	getParameter
	mov	rdx, QWORD PTR -56[rbp]
	mov	DWORD PTR 20[rdx], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 2[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], edx
	jmp	.L9
.L18:
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	getParameter
	test	eax, eax
	je	.L24
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	getParameter
	mov	rdx, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rdx], eax
	jmp	.L9
.L24:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 3[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], edx
	jmp	.L9
.L17:
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	getParameter
	test	eax, eax
	jne	.L26
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	getParameter
	mov	rdx, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rdx], eax
	jmp	.L9
.L26:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 3[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], edx
	jmp	.L9
.L16:
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	getParameter
	mov	ebx, eax
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	getParameter
	cmp	ebx, eax
	setl	bl
	mov	rax, QWORD PTR -56[rbp]
	mov	r12, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	getAddress
	cdqe
	sal	rax, 2
	lea	rdx, [r12+rax]
	movzx	eax, bl
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 4[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], edx
	jmp	.L9
.L14:
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	getParameter
	mov	ebx, eax
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	getParameter
	cmp	ebx, eax
	sete	bl
	mov	rax, QWORD PTR -56[rbp]
	mov	r12, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	getAddress
	cdqe
	sal	rax, 2
	lea	rdx, [r12+rax]
	movzx	eax, bl
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 4[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], edx
	jmp	.L9
.L23:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 12[rax], 0
	jmp	.L9
.L13:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -44[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC1[rip]
	lea	rdi, errorMessage[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, errorMessage[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	nop
.L9:
	add	rsp, 40
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	tick, .-tick
	.globl	newComputer
	.type	newComputer, @function
newComputer:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, rsi
	mov	rsi, rdx
	mov	rdx, rsi
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -60[rbp], ecx
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 12[rax], 1
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -60[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 20[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	newComputer, .-newComputer
	.globl	run
	.type	run, @function
run:
.LFB10:
	.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	QWORD PTR -8[rbp], rdi
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	tick
.L32:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	jne	.L33
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	run, .-run
	.globl	runProgram
	.type	runProgram, @function
runProgram:
.LFB11:
	.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, 72
	.cfi_offset 3, -24
	mov	rcx, rdi
	mov	rax, rsi
	mov	rbx, rax
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -56[rbp], rbx
	mov	DWORD PTR -68[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	ecx, DWORD PTR -68[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	newComputer
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	run
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	runProgram, .-runProgram
	.globl	solve
	.type	solve, @function
solve:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, rdi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 1
	mov	rdi, rcx
	mov	rsi, rax
	call	runProgram
	mov	r12d, eax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 5
	mov	rdi, rcx
	mov	rsi, rax
	call	runProgram
	mov	edx, eax
	mov	ecx, r12d
	movabs	rax, -4294967296
	and	rax, rbx
	or	rax, rcx
	mov	rbx, rax
	mov	eax, edx
	sal	rax, 32
	mov	edx, ebx
	or	rax, rdx
	mov	rbx, rax
	mov	rax, rbx
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	solve, .-solve
	.globl	addToInput
	.type	addToInput, @function
addToInput:
.LFB13:
	.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	edx, eax
	jne	.L41
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	lea	edx, 10[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
.L41:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rdx], ecx
	cdqe
	sal	rax, 2
	lea	rdx, [rsi+rax]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	addToInput, .-addToInput
	.section	.rodata
.LC2:
	.string	"r"
.LC3:
	.string	"Error reading input file!\n"
.LC4:
	.string	","
	.text
	.globl	getInput
	.type	getInput, @function
getInput:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L43
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L43:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	esi, 4
	mov	edi, 10
	call	calloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 10
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -64[rbp], rax
	jmp	.L44
.L45:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, eax
	lea	rax, -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	addToInput
	lea	rsi, .LC4[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -64[rbp], rax
.L44:
	cmp	QWORD PTR -64[rbp], 0
	jne	.L45
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	getInput, .-getInput
	.globl	freeInput
	.type	freeInput, @function
freeInput:
.LFB15:
	.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	rax, rdi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	freeInput, .-freeInput
	.section	.rodata
	.align 8
.LC5:
	.string	"Please, add input file path as parameter"
.LC6:
	.string	"P1: %d\n"
.LC7:
	.string	"P2: %d\n\n"
.LC9:
	.string	"Time: %.7f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -84[rbp], 2
	je	.L50
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L50:
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	getInput
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	solve
	mov	QWORD PTR -72[rbp], rax
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	freeInput
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	sub	rax, rdx
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -56[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC8[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC8:
	.long	0
	.long	1093567616
	.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	"76698982.c"
	.text
	.comm	errorMessage,64,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Unrecognized parameter mode '%d'\012\000"
	.text
	.align	2
	.global	getParameter
	.syntax unified
	.arm
	.fpu softvfp
	.type	getParameter, %function
getParameter:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	beq	.L3
	b	.L6
.L2:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L5
.L3:
	ldr	r3, [fp, #-8]
	b	.L5
.L6:
	ldr	r2, [fp, #-24]
	ldr	r1, .L7
	ldr	r0, .L7+4
	bl	sprintf
	ldr	r0, .L7+4
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	errorMessage
	.size	getParameter, .-getParameter
	.align	2
	.global	getAddress
	.syntax unified
	.arm
	.fpu softvfp
	.type	getAddress, %function
getAddress:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getAddress, .-getAddress
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Unknow instruction '%d' at '%d'\012\000"
	.text
	.align	2
	.global	tick
	.syntax unified
	.arm
	.fpu softvfp
	.type	tick, %function
tick:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-40]
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, .L31
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	ldr	r2, .L31
	smull	r1, r2, r3, r2
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, .L31+4
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	ldr	r2, .L31+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, .L31+4
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #8
	bgt	.L14
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L15
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L15
.L17:
	.word	.L24
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L18
	.word	.L16
.L14:
	ldr	r3, [fp, #-32]
	cmp	r3, #99
	beq	.L25
	b	.L15
.L24:
	ldr	r2, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	getParameter
	mov	r6, r0
	ldr	r2, [fp, #-24]
	mov	r1, #2
	ldr	r0, [fp, #-40]
	bl	getParameter
	mov	r5, r0
	ldr	r3, [fp, #-40]
	ldr	r4, [r3]
	mov	r1, #3
	ldr	r0, [fp, #-40]
	bl	getAddress
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	add	r2, r6, r5
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r2, r3, #4
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
	b	.L11
.L23:
	ldr	r2, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	getParameter
	mov	r5, r0
	ldr	r2, [fp, #-24]
	mov	r1, #2
	ldr	r0, [fp, #-40]
	bl	getParameter
	mov	r6, r0
	ldr	r3, [fp, #-40]
	ldr	r4, [r3]
	mov	r1, #3
	ldr	r0, [fp, #-40]
	bl	getAddress
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	mul	r2, r6, r5
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r2, r3, #4
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
	b	.L11
.L22:
	ldr	r3, [fp, #-40]
	ldr	r4, [r3]
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	getAddress
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r2, [fp, #-40]
	ldr	r2, [r2, #12]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r2, r3, #2
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
	b	.L11
.L21:
	ldr	r2, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	getParameter
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r2, r3, #2
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
	b	.L11
.L20:
	ldr	r2, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	getParameter
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r2, [fp, #-24]
	mov	r1, #2
	ldr	r0, [fp, #-40]
	bl	getParameter
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
	b	.L11
.L26:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r2, r3, #3
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
	b	.L11
.L19:
	ldr	r2, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	getParameter
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	ldr	r2, [fp, #-24]
	mov	r1, #2
	ldr	r0, [fp, #-40]
	bl	getParameter
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
	b	.L11
.L28:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r2, r3, #3
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
	b	.L11
.L18:
	ldr	r2, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	getParameter
	mov	r4, r0
	ldr	r2, [fp, #-24]
	mov	r1, #2
	ldr	r0, [fp, #-40]
	bl	getParameter
	mov	r3, r0
	cmp	r4, r3
	movlt	r3, #1
	movge	r3, #0
	and	r5, r3, #255
	ldr	r3, [fp, #-40]
	ldr	r4, [r3]
	mov	r1, #3
	ldr	r0, [fp, #-40]
	bl	getAddress
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	mov	r2, r5
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r2, r3, #4
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
	b	.L11
.L16:
	ldr	r2, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	getParameter
	mov	r4, r0
	ldr	r2, [fp, #-24]
	mov	r1, #2
	ldr	r0, [fp, #-40]
	bl	getParameter
	mov	r3, r0
	cmp	r4, r3
	moveq	r3, #1
	movne	r3, #0
	and	r5, r3, #255
	ldr	r3, [fp, #-40]
	ldr	r4, [r3]
	mov	r1, #3
	ldr	r0, [fp, #-40]
	bl	getAddress
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	mov	r2, r5
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r2, r3, #4
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
	b	.L11
.L25:
	ldr	r3, [fp, #-40]
	mov	r2, #0
	str	r2, [r3, #8]
	b	.L11
.L15:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-32]
	ldr	r1, .L31+12
	ldr	r0, .L31+16
	bl	sprintf
	ldr	r0, .L31+16
	bl	perror
	mov	r0, #1
	bl	exit
.L30:
	nop
.L11:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L32:
	.align	2
.L31:
	.word	1374389535
	.word	1717986919
	.word	274877907
	.word	.LC1
	.word	errorMessage
	.size	tick, .-tick
	.align	2
	.global	newComputer
	.syntax unified
	.arm
	.fpu softvfp
	.type	newComputer, %function
newComputer:
	@ args = 4, 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, #-32]
	sub	r0, fp, #44
	stm	r0, {r1, r2, r3}
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	lsl	r2, r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	memcpy
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #4]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r0, [fp, #-32]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	newComputer, .-newComputer
	.align	2
	.global	run
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ 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]
	b	.L36
.L37:
	ldr	r0, [fp, #-8]
	bl	tick
.L36:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	run, .-run
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	runProgram
	.syntax unified
	.arm
	.fpu softvfp
	.type	runProgram, %function
runProgram:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	sub	ip, fp, #40
	stm	ip, {r0, r1, r2}
	str	r3, [fp, #-44]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #28
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	sub	r3, fp, #40
	ldm	r3, {r1, r2, r3}
	bl	newComputer
	sub	r3, fp, #28
	mov	r0, r3
	bl	run
	mov	r3, r0
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC2
	.size	runProgram, .-runProgram
	.align	2
	.global	solve
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve, %function
solve:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	sub	r0, fp, #36
	stm	r0, {r1, r2, r3}
	mov	r3, #1
	sub	r2, fp, #36
	ldm	r2, {r0, r1, r2}
	bl	runProgram
	mov	r4, r0
	mov	r3, #5
	sub	r2, fp, #36
	ldm	r2, {r0, r1, r2}
	bl	runProgram
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r4, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #4]
	ldr	r0, [fp, #-24]
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	solve, .-solve
	.align	2
	.global	addToInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	addToInput, %function
addToInput:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bne	.L47
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	add	r2, r3, #10
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L47:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	add	r0, r3, #1
	ldr	r1, [fp, #-8]
	str	r0, [r1, #4]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	addToInput, .-addToInput
	.section	.rodata
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"Error reading input file!\012\000"
	.align	2
.LC5:
	.ascii	",\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	getInput, %function
getInput:
	@ 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, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L54+4
	ldr	r0, [fp, #-44]
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L49
	ldr	r0, .L54+8
	bl	perror
	mov	r0, #1
	bl	exit
.L49:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	fseek
	ldr	r0, [fp, #-32]
	bl	ftell
	str	r0, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	rewind
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	fread
	mov	r1, #4
	mov	r0, #10
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #10
	str	r3, [fp, #-12]
	ldr	r1, .L54+12
	ldr	r0, [fp, #-24]
	bl	strtok
	str	r0, [fp, #-36]
	b	.L50
.L51:
	ldr	r0, [fp, #-36]
	bl	atoi
	mov	r2, r0
	sub	r3, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	addToInput
	ldr	r1, .L54+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-36]
.L50:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L51
	ldr	r0, [fp, #-32]
	bl	fclose
	ldr	r3, [fp, #-40]
	mov	ip, r3
	sub	r3, fp, #20
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	ldr	r0, [fp, #-40]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC6
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	getInput, .-getInput
	.align	2
	.global	freeInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeInput, %function
freeInput:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	sub	r3, fp, #16
	stm	r3, {r0, r1, r2}
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	freeInput, .-freeInput
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Please, add input file path as parameter\000"
	.align	2
.LC8:
	.ascii	"P1: %d\012\000"
	.align	2
.LC9:
	.ascii	"P2: %d\012\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC10:
	.ascii	"Time: %.7f\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	beq	.L58
	ldr	r0, .L61+4
	bl	perror
	mov	r0, #1
	bl	exit
.L58:
	sub	r3, fp, #44
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	getInput
	sub	r0, fp, #28
	sub	r3, fp, #20
	ldm	r3, {r1, r2, r3}
	bl	solve
	sub	r3, fp, #36
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #20
	ldm	r3, {r0, r1, r2}
	bl	freeInput
	ldr	r3, [fp, #-28]
	mov	r1, r3
	ldr	r0, .L61+8
	bl	printf
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L61+12
	bl	printf
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-44]
	sub	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L61+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L61+20
	bl	printf
	mov	r3, #0
	ldr	r2, .L61
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC11
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	1093567616
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
