user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r15
  lea    D118(%rip),%r15
  push   %r14
  lea    D64(%rip),%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    D141(%rip),%rbx
  mov    %rbx,%rdi
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <whattype@plt>
  mov    %r15,%rdi
  mov    %rax,%r13
  call   <whattype@plt>
  mov    %r14,%rdi
  mov    %rax,%r12
  call   <whattype@plt>
  mov    %r13,%rsi
  lea    D122(%rip),%rdi
  mov    %rax,%rbp
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  lea    D139(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  lea    D106(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbx,%rdi
  mov    %rsp,%rbp
  call   <next@plt>
  lea    D23(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r15,%rdi
  call   <next@plt>
  lea    D135(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rdi
  call   <next@plt>
  lea    D41(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  movdqa D140(%rip),%xmm0
  mov    %rbp,%rdi
  movl   $0x9,0x10(%rsp)
  movl   $0x5e,0x30(%rsp)
  movaps %xmm0,(%rsp)
  movdqa D20(%rip),%xmm0
  movaps %xmm0,0x20(%rsp)
  call   <min@plt>
  mov    %rbp,%rdi
  lea    0x20(%rsp),%rbp
  mov    %eax,%r14d
  call   <max@plt>
  mov    %rbp,%rdi
  mov    %eax,%r13d
  call   <min@plt>
  mov    %rbp,%rdi
  mov    %eax,%r12d
  call   <max@plt>
  mov    %r14d,%esi
  lea    D9(%rip),%rdi
  mov    %eax,%ebp
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13d,%esi
  lea    D39(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12d,%esi
  lea    D46(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  mov    %ebp,%esi
  lea    D80(%rip),%rdi
  call   <printf@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D118
type: string
name: parse_data
arguments: tag: D64
type: string
name: parse_data
arguments: tag: D141
type: string
name: parse_data
arguments: tag: D122
type: string
name: parse_data
arguments: tag: D139
type: string
name: parse_data
arguments: tag: D106
type: string
name: parse_data
arguments: tag: D23
type: string
name: parse_data
arguments: tag: D135
type: string
name: parse_data
arguments: tag: D41
type: string
name: parse_data
arguments: tag: D140
type: byte[16]
name: parse_data
arguments: tag: D20
type: byte[16]
name: parse_data
arguments: tag: D9
type: string
name: parse_data
arguments: tag: D39
type: string
name: parse_data
arguments: tag: D46
type: string
name: parse_data
arguments: tag: D80
type: string

tool: D118: _123

tool: D64: 12345

tool: D141: test_123

tool: D122: Type 1: %s 


tool: D139: Type 2: %s 


tool: D106: Type 3: %s 


tool: D23: Next for str1: %c 


tool: D135: Next for str2: %c 


tool: D41: Next for str3: %c 


tool: {"D140": [0x05,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x08,0x00,0x00,0x00]}

tool: {"D20": [0x2a,0x00,0x00,0x00,0x39,0x00,0x00,0x00,0x3f,0x00,0x00,0x00,0x5a,0x00,0x00,0x00]}

tool: D9: Min arr1: %d 


tool: D39: Max arr1: %d 


tool: D46: Min arr2: %d 


tool: D80: 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;
}
```