// File: /workspace/github_cpp_makefile_star2_O1/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, 0x8(%rsp)
movq %rbx, %rdi
callq 0x4030
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
callq 0x4030
movq %rax, 0x18(%rsp)
movq %rbx, %rdi
callq 0x4030
movq %rax, %rbp
movq %r13, %rdi
callq 0x4030
movq %rax, 0x20(%rsp)
movq %r13, %rdi
callq 0x4030
movq %rax, 0x28(%rsp)
movq %r13, %rdi
callq 0x4030
movq %rax, 0x58(%rsp)
movq %r13, %rdi
callq 0x4030
movq %rax, 0x68(%rsp)
movq %r13, %rdi
callq 0x4030
movslq 0xa0(%r14), %r9
testq %r9, %r9
movq %rbp, 0x50(%rsp)
movq %r14, 0x78(%rsp)
movq %rax, 0x70(%rsp)
jle 0x80dbf
movl %r15d, 0x64(%rsp)
movq 0x80(%r14), %rcx
movq %rcx, 0x48(%rsp)
movq 0x88(%r14), %rcx
movq %rcx, 0x40(%rsp)
movq 0x90(%r14), %rcx
movq %rcx, 0x38(%rsp)
movq 0x98(%r14), %rcx
movq %rcx, 0x30(%rsp)
movq 0xa8(%r14), %rcx
movq %rcx, 0x80(%rsp)
movq 0xb0(%r14), %r10
movq 0xb8(%r14), %r11
movq 0xc0(%r14), %rbx
movq 0xc8(%r14), %r14
xorl %ecx, %ecx
movq 0x68(%rsp), %r13
movq 0x28(%rsp), %rdx
movq %rax, %r8
movq 0x20(%rsp), %rax
movq 0x18(%rsp), %r12
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
movq 0x48(%rsp), %r15
movq (%r15,%rcx,8), %r15
movq %r15, (%rdi,%rcx,8)
movq 0x40(%rsp), %r15
movq (%r15,%rcx,8), %r15
movq %r15, (%rsi,%rcx,8)
movq 0x38(%rsp), %r15
movq (%r15,%rcx,8), %r15
movq %r15, (%r12,%rcx,8)
movq 0x30(%rsp), %r15
movq (%r15,%rcx,8), %r15
movq %r15, (%rbp,%rcx,8)
movq 0x80(%rsp), %r15
movl (%r15,%rcx,4), %ebp
movl %ebp, (%rax,%rcx,4)
movl (%r10,%rcx,4), %ebp
movl %ebp, (%rdx,%rcx,4)
movl (%r11,%rcx,4), %ebp
movq 0x58(%rsp), %r15
movl %ebp, (%r15,%rcx,4)
movl (%rbx,%rcx,4), %ebp
movl %ebp, (%r13,%rcx,4)
movl (%r14,%rcx,4), %ebp
movl %ebp, (%r8,%rcx,4)
movq 0x50(%rsp), %rbp
incq %rcx
cmpq %rcx, %r9
jne 0x80d43
movl 0x64(%rsp), %r15d
jmp 0x80dc1
xorl %ecx, %ecx
cmpl %r15d, %ecx
jge 0x80e8a
movl %ecx, %eax
movl %r15d, %r15d
movq 0x50(%rsp), %rcx
leaq (%rcx,%rax,8), %rcx
movq %rcx, 0x48(%rsp)
movq 0x18(%rsp), %rcx
leaq (%rcx,%rax,8), %rcx
movq %rcx, 0x40(%rsp)
movq 0x58(%rsp), %rcx
leaq (%rcx,%rax,4), %rcx
movq %rcx, 0x38(%rsp)
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax,4), %rcx
movq %rcx, 0x30(%rsp)
movq 0x28(%rsp), %rcx
leaq (%rcx,%rax,4), %r12
movq 0x10(%rsp), %rcx
leaq (%rcx,%rax,8), %rbp
movq 0x8(%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 0x30(%rsp), %rax
movl %r14d, (%rax,%r13,4)
movq 0x38(%rsp), %rax
movl $0x4, (%rax,%r13,4)
movl $0x40, %edi
callq 0x4030
movq 0x40(%rsp), %rcx
movq %rax, (%rcx,%r13,8)
movl $0x10, %edi
callq 0x4030
movq 0x48(%rsp), %rcx
movq %rax, (%rcx,%r13,8)
incq %r13
cmpq %r13, %r15
jne 0x80e2b
movq 0x78(%rsp), %rbx
movq 0x80(%rbx), %rdi
testq %rdi, %rdi
je 0x80ea0
callq 0x4570
movq 0x8(%rsp), %rax
movq %rax, 0x80(%rbx)
movq 0x88(%rbx), %rdi
testq %rdi, %rdi
movq 0x28(%rsp), %r12
movq 0x20(%rsp), %r13
movq 0x50(%rsp), %rbp
movq 0x18(%rsp), %r14
movq 0x10(%rsp), %r15
je 0x80ed6
callq 0x4570
movq %r15, 0x88(%rbx)
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0x80eee
callq 0x4570
movq %r14, 0x90(%rbx)
movq 0x98(%rbx), %rdi
testq %rdi, %rdi
movq 0x70(%rsp), %r14
movq 0x68(%rsp), %r15
je 0x80f10
callq 0x4570
movq %rbp, 0x98(%rbx)
movq 0xa8(%rbx), %rdi
testq %rdi, %rdi
je 0x80f28
callq 0x4570
movq %r13, 0xa8(%rbx)
movq 0xb0(%rbx), %rdi
testq %rdi, %rdi
je 0x80f40
callq 0x4570
movq %r12, 0xb0(%rbx)
movq 0xb8(%rbx), %rdi
testq %rdi, %rdi
je 0x80f58
callq 0x4570
movq 0x58(%rsp), %rax
movq %rax, 0xb8(%rbx)
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x80f75
callq 0x4570
movq %r15, 0xc0(%rbx)
movq 0xc8(%rbx), %rdi
testq %rdi, %rdi
je 0x80f8d
callq 0x4570
movq %r14, 0xc8(%rbx)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq