user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x188,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x178(%rsp)
  xor    %eax,%eax
  lea    D18(%rip),%rsi
  lea    D16(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  movl   $0x0,0x8(%rsp)
  lea    0x8(%rsp),%rdx
  lea    D3(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  cmpl   $0x0,0x8(%rsp)
  jle    L94
  mov    $0x1,%r13d
  lea    0x16b(%rsp),%r12
  lea    0x30(%rsp),%rbx
  lea    D43(%rip),%r15
  jmp    L70
L65:
  movslq %r11d,%rax
  mov    %dil,0x30(%rsp,%rax,1)
  movslq %r10d,%r10
  mov    %r8b,0x30(%rsp,%r10,1)
  cmp    $0x13a,%r11d
  jle    L127
L19:
  movslq 0xc(%rsp),%rax
  movb   $0x0,0x30(%rsp,%rax,1)
  mov    %rbx,%rdx
  mov    %r13d,%esi
  mov    %r15,%rdi
  call   <printf@plt>
  add    $0x1,%r13d
  cmp    %r13d,0x8(%rsp)
  jl     L94
L70:
  lea    0x30(%rsp),%rax
L40:
  movb   $0x0,(%rax)
  add    $0x1,%rax
  cmp    %r12,%rax
  jne    L40
  movl   $0x13b,0xc(%rsp)
  lea    0x10(%rsp),%rcx
  lea    0xc(%rsp),%rdx
  mov    %rbx,%r8
  lea    D36(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  mov    $0x0,%r11d
  jmp    L127
L17:
  mov    %r14d,%r11d
L127:
  movslq %r11d,%rax
  movzbl 0x30(%rsp,%rax,1),%r8d
  test   %r8b,%r8b
  je     L19
  lea    0x1(%r11),%r14d
  cmp    $0x13a,%r14d
  jg     L19
  movslq %r14d,%r9
L125:
  mov    %r9d,%r10d
  movzbl (%r9,%rbx,1),%edi
  test   %dil,%dil
  je     L17
  mov    $0x0,%eax
  mov    $0x0,%ecx
  mov    $0x0,%esi
L53:
  movzbl 0x10(%rsp,%rax,1),%edx
  cmp    %dl,%r8b
  cmove  %eax,%esi
  cmp    %dl,%dil
  cmove  %eax,%ecx
  add    $0x1,%rax
  cmp    $0x1a,%rax
  jne    L53
  cmp    %ecx,%esi
  jg     L65
  add    $0x1,%r9
  cmp    $0x13a,%r9d
  jle    L125
  mov    %r14d,%r11d
  jmp    L127
L94:
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x178(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L80
  mov    $0x0,%eax
  add    $0x188,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L80:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D18
datatype: string
name: retrieve_data
arguments: data_label: D16
datatype: string
name: retrieve_data
arguments: data_label: D3
datatype: string
name: retrieve_data
arguments: data_label: D43
datatype: string
name: retrieve_data
arguments: data_label: D36
datatype: string

tool: D18: r

tool: D16: zzzyyx.in

tool: D3: %d

tool: D43: Week #%d: His name is %s!


tool: D36: %d %s %s


assistant: ```c
main() {
  FILE *fp = fopen("zzzyyx.in", "r");
  int cases = 0;
  fscanf(fp, "%d", &cases);
  int i = 0;
  for (i = 1; i <= cases; i++) {
    char alpha[28];
    char spill[315];
    int k = 0;
    for (k = 0; k < 315; k++)
      spill[k] = '\0';
    fscanf(fp, "%d %s %s\n", &k, alpha, spill);
    int a = 0, b = 0, c = 0;
    for (a = 0; a < 315; a++) {
      if (spill[a] == '\0')
        break;
      for (b = a + 1; b < 315; b++) {
        if (spill[b] == '\0')
          break;
        int va = 0;
        int vb = 0;
        for (c = 0; c < 26; c++) {
          if (alpha[c] == spill[a])
            va = c;
          if (alpha[c] == spill[b])
            vb = c;
        }
        if (va > vb) {
          char temp = spill[a];
          spill[a] = spill[b];
          spill[b] = temp;
          a--;
          break;
        }
      }
    }
    spill[k] = '\0';
    printf("Week #%d: His name is %s!\n", i, spill);
  }
  fclose(fp);
  return 0;
}
```