user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<Set_Weight_Value>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L70
L99:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc(%rbp),%eax
  cltq
  movl   $0x0,(%rdx,%rax,4)
  addl   $0x1,-0xc(%rbp)
L70:
  cmpl   $0x63,-0xc(%rbp)
  jle    L99
  movl   $0x0,-0xc(%rbp)
  jmp    L39
L93:
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L44
L66:
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L80
L36:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%ecx
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  imul   %ecx,%eax
  add    %eax,-0x10(%rbp)
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x8(%rbp),%eax
  cltq
  mov    -0x10(%rbp),%edx
  mov    %edx,(%rcx,%rax,4)
  addl   $0x1,-0x4(%rbp)
L80:
  cmpl   $0x4,-0x4(%rbp)
  jle    L36
  addl   $0x1,-0x8(%rbp)
L44:
  cmpl   $0x63,-0x8(%rbp)
  jle    L66
  addl   $0x1,-0xc(%rbp)
L39:
  cmpl   $0x63,-0xc(%rbp)
  jle    L93
  movl   $0x0,-0xc(%rbp)
  jmp    L58
L45:
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L29
L78:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x8(%rbp),%eax
  cltq
  mov    (%rsi,%rax,4),%edx
  mov    -0xc(%rbp),%eax
  cltq
  mov    %edx,(%rcx,%rax,4)
  addl   $0x1,-0x8(%rbp)
L29:
  cmpl   $0x63,-0x8(%rbp)
  jle    L78
  addl   $0x1,-0xc(%rbp)
L58:
  cmpl   $0x63,-0xc(%rbp)
  jle    L45
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void Set_Weight_Value(int pattern[][100], int w[][100]) {
  int tmp_w;
  int i, j, p;
  for (i = 0; i < 100; i++) {
    w[i][i] = 0;
  }
  for (i = 0; i < 100; i++) {
    for (j = i + 1; j < 100; j++) {
      tmp_w = 0;
      for (p = 0; p < 5; p++) {
        tmp_w = tmp_w + pattern[p][i] * pattern[p][j];
        w[i][j] = tmp_w;
      }
    }
  }
  for (i = 0; i < 100; i++) {
    for (j = i + 1; j < 100; j++) {
      w[j][i] = w[i][j];
    }
  }
}
```