user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %r15
  lea    D38(%rip),%r15
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x378,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x368(%rsp)
  xor    %eax,%eax
  lea    0x24(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x20(%rsp),%rax
  mov    %rax,0x10(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L84:
  mov    0x18(%rsp),%rdx
  mov    0x10(%rsp),%rsi
  xor    %eax,%eax
  lea    D20(%rip),%rdi
  call   <scanf@plt>
  cmp    $0x2,%eax
  jne    L135
  test   %r14d,%r14d
  jne    L168
L92:
  xor    %eax,%eax
  lea    0x30(%rsp),%rdi
  mov    $0x32,%ecx
  mov    %rdi,(%rsp)
  rep stos %rax,%es:(%rdi)
  lea    0x1c0(%rsp),%rdi
  mov    $0x32,%ecx
  mov    %rdi,0x8(%rsp)
  rep stos %rax,%es:(%rdi)
  mov    0x20(%rsp),%ecx
  mov    0x24(%rsp),%eax
  imul   %ecx,%eax
  lea    -0x1(%rcx),%edx
  imul   %edx,%eax
  cmp    $0x1,%eax
  jle    L47
  xor    %ebp,%ebp
  lea    0x35f(%rsp),%rbx
  lea    0x2c(%rsp),%r14
  lea    0x356(%rsp),%r13
  lea    0x28(%rsp),%r12
  jmp    L146
  nopw   0x0(%rax,%rax,1)
L173:
  cmp    $0x70,%al
  je     L11
  cmp    $0x72,%al
  jne    L13
  cmp    $0x72,%cl
  je     L9
L13:
  mov    0x2c(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    0x28(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0x73,%cl
  je     L180
L224:
  movslq %edx,%rdx
  cltq
  addl   $0x1,0x30(%rsp,%rdx,4)
  addl   $0x1,0x1c0(%rsp,%rax,4)
L9:
  mov    0x20(%rsp),%ecx
  mov    0x24(%rsp),%edx
  add    $0x1,%ebp
  imul   %ecx,%edx
  lea    -0x1(%rcx),%eax
  imul   %eax,%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  cmp    %ebp,%eax
  jle    L47
L146:
  mov    %r14,%rcx
  mov    %rbx,%r8
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movzbl 0x356(%rsp),%eax
  movzbl 0x35f(%rsp),%ecx
  cmp    $0x73,%al
  jne    L173
  cmp    $0x73,%cl
  je     L9
  mov    0x2c(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    0x28(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0x70,%cl
  jne    L224
L180:
  cltq
  movslq %edx,%rdx
  addl   $0x1,0x30(%rsp,%rax,4)
  addl   $0x1,0x1c0(%rsp,%rdx,4)
  jmp    L9
  nopl   (%rax)
L11:
  cmp    $0x70,%cl
  je     L9
  mov    0x2c(%rsp),%eax
  mov    0x28(%rsp),%esi
  sub    $0x1,%eax
  lea    -0x1(%rsi),%edx
  cmp    $0x73,%cl
  jne    L224
  jmp    L180
L47:
  test   %ecx,%ecx
  jle    L113
  xor    %r13d,%r13d
  lea    D32(%rip),%r12
  nopl   0x0(%rax)
L78:
  mov    (%rsp),%rax
  mov    0x8(%rsp),%rsi
  pxor   %xmm1,%xmm1
  pxor   %xmm2,%xmm2
  mov    (%rax,%r13,4),%eax
  mov    (%rsi,%r13,4),%edx
  add    %eax,%edx
  cvtsi2ss %edx,%xmm1
  ucomiss %xmm2,%xmm1
  jp     L184
  jne    L184
  mov    %r12,%rdi
  lea    0x1(%r13),%r14d
  add    $0x1,%r13
  call   <puts@plt>
  cmp    %r13d,0x20(%rsp)
  jg     L78
  jmp    L84
  nopw   0x0(%rax,%rax,1)
L184:
  pxor   %xmm0,%xmm0
  lea    D24(%rip),%rdi
  lea    0x1(%r13),%r14d
  add    $0x1,%r13
  cvtsi2ss %eax,%xmm0
  mov    $0x1,%eax
  divss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  cmp    %r13d,0x20(%rsp)
  jg     L78
  jmp    L84
L168:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L92
L135:
  mov    0x368(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L169
  add    $0x378,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L113:
  xor    %r14d,%r14d
  jmp    L84
L169:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D38
datatype: string
name: parse_data
arguments: data_label: D20
datatype: string
name: parse_data
arguments: data_label: D32
datatype: string
name: parse_data
arguments: data_label: D24
datatype: string

tool: D38: %d %s %d %s

tool: D20: %d %d

tool: D32: -

tool: D24: %.3f


assistant: ```c
int main(void) {
  int n, k, v, u, i = 0, pw[100], pl[100];
  float w;
  char vt[9], ut[9];
  char type[3] = {'s', 'p', 'r'};
  while (scanf("%d %d", &n, &k) == 2) {
    if (i != 0)
      printf("\n");
    for (i = 0; i < 100; i++) {
      pw[i] = 0;
      pl[i] = 0;
    }
    for (i = 0; i < k * n * (n - 1) / 2; i++) {
      scanf("%d %s %d %s", &v, vt, &u, ut);
      if (vt[0] == type[0] && ut[0] == type[0])
        ;
      else if (vt[0] == type[1] && ut[0] == type[1])
        ;
      else if (vt[0] == type[2] && ut[0] == type[2])
        ;
      else if (vt[0] == type[0]) {
        if (ut[0] == type[1]) {
          pw[v - 1]++;
          pl[u - 1]++;
        } else {
          pw[u - 1]++;
          pl[v - 1]++;
        }
      } else if (vt[0] == type[1]) {
        if (ut[0] == type[0]) {
          pw[u - 1]++;
          pl[v - 1]++;
        } else {
          pw[v - 1]++;
          pl[u - 1]++;
        }
      } else {
        if (ut[0] == type[0]) {
          pw[v - 1]++;
          pl[u - 1]++;
        } else {
          pw[u - 1]++;
          pl[v - 1]++;
        }
      }
    }
    for (i = 0; i < n; i++) {
      w = pw[i] + pl[i];
      if (w == 0)
        printf("-\n");
      else {
        w = pw[i] / w;
        printf("%.3f\n", w);
      }
    }
  }
  return 0;
}
```