// File: /workspace/github_cpp_makefile_star2_O1/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 0x65e7a
movq %rdi, %r14
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
movl %ebx, %esi
callq 0xc03b8
leaq 0x93e34(%rip), %rcx     # 0xf9a3b
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 0x65c40
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x65c47
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 0x93df6(%rip), %rsi     # 0xf9a60
callq 0x233b0
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x65c97
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x65c9f
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 0xc03b8
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x65ce7
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x65d06
leaq 0x58(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x65d01
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x65d17
movq 0x48(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x222b0
jmp 0x65d25
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 0x65d49
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x65d4f
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 0x93cf1(%rip), %rsi     # 0xf9a64
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 0x65dad
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x65db4
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 0xc0396
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x65df5
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65e10
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65e2b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x65e42
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x65e59
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65e7a
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 0x65eb0
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65eb0
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65ed0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65ed0
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65ef0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65ef0
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x65f0c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65f0c
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x65f28
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x65f28
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65f49
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x23240
nop