user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0x2,-0x14(%rbp)
  jle    L24
  mov    -0x20(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x64,%al
  jne    L17
  movl   $0x0,-0x8(%rbp)
  jmp    L42
L171:
  mov    -0x8(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x2aaaaaab,%rax,%rax
  shr    $0x20,%rax
  sar    %eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x2,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  mov    %edx,%eax
  cmp    $0x9,%eax
  seta   %dl
  test   %dl,%dl
  jne    L73
  mov    $0x377,%edx
  mov    %eax,%ecx
  shr    %cl,%rdx
  mov    %rdx,%rax
  and    $0x1,%eax
  test   %rax,%rax
  setne  %al
  test   %al,%al
  je     L73
  mov    -0x20(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <putchar@plt>
  jmp    L104
L73:
  nop
L104:
  addl   $0x1,-0x8(%rbp)
L42:
  mov    -0x8(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L171
  jmp    L159
L17:
  movl   $0x0,-0x8(%rbp)
  jmp    L207
L205:
  mov    -0x8(%rbp),%eax
  cltd
  shr    $0x1d,%edx
  add    %edx,%eax
  and    $0x7,%eax
  sub    %edx,%eax
  cmp    $0x7,%eax
  seta   %dl
  test   %dl,%dl
  jne    L98
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    %rdx,%rax
  mov    %rax,%rdx
  and    $0x5b,%edx
  test   %rdx,%rdx
  setne  %dl
  test   %dl,%dl
  jne    L132
  mov    %rax,%rdx
  and    $0x24,%edx
  test   %rdx,%rdx
  setne  %dl
  test   %dl,%dl
  jne    L188
  and    $0x80,%eax
  test   %rax,%rax
  setne  %al
  test   %al,%al
  jne    L138
  jmp    L98
L132:
  mov    -0x20(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <putchar@plt>
  jmp    L98
L188:
  mov    -0x20(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <putchar@plt>
  mov    -0x20(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L114
  mov    $0x31,%edi
  call   <putchar@plt>
  jmp    L98
L114:
  mov    $0x30,%edi
  call   <putchar@plt>
  jmp    L98
L138:
  mov    -0x20(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <putchar@plt>
  mov    -0x4(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x8(%rbp)
  jge    L98
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L98:
  addl   $0x1,-0x8(%rbp)
L207:
  mov    -0x8(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L205
  jmp    L159
L24:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L159:
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D16
type_infered: string
name: parse_data
arguments: tag: D19
type_infered: string

tool: D16: 01

tool: D19: Usage: %s <d/e> <bit sequence>
	d - decode
	e - encode
	bit sequence as string of 0 and 1.


assistant: ```c
int main(int argc, char **argv) {
  int i, len = strlen(argv[2]);
  if (argc > 2) {
    if (argv[1][0] == 'd')
      for (i = 0; i < len; i++)
        switch (i % 12) {
        case 0:
        case 1:
        case 2:
        case 4:
        case 5:
        case 6:
        case 8:
        case 9:
          putchar(argv[2][i]);
          break;
        default:
          break;
        }
    else
      for (i = 0; i < len; i++)
        switch (i % 8) {
        case 0:
        case 1:
        case 3:
        case 4:
        case 6:
          putchar(argv[2][i]);
          break;
        case 2:
        case 5:
          putchar(argv[2][i]);
          if (argv[2][i] == '0')
            putchar('1');
          else
            putchar('0');
          break;
        case 7:
          putchar(argv[2][i]);
          if (i < len - 1)
            printf("01");
        }
  } else
    printf("Usage: %s <d/e> <bit sequence>\n\td - decode\n\te - encode\n\tbit sequence as string of 0 and 1.\n", argv[0]);
  return 0;
}
```