user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  pxor   %xmm0,%xmm0
  mov    $0x1,%edx
  xor    %edi,%edi
  add    $0xffffffffffffff80,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    0xb(%rsp),%rsi
  lea    0x10(%rsp),%rbp
  movaps %xmm0,0x10(%rsp)
  movaps %xmm0,0x20(%rsp)
  movaps %xmm0,0x30(%rsp)
  movaps %xmm0,0x40(%rsp)
  movaps %xmm0,0x50(%rsp)
  movaps %xmm0,0x60(%rsp)
  movl   $0x0,0x70(%rsp)
  call   <read@plt>
  mov    $0x50,%edx
  mov    %rbp,%rsi
  xor    %edi,%edi
  call   <read@plt>
  movzbl 0xb(%rsp),%eax
  cmp    $0x78,%al
  je     L323
  cmp    $0x75,%al
  je     L94
  lea    D47(%rip),%rdi
  call   <puts@plt>
L86:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L198
  sub    $0xffffffffffffff80,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L94:
  lea    0xc(%rsp),%rdx
  lea    D82(%rip),%rsi
  mov    %rbp,%rdi
  call   <sscanf@plt>
  mov    0xc(%rsp),%eax
  cmp    $0xaaaa,%eax
  je     L3
  cmp    $0xffff3233,%eax
  jne    L96
  cmpb   $0x2d,0x10(%rsp)
  je     L117
L82:
  lea    D102(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L323:
  lea    0xc(%rsp),%rdx
  lea    D200(%rip),%rsi
  mov    %rbp,%rdi
  call   <sscanf@plt>
  mov    0xc(%rsp),%eax
  cmp    $0xaaaa,%eax
  je     L210
  cmp    $0xffff3233,%eax
  je     L172
  lea    D36(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L3:
  movzbl 0x10(%rsp),%eax
  cmp    $0x30,%al
  je     L179
  cmp    $0x2b,%al
  je     L130
L26:
  lea    D117(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L96:
  lea    D162(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L172:
  mov    $0x3,%edx
  lea    D165(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L292
  cmpb   $0x2d,0x10(%rsp)
  jne    L82
  lea    D207(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L210:
  mov    $0x2,%edx
  lea    D14(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L294
  lea    D132(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L130:
  cmpb   $0x30,0x11(%rsp)
  je     L128
  lea    D191(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L292:
  lea    D112(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L179:
  cmpb   $0x78,0x11(%rsp)
  je     L26
  lea    D115(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L117:
  cmpb   $0x30,0x11(%rsp)
  je     L8
  lea    D169(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L294:
  mov    $0x3,%edx
  lea    D202(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L98
  cmpb   $0x2b,0x10(%rsp)
  je     L338
  lea    D134(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L8:
  cmpb   $0x78,0x12(%rsp)
  je     L82
  lea    D51(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L128:
  cmpb   $0x78,0x12(%rsp)
  je     L26
  lea    D118(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L98:
  lea    D147(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L338:
  lea    D194(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L198:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D47
type_guessed: string
name: extract_symbolic_data
arguments: tag: D82
type_guessed: string
name: extract_symbolic_data
arguments: tag: D102
type_guessed: string
name: extract_symbolic_data
arguments: tag: D200
type_guessed: string
name: extract_symbolic_data
arguments: tag: D36
type_guessed: string
name: extract_symbolic_data
arguments: tag: D117
type_guessed: string
name: extract_symbolic_data
arguments: tag: D162
type_guessed: string
name: extract_symbolic_data
arguments: tag: D165
type_guessed: string
name: extract_symbolic_data
arguments: tag: D207
type_guessed: string
name: extract_symbolic_data
arguments: tag: D14
type_guessed: string
name: extract_symbolic_data
arguments: tag: D132
type_guessed: string
name: extract_symbolic_data
arguments: tag: D191
type_guessed: string
name: extract_symbolic_data
arguments: tag: D112
type_guessed: string
name: extract_symbolic_data
arguments: tag: D115
type_guessed: string
name: extract_symbolic_data
arguments: tag: D169
type_guessed: string
name: extract_symbolic_data
arguments: tag: D202
type_guessed: string
name: extract_symbolic_data
arguments: tag: D134
type_guessed: string
name: extract_symbolic_data
arguments: tag: D51
type_guessed: string
name: extract_symbolic_data
arguments: tag: D118
type_guessed: string
name: extract_symbolic_data
arguments: tag: D147
type_guessed: string
name: extract_symbolic_data
arguments: tag: D194
type_guessed: string

tool: D47: No switch

tool: D82: %u

tool: D102: shouldn't happen

tool: D200: %07x

tool: D36: Nope x

tool: D117: base 10 worked

tool: D162: Nope u

tool: D165: -0x

tool: D207: base -16 worked

tool: D14: 0x

tool: D132: 0x worked

tool: D191: base +10 worked

tool: D112: -0x worked

tool: D115: base 8 worked

tool: D169: base -10 worked

tool: D202: +0x

tool: D134: base 16 worked

tool: D51: base -8 worked

tool: D118: base +8 worked

tool: D147: +0x worked

tool: D194: base +16 worked

assistant: ```c
int main() {
  char swch;
  char test[100] = {0};
  unsigned int val;
  read(0, &swch, 1);
  read(0, test, 80);
  if (swch == 'x') {
    sscanf(test, "%07x", &val);
    if (val == 0xaaaa) {
      if (strncmp(test, "0x", 2) == 0) {
        puts("0x worked");
      } else if (strncmp(test, "+0x", 3) == 0) {
        puts("+0x worked");
      } else if (test[0] == '+') {
        puts("base +16 worked");
      } else {
        puts("base 16 worked");
      }
    } else if (val == -0xcdcd) {
      if (strncmp(test, "-0x", 3) == 0) {
        puts("-0x worked");
      } else if (test[0] == '-') {
        puts("base -16 worked");
      } else {
        puts("shouldn't happen");
      }
    } else {
      puts("Nope x");
    }
  } else if (swch == 'u') {
    sscanf(test, "%u", &val);
    if (val == 0xaaaa) {
      if (test[0] == '0' && test[1] != 'x') {
        puts("base 8 worked");
      } else if (test[0] == '+' && test[1] == '0' && test[2] != 'x') {
        puts("base +8 worked");
      } else if (test[0] == '+' && test[1] != '0') {
        puts("base +10 worked");
      } else {
        puts("base 10 worked");
      }
    } else if (val == -0xcdcd) {
      if (test[0] == '-' && test[1] == '0' && test[2] != 'x') {
        puts("base -8 worked");
      } else if (test[0] == '-' && test[1] != '0') {
        puts("base -10 worked");
      } else {
        puts("shouldn't happen");
      }
    } else {
      puts("Nope u");
    }
  } else {
    puts("No switch");
  }
  return 0;
}
```