user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  movabs $0x4443424132727473,%rax
  mov    %rax,0x6(%rsp)
  movw   $0x45,0xe(%rsp)
  lea    D16(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rsi
  lea    D118(%rip),%rdi
  call   <scanf@plt>
  mov    %rbx,%rsi
  lea    D78(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%ebp
  lea    D57(%rip),%r12
L7:
  movsbl (%rbx),%edx
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpb   $0x0,(%rbx)
  je     L3
  add    $0x1,%ebp
  add    $0x1,%rbx
  cmp    $0x20,%ebp
  jne    L7
  jmp    L46
L3:
  lea    D82(%rip),%rdi
  call   <puts@plt>
L46:
  mov    $0x0,%ebx
  lea    D77(%rip),%rbp
L31:
  movsbl 0x6(%rsp,%rbx,1),%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    $0xa,%rbx
  jne    L31
  lea    0x6(%rsp),%rbp
  mov    %rbp,%rsi
  lea    D43(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movb   $0x0,0xa(%rsp)
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%ebx
  lea    D77(%rip),%rbp
L27:
  movsbl 0x6(%rsp,%rbx,1),%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    $0xa,%rbx
  jne    L27
  lea    D104(%rip),%rsi
  lea    D114(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%ebx
  lea    D104(%rip),%r12
  lea    D27(%rip),%rbp
L58:
  movsbl (%r12,%rbx,1),%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    $0x5,%rbx
  jne    L58
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  mov    $0x0,%eax
  add    $0x40,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L0:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D16
type_guessed: string
name: read_data
arguments: data_tag: D118
type_guessed: string
name: read_data
arguments: data_tag: D78
type_guessed: string
name: read_data
arguments: data_tag: D57
type_guessed: string
name: read_data
arguments: data_tag: D82
type_guessed: string
name: read_data
arguments: data_tag: D77
type_guessed: string
name: read_data
arguments: data_tag: D43
type_guessed: string
name: read_data
arguments: data_tag: D104
type_guessed: string
name: read_data
arguments: data_tag: D114
type_guessed: string
name: read_data
arguments: data_tag: D27
type_guessed: string

tool: D16: str1: 

tool: D118: %s

tool: D78: str1 = "%s"


tool: D57: str1[%d]: '%c'


tool: D82: str1 end.

tool: D77: str2[%d]: '%c'


tool: D43: str2 = "%s"


tool: D104: str3

tool: D114: str3 = "%s"


tool: D27: *(str3 + %d): '%c'


assistant: ```c
int main(void) {
  int i;
  char str1[32];
  char str2[] = "str2ABCDE";
  char *str3 = "str3";
  printf("str1: ");
  scanf("%s", str1);
  printf("str1 = \"%s\"\n", str1);
  for (i = 0; i < 32; i++) {
    printf("str1[%d]: \'%c\'\n", i, str1[i]);
    if (str1[i] == '\0') {
      printf("str1 end.\n");
      break;
    }
  }
  for (i = 0; i < 10; i++) {
    printf("str2[%d]: \'%c\'\n", i, str2[i]);
  }
  printf("str2 = \"%s\"\n", str2);
  str2[4] = '\0';
  printf("str2 = \"%s\"\n", str2);
  for (i = 0; i < 10; i++) {
    printf("str2[%d]: \'%c\'\n", i, str2[i]);
  }
  printf("str3 = \"%s\"\n", str3);
  for (i = 0; i < 5; i++) {
    printf("*(str3 + %d): \'%c\'\n", i, *(str3 + i));
  }
  return 0;
}
```