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    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rbp
  lea    0x11(%rsp),%r13
  call   <fastRead_int@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  je     L33
  nopl   0x0(%rax)
L66:
  mov    %rbp,%rdi
  call   <gets@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  test   %eax,%eax
  jle    L63
  lea    -0x1(%rax),%ecx
  xor    %ebx,%ebx
  mov    %rbp,%rax
  add    %r13,%rcx
  cs nopw 0x0(%rax,%rax,1)
L88:
  xor    %edx,%edx
  cmpb   $0x20,(%rax)
  sete   %dl
  add    $0x1,%rax
  add    %edx,%ebx
  cmp    %rcx,%rax
  jne    L88
  movsbl 0x10(%rsp),%edi
  test   %ebx,%ebx
  je     L237
  cmp    $0x1,%ebx
  je     L216
  call   <toupper@plt>
  movsbl %al,%edi
  call   <putchar@plt>
  mov    $0x2e,%edi
  call   <putchar@plt>
  mov    $0x20,%edi
  call   <putchar@plt>
  cmpb   $0x20,0x10(%rsp)
  je     L74
  mov    $0x1,%eax
  lea    0xf(%rsp),%rdx
  nop
L207:
  mov    %eax,%ebx
  add    $0x1,%rax
  cmpb   $0x20,(%rdx,%rax,1)
  jne    L207
L97:
  lea    0x1(%rbx),%r15d
  movslq %r15d,%rdx
  movsbl 0x10(%rsp,%rdx,1),%edi
  mov    %rdx,0x8(%rsp)
  call   <toupper@plt>
  movsbl %al,%edi
  call   <putchar@plt>
  mov    $0x2e,%edi
  call   <putchar@plt>
  mov    $0x20,%edi
  call   <putchar@plt>
  mov    0x8(%rsp),%rdx
  cmpb   $0x20,0x10(%rsp,%rdx,1)
  je     L7
  lea    0x2(%rbx),%eax
  lea    0xf(%rsp),%rdx
  cltq
  nopl   0x0(%rax)
L59:
  mov    %eax,%r15d
  add    $0x1,%rax
  cmpb   $0x20,(%rdx,%rax,1)
  jne    L59
L7:
  lea    0x1(%r15),%eax
  cltq
  movsbl 0x10(%rsp,%rax,1),%edi
  call   <toupper@plt>
  movsbl %al,%edi
  call   <putchar@plt>
  lea    0x2(%r15),%eax
  cmp    %eax,%r14d
  jle    L82
  movslq %r15d,%rax
  sub    $0x3,%r14d
  lea    0x0(%rbp,%rax,1),%rbx
  sub    %r15d,%r14d
  add    %r13,%rax
  add    %rax,%r14
  nopl   0x0(%rax,%rax,1)
L41:
  movsbl 0x2(%rbx),%edi
  add    $0x1,%rbx
  call   <tolower@plt>
  movsbl %al,%edi
  call   <putchar@plt>
  cmp    %r14,%rbx
  jne    L41
L82:
  mov    $0xa,%edi
  call   <putchar@plt>
  sub    $0x1,%r12d
  jne    L66
L33:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L218
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L216:
  call   <toupper@plt>
  movsbl %al,%edi
  call   <putchar@plt>
  mov    $0x2e,%edi
  call   <putchar@plt>
  mov    $0x20,%edi
  call   <putchar@plt>
  cmpb   $0x20,0x11(%rsp)
  je     L132
  mov    $0x2,%eax
  lea    0xf(%rsp),%rdx
  nopw   0x0(%rax,%rax,1)
L245:
  mov    %eax,%ebx
  add    $0x1,%rax
  cmpb   $0x20,(%rdx,%rax,1)
  jne    L245
L132:
  lea    0x1(%rbx),%eax
  cltq
  movsbl 0x10(%rsp,%rax,1),%edi
  call   <toupper@plt>
  movsbl %al,%edi
  call   <putchar@plt>
  lea    0x2(%rbx),%eax
  cltq
  movsbl 0x10(%rsp,%rax,1),%edi
  test   %dil,%dil
  je     L82
  movslq %ebx,%rbx
  add    %rbp,%rbx
  nopl   0x0(%rax)
L10:
  call   <tolower@plt>
  add    $0x1,%rbx
  movsbl %al,%edi
  call   <putchar@plt>
  movsbl 0x2(%rbx),%edi
  test   %dil,%dil
  jne    L10
  mov    $0xa,%edi
  call   <putchar@plt>
  sub    $0x1,%r12d
  jne    L66
  jmp    L33
L237:
  call   <toupper@plt>
  movsbl %al,%edi
  call   <putchar@plt>
  cmp    $0x1,%r14d
  je     L82
  lea    -0x2(%r14),%eax
  mov    %r13,%rbx
  lea    0x2(%rbp,%rax,1),%r14
  cs nopw 0x0(%rax,%rax,1)
L152:
  movsbl (%rbx),%edi
  add    $0x1,%rbx
  call   <tolower@plt>
  movsbl %al,%edi
  call   <putchar@plt>
  cmp    %rbx,%r14
  jne    L152
  mov    $0xa,%edi
  call   <putchar@plt>
  sub    $0x1,%r12d
  jne    L66
  jmp    L33
  nopw   0x0(%rax,%rax,1)
L63:
  movsbl 0x10(%rsp),%edi
  call   <toupper@plt>
  movsbl %al,%edi
  call   <putchar@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  sub    $0x1,%r12d
  jne    L66
  jmp    L33
L74:
  xor    %ebx,%ebx
  jmp    L97
L218:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int main() {
  int T;
  T = fastRead_int();
  char str[32];
  int num, i, len;
  while (T--) {
    num = 0;
    i = 0;
    gets(str);
    len = strlen(str);
    while (i < len) {
      if (str[i] == ' ')
        num++;
      i++;
    }
    if (num == 0) {
      i = 0;
      putchar(toupper(str[0]));
      for (i = 1; i < len; i++) {
        putchar(tolower(str[i]));
      }
      putchar('\n');
    } else if (num == 1) {
      i = 0;
      putchar(toupper(str[0]));
      putchar('.');
      putchar(' ');
      i = 1;
      while (str[i] != ' ')
        i++;
      i++;
      putchar(toupper(str[i]));
      for (i = i + 1; str[i] != '\0'; i++) {
        putchar(tolower(str[i]));
      }
      putchar('\n');
    } else {
      i = 0;
      putchar(toupper(str[0]));
      putchar('.');
      putchar(' ');
      while (str[i] != ' ') {
        i++;
      }
      i++;
      putchar(toupper(str[i]));
      putchar('.');
      putchar(' ');
      while (str[i] != ' ')
        i++;
      i++;
      putchar(toupper(str[i]));
      for (i = i + 1; i < len; i++) {
        putchar(tolower(str[i]));
      }
      putchar('\n');
    }
  }
  return 0;
}
```