// File: /workspace/github_cpp_makefile_star2_O2/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 $0x58, %rsp
movq %rdi, %rbp
movl 0xa4(%rdi), %eax
addl %eax, %eax
movl %eax, 0xa4(%rdi)
movslq %eax, %rcx
leaq (,%rcx,8), %rbx
testl %ecx, %ecx
pushq $-0x1
popq %rax
cmovsq %rax, %rbx
movq %rcx, 0x50(%rsp)
leaq (,%rcx,4), %r13
cmovsq %rax, %r13
movq %rbx, %rdi
callq 0x4030
movq %rax, %r12
movq %rbx, %rdi
callq 0x4030
movq %rax, %r15
movq %rbx, %rdi
callq 0x4030
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
callq 0x4030
movq %rax, 0x10(%rsp)
movq %r13, %rdi
callq 0x4030
movq %rax, 0x28(%rsp)
movq %r13, %rdi
callq 0x4030
movq %rax, 0x30(%rsp)
movq %r13, %rdi
callq 0x4030
movq %rax, %r14
movq %r13, %rdi
callq 0x4030
movq %rax, 0x38(%rsp)
movq %r13, %rdi
callq 0x4030
movq %rax, 0x40(%rsp)
movl 0xa0(%rbp), %r13d
movq 0x80(%rbp), %rax
movq %rax, 0x18(%rsp)
movq 0x88(%rbp), %rax
movq %rax, 0x20(%rsp)
movq 0x90(%rbp), %rax
movq 0x98(%rbp), %rcx
movq 0xa8(%rbp), %rdx
movq 0xb0(%rbp), %rsi
movq 0xb8(%rbp), %rdi
movq 0xc0(%rbp), %r8
movq %rbp, 0x48(%rsp)
movq 0xc8(%rbp), %r9
xorl %r10d, %r10d
testl %r13d, %r13d
cmovlel %r10d, %r13d
leaq (,%r13,4), %r11
cmpq %r10, %r11
je 0x5ff67
movq 0x18(%rsp), %rbx
movq (%rbx,%r10,2), %rbp
movq %rbp, (%r12,%r10,2)
movq 0x20(%rsp), %rbx
movq (%rbx,%r10,2), %rbp
movq %rbp, (%r15,%r10,2)
movq (%rax,%r10,2), %rbp
movq 0x8(%rsp), %rbx
movq %rbp, (%rbx,%r10,2)
movq (%rcx,%r10,2), %rbp
movq 0x10(%rsp), %rbx
movq %rbp, (%rbx,%r10,2)
movl (%rdx,%r10), %ebp
movq 0x28(%rsp), %rbx
movl %ebp, (%rbx,%r10)
movl (%rsi,%r10), %ebp
movq 0x30(%rsp), %rbx
movl %ebp, (%rbx,%r10)
movl (%rdi,%r10), %ebp
movl %ebp, (%r14,%r10)
movl (%r8,%r10), %ebp
movq 0x38(%rsp), %rbx
movl %ebp, (%rbx,%r10)
movl (%r9,%r10), %ebp
movq 0x40(%rsp), %rbx
movl %ebp, (%rbx,%r10)
addq $0x4, %r10
jmp 0x5feec
movq 0x30(%rsp), %rbx
movq 0x28(%rsp), %rbp
cmpq 0x50(%rsp), %r13
jge 0x5ffc6
pushq $0x20
popq %rdi
callq 0x4030
movq %rax, (%r12,%r13,8)
addq $0x10, %rax
movq %rax, (%r15,%r13,8)
andl $0x0, (%rbx,%r13,4)
andl $0x0, (%rbp,%r13,4)
movl $0x4, (%r14,%r13,4)
pushq $0x40
popq %rdi
callq 0x4030
movq 0x8(%rsp), %rcx
movq %rax, (%rcx,%r13,8)
pushq $0x10
popq %rdi
callq 0x4030
movq 0x10(%rsp), %rcx
movq %rax, (%rcx,%r13,8)
incq %r13
jmp 0x5ff71
movq 0x18(%rsp), %rax
testq %rax, %rax
movq 0x48(%rsp), %r13
movq 0x20(%rsp), %rdi
je 0x5ffe9
movq %rax, %rdi
callq 0x4590
movq 0x88(%r13), %rdi
movq %r12, 0x80(%r13)
testq %rdi, %rdi
je 0x5fffa
callq 0x4590
movq %r15, 0x88(%r13)
movq 0x90(%r13), %rdi
testq %rdi, %rdi
je 0x60012
callq 0x4590
movq 0x8(%rsp), %rax
movq %rax, 0x90(%r13)
movq 0x98(%r13), %rdi
testq %rdi, %rdi
je 0x6002f
callq 0x4590
movq 0x10(%rsp), %rax
movq %rax, 0x98(%r13)
movq 0xa8(%r13), %rdi
testq %rdi, %rdi
je 0x6004c
callq 0x4590
movq %rbp, 0xa8(%r13)
movq 0xb0(%r13), %rdi
testq %rdi, %rdi
je 0x60064
callq 0x4590
movq %rbx, 0xb0(%r13)
movq 0xb8(%r13), %rdi
testq %rdi, %rdi
je 0x6007c
callq 0x4590
movq %r14, 0xb8(%r13)
movq 0xc0(%r13), %rdi
testq %rdi, %rdi
je 0x60094
callq 0x4590
movq 0x38(%rsp), %rax
movq %rax, 0xc0(%r13)
movq 0xc8(%r13), %rdi
testq %rdi, %rdi
je 0x600b1
callq 0x4590
movq 0x40(%rsp), %rax
movq %rax, 0xc8(%r13)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq