// File: /workspace/github_cpp_makefile_star2_O3/richardposner[P]BioNetFit2/src/code/Particle.cpp
// Function: Particle::calcParID(unsigned int, unsigned int)
unsigned int Particle::calcParID(unsigned int subParID, unsigned int mid){
	unsigned int pID = (int)((subParID-1-mid) / swarm_->getNumModels())+1;
	if (pID != id_)
		outputError("Error when calculating particle id: "+toString(pID)+" <>" + toString(id_) + "!!!\n");
	return pID;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xc8, %rsp
notl %edx
leal (%rdx,%rsi), %eax
movq 0xa8(%rdi), %rcx
movq 0x15c8(%rcx), %rsi
subq 0x15c0(%rcx), %rsi
shrq $0x3, %rsi
xorl %edx, %edx
divl %esi
movl %eax, %ebx
incl %ebx
cmpl 0x40(%rdi), %ebx
je 0x6599d
movq %rdi, %r14
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
movl %ebx, %esi
callq 0xbfa49
leaq 0x942f0(%rip), %rcx     # 0xf9a1b
movl $0x24, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x78(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x65764
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x6576b
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x68(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x942b2(%rip), %rsi     # 0xf9a40
callq 0x233b0
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x657bb
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x657c3
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x40(%r14), %esi
leaq 0x48(%rsp), %rdi
callq 0xbfa49
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x6580b
movq 0x38(%rsp), %rdi
movq 0x48(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x6582e
leaq 0x58(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x65829
movq 0x58(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x6583a
leaq 0x28(%rsp), %rdi
callq 0x222b0
jmp 0x65848
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x6586c
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x65872
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x941ae(%rip), %rsi     # 0xf9a44
leaq 0x8(%rsp), %rdi
callq 0x233b0
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x658d0
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x658d7
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0xbfa27
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x65918
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65933
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6594e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x65965
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x6597c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6599d
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x229c0
movl %ebx, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x659d3
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x659d3
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x659f3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x659f3
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65a13
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65a13
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x65a2f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65a2f
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x65a4b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65a4b
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65a6c
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x23240