// File: /workspace/github_c_makefile_star2_O0/ugobas[P]tnm/nrutil.c
// Function: f3tensor
float ***f3tensor(long nrl, long nrh, long ncl, long nch, long ndl, long ndh)
/* allocate a float 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */
{
  long i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;
  float ***t;

  /* allocate pointers to pointers to rows */
  t=(float ***) malloc((size_t)((nrow+NR_END)*sizeof(float**)));
  if (!t) nrerror("allocation failure 1 in f3tensor()");
  t += NR_END;
  t -= nrl;

  /* allocate pointers to rows and set pointers to them */
  t[nrl]=(float **) malloc((size_t)((nrow*ncol+NR_END)*sizeof(float*)));
  if (!t[nrl]) nrerror("allocation failure 2 in f3tensor()");
  t[nrl] += NR_END;
  t[nrl] -= ncl;

  /* allocate rows and set pointers to them */
  t[nrl][ncl]=(float *) malloc((size_t)((nrow*ncol*ndep+NR_END)*sizeof(float)));
  if (!t[nrl][ncl]) nrerror("allocation failure 3 in f3tensor()");
  t[nrl][ncl] += NR_END;
  t[nrl][ncl] -= ndl;

  for(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;
  for(i=nrl+1;i<=nrh;i++) {
    t[i]=t[i-1]+ncol;
    t[i][ncl]=t[i-1][ncl]+ncol*ndep;
    for(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;
  }

  /* return pointer to array of pointers to rows */
  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
subq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rax
subq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rax
subq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
movq -0x48(%rbp), %rdi
addq $0x1, %rdi
shlq $0x3, %rdi
callq 0x1180
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
jne 0x6c2d8
leaq 0x172c3(%rip), %rdi     # 0x83596
callq 0x6ba20
movq -0x60(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rdx
movq -0x60(%rbp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x48(%rbp), %rdi
imulq -0x50(%rbp), %rdi
addq $0x1, %rdi
shlq $0x3, %rdi
callq 0x1180
movq %rax, %rdx
movq -0x60(%rbp), %rax
movq -0x8(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x60(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x6c33c
leaq 0x17282(%rip), %rdi     # 0x835b9
callq 0x6ba20
movq -0x60(%rbp), %rax
movq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
addq $0x8, %rdx
movq %rdx, (%rax,%rcx,8)
movq -0x18(%rbp), %rdi
movq -0x60(%rbp), %rax
movq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
xorl %esi, %esi
subq %rdi, %rsi
shlq $0x3, %rsi
addq %rsi, %rdx
movq %rdx, (%rax,%rcx,8)
movq -0x48(%rbp), %rdi
imulq -0x50(%rbp), %rdi
imulq -0x58(%rbp), %rdi
addq $0x1, %rdi
shlq $0x2, %rdi
callq 0x1180
movq %rax, %rdx
movq -0x60(%rbp), %rax
movq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x18(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x60(%rbp), %rax
movq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x18(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x6c3c5
leaq 0x1721c(%rip), %rdi     # 0x835dc
callq 0x6ba20
movq -0x60(%rbp), %rax
movq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
addq $0x4, %rdx
movq %rdx, (%rax,%rcx,8)
movq -0x28(%rbp), %rdi
movq -0x60(%rbp), %rax
movq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
xorl %esi, %esi
subq %rdi, %rsi
shlq $0x2, %rsi
addq %rsi, %rdx
movq %rdx, (%rax,%rcx,8)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x20(%rbp), %rax
jg 0x6c464
movq -0x60(%rbp), %rax
movq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x40(%rbp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
movq -0x58(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rdx
movq -0x60(%rbp), %rax
movq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x6c415
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x10(%rbp), %rax
jg 0x6c54f
movq -0x60(%rbp), %rax
movq -0x38(%rbp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
movq -0x50(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq -0x60(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x60(%rbp), %rax
movq -0x38(%rbp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
movq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x50(%rbp), %rax
imulq -0x58(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rdx
movq -0x60(%rbp), %rax
movq -0x38(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x18(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x20(%rbp), %rax
jg 0x6c53c
movq -0x60(%rbp), %rax
movq -0x38(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x40(%rbp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
movq -0x58(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rdx
movq -0x60(%rbp), %rax
movq -0x38(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x6c4ed
jmp 0x6c53e
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x6c470
movq -0x60(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)