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

```asm
<main>:
  endbr64
  push   %r15
  lea    D292(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  call   <wctype@plt>
  lea    D298(%rip),%rdi
  mov    %rax,(%rsp)
  call   <wctype@plt>
  lea    D48(%rip),%rdi
  mov    %rax,0x8(%rsp)
  call   <wctype@plt>
  lea    D95(%rip),%rdi
  mov    %rax,0x10(%rsp)
  call   <wctype@plt>
  lea    D131(%rip),%rdi
  mov    %rax,0x18(%rsp)
  call   <wctype@plt>
  lea    D349(%rip),%rdi
  mov    %rax,0x20(%rsp)
  call   <wctype@plt>
  lea    D300(%rip),%rdi
  mov    %rax,0x28(%rsp)
  call   <wctype@plt>
  lea    D145(%rip),%rdi
  mov    %rax,0x30(%rsp)
  call   <wctype@plt>
  lea    D238(%rip),%rdi
  mov    %rax,0x38(%rsp)
  call   <wctype@plt>
  lea    D15(%rip),%rdi
  mov    %rax,0x40(%rsp)
  call   <wctype@plt>
  lea    D135(%rip),%rdi
  mov    %rax,0x48(%rsp)
  call   <wctype@plt>
  lea    D201(%rip),%rdi
  mov    %rax,%r15
  call   <wctype@plt>
  test   %rax,%rax
  jne    L153
L197:
  xor    %ebx,%ebx
  lea    D10(%rip),%r13
  lea    D34(%rip),%rbp
  nopw   0x0(%rax,%rax,1)
L28:
  mov    %ebx,%edi
  call   <isalnum@plt>
  mov    (%rsp),%rsi
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswctype@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L220
  mov    %ebx,%edx
  lea    D292(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L220:
  mov    %ebx,%edi
  call   <isalnum@plt>
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswalnum@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L263
  mov    %ebx,%edx
  lea    D292(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L263:
  mov    %ebx,%edi
  call   <isalpha@plt>
  mov    0x8(%rsp),%rsi
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswctype@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L134
  mov    %ebx,%edx
  lea    D298(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L134:
  mov    %ebx,%edi
  call   <isalpha@plt>
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswalpha@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L234
  mov    %ebx,%edx
  lea    D298(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L234:
  mov    %ebx,%edi
  call   <iscntrl@plt>
  mov    0x10(%rsp),%rsi
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswctype@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L253
  mov    %ebx,%edx
  lea    D48(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L253:
  mov    %ebx,%edi
  call   <iscntrl@plt>
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswcntrl@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L208
  mov    %ebx,%edx
  lea    D48(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L208:
  mov    %ebx,%edi
  call   <isdigit@plt>
  mov    0x18(%rsp),%rsi
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswctype@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L73
  mov    %ebx,%edx
  lea    D95(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L73:
  mov    %ebx,%edi
  call   <isdigit@plt>
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswdigit@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L245
  mov    %ebx,%edx
  lea    D95(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L245:
  mov    %ebx,%edi
  call   <isgraph@plt>
  mov    0x20(%rsp),%rsi
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswctype@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L83
  mov    %ebx,%edx
  lea    D131(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L83:
  mov    %ebx,%edi
  call   <isgraph@plt>
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswgraph@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L257
  mov    %ebx,%edx
  lea    D131(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L257:
  mov    %ebx,%edi
  call   <islower@plt>
  mov    0x28(%rsp),%rsi
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswctype@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L31
  mov    %ebx,%edx
  lea    D349(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L31:
  mov    %ebx,%edi
  call   <islower@plt>
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswlower@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L26
  mov    %ebx,%edx
  lea    D349(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L26:
  mov    %ebx,%edi
  call   <isprint@plt>
  mov    0x30(%rsp),%rsi
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswctype@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L6
  mov    %ebx,%edx
  lea    D300(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L6:
  mov    %ebx,%edi
  call   <isprint@plt>
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswprint@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L239
  mov    %ebx,%edx
  lea    D300(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L239:
  mov    %ebx,%edi
  call   <ispunct@plt>
  mov    0x38(%rsp),%rsi
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswctype@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L128
  mov    %ebx,%edx
  lea    D145(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L128:
  mov    %ebx,%edi
  call   <ispunct@plt>
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswpunct@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L148
  mov    %ebx,%edx
  lea    D145(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L148:
  mov    %ebx,%edi
  call   <isspace@plt>
  mov    0x40(%rsp),%rsi
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswctype@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L29
  mov    %ebx,%edx
  lea    D238(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L29:
  mov    %ebx,%edi
  call   <isspace@plt>
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswspace@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L11
  mov    %ebx,%edx
  lea    D238(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L11:
  mov    %ebx,%edi
  call   <isupper@plt>
  mov    0x48(%rsp),%rsi
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswctype@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L137
  mov    %ebx,%edx
  lea    D15(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L137:
  mov    %ebx,%edi
  call   <isupper@plt>
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswupper@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L89
  mov    %ebx,%edx
  lea    D15(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L89:
  mov    %ebx,%edi
  call   <isxdigit@plt>
  mov    %r15,%rsi
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswctype@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L216
  mov    %ebx,%edx
  lea    D135(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L216:
  mov    %ebx,%edi
  call   <isxdigit@plt>
  mov    %ebx,%edi
  mov    %rax,%r14
  call   <iswxdigit@plt>
  test   %r14,%r14
  sete   %dl
  test   %rax,%rax
  sete   %al
  cmp    %al,%dl
  je     L242
  mov    %ebx,%edx
  lea    D135(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r12d
  call   <printf@plt>
L242:
  add    $0x1,%ebx
  cmp    $0x100,%ebx
  jne    L28
  test   %r12d,%r12d
  je     L165
L72:
  add    $0x58,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L153:
  lea    D278(%rip),%rdi
  mov    $0x1,%r12d
  call   <puts@plt>
  jmp    L197
L165:
  lea    D208(%rip),%rdi
  call   <puts@plt>
  jmp    L72
```

tool_calls: name: unpack_data
arguments: data_label: D292
data_type: string
name: unpack_data
arguments: data_label: D298
data_type: string
name: unpack_data
arguments: data_label: D48
data_type: string
name: unpack_data
arguments: data_label: D95
data_type: string
name: unpack_data
arguments: data_label: D131
data_type: string
name: unpack_data
arguments: data_label: D349
data_type: string
name: unpack_data
arguments: data_label: D300
data_type: string
name: unpack_data
arguments: data_label: D145
data_type: string
name: unpack_data
arguments: data_label: D238
data_type: string
name: unpack_data
arguments: data_label: D15
data_type: string
name: unpack_data
arguments: data_label: D135
data_type: string
name: unpack_data
arguments: data_label: D201
data_type: string
name: unpack_data
arguments: data_label: D10
data_type: string
name: unpack_data
arguments: data_label: D34
data_type: string
name: unpack_data
arguments: data_label: D278
data_type: string
name: unpack_data
arguments: data_label: D208
data_type: string

tool: D292: alnum

tool: D298: alpha

tool: D48: cntrl

tool: D95: digit

tool: D131: graph

tool: D349: lower

tool: D300: print

tool: D145: punct

tool: D238: space

tool: D15: upper

tool: D135: xdigit

tool: D201: does not exist

tool: D10: `iswctype' class `%s' test for character \%o failed


tool: D34: `isw%s' test for character \%o failed


tool: D278: wctype return value != 0 for non existing property

tool: D208: All test successful!

assistant: ```c
int main(int argc, char *argv[]) {
  int result = 0;
  wctype_t bit_alnum = wctype("alnum");
  wctype_t bit_alpha = wctype("alpha");
  wctype_t bit_cntrl = wctype("cntrl");
  wctype_t bit_digit = wctype("digit");
  wctype_t bit_graph = wctype("graph");
  wctype_t bit_lower = wctype("lower");
  wctype_t bit_print = wctype("print");
  wctype_t bit_punct = wctype("punct");
  wctype_t bit_space = wctype("space");
  wctype_t bit_upper = wctype("upper");
  wctype_t bit_xdigit = wctype("xdigit");
  int ch;
  if (wctype("does not exist") != 0) {
    puts("wctype return value != 0 for non existing property");
    result = 1;
  }
  for (ch = 0; ch < 256; ++ch) {
    do {
      if ((isalnum(ch) == 0) != (iswctype(ch, bit_alnum) == 0)) {
        printf("`iswctype' class `%s' test "
               "for character \\%o failed\n",
               "alnum", ch);
        result = 1;
      }
      if ((isalnum(ch) == 0) != (iswalnum(ch) == 0)) {
        printf("`isw%s' test for character \\%o failed\n", "alnum", ch);
        result = 1;
      }
    } while (0);
    do {
      if ((isalpha(ch) == 0) != (iswctype(ch, bit_alpha) == 0)) {
        printf("`iswctype' class `%s' test "
               "for character \\%o failed\n",
               "alpha", ch);
        result = 1;
      }
      if ((isalpha(ch) == 0) != (iswalpha(ch) == 0)) {
        printf("`isw%s' test for character \\%o failed\n", "alpha", ch);
        result = 1;
      }
    } while (0);
    do {
      if ((iscntrl(ch) == 0) != (iswctype(ch, bit_cntrl) == 0)) {
        printf("`iswctype' class `%s' test "
               "for character \\%o failed\n",
               "cntrl", ch);
        result = 1;
      }
      if ((iscntrl(ch) == 0) != (iswcntrl(ch) == 0)) {
        printf("`isw%s' test for character \\%o failed\n", "cntrl", ch);
        result = 1;
      }
    } while (0);
    do {
      if ((isdigit(ch) == 0) != (iswctype(ch, bit_digit) == 0)) {
        printf("`iswctype' class `%s' test "
               "for character \\%o failed\n",
               "digit", ch);
        result = 1;
      }
      if ((isdigit(ch) == 0) != (iswdigit(ch) == 0)) {
        printf("`isw%s' test for character \\%o failed\n", "digit", ch);
        result = 1;
      }
    } while (0);
    do {
      if ((isgraph(ch) == 0) != (iswctype(ch, bit_graph) == 0)) {
        printf("`iswctype' class `%s' test "
               "for character \\%o failed\n",
               "graph", ch);
        result = 1;
      }
      if ((isgraph(ch) == 0) != (iswgraph(ch) == 0)) {
        printf("`isw%s' test for character \\%o failed\n", "graph", ch);
        result = 1;
      }
    } while (0);
    do {
      if ((islower(ch) == 0) != (iswctype(ch, bit_lower) == 0)) {
        printf("`iswctype' class `%s' test "
               "for character \\%o failed\n",
               "lower", ch);
        result = 1;
      }
      if ((islower(ch) == 0) != (iswlower(ch) == 0)) {
        printf("`isw%s' test for character \\%o failed\n", "lower", ch);
        result = 1;
      }
    } while (0);
    do {
      if ((isprint(ch) == 0) != (iswctype(ch, bit_print) == 0)) {
        printf("`iswctype' class `%s' test "
               "for character \\%o failed\n",
               "print", ch);
        result = 1;
      }
      if ((isprint(ch) == 0) != (iswprint(ch) == 0)) {
        printf("`isw%s' test for character \\%o failed\n", "print", ch);
        result = 1;
      }
    } while (0);
    do {
      if ((ispunct(ch) == 0) != (iswctype(ch, bit_punct) == 0)) {
        printf("`iswctype' class `%s' test "
               "for character \\%o failed\n",
               "punct", ch);
        result = 1;
      }
      if ((ispunct(ch) == 0) != (iswpunct(ch) == 0)) {
        printf("`isw%s' test for character \\%o failed\n", "punct", ch);
        result = 1;
      }
    } while (0);
    do {
      if ((isspace(ch) == 0) != (iswctype(ch, bit_space) == 0)) {
        printf("`iswctype' class `%s' test "
               "for character \\%o failed\n",
               "space", ch);
        result = 1;
      }
      if ((isspace(ch) == 0) != (iswspace(ch) == 0)) {
        printf("`isw%s' test for character \\%o failed\n", "space", ch);
        result = 1;
      }
    } while (0);
    do {
      if ((isupper(ch) == 0) != (iswctype(ch, bit_upper) == 0)) {
        printf("`iswctype' class `%s' test "
               "for character \\%o failed\n",
               "upper", ch);
        result = 1;
      }
      if ((isupper(ch) == 0) != (iswupper(ch) == 0)) {
        printf("`isw%s' test for character \\%o failed\n", "upper", ch);
        result = 1;
      }
    } while (0);
    do {
      if ((isxdigit(ch) == 0) != (iswctype(ch, bit_xdigit) == 0)) {
        printf("`iswctype' class `%s' test "
               "for character \\%o failed\n",
               "xdigit", ch);
        result = 1;
      }
      if ((isxdigit(ch) == 0) != (iswxdigit(ch) == 0)) {
        printf("`isw%s' test for character \\%o failed\n", "xdigit", ch);
        result = 1;
      }
    } while (0);
  }
  if (result == 0)
    puts("All test successful!");
  return result;
}
```