user: 请将以下的汇编代码转换成C语言代码：

```asm
<build_transij>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x38(%rsp),%r10
  movl   $0x0,(%r10)
  movl   $0x0,0x4(%r10)
  movl   $0x0,0x8(%r10)
  movl   $0x0,0xc(%r10)
  movl   $0x0,0x10(%r10)
  movl   $0x0,0x14(%r10)
  movl   $0x0,0x18(%r10)
  movl   $0x0,0x1c(%r10)
  movl   $0x0,0x20(%r10)
  test   %edx,%edx
  jle    L261
  mov    %rsi,%rax
  mov    %ecx,%ebx
  mov    %rdi,%rsi
  mov    %rax,%rdi
  lea    -0x1(%rdx),%edx
  lea    0x4(%rax,%rdx,4),%r14
  lea    0x1(%r8),%r15d
  movslq %r8d,%r13
  movslq %r15d,%rax
  mov    %rax,-0x10(%rsp)
  lea    -0x2(%r9),%eax
  sub    %r8d,%eax
  lea    0x2(%r13,%rax,1),%rax
  mov    %rax,-0x8(%rsp)
  movabs $0x8000000000007001,%r12
  jmp    L294
L213:
  add    $0x1,%r11d
L97:
  add    $0x1,%rdx
  cmp    %rdx,%rcx
  je     L44
L197:
  movzbl -0x1(%rdx),%eax
  sub    $0x20,%eax
  cmp    $0x3f,%al
  ja     L213
  bt     %rax,%r12
  jb     L97
  jmp    L213
L44:
  test   %r11d,%r11d
  jle    L17
  test   %r8d,%r8d
  jle    L196
  movzbl -0x1(%rbp,%r13,1),%eax
  sub    $0x20,%eax
  cmp    $0x3f,%al
  ja     L196
  movabs $0x8000000000006001,%rdx
  bt     %rax,%rdx
  jae    L196
  movss  0x1c(%r10),%xmm0
  addss  (%rdi),%xmm0
  movss  %xmm0,0x1c(%r10)
  jmp    L139
L196:
  movss  0x4(%r10),%xmm0
  addss  (%rdi),%xmm0
  movss  %xmm0,0x4(%r10)
L139:
  cmp    %r9d,%ebx
  jl     L190
  movslq %r9d,%rax
  mov    -0x18(%rsp),%rcx
  mov    (%rcx),%rdx
  movzbl -0x1(%rdx,%rax,1),%eax
  sub    $0x20,%eax
  cmp    $0x3f,%al
  ja     L190
  movabs $0x8000000000006001,%rdx
  bt     %rax,%rdx
  jae    L190
  movss  0x14(%r10),%xmm0
  addss  (%rdi),%xmm0
  movss  %xmm0,0x14(%r10)
  jmp    L207
L190:
  movss  0xc(%r10),%xmm0
  addss  (%rdi),%xmm0
  movss  %xmm0,0xc(%r10)
L207:
  sub    $0x1,%r11d
  pxor   %xmm0,%xmm0
  cvtsi2ss %r11d,%xmm0
  mulss  (%rdi),%xmm0
  addss  0x10(%r10),%xmm0
  movss  %xmm0,0x10(%r10)
L76:
  add    $0x8,%rsi
  add    $0x4,%rdi
  cmp    %rdi,%r14
  je     L261
L294:
  test   %r8d,%r8d
  jle    L138
  mov    (%rsi),%rax
  cmpb   $0x2c,-0x1(%rax,%r13,1)
  je     L76
L138:
  cmp    %r9d,%ebx
  jl     L321
  movslq %r9d,%rax
  mov    (%rsi),%rdx
  cmpb   $0x2c,-0x1(%rdx,%rax,1)
  je     L76
L321:
  cmp    %r15d,%r9d
  jle    L17
  mov    %rsi,-0x18(%rsp)
  mov    (%rsi),%rbp
  mov    -0x10(%rsp),%rax
  lea    0x0(%rbp,%rax,1),%rdx
  mov    -0x8(%rsp),%rax
  lea    0x0(%rbp,%rax,1),%rcx
  mov    $0x0,%r11d
  jmp    L197
L17:
  test   %r8d,%r8d
  jle    L33
  mov    (%rsi),%rdx
  movzbl -0x1(%rdx,%r13,1),%eax
  sub    $0x20,%eax
  cmp    $0x3f,%al
  ja     L33
  movabs $0x8000000000006001,%rcx
  bt     %rax,%rcx
  jae    L33
  cmp    %r9d,%ebx
  jl     L239
  movslq %r9d,%rax
  movzbl -0x1(%rdx,%rax,1),%eax
  sub    $0x20,%eax
  cmp    $0x3f,%al
  ja     L239
  bt     %rax,%rcx
  jae    L239
  movss  0x20(%r10),%xmm0
  addss  (%rdi),%xmm0
  movss  %xmm0,0x20(%r10)
  jmp    L76
L239:
  movss  0x18(%r10),%xmm0
  addss  (%rdi),%xmm0
  movss  %xmm0,0x18(%r10)
  jmp    L76
L33:
  cmp    %r9d,%ebx
  jl     L264
  movslq %r9d,%rax
  mov    (%rsi),%rdx
  movzbl -0x1(%rdx,%rax,1),%eax
  sub    $0x20,%eax
  cmp    $0x3f,%al
  ja     L264
  movabs $0x8000000000006001,%rdx
  bt     %rax,%rdx
  jae    L264
  movss  0x8(%r10),%xmm0
  addss  (%rdi),%xmm0
  movss  %xmm0,0x8(%r10)
  jmp    L76
L264:
  movss  (%r10),%xmm0
  addss  (%rdi),%xmm0
  movss  %xmm0,(%r10)
  jmp    L76
L261:
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int build_transij(char **aseqs, float *weights, int nseq, int M, int i, int j, float transij[3][3]) {
  int x, y;
  int idx;
  int inscount;
  int pos;
  for (x = 0; x < 3; x++)
    for (y = 0; y < 3; y++)
      transij[x][y] = 0.0;
  for (idx = 0; idx < nseq; idx++) {
    if (i > 0 && aseqs[idx][i - 1] == ',')
      continue;
    if (j < M + 1 && aseqs[idx][j - 1] == ',')
      continue;
    inscount = 0;
    for (pos = i + 1; pos < j; pos++)
      if (aseqs[idx][pos - 1] != ',' && !((aseqs[idx][pos - 1]) == ' ' || (aseqs[idx][pos - 1]) == '.' || (aseqs[idx][pos - 1]) == '_' || (aseqs[idx][pos - 1]) == '-'))
        inscount++;
    if (inscount > 0) {
      if (i > 0 && ((aseqs[idx][i - 1]) == ' ' || (aseqs[idx][i - 1]) == '.' || (aseqs[idx][i - 1]) == '_' || (aseqs[idx][i - 1]) == '-'))
        transij[2][1] += weights[idx];
      else
        transij[0][1] += weights[idx];
      if (j < M + 1 && ((aseqs[idx][j - 1]) == ' ' || (aseqs[idx][j - 1]) == '.' || (aseqs[idx][j - 1]) == '_' || (aseqs[idx][j - 1]) == '-'))
        transij[1][2] += weights[idx];
      else
        transij[1][0] += weights[idx];
      transij[1][1] += weights[idx] * (inscount - 1);
    } else {
      if (i > 0 && ((aseqs[idx][i - 1]) == ' ' || (aseqs[idx][i - 1]) == '.' || (aseqs[idx][i - 1]) == '_' || (aseqs[idx][i - 1]) == '-')) {
        if (j < M + 1 && ((aseqs[idx][j - 1]) == ' ' || (aseqs[idx][j - 1]) == '.' || (aseqs[idx][j - 1]) == '_' || (aseqs[idx][j - 1]) == '-'))
          transij[2][2] += weights[idx];
        else
          transij[2][0] += weights[idx];
      } else {
        if (j < M + 1 && ((aseqs[idx][j - 1]) == ' ' || (aseqs[idx][j - 1]) == '.' || (aseqs[idx][j - 1]) == '_' || (aseqs[idx][j - 1]) == '-'))
          transij[0][2] += weights[idx];
        else
          transij[0][0] += weights[idx];
      }
    }
  }
  return 1;
}
```