// File: /workspace/github_c_makefile_star2_O0/ugobas[P]tnm/interactions_tnm.c
// Function: Check_store_HB
int Check_store_HB(struct interaction *Int_list, int *N_int,
		   atom *atoms, int i_AA, int i_A, int i_D, int rA,
		   float d2)
{
  float cos_tau=Bond_angle(atoms[i_AA].r, atoms[i_A].r, atoms[i_D].r);
  if(cos_tau > COS_DAA)return(0);
  float d_DAA=Dist2(atoms[i_AA].r, atoms[i_D].r);
  Int_list[*N_int].type=1;   Int_list[*N_int].sec_der=1;
  Int_list[*N_int].r0=sqrt(d_DAA); 
  if(rA==1){
    Int_list[*N_int].i1=i_AA; Int_list[*N_int].i2=i_D;
  }else{
    Int_list[*N_int].i1=i_D;  Int_list[*N_int].i2=i_AA;
  }
  (*N_int)++;
  Int_list[*N_int].type=2; Int_list[*N_int].sec_der=ENE_HB;
  if(rA==1){
    Int_list[*N_int].i1=i_A; Int_list[*N_int].i2=i_D;
  }else{
    Int_list[*N_int].i1=i_D; Int_list[*N_int].i2=i_A;
  }
  Int_list[*N_int].r0=sqrt(d2);
  (*N_int)++;
  return(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movss %xmm0, -0x30(%rbp)
movq -0x20(%rbp), %rdi
movslq -0x24(%rbp), %rax
imulq $0x70, %rax, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rsi
movslq -0x28(%rbp), %rax
imulq $0x70, %rax, %rax
addq %rax, %rsi
movq -0x20(%rbp), %rdx
movslq -0x2c(%rbp), %rax
imulq $0x70, %rax, %rax
addq %rax, %rdx
callq 0x22290
movss %xmm0, -0x34(%rbp)
movss -0x34(%rbp), %xmm0
leaq 0x696de(%rip), %rax     # 0x8b5b8
ucomiss (%rax), %xmm0
jbe 0x21eeb
movl $0x0, -0x4(%rbp)
jmp 0x220ed
movq -0x20(%rbp), %rdi
movslq -0x24(%rbp), %rax
imulq $0x70, %rax, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rsi
movslq -0x2c(%rbp), %rax
imulq $0x70, %rax, %rax
addq %rax, %rsi
callq 0x22230
movss %xmm0, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0xc8, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0xc0(%rax)
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0xc8, %rcx, %rcx
addq %rcx, %rax
movsd 0x540f9(%rip), %xmm0    # 0x76048
movsd %xmm0, 0x28(%rax)
movss -0x38(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x1220
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0xc8, %rcx, %rcx
addq %rcx, %rax
movsd %xmm0, 0x20(%rax)
cmpl $0x1, 0x10(%rbp)
jne 0x21fb9
movl -0x24(%rbp), %ecx
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0xc8, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movl -0x2c(%rbp), %ecx
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0xc8, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
jmp 0x21fee
movl -0x2c(%rbp), %ecx
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0xc8, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movl -0x24(%rbp), %ecx
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0xc8, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movq -0x18(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0xc8, %rcx, %rcx
addq %rcx, %rax
movl $0x2, 0xc0(%rax)
leaq 0x69591(%rip), %rax     # 0x8b5b0
movss (%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0xc8, %rcx, %rcx
addq %rcx, %rax
movsd %xmm0, 0x28(%rax)
cmpl $0x1, 0x10(%rbp)
jne 0x2207e
movl -0x28(%rbp), %ecx
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0xc8, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movl -0x2c(%rbp), %ecx
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0xc8, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
jmp 0x220b3
movl -0x2c(%rbp), %ecx
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0xc8, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movl -0x28(%rbp), %ecx
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0xc8, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movss -0x30(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x1220
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0xc8, %rcx, %rcx
addq %rcx, %rax
movsd %xmm0, 0x20(%rax)
movq -0x18(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)