// File: 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
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movl 0xa4(%rax), %ecx
shll %ecx
movl %ecx, 0xa4(%rax)
movslq 0xa4(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x5030
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, -0x18(%rbp)
movslq 0xa4(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x5030
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, -0x20(%rbp)
movslq 0xa4(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x5030
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, -0x28(%rbp)
movslq 0xa4(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x5030
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, -0x30(%rbp)
movslq 0xa4(%rax), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x5030
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, -0x38(%rbp)
movslq 0xa4(%rax), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x5030
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, -0x40(%rbp)
movslq 0xa4(%rax), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x5030
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, -0x48(%rbp)
movslq 0xa4(%rax), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x5030
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, -0x50(%rbp)
movslq 0xa4(%rax), %rax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x5030
movq %rax, -0x58(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x60(%rbp), %rcx
movl -0xc(%rbp), %eax
cmpl 0xa0(%rcx), %eax
jge 0xe349e
movq -0x60(%rbp), %rax
movq 0x80(%rax), %rcx
movslq -0xc(%rbp), %rdx
movq (%rcx,%rdx,8), %rsi
movq -0x18(%rbp), %rcx
movslq -0xc(%rbp), %rdx
movq %rsi, (%rcx,%rdx,8)
movq 0x88(%rax), %rcx
movslq -0xc(%rbp), %rdx
movq (%rcx,%rdx,8), %rsi
movq -0x20(%rbp), %rcx
movslq -0xc(%rbp), %rdx
movq %rsi, (%rcx,%rdx,8)
movq 0x90(%rax), %rcx
movslq -0xc(%rbp), %rdx
movq (%rcx,%rdx,8), %rsi
movq -0x28(%rbp), %rcx
movslq -0xc(%rbp), %rdx
movq %rsi, (%rcx,%rdx,8)
movq 0x98(%rax), %rcx
movslq -0xc(%rbp), %rdx
movq (%rcx,%rdx,8), %rsi
movq -0x30(%rbp), %rcx
movslq -0xc(%rbp), %rdx
movq %rsi, (%rcx,%rdx,8)
movq 0xa8(%rax), %rcx
movslq -0xc(%rbp), %rdx
movl (%rcx,%rdx,4), %esi
movq -0x38(%rbp), %rcx
movslq -0xc(%rbp), %rdx
movl %esi, (%rcx,%rdx,4)
movq 0xb0(%rax), %rcx
movslq -0xc(%rbp), %rdx
movl (%rcx,%rdx,4), %esi
movq -0x40(%rbp), %rcx
movslq -0xc(%rbp), %rdx
movl %esi, (%rcx,%rdx,4)
movq 0xb8(%rax), %rcx
movslq -0xc(%rbp), %rdx
movl (%rcx,%rdx,4), %esi
movq -0x48(%rbp), %rcx
movslq -0xc(%rbp), %rdx
movl %esi, (%rcx,%rdx,4)
movq 0xc0(%rax), %rcx
movslq -0xc(%rbp), %rdx
movl (%rcx,%rdx,4), %esi
movq -0x50(%rbp), %rcx
movslq -0xc(%rbp), %rdx
movl %esi, (%rcx,%rdx,4)
movq 0xc8(%rax), %rax
movslq -0xc(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x58(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xe3390
jmp 0xe34a0
movq -0x60(%rbp), %rcx
movl -0xc(%rbp), %eax
cmpl 0xa4(%rcx), %eax
jge 0xe3556
movl $0x20, %edi
callq 0x5030
movq %rax, %rdx
movq -0x18(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x18(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
addq $0x10, %rdx
movq -0x20(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x40(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movq -0x38(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movq -0x48(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl $0x4, (%rax,%rcx,4)
movl $0x40, %edi
callq 0x5030
movq %rax, %rdx
movq -0x28(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl $0x10, %edi
callq 0x5030
movq %rax, %rdx
movq -0x30(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0xc(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0xe34a0
movq -0x60(%rbp), %rax
movq 0x80(%rax), %rax
movq %rax, -0x68(%rbp)
cmpq $0x0, %rax
je 0xe3574
movq -0x68(%rbp), %rdi
callq 0x56c0
movq -0x60(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rcx, 0x80(%rax)
movq 0x88(%rax), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, %rax
je 0xe359d
movq -0x70(%rbp), %rdi
callq 0x56c0
movq -0x60(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, 0x88(%rax)
movq 0x90(%rax), %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, %rax
je 0xe35c6
movq -0x78(%rbp), %rdi
callq 0x56c0
movq -0x60(%rbp), %rax
movq -0x28(%rbp), %rcx
movq %rcx, 0x90(%rax)
movq 0x98(%rax), %rax
movq %rax, -0x80(%rbp)
cmpq $0x0, %rax
je 0xe35ef
movq -0x80(%rbp), %rdi
callq 0x56c0
movq -0x60(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, 0x98(%rax)
movq 0xa8(%rax), %rax
movq %rax, -0x88(%rbp)
cmpq $0x0, %rax
je 0xe361e
movq -0x88(%rbp), %rdi
callq 0x56c0
movq -0x60(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, 0xa8(%rax)
movq 0xb0(%rax), %rax
movq %rax, -0x90(%rbp)
cmpq $0x0, %rax
je 0xe364d
movq -0x90(%rbp), %rdi
callq 0x56c0
movq -0x60(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rcx, 0xb0(%rax)
movq 0xb8(%rax), %rax
movq %rax, -0x98(%rbp)
cmpq $0x0, %rax
je 0xe367c
movq -0x98(%rbp), %rdi
callq 0x56c0
movq -0x60(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rcx, 0xb8(%rax)
movq 0xc0(%rax), %rax
movq %rax, -0xa0(%rbp)
cmpq $0x0, %rax
je 0xe36ab
movq -0xa0(%rbp), %rdi
callq 0x56c0
movq -0x60(%rbp), %rax
movq -0x50(%rbp), %rcx
movq %rcx, 0xc0(%rax)
movq 0xc8(%rax), %rax
movq %rax, -0xa8(%rbp)
cmpq $0x0, %rax
je 0xe36da
movq -0xa8(%rbp), %rdi
callq 0x56c0
movq -0x60(%rbp), %rax
movq -0x58(%rbp), %rcx
movq %rcx, 0xc8(%rax)
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)