user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<trafontspcmpc>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    0xc8(%rsp),%rax
  mov    %rcx,0x50(%rsp)
  mov    0x118(%rsp),%rcx
  mov    %r8,0x28(%rsp)
  mov    %rax,0x40(%rsp)
  mov    0x130(%rsp),%rax
  mov    %rcx,0x48(%rsp)
  mov    0xc0(%rsp),%r11
  mov    %rax,0x20(%rsp)
  mov    0x138(%rsp),%rax
  mov    0xe8(%rsp),%rbp
  mov    0xf0(%rsp),%r10
  mov    %rax,0x30(%rsp)
  mov    (%r8),%eax
  mov    0x120(%rsp),%r15
  mov    0x178(%rsp),%r14
  lea    -0x2(%rax,%rax,1),%eax
  mov    0x180(%rsp),%r9
  cltq
  lea    0x1(%rax),%rdx
  movslq (%rcx,%rax,4),%rbx
  cmp    (%rcx,%rdx,4),%ebx
  jge    L250
  mov    %rbp,0x58(%rsp)
  pxor   %xmm7,%xmm7
  mov    %r11,%rbp
  movsd  D106(%rip),%xmm3
  mov    %r10,0x60(%rsp)
  mov    %r14,%r11
  mov    %r15,%r10
  mov    %rcx,%r14
  mov    %r9,0x68(%rsp)
  mov    0x28(%rsp),%r15
  lea    D119(%rip),%rdi
  jmp    L80
  nopl   0x0(%rax,%rax,1)
L229:
  movsd  %xmm3,-0x8(%r12,%rcx,8)
  movsd  (%r12),%xmm5
  movsd  0x0(%r13),%xmm4
  movsd  0x8(%r13),%xmm1
  movsd  0x8(%r12),%xmm0
  movapd %xmm5,%xmm6
  movsd  0x10(%r13),%xmm2
  mulsd  %xmm4,%xmm6
  mulsd  %xmm1,%xmm0
  addsd  %xmm6,%xmm0
  movsd  0x10(%r12),%xmm6
  mulsd  %xmm2,%xmm6
  addsd  %xmm6,%xmm0
  mulsd  %xmm0,%xmm5
  subsd  %xmm5,%xmm4
  movsd  %xmm4,0x0(%r13)
  movsd  0x8(%r12),%xmm5
  mulsd  %xmm0,%xmm5
  subsd  %xmm5,%xmm1
  movsd  %xmm1,0x8(%r13)
  mulsd  0x10(%r12),%xmm0
  movapd %xmm1,%xmm5
  mulsd  %xmm1,%xmm5
  subsd  %xmm0,%xmm2
  movapd %xmm4,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm5,%xmm0
  movapd %xmm2,%xmm5
  mulsd  %xmm2,%xmm5
  addsd  %xmm5,%xmm0
  ucomisd %xmm0,%xmm7
  ja     L266
  sqrtsd %xmm0,%xmm0
L174:
  divsd  %xmm0,%xmm4
  mov    (%r15),%eax
  add    $0x1,%rbx
  lea    -0x2(%rax,%rax,1),%eax
  cltq
  lea    0x1(%rax),%rdx
  lea    0x0(,%rdx,4),%rcx
  divsd  %xmm0,%xmm1
  movsd  %xmm4,0x0(%r13)
  divsd  %xmm0,%xmm2
  movsd  %xmm1,0x8(%r13)
  movsd  %xmm2,0x10(%r13)
  cmp    %ebx,(%r14,%rdx,4)
  jle    L89
L80:
  movslq (%r10,%rbx,8),%rax
  mov    %ebx,%esi
  movq   $0x0,(%r12)
  movq   $0x0,0x8(%r12)
  movq   $0x0,0x10(%r12)
  mov    %rax,%rdx
  shl    $0x2,%rax
  cmpl   $0x1,(%r11)
  movslq -0x4(%rbp,%rax,1),%rcx
  jne    L229
  mov    %r11,0x18(%rsp)
  mov    0x40(%rsp),%r11
  mov    %r10,0x10(%rsp)
  mov    -0x4(%r11,%rax,1),%r8d
  xor    %eax,%eax
  mov    %ecx,0x8(%rsp)
  movsd  %xmm7,0x38(%rsp)
  call   <printf@plt>
  movsd  0x38(%rsp),%xmm7
  mov    0x18(%rsp),%r11
  lea    D119(%rip),%rdi
  mov    D106(%rip),%rax
  mov    0x10(%rsp),%r10
  movslq 0x8(%rsp),%rcx
  movq   %rax,%xmm3
  jmp    L229
  nopw   0x0(%rax,%rax,1)
L89:
  mov    0x58(%rsp),%rbp
  mov    0x60(%rsp),%r10
  mov    %r11,%r14
  lea    0x0(,%rax,4),%rsi
  mov    0x68(%rsp),%r9
L188:
  mov    0x20(%rsp),%rdi
  mov    (%rdi,%rsi,1),%r11d
  mov    (%rdi,%rcx,1),%r8d
  cmp    %r8d,%r11d
  jge    L258
  movslq %r11d,%r15
  mov    %r9,%rax
  pxor   %xmm7,%xmm7
  mov    %r13,%r9
  movsd  %xmm7,0x8(%rsp)
  mov    %r15,%r13
  mov    %rax,%r15
  nopl   0x0(%rax)
L378:
  mov    0x30(%rsp),%rax
  cmpl   $0x1,(%r14)
  mov    %r13d,%esi
  movq   $0x0,(%r12)
  movq   $0x0,0x8(%r12)
  movq   $0x0,0x10(%r12)
  movslq (%rax,%r13,8),%r8
  lea    -0x3(%r8,%r8,2),%eax
  movsd  -0x8(%r10,%r8,8),%xmm0
  mov    %r8,%rdx
  cltq
  lea    0x1(%rax),%rcx
  mov    0x0(%rbp,%rax,4),%r8d
  mov    0x0(%rbp,%rcx,4),%r11d
  movslq 0x4(%rbp,%rcx,4),%rbx
  movslq %r11d,%rax
  movsd  %xmm0,-0x8(%r12,%rax,8)
  je     L114
L82:
  test   %ebx,%ebx
  je     L316
  mov    %rbp,%rax
  mov    %r13,0x10(%rsp)
  mov    %r12,%rbp
  mov    %r10,%r13
  mov    %r9,0x18(%rsp)
  mov    %rax,%r12
  jmp    L309
  nopw   0x0(%rax,%rax,1)
L207:
  test   %ebx,%ebx
  je     L206
L309:
  lea    -0x3(%rbx,%rbx,2),%eax
  cltq
  mov    (%r12,%rax,4),%edi
  cmp    %edi,(%r15)
  jne    L236
  movsd  -0x8(%r13,%rbx,8),%xmm0
  movslq 0x4(%r12,%rax,4),%rdx
  movsd  %xmm0,-0x8(%rbp,%rdx,8)
L236:
  cmpl   $0x1,(%r14)
  movslq 0x8(%r12,%rax,4),%rbx
  jne    L207
  xor    %eax,%eax
  mov    %ebx,%esi
  lea    D25(%rip),%rdi
  call   <printf@plt>
  test   %ebx,%ebx
  jne    L309
L206:
  mov    %r12,%rax
  mov    %r13,%r10
  mov    0x18(%rsp),%r9
  mov    0x10(%rsp),%r13
  mov    %rbp,%r12
  mov    %rax,%rbp
L316:
  movsd  (%r12),%xmm1
  movsd  0x8(%r12),%xmm5
  movsd  0x10(%r12),%xmm2
  movsd  0x8(%rsp),%xmm7
  movapd %xmm1,%xmm0
  movapd %xmm5,%xmm3
  mulsd  %xmm5,%xmm3
  mulsd  %xmm1,%xmm0
  addsd  %xmm3,%xmm0
  movapd %xmm2,%xmm3
  mulsd  %xmm2,%xmm3
  addsd  %xmm3,%xmm0
  ucomisd %xmm0,%xmm7
  ja     L204
  sqrtsd %xmm0,%xmm0
L118:
  cvttsd2si %xmm0,%eax
  pxor   %xmm0,%xmm0
  movapd %xmm1,%xmm3
  movsd  0x8(%rsp),%xmm7
  cvtsi2sd %eax,%xmm0
  divsd  %xmm0,%xmm3
  divsd  %xmm0,%xmm5
  movsd  %xmm3,(%r12)
  divsd  %xmm0,%xmm2
  movapd %xmm3,%xmm0
  movsd  %xmm5,0x8(%r12)
  movsd  %xmm2,0x10(%r12)
  movsd  (%r9),%xmm6
  movsd  0x8(%r9),%xmm1
  movsd  0x10(%r9),%xmm4
  mulsd  %xmm6,%xmm0
  mulsd  %xmm1,%xmm5
  mulsd  %xmm4,%xmm2
  addsd  %xmm5,%xmm0
  addsd  %xmm2,%xmm0
  mulsd  %xmm0,%xmm3
  subsd  %xmm3,%xmm6
  movsd  %xmm6,(%r9)
  movsd  0x8(%r12),%xmm3
  movapd %xmm6,%xmm2
  mulsd  %xmm0,%xmm3
  subsd  %xmm3,%xmm1
  movsd  %xmm1,0x8(%r9)
  mulsd  0x10(%r12),%xmm0
  subsd  %xmm0,%xmm4
  movapd %xmm6,%xmm0
  mulsd  %xmm6,%xmm0
  movapd %xmm4,%xmm3
  movapd %xmm1,%xmm4
  mulsd  %xmm1,%xmm4
  addsd  %xmm4,%xmm0
  movapd %xmm3,%xmm4
  mulsd  %xmm3,%xmm4
  addsd  %xmm4,%xmm0
  ucomisd %xmm0,%xmm7
  ja     L45
  sqrtsd %xmm0,%xmm0
L393:
  divsd  %xmm0,%xmm2
  mov    0x28(%rsp),%rax
  mov    0x20(%rsp),%rsi
  add    $0x1,%r13
  mov    (%rax),%eax
  lea    -0x2(%rax,%rax,1),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    (%rsi,%rdx,4),%r8d
  lea    0x0(,%rdx,4),%rcx
  divsd  %xmm0,%xmm1
  movsd  %xmm2,(%r9)
  divsd  %xmm0,%xmm3
  movsd  %xmm1,0x8(%r9)
  movsd  %xmm3,0x10(%r9)
  cmp    %r13d,%r8d
  jg     L378
  mov    %r9,%r13
  mov    %r15,%r9
L258:
  mov    0x20(%rsp),%rsi
  mov    (%rsi,%rax,4),%edx
  mov    0x48(%rsp),%rsi
  mov    (%rsi,%rax,4),%eax
  cmp    %eax,(%rsi,%rcx,1)
  jle    L399
L77:
  movsd  0x8(%r13),%xmm0
  movsd  0x10(%r13),%xmm3
  xor    %eax,%eax
  movsd  0x10(%r12),%xmm2
  movsd  0x8(%r12),%xmm1
  mov    0x50(%rsp),%rcx
  mulsd  %xmm1,%xmm3
  mulsd  %xmm2,%xmm0
  subsd  %xmm3,%xmm0
  movsd  %xmm0,0x18(%r12)
  movsd  (%r12),%xmm0
  movsd  0x10(%r13),%xmm3
  mulsd  0x0(%r13),%xmm2
  mulsd  %xmm0,%xmm3
  subsd  %xmm2,%xmm3
  movsd  %xmm3,0x20(%r12)
  movsd  0x8(%r13),%xmm2
  mulsd  0x0(%r13),%xmm1
  mulsd  %xmm0,%xmm2
  subsd  %xmm2,%xmm1
  movsd  %xmm1,0x28(%r12)
  jmp    L296
  nopl   0x0(%rax)
L142:
  movsd  (%r12,%rax,1),%xmm0
L296:
  movsd  %xmm0,(%rcx,%rax,1)
  add    $0x8,%rax
  cmp    $0x30,%rax
  jne    L142
  movslq %edx,%r15
  cmp    %edx,%r8d
  jle    L374
  mov    %r14,0x8(%rsp)
  mov    0x30(%rsp),%r14
  nopl   0x0(%rax,%rax,1)
L124:
  movslq (%r14,%r15,8),%rdx
  lea    -0x3(%rdx,%rdx,2),%eax
  movsd  -0x8(%r10,%rdx,8),%xmm2
  cltq
  add    $0x1,%rax
  movslq 0x4(%rbp,%rax,4),%rdx
  movslq 0x0(%rbp,%rax,4),%rax
  lea    0x10(,%rax,8),%rax
  lea    (%r12,%rax,1),%r11
  lea    -0x18(%r13,%rax,1),%rbx
  test   %edx,%edx
  je     L1
  mov    (%r9),%ecx
  nop
L179:
  lea    -0x3(%rdx,%rdx,2),%eax
  cltq
  cmp    0x0(%rbp,%rax,4),%ecx
  jne    L31
  lea    -0x8(%r10,%rdx,8),%rdx
  movslq 0x4(%rbp,%rax,4),%rsi
  movsd  (%rdx),%xmm0
  mulsd  (%r11),%xmm0
  lea    0x10(,%rsi,8),%rsi
  lea    (%r12,%rsi,1),%rdi
  lea    -0x18(%r13,%rsi,1),%rsi
  movsd  (%rdi),%xmm1
  divsd  %xmm2,%xmm0
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rdi)
  movsd  (%rdx),%xmm0
  mulsd  (%rbx),%xmm0
  movsd  (%rsi),%xmm1
  divsd  %xmm2,%xmm0
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rsi)
L31:
  movslq 0x8(%rbp,%rax,4),%rdx
  test   %edx,%edx
  jne    L179
L1:
  add    $0x1,%r15
  movq   $0x0,(%r11)
  movq   $0x0,(%rbx)
  cmp    %r15d,%r8d
  jg     L124
  mov    0x8(%rsp),%r14
L374:
  movsd  0x0(%r13),%xmm4
  movsd  0x8(%r13),%xmm1
  pxor   %xmm7,%xmm7
  movsd  0x10(%r13),%xmm2
  movsd  %xmm7,0x8(%rsp)
  movapd %xmm4,%xmm0
  movapd %xmm1,%xmm3
  mulsd  %xmm1,%xmm3
  mulsd  %xmm4,%xmm0
  addsd  %xmm3,%xmm0
  movapd %xmm2,%xmm3
  mulsd  %xmm2,%xmm3
  addsd  %xmm3,%xmm0
  ucomisd %xmm0,%xmm7
  ja     L288
L55:
  movsd  (%r12),%xmm0
  movsd  0x8(%r12),%xmm5
  movsd  0x10(%r12),%xmm3
  movsd  0x8(%rsp),%xmm7
  mulsd  %xmm0,%xmm0
  mulsd  %xmm5,%xmm5
  mulsd  %xmm3,%xmm3
  addsd  %xmm5,%xmm0
  addsd  %xmm3,%xmm0
  ucomisd %xmm0,%xmm7
  ja     L355
L299:
  movsd  0x18(%r12),%xmm0
  movsd  0x20(%r12),%xmm5
  movsd  0x28(%r12),%xmm3
  movsd  0x8(%rsp),%xmm7
  mulsd  %xmm0,%xmm0
  mulsd  %xmm5,%xmm5
  mulsd  %xmm3,%xmm3
  addsd  %xmm5,%xmm0
  addsd  %xmm3,%xmm0
  ucomisd %xmm0,%xmm7
  ja     L96
L128:
  cmpl   $0x1,(%r14)
  je     L385
L58:
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L114:
  mov    %r11d,%ecx
  mov    $0x1,%eax
  mov    %r10,0x18(%rsp)
  lea    D127(%rip),%rdi
  mov    %r9,0x10(%rsp)
  call   <printf@plt>
  mov    0x18(%rsp),%r10
  mov    0x10(%rsp),%r9
  jmp    L82
L399:
  cmp    %edx,%r8d
  jg     L77
L317:
  cmpl   $0x1,(%r14)
  jne    L58
  movsd  0x10(%r13),%xmm2
  movsd  0x8(%r13),%xmm1
  lea    D83(%rip),%rdi
  mov    $0x3,%eax
  movsd  0x0(%r13),%xmm0
  call   <printf@plt>
  movsd  (%r12),%xmm0
  movsd  0x10(%r12),%xmm2
  lea    D28(%rip),%rdi
  movsd  0x8(%r12),%xmm1
  mov    $0x3,%eax
  call   <printf@plt>
  movsd  0x18(%r12),%xmm0
  movsd  0x28(%r12),%xmm2
  lea    D98(%rip),%rdi
  movsd  0x20(%r12),%xmm1
  add    $0x88,%rsp
  mov    $0x3,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1060 <printf@plt>
L385:
  movapd %xmm4,%xmm0
  lea    D83(%rip),%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  movsd  (%r12),%xmm0
  movsd  0x10(%r12),%xmm2
  lea    D28(%rip),%rdi
  movsd  0x8(%r12),%xmm1
  mov    $0x3,%eax
  call   <printf@plt>
  movsd  0x18(%r12),%xmm0
  movsd  0x28(%r12),%xmm2
  lea    D98(%rip),%rdi
  movsd  0x20(%r12),%xmm1
  mov    $0x3,%eax
  call   <printf@plt>
  jmp    L317
L250:
  lea    0x0(,%rax,4),%rsi
  lea    0x0(,%rdx,4),%rcx
  jmp    L188
L266:
  mov    %r11,0x70(%rsp)
  mov    %r10,0x38(%rsp)
  movsd  %xmm7,0x78(%rsp)
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm4,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x78(%rsp),%xmm7
  mov    0x70(%rsp),%r11
  lea    D119(%rip),%rdi
  mov    D106(%rip),%rax
  mov    0x38(%rsp),%r10
  movsd  0x18(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm4
  movq   %rax,%xmm3
  jmp    L174
L45:
  mov    %r10,0x58(%rsp)
  mov    %r9,0x40(%rsp)
  movsd  %xmm3,0x38(%rsp)
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm6,0x10(%rsp)
  call   <sqrt@plt>
  mov    0x58(%rsp),%r10
  mov    0x40(%rsp),%r9
  movsd  0x38(%rsp),%xmm3
  movsd  0x18(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm2
  jmp    L393
L204:
  mov    %r10,0x58(%rsp)
  mov    %r9,0x40(%rsp)
  movsd  %xmm2,0x38(%rsp)
  movsd  %xmm5,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  call   <sqrt@plt>
  mov    0x58(%rsp),%r10
  mov    0x40(%rsp),%r9
  movsd  0x38(%rsp),%xmm2
  movsd  0x18(%rsp),%xmm5
  movsd  0x10(%rsp),%xmm1
  jmp    L118
L96:
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm4,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x18(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm4
  jmp    L128
L355:
  movsd  %xmm2,0x20(%rsp)
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm4,0x10(%rsp)
  call   <sqrt@plt>
  movsd  0x20(%rsp),%xmm2
  movsd  0x18(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm4
  jmp    L299
L288:
  movsd  %xmm2,0x20(%rsp)
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm4,0x10(%rsp)
  call   <sqrt@plt>
  movsd  0x20(%rsp),%xmm2
  movsd  0x18(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm4
  jmp    L55
```

tool_calls: name: parse_data
arguments: tag: D106
type: f64
name: parse_data
arguments: tag: D119
type: string
name: parse_data
arguments: tag: D25
type: string
name: parse_data
arguments: tag: D127
type: string
name: parse_data
arguments: tag: D83
type: string
name: parse_data
arguments: tag: D28
type: string
name: parse_data
arguments: tag: D98
type: string

tool: D106: 1

tool: D119: jj %d ist %d dir %d node %d


tool: D25: index %d 


tool: D127: jj %d ist %d dir %d node %d coef %e


tool: D83: n= %e %e %e 


tool: D28: t1= %e %e %e 


tool: D98: t2= %e %e %e 


assistant: ```c
void trafontspcmpc(double *n, double *t, double *n2, double *that, int *islavnodeentry, int *nboun, int *ndirboun, int *nodeboun, double *xboun, int *nmpc, int *ipompc, int *nodempc, double *coefmpc, int *ikboun, int *ilboun, int *ikmpc, int *ilmpc, int *nslavspc, int *islavspc, int *nsspc, int *nslavmpc, int *islavmpc, int *nsmpc, int *nmastspc, int *imastspc, int *nmspc, int *nmastmpc, int *imastmpc, int *nmmpc, int *debug, int *node) {
  int i, j, jj, j2, k, kk, l, m, dirblock, ist, dir, node1, index, dirind, dirdep, nt1, nt2;
  double dist, nn, coefdep;
  dirblock = 0;
  for (jj = nslavmpc[2 * (*islavnodeentry - 1)]; jj < nslavmpc[2 * (*islavnodeentry - 1) + 1]; jj++) {
    if (islavmpc[2 * jj + 1] == 1) {
      dirblock = 1;
    }
  }
  for (jj = nslavspc[2 * (*islavnodeentry - 1)]; jj < nslavspc[2 * (*islavnodeentry - 1) + 1]; jj++) {
    t[0] = 0;
    t[1] = 0;
    t[2] = 0;
    ist = islavspc[2 * jj];
    dir = ndirboun[ist - 1];
    node1 = nodeboun[ist - 1];
    if (*debug == 1) {
      printf("jj %"
             "d"
             " ist %"
             "d"
             " dir %"
             "d"
             " node %"
             "d"
             "\n",
             jj, ist, dir, node1);
    }
    t[dir - 1] = 1.0;
    dist = t[0] * n[0] + t[1] * n[1] + t[2] * n[2];
    n[0] = n[0] - dist * t[0];
    n[1] = n[1] - dist * t[1];
    n[2] = n[2] - dist * t[2];
    nn = sqrt(n[0] * n[0] + n[1] * n[1] + n[2] * n[2]);
    n[0] = n[0] / nn;
    n[1] = n[1] / nn;
    n[2] = n[2] / nn;
  }
  for (jj = nslavmpc[2 * (*islavnodeentry - 1)]; jj < nslavmpc[2 * (*islavnodeentry - 1) + 1]; jj++) {
    t[0] = 0;
    t[1] = 0;
    t[2] = 0;
    ist = islavmpc[2 * jj];
    dirdep = nodempc[3 * (ist - 1) + 1];
    coefdep = coefmpc[ist - 1];
    index = nodempc[3 * (ist - 1) + 2];
    node1 = nodempc[3 * (ist - 1)];
    t[dirdep - 1] = coefdep;
    if (*debug == 1) {
      printf("jj %"
             "d"
             " ist %"
             "d"
             " dir %"
             "d"
             " node %"
             "d"
             " coef %e\n",
             jj, ist, dirdep, node1, coefdep);
    }
    while (index != 0) {
      dirind = nodempc[3 * (index - 1) + 1];
      node1 = nodempc[3 * (index - 1)];
      if (node1 == *node)
        t[dirind - 1] = coefmpc[index - 1];
      index = nodempc[3 * (index - 1) + 2];
      if (*debug == 1) {
        printf("index %"
               "d"
               " \n",
               index);
      }
    }
    nt1 = sqrt(t[0] * t[0] + t[1] * t[1] + t[2] * t[2]);
    t[0] = t[0] / nt1;
    t[1] = t[1] / nt1;
    t[2] = t[2] / nt1;
    dist = t[0] * n[0] + t[1] * n[1] + t[2] * n[2];
    n[0] = n[0] - dist * t[0];
    n[1] = n[1] - dist * t[1];
    n[2] = n[2] - dist * t[2];
    nn = sqrt(n[0] * n[0] + n[1] * n[1] + n[2] * n[2]);
    n[0] = n[0] / nn;
    n[1] = n[1] / nn;
    n[2] = n[2] / nn;
  }
  if (nslavspc[2 * (*islavnodeentry - 1) + 1] - nslavspc[2 * (*islavnodeentry - 1)] > 0 || nslavmpc[2 * (*islavnodeentry - 1) + 1] - nslavmpc[2 * (*islavnodeentry - 1)] > 0) {
    t[3] = n[1] * t[2] - n[2] * t[1];
    t[4] = n[2] * t[0] - n[0] * t[2];
    t[5] = n[0] * t[1] - n[1] * t[0];
    for (kk = 0; kk < 6; kk++) {
      that[kk] = t[kk];
    }
    for (jj = nslavmpc[2 * (*islavnodeentry - 1)]; jj < nslavmpc[2 * (*islavnodeentry - 1) + 1]; jj++) {
      ist = islavmpc[2 * jj];
      dirdep = nodempc[3 * (ist - 1) + 1];
      coefdep = coefmpc[ist - 1];
      index = nodempc[3 * (ist - 1) + 2];
      node1 = nodempc[3 * (ist - 1)];
      while (index != 0) {
        dirind = nodempc[3 * (index - 1) + 1];
        node1 = nodempc[3 * (index - 1)];
        if (node1 == *node) {
          t[dirind - 1 + 3] = t[dirind - 1 + 3] - coefmpc[index - 1] * t[dirdep - 1 + 3] / coefdep;
          n[dirind - 1] = n[dirind - 1] - coefmpc[index - 1] * n[dirdep - 1] / coefdep;
        }
        index = nodempc[3 * (index - 1) + 2];
      }
      t[dirdep - 1 + 3] = 0.0;
      n[dirdep - 1] = 0.0;
    }
    nn = sqrt(n[0] * n[0] + n[1] * n[1] + n[2] * n[2]);
    nt1 = sqrt(t[0] * t[0] + t[1] * t[1] + t[2] * t[2]);
    nt2 = sqrt(t[3] * t[3] + t[4] * t[4] + t[5] * t[5]);
    if (*debug == 1) {
      printf("n= %e %e %e \n", n[0], n[1], n[2]);
      printf("t1= %e %e %e \n", t[0], t[1], t[2]);
      printf("t2= %e %e %e \n", t[3], t[4], t[5]);
    }
  }
  if (*debug == 1) {
    printf("n= %e %e %e \n", n[0], n[1], n[2]);
    printf("t1= %e %e %e \n", t[0], t[1], t[2]);
    printf("t2= %e %e %e \n", t[3], t[4], t[5]);
  }
  return;
}
```