// File: /workspace/github_c_makefile_star2_O0/ugobas[P]tnm/nma.c
// Function: Axes_path
void Axes_path(int *main1, int *main2, int *side1, int *side2,
	       struct axe *axes, int i, int nmain, int naxes)
{
  *main1=-1; *main2=-1; *side1=-1; *side2=-1;
  if(i < nmain){
    *main1=axes[i].first_main;
    *main2=i;
  }else{
    *main1=axes[i].first_main;
    *main2=axes[i].last_main;
    *side1=axes[i].first_side;
    *side2=i;
  }
  if((*main2 >= nmain) ||
     (*main2 < *main1)||
     (*side2 < *side1)||
     (*side2>=naxes)){
    printf("ERROR, wrong axes path\n");
    printf("i= %d res= %d main1= %d res=%d main2= %d res=%d",
	   i, (axes[i].bond)->atom->res,
	   *main1, (axes[*main1].bond)->atom->res,
	   *main2, (axes[*main2].bond)->atom->res);
    if(*side1>=0)
      printf(" side1= %d res=%d side2= %d res=%d\n",
	     *side1, (axes+*side1)->bond->atom->res,
	     *side2, (axes[*side2].bond)->atom->res);
    exit(8);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq -0x8(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x18(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x20(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movl -0x2c(%rbp), %eax
cmpl 0x10(%rbp), %eax
jge 0x34d7c
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
imulq $0x158, %rcx, %rcx      # imm = 0x158
addq %rcx, %rax
movl 0x20(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, (%rax)
movl -0x2c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
jmp 0x34dd6
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
imulq $0x158, %rcx, %rcx      # imm = 0x158
addq %rcx, %rax
movl 0x20(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
imulq $0x158, %rcx, %rcx      # imm = 0x158
addq %rcx, %rax
movl 0x24(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
imulq $0x158, %rcx, %rcx      # imm = 0x158
addq %rcx, %rax
movl 0x28(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movl -0x2c(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
cmpl 0x10(%rbp), %eax
jge 0x34e0c
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jl 0x34e0c
movq -0x20(%rbp), %rax
movl (%rax), %eax
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
jl 0x34e0c
movq -0x20(%rbp), %rax
movl (%rax), %eax
cmpl 0x18(%rbp), %eax
jl 0x34f02
leaq 0x49780(%rip), %rdi     # 0x7e593
movb $0x0, %al
callq 0x10d0
movl -0x2c(%rbp), %esi
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
imulq $0x158, %rcx, %rcx      # imm = 0x158
addq %rcx, %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movl 0x64(%rax), %edx
movq -0x8(%rbp), %rax
movl (%rax), %ecx
movq -0x28(%rbp), %rax
movq -0x8(%rbp), %rdi
movslq (%rdi), %rdi
imulq $0x158, %rdi, %rdi      # imm = 0x158
addq %rdi, %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movl 0x64(%rax), %r8d
movq -0x10(%rbp), %rax
movl (%rax), %r9d
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rdi
movslq (%rdi), %rdi
imulq $0x158, %rdi, %rdi      # imm = 0x158
addq %rdi, %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movl 0x64(%rax), %eax
leaq 0x4971f(%rip), %rdi     # 0x7e5ab
movl %eax, (%rsp)
movb $0x0, %al
callq 0x10d0
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jl 0x34ef8
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq -0x28(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0x158, %rcx, %rcx      # imm = 0x158
addq %rcx, %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movl 0x64(%rax), %edx
movq -0x20(%rbp), %rax
movl (%rax), %ecx
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rdi
movslq (%rdi), %rdi
imulq $0x158, %rdi, %rdi      # imm = 0x158
addq %rdi, %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movl 0x64(%rax), %r8d
leaq 0x496ea(%rip), %rdi     # 0x7e5db
movb $0x0, %al
callq 0x10d0
movl $0x8, %edi
callq 0x1210
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)