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

```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    D83(%rip),%r15
  mov    %r15,%rdi
  call   <whattype@plt>
  mov    %rax,%r14
  lea    D72(%rip),%r13
  mov    %r13,%rdi
  call   <whattype@plt>
  mov    %rax,%r12
  lea    D34(%rip),%rbp
  mov    %rbp,%rdi
  call   <whattype@plt>
  mov    %rax,%rbx
  mov    %r14,%rsi
  lea    D110(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  lea    D39(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rsi
  lea    D120(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r15,%rdi
  call   <next@plt>
  mov    %eax,%esi
  lea    D91(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r13,%rdi
  call   <next@plt>
  mov    %eax,%esi
  lea    D100(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  call   <next@plt>
  mov    %eax,%esi
  lea    D114(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x5,(%rsp)
  movl   $0x6,0x4(%rsp)
  movl   $0x7,0x8(%rsp)
  movl   $0x8,0xc(%rsp)
  movl   $0x9,0x10(%rsp)
  movl   $0x2a,0x20(%rsp)
  movl   $0x39,0x24(%rsp)
  movl   $0x3f,0x28(%rsp)
  movl   $0x5a,0x2c(%rsp)
  movl   $0x5e,0x30(%rsp)
  mov    %rsp,%rbx
  mov    %rbx,%rdi
  call   <min@plt>
  mov    %eax,%r13d
  mov    %rbx,%rdi
  call   <max@plt>
  mov    %eax,%r12d
  lea    0x20(%rsp),%rbx
  mov    %rbx,%rdi
  call   <min@plt>
  mov    %eax,%ebp
  mov    %rbx,%rdi
  call   <max@plt>
  mov    %eax,%ebx
  mov    %r13d,%esi
  lea    D20(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12d,%esi
  lea    D95(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D65(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebx,%esi
  lea    D23(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  mov    $0x0,%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D83
datatype: string
name: read_data
arguments: data_label: D72
datatype: string
name: read_data
arguments: data_label: D34
datatype: string
name: read_data
arguments: data_label: D110
datatype: string
name: read_data
arguments: data_label: D39
datatype: string
name: read_data
arguments: data_label: D120
datatype: string
name: read_data
arguments: data_label: D91
datatype: string
name: read_data
arguments: data_label: D100
datatype: string
name: read_data
arguments: data_label: D114
datatype: string
name: read_data
arguments: data_label: D20
datatype: string
name: read_data
arguments: data_label: D95
datatype: string
name: read_data
arguments: data_label: D65
datatype: string
name: read_data
arguments: data_label: D23
datatype: string

tool: D83: test_123

tool: D72: _123

tool: D34: 12345

tool: D110: Type 1: %s 


tool: D39: Type 2: %s 


tool: D120: Type 3: %s 


tool: D91: Next for str1: %c 


tool: D100: Next for str2: %c 


tool: D114: Next for str3: %c 


tool: D20: Min arr1: %d 


tool: D95: Max arr1: %d 


tool: D65: Min arr2: %d 


tool: D23: Max arr2: %d 


assistant: ```c
int main() {
  char *str1 = "test_123";
  char *type1 = whattype(str1);
  char *str2 = "_123";
  char *type2 = whattype(str2);
  char *str3 = "12345";
  char *type3 = whattype(str3);
  printf("Type 1: %s \n", type1);
  printf("Type 2: %s \n", type2);
  printf("Type 3: %s \n", type3);
  printf("Next for str1: %c \n", next(str1));
  printf("Next for str2: %c \n", next(str2));
  printf("Next for str3: %c \n", next(str3));
  int arr1[5] = {5, 6, 7, 8, 9};
  int arr2[5] = {42, 57, 63, 90, 94};
  int m1 = min(arr1);
  int m2 = max(arr1);
  int m3 = min(arr2);
  int m4 = max(arr2);
  printf("Min arr1: %d \n", m1);
  printf("Max arr1: %d \n", m2);
  printf("Min arr2: %d \n", m3);
  printf("Max arr2: %d \n", m4);
  return 0;
}
```