// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/v_network.cc
// Function: voronoi_network::add_edge_network_memory()
void voronoi_network::add_edge_network_memory() {
	int i;
	edmem<<=1;

	// Allocate new arrays
	int **ned(new int*[edmem]);
	int **nne(new int*[edmem]);
	block **nraded(new block*[edmem]);
	unsigned int **npered(new unsigned int*[edmem]);
	int *nnu(new int[edmem]);
	int *nnec(new int[edmem]);
	int *nnumem(new int[edmem]);
	int *nreg(new int[edmem]);
	int *nregp(new int[edmem]);

	// Copy the contents of the old arrays into the new ones 
	for(i=0;i<edc;i++) {
		ned[i]=ed[i];
		nne[i]=ne[i];
		nraded[i]=raded[i];
		npered[i]=pered[i];
		nnu[i]=nu[i];
		nnec[i]=nec[i];
		nnumem[i]=numem[i];
		nreg[i]=reg[i];
		nregp[i]=regp[i];
	}

	// Carry out new allocation
	while(i<edmem) {
		ned[i]=new int[2*init_network_edge_memory];
		nne[i]=ned[i]+init_network_edge_memory;
		nnu[i]=nnec[i]=0;nnumem[i]=init_network_edge_memory;
		nraded[i]=new block[init_network_edge_memory];
		npered[i++]=new unsigned int[init_network_edge_memory];
	}

	// Delete old arrays and update pointers to the new ones
	delete [] ed;ed=ned;
	delete [] ne;ne=nne;
	delete [] raded;raded=nraded;
	delete [] pered;pered=npered;
	delete [] nu;nu=nnu;
	delete [] nec;nec=nnec;
	delete [] numem;numem=nnumem;
	delete [] reg;reg=nreg;
	delete [] regp;regp=nregp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %r14
movl 0xa4(%rdi), %r15d
addl %r15d, %r15d
movl %r15d, 0xa4(%rdi)
movslq %r15d, %rax
leaq (,%rax,8), %rbx
testl %eax, %eax
movq $-0x1, %rcx
cmovsq %rcx, %rbx
leaq (,%rax,4), %r13
cmovsq %rcx, %r13
movq %rbx, %rdi
callq 0x4030
movq %rax, (%rsp)
movq %rbx, %rdi
callq 0x4030
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
callq 0x4030
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
callq 0x4030
movq %rax, %rbp
movq %r13, %rdi
callq 0x4030
movq %rax, 0x18(%rsp)
movq %r13, %rdi
callq 0x4030
movq %rax, 0x20(%rsp)
movq %r13, %rdi
callq 0x4030
movq %rax, 0x50(%rsp)
movq %r13, %rdi
callq 0x4030
movq %rax, 0x60(%rsp)
movq %r13, %rdi
callq 0x4030
movslq 0xa0(%r14), %rcx
testq %rcx, %rcx
movq %rbp, 0x48(%rsp)
movq %r14, 0x78(%rsp)
movq %rax, 0x70(%rsp)
jle 0x7fb6e
movl %r15d, 0x5c(%rsp)
movq 0x80(%r14), %rdx
movq %rdx, 0x40(%rsp)
movq 0x88(%r14), %rdx
movq %rdx, 0x38(%rsp)
movq 0x90(%r14), %rdx
movq %rdx, 0x30(%rsp)
movq 0x98(%r14), %rdx
movq %rdx, 0x28(%rsp)
movq 0xa8(%r14), %rdx
movq %rdx, 0x80(%rsp)
movq 0xb0(%r14), %r9
movq 0xb8(%r14), %r10
movq 0xc0(%r14), %r11
movq 0xc8(%r14), %rbx
movq %rcx, 0x68(%rsp)
movq %rcx, %r14
shlq $0x2, %r14
xorl %r15d, %r15d
movq 0x60(%rsp), %r13
movq 0x20(%rsp), %rcx
movq 0x18(%rsp), %r8
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rsi
movq (%rsp), %rdi
movq 0x40(%rsp), %r12
movq (%r12,%r15,2), %r12
movq %r12, (%rdi,%r15,2)
movq 0x38(%rsp), %r12
movq (%r12,%r15,2), %r12
movq %r12, (%rsi,%r15,2)
movq 0x30(%rsp), %r12
movq (%r12,%r15,2), %r12
movq %r12, (%rdx,%r15,2)
movq 0x28(%rsp), %r12
movq (%r12,%r15,2), %r12
movq %r12, (%rbp,%r15,2)
movq 0x80(%rsp), %r12
movl (%r12,%r15), %ebp
movl %ebp, (%r8,%r15)
movl (%r9,%r15), %ebp
movl %ebp, (%rcx,%r15)
movl (%r10,%r15), %ebp
movq 0x50(%rsp), %r12
movl %ebp, (%r12,%r15)
movl (%r11,%r15), %ebp
movl %ebp, (%r13,%r15)
movl (%rbx,%r15), %ebp
movl %ebp, (%rax,%r15)
movq 0x48(%rsp), %rbp
addq $0x4, %r15
cmpq %r15, %r14
jne 0x7fae9
movl 0x5c(%rsp), %r15d
movq 0x68(%rsp), %rax
jmp 0x7fb70
xorl %eax, %eax
cmpl %r15d, %eax
jge 0x7fc38
movl %eax, %eax
movl %r15d, %r15d
movq 0x48(%rsp), %rcx
leaq (%rcx,%rax,8), %rcx
movq %rcx, 0x40(%rsp)
movq 0x10(%rsp), %rcx
leaq (%rcx,%rax,8), %rcx
movq %rcx, 0x38(%rsp)
movq 0x50(%rsp), %rcx
leaq (%rcx,%rax,4), %rcx
movq %rcx, 0x30(%rsp)
movq 0x18(%rsp), %rcx
leaq (%rcx,%rax,4), %rcx
movq %rcx, 0x28(%rsp)
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax,4), %r12
movq 0x8(%rsp), %rcx
leaq (%rcx,%rax,8), %rbp
movq (%rsp), %rcx
leaq (%rcx,%rax,8), %rbx
subq %rax, %r15
xorl %r14d, %r14d
xorl %r13d, %r13d
movl $0x20, %edi
callq 0x4030
movq %rax, (%rbx,%r13,8)
addq $0x10, %rax
movq %rax, (%rbp,%r13,8)
movl %r14d, (%r12,%r13,4)
movq 0x28(%rsp), %rax
movl %r14d, (%rax,%r13,4)
movq 0x30(%rsp), %rax
movl $0x4, (%rax,%r13,4)
movl $0x40, %edi
callq 0x4030
movq 0x38(%rsp), %rcx
movq %rax, (%rcx,%r13,8)
movl $0x10, %edi
callq 0x4030
movq 0x40(%rsp), %rcx
movq %rax, (%rcx,%r13,8)
incq %r13
cmpq %r13, %r15
jne 0x7fbd9
movq 0x78(%rsp), %rbx
movq 0x80(%rbx), %rdi
testq %rdi, %rdi
je 0x7fc4e
callq 0x4570
movq (%rsp), %rax
movq %rax, 0x80(%rbx)
movq 0x88(%rbx), %rdi
testq %rdi, %rdi
movq 0x50(%rsp), %r12
movq 0x20(%rsp), %r13
movq 0x18(%rsp), %rbp
movq 0x10(%rsp), %r14
movq 0x8(%rsp), %r15
je 0x7fc83
callq 0x4570
movq %r15, 0x88(%rbx)
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0x7fc9b
callq 0x4570
movq %r14, 0x90(%rbx)
movq 0x98(%rbx), %rdi
testq %rdi, %rdi
movq 0x70(%rsp), %r14
movq 0x60(%rsp), %r15
je 0x7fcbd
callq 0x4570
movq 0x48(%rsp), %rax
movq %rax, 0x98(%rbx)
movq 0xa8(%rbx), %rdi
testq %rdi, %rdi
je 0x7fcda
callq 0x4570
movq %rbp, 0xa8(%rbx)
movq 0xb0(%rbx), %rdi
testq %rdi, %rdi
je 0x7fcf2
callq 0x4570
movq %r13, 0xb0(%rbx)
movq 0xb8(%rbx), %rdi
testq %rdi, %rdi
je 0x7fd0a
callq 0x4570
movq %r12, 0xb8(%rbx)
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x7fd22
callq 0x4570
movq %r15, 0xc0(%rbx)
movq 0xc8(%rbx), %rdi
testq %rdi, %rdi
je 0x7fd3a
callq 0x4570
movq %r14, 0xc8(%rbx)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop