user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %r15
  lea    D131(%rip),%r8
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x838,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x828(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jle    L211
  mov    0x8(%rsi),%r8
L211:
  mov    %r8,%rsi
  lea    D149(%rip),%rdi
  xor    %eax,%eax
  xor    %r12d,%r12d
  call   <printf@plt>
  movb   $0x0,0xf(%rsp)
  xor    %r15d,%r15d
  xor    %ebx,%ebx
  movl   $0x0,0x1c(%rsp)
  lea    0x20(%rsp),%rbp
  movb   $0x0,0xe(%rsp)
  nopl   0x0(%rax,%rax,1)
L488:
  mov    %r15d,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L147
L531:
  mov    %r15d,%edi
  call   <isalnum@plt>
  test   %rax,%rax
  jne    L430
L332:
  cmp    $0x7f,%r15d
  setg   %al
  cmp    $0x2f,%r15d
  sete   %dl
  or     %dl,%al
  jne    L430
  cmp    $0x5f,%r15d
  je     L430
L460:
  mov    %r15d,%edi
  call   <isalnum@plt>
  test   %rax,%rax
  jne    L369
  lea    -0x2d(%r15),%eax
  cmp    $0x2,%eax
  jbe    L369
  cmp    $0x5f,%r15d
  je     L369
  cmp    $0x7f,%r15d
  jle    L244
L369:
  movslq %ebx,%rdx
  lea    0x1c(%rsp),%rsi
  lea    D62(%rip),%rdi
  add    %rbp,%rdx
  call   <print_flag@plt>
  add    %eax,%ebx
L244:
  cmp    $0xd,%r15d
  sete   %r13b
  test   %r15d,%r15d
  je     L357
  test   %r13b,%r13b
  jne    L357
  cmp    $0x3b,%r15d
  jg     L197
  cmp    $0x9,%r15d
  jle    L45
  movabs $0x800100800000400,%rax
  bt     %r15,%rax
  jb     L357
L45:
  mov    %r15d,%edi
  call   <isprint@plt>
  cmp    $0x7f,%r15d
  jg     L119
  test   %rax,%rax
  je     L502
L119:
  movslq %ebx,%rdx
  lea    0x1c(%rsp),%rsi
  lea    D119(%rip),%rdi
  add    %rbp,%rdx
  call   <print_flag@plt>
  add    %eax,%ebx
L502:
  mov    %r15d,%edi
  call   <isdigit@plt>
  cmp    $0x2d,%r15d
  je     L306
  test   %rax,%rax
  jne    L306
L550:
  mov    %r15d,%edi
  call   <isalnum@plt>
  test   %rax,%rax
  jne    L577
  lea    -0x2d(%r15),%eax
  cmp    $0x1,%eax
  jbe    L577
  cmp    $0x2b,%r15d
  je     L577
  nopw   0x0(%rax,%rax,1)
L484:
  cmp    $0x22,%r15d
  sete   (%rsp)
  movzbl (%rsp),%eax
  cmp    $0x5c,%r15d
  sete   %r14b
  test   %al,%al
  jne    L392
  test   %r14b,%r14b
  jne    L392
  cmp    $0x2f,%r15d
  je     L392
  lea    -0x62(%r15),%eax
  cmp    $0x13,%eax
  ja     L122
  mov    $0xd1011,%edx
  bt     %rax,%rdx
  jb     L392
  cmpb   $0x0,0xf(%rsp)
  jne    L146
L246:
  cmp    $0xa,%r15d
  je     L57
L248:
  test   %r13b,%r13b
  jne    L57
  mov    %r15d,%eax
  and    $0xfffffffb,%eax
  cmp    $0x8,%eax
  je     L490
  test   %r14b,%r14b
  jne    L490
  cmpb   $0x0,(%rsp)
  jne    L490
  cmpb   $0x0,0xe(%rsp)
  jne    L490
  cs nopw 0x0(%rax,%rax,1)
L262:
  cmp    $0x3a,%r15d
  jg     L506
  cmp    $0x7,%r15d
  jg     L453
L501:
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  je     L194
L178:
  mov    %r15d,%edi
  call   <isprint@plt>
  test   %rax,%rax
  jne    L265
L370:
  cmp    $0xfe,%r15d
  je     L225
  movslq %ebx,%rdi
  lea    D203(%rip),%rsi
  xor    %eax,%eax
  add    %rbp,%rdi
  call   <sprintf@plt>
  add    %eax,%ebx
L225:
  add    %ebx,%r12d
  mov    %rbp,%rsi
  cmp    $0x50,%r12d
  jle    L96
  lea    D52(%rip),%rdi
  xor    %eax,%eax
  add    $0x1,%r15d
  mov    %ebx,%r12d
  call   <printf@plt>
  cmp    $0xff,%r15d
  je     L561
L109:
  cmp    $0x9,%r15d
  movl   $0x0,0x1c(%rsp)
  sete   0xe(%rsp)
  cmp    $0x20,%r15d
  movzbl 0xe(%rsp),%ecx
  sete   %al
  xor    %ebx,%ebx
  or     %cl,%al
  mov    %al,0xf(%rsp)
  je     L488
  lea    D63(%rip),%rdi
  lea    0x1c(%rsp),%rsi
  mov    %rbp,%rdx
  call   <print_flag@plt>
  mov    %r15d,%edi
  mov    %eax,%ebx
  call   <isspace@plt>
  test   %rax,%rax
  je     L531
L147:
  movslq %ebx,%rdx
  lea    D112(%rip),%rdi
  lea    0x1c(%rsp),%rsi
  add    %rbp,%rdx
  call   <print_flag@plt>
  mov    %r15d,%edi
  add    %eax,%ebx
  call   <isalnum@plt>
  test   %rax,%rax
  je     L332
  xchg   %ax,%ax
L430:
  movslq %ebx,%rdx
  lea    0x1c(%rsp),%rsi
  lea    D129(%rip),%rdi
  add    %rbp,%rdx
  call   <print_flag@plt>
  add    %eax,%ebx
  jmp    L460
  xchg   %ax,%ax
L197:
  mov    %r15d,%eax
  and    $0xffffffdf,%eax
  cmp    $0x5d,%eax
  jne    L45
L357:
  movslq %ebx,%rdx
  lea    0x1c(%rsp),%rsi
  lea    D121(%rip),%rdi
  add    %rbp,%rdx
  call   <print_flag@plt>
  add    %eax,%ebx
  jmp    L484
  nopl   (%rax)
L453:
  movabs $0x400000500001300,%rax
  bt     %r15,%rax
  jae    L501
L291:
  mov    %ebx,%r13d
  lea    0x1c(%rsp),%rsi
L105:
  movslq %ebx,%rdx
  lea    D209(%rip),%rdi
  add    %rbp,%rdx
  call   <print_flag@plt>
  lea    0x0(%r13,%rax,1),%ebx
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  jne    L178
L194:
  movslq %ebx,%rdx
  lea    D172(%rip),%rdi
  lea    0x1c(%rsp),%rsi
  add    %rbp,%rdx
  call   <print_flag@plt>
  mov    %r15d,%edi
  add    %eax,%ebx
  call   <isprint@plt>
  test   %rax,%rax
  je     L370
L265:
  movslq %ebx,%rdi
  mov    %r15d,%edx
  lea    D159(%rip),%rsi
  xor    %eax,%eax
  add    %rbp,%rdi
  call   <sprintf@plt>
  add    %eax,%ebx
  jmp    L370
  nopw   0x0(%rax,%rax,1)
L506:
  lea    -0x3d(%r15),%eax
  cmp    $0x3e,%eax
  ja     L501
  movabs $0x40000000c0000001,%rdx
  bt     %rax,%rdx
  jae    L501
  jmp    L291
  cs nopw 0x0(%rax,%rax,1)
L392:
  movslq %ebx,%rdx
  lea    0x1c(%rsp),%rsi
  lea    D94(%rip),%rdi
  add    %rbp,%rdx
  call   <print_flag@plt>
  add    %eax,%ebx
L122:
  cmpb   $0x0,0xf(%rsp)
  jne    L146
  cmp    $0x3a,%r15d
  je     L146
  cmp    $0x3d,%r15d
  jne    L246
L146:
  movslq %ebx,%rdx
  lea    0x1c(%rsp),%rsi
  lea    D107(%rip),%rdi
  add    %rbp,%rdx
  call   <print_flag@plt>
  add    %eax,%ebx
  cmp    $0xa,%r15d
  jne    L248
L57:
  movslq %ebx,%rdx
  lea    0x1c(%rsp),%rsi
  lea    D197(%rip),%rdi
  add    %rbp,%rdx
  mov    %rsi,(%rsp)
  call   <print_flag@plt>
  mov    (%rsp),%rsi
  lea    (%rbx,%rax,1),%r13d
  mov    %r13d,%ebx
  jmp    L105
  xchg   %ax,%ax
L490:
  movslq %ebx,%rdx
  lea    0x1c(%rsp),%rsi
  lea    D197(%rip),%rdi
  add    %rbp,%rdx
  call   <print_flag@plt>
  add    %eax,%ebx
  jmp    L262
  xchg   %ax,%ax
L96:
  lea    D55(%rip),%rdi
  xor    %eax,%eax
  add    $0x1,%r15d
  call   <printf@plt>
  cmp    $0xff,%r15d
  jne    L109
L561:
  lea    D24(%rip),%rdi
  call   <puts@plt>
  mov    0x828(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L180
  add    $0x838,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L577:
  movslq %ebx,%rdx
  lea    0x1c(%rsp),%rsi
  lea    D80(%rip),%rdi
  add    %rbp,%rdx
  call   <print_flag@plt>
  add    %eax,%ebx
  jmp    L484
  cs nopw 0x0(%rax,%rax,1)
L306:
  movslq %ebx,%rdx
  lea    0x1c(%rsp),%rsi
  lea    D143(%rip),%rdi
  add    %rbp,%rdx
  call   <print_flag@plt>
  add    %eax,%ebx
  jmp    L550
L180:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D131
datatype: string
name: read_data
arguments: tag: D149
datatype: string
name: read_data
arguments: tag: D62
datatype: string
name: read_data
arguments: tag: D119
datatype: string
name: read_data
arguments: tag: D203
datatype: string
name: read_data
arguments: tag: D52
datatype: string
name: read_data
arguments: tag: D63
datatype: string
name: read_data
arguments: tag: D112
datatype: string
name: read_data
arguments: tag: D129
datatype: string
name: read_data
arguments: tag: D121
datatype: string
name: read_data
arguments: tag: D209
datatype: string
name: read_data
arguments: tag: D172
datatype: string
name: read_data
arguments: tag: D159
datatype: string
name: read_data
arguments: tag: D94
datatype: string
name: read_data
arguments: tag: D107
datatype: string
name: read_data
arguments: tag: D197
datatype: string
name: read_data
arguments: tag: D55
datatype: string
name: read_data
arguments: tag: D24
datatype: string
name: read_data
arguments: tag: D80
datatype: string
name: read_data
arguments: tag: D143
datatype: string

tool: D131: ucl_chartable

tool: D149: static const unsigned int %s[255] = {


tool: D62: UCL_CHARACTER_KEY

tool: D119: UCL_CHARACTER_VALUE_STR

tool: D203: , 

tool: D52: 
%s

tool: D63: UCL_CHARACTER_WHITESPACE

tool: D112: UCL_CHARACTER_WHITESPACE_UNSAFE

tool: D129: UCL_CHARACTER_KEY_START

tool: D121: UCL_CHARACTER_VALUE_END

tool: D209: UCL_CHARACTER_UCL_UNSAFE

tool: D172: UCL_CHARACTER_DENIED

tool: D159:  /* %c */

tool: D94: UCL_CHARACTER_ESCAPE

tool: D107: UCL_CHARACTER_KEY_SEP

tool: D197: UCL_CHARACTER_JSON_UNSAFE

tool: D55: %s

tool: D24: 
}

tool: D80: UCL_CHARACTER_VALUE_DIGIT

tool: D143: UCL_CHARACTER_VALUE_DIGIT_START

assistant: ```c
int main(int argc, char **argv) {
  int i, col, r;
  const char *name = "ucl_chartable";
  bool need_or;
  char valbuf[2048];
  col = 0;
  if (argc > 1) {
    name = argv[1];
  }
  printf("static const unsigned int %s[255] = {\n", name);
  for (i = 0; i < 255; i++) {
    need_or = false;
    r = 0;
    if (i == ' ' || i == '\t') {
      r += print_flag("UCL_CHARACTER_WHITESPACE", &need_or, valbuf + r);
    }
    if (isspace(i)) {
      r += print_flag("UCL_CHARACTER_WHITESPACE_UNSAFE", &need_or, valbuf + r);
    }
    if (isalnum(i) || i >= 0x80 || i == '/' || i == '_') {
      r += print_flag("UCL_CHARACTER_KEY_START", &need_or, valbuf + r);
    }
    if (isalnum(i) || i == '-' || i == '_' || i == '/' || i == '.' || i >= 0x80) {
      r += print_flag("UCL_CHARACTER_KEY", &need_or, valbuf + r);
    }
    if (i == 0 || i == '\r' || i == '\n' || i == ']' || i == '}' || i == ';' || i == ',' || i == '#') {
      r += print_flag("UCL_CHARACTER_VALUE_END", &need_or, valbuf + r);
    } else {
      if (isprint(i) || i >= 0x80) {
        r += print_flag("UCL_CHARACTER_VALUE_STR", &need_or, valbuf + r);
      }
      if (isdigit(i) || i == '-') {
        r += print_flag("UCL_CHARACTER_VALUE_DIGIT_START", &need_or, valbuf + r);
      }
      if (isalnum(i) || i == '.' || i == '-' || i == '+') {
        r += print_flag("UCL_CHARACTER_VALUE_DIGIT", &need_or, valbuf + r);
      }
    }
    if (i == '"' || i == '\\' || i == '/' || i == 'b' || i == 'f' || i == 'n' || i == 'r' || i == 't' || i == 'u') {
      r += print_flag("UCL_CHARACTER_ESCAPE", &need_or, valbuf + r);
    }
    if (i == ' ' || i == '\t' || i == ':' || i == '=') {
      r += print_flag("UCL_CHARACTER_KEY_SEP", &need_or, valbuf + r);
    }
    if (i == '\n' || i == '\r' || i == '\\' || i == '\b' || i == '\t' || i == '"' || i == '\f') {
      r += print_flag("UCL_CHARACTER_JSON_UNSAFE", &need_or, valbuf + r);
    }
    if (i == '\n' || i == '\r' || i == '\\' || i == '\b' || i == '\t' || i == '"' || i == '\f' || i == '=' || i == ':' || i == '{' || i == '[' || i == ' ') {
      r += print_flag("UCL_CHARACTER_UCL_UNSAFE", &need_or, valbuf + r);
    }
    if (!need_or) {
      r += print_flag("UCL_CHARACTER_DENIED", &need_or, valbuf + r);
    }
    if (isprint(i)) {
      r += sprintf(valbuf + r, " /* %c */", i);
    }
    if (i != 254) {
      r += sprintf(valbuf + r, ", ");
    }
    col += r;
    if (col > 80) {
      printf("\n%s", valbuf);
      col = r;
    } else {
      printf("%s", valbuf);
    }
  }
  printf("\n}\n");
  return 0;
}
```