user: Please show me the C implementation that matches the assembly code listed below:

```asm
<set_weight_value>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L59
L74:
  movl   $0x0,-0x10(%rbp)
  jmp    L31
L93:
  mov    -0x14(%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    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  cltq
  movl   $0x0,(%rdx,%rax,4)
  addl   $0x1,-0x10(%rbp)
L31:
  cmpl   $0x63,-0x10(%rbp)
  jle    L93
  addl   $0x1,-0x14(%rbp)
L59:
  cmpl   $0x63,-0x14(%rbp)
  jle    L74
  movl   $0x0,-0xc(%rbp)
  jmp    L16
L53:
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L87
L32:
  movl   $0x0,-0x4(%rbp)
  jmp    L69
L27:
  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    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%esi
  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    -0x28(%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    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  imul   %eax,%ecx
  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    -0x30(%rbp),%rax
  add    %rax,%rdx
  add    %esi,%ecx
  mov    -0x8(%rbp),%eax
  cltq
  mov    %ecx,(%rdx,%rax,4)
  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    -0x30(%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    -0x30(%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,-0x4(%rbp)
L69:
  cmpl   $0x2,-0x4(%rbp)
  jle    L27
  addl   $0x1,-0x8(%rbp)
L87:
  cmpl   $0x63,-0x8(%rbp)
  jle    L32
  addl   $0x1,-0xc(%rbp)
L16:
  cmpl   $0x63,-0xc(%rbp)
  jle    L53
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void set_weight_value(int pattern[][100], int weight[][100]) {
  for (int i = 0; i < 100; i++) {
    for (int j = 0; j < 100; j++) {
      weight[i][j] = 0;
    }
  }
  for (int i = 0; i < 100; i++) {
    for (int j = i + 1; j < 100; j++) {
      for (int k = 0; k < 3; k++) {
        weight[i][j] += pattern[k][i] * pattern[k][j];
        weight[j][i] = weight[i][j];
      }
    }
  }
}
```