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

```asm
<dump_tcpflags>:
  endbr64
  push   %r15
  lea    D146(%rip),%rsi
  mov    %rdx,%r15
  lea    D98(%rip),%rdx
  push   %r14
  mov    %rcx,%r14
  push   %r13
  lea    D80(%rip),%r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  lea    D135(%rip),%rdi
  push   %rbx
  sub    $0xa8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  lea    D45(%rip),%rax
  mov    %rdi,0x18(%rsp)
  lea    D42(%rip),%rdi
  mov    %rsp,%rbx
  mov    %rsi,0x20(%rsp)
  lea    D29(%rip),%rsi
  lea    0x90(%rsp),%r12
  mov    %rdi,0x30(%rsp)
  lea    D6(%rip),%rdi
  mov    %rdx,0x38(%rsp)
  lea    D17(%rip),%rdx
  mov    %rsi,0x48(%rsp)
  lea    D94(%rip),%rsi
  mov    %rdi,0x50(%rsp)
  mov    %rax,(%rsp)
  lea    D141(%rip),%rax
  mov    %rax,0x8(%rsp)
  lea    D97(%rip),%rax
  mov    %rax,0x10(%rsp)
  mov    %rax,0x28(%rsp)
  mov    %rax,0x40(%rsp)
  mov    %rax,0x58(%rsp)
  mov    %rax,0x70(%rsp)
  lea    D58(%rip),%rax
  mov    %rax,0x78(%rsp)
  lea    D143(%rip),%rax
  mov    %rax,0x80(%rsp)
  lea    D28(%rip),%rax
  mov    %rdx,0x60(%rsp)
  mov    %rsi,0x68(%rsp)
  mov    %rax,0x88(%rsp)
  jmp    L28
  nopl   0x0(%rax)
L15:
  mov    0x8(%rbx),%rdx
  mov    0x10(%rbx),%r8
  mov    %r13,%rsi
  mov    %rbp,%rdi
  add    $0x18,%rbx
  call   <fprintf@plt>
  cmp    %r12,%rbx
  je     L25
L28:
  mov    (%rbx),%rdi
  xor    %esi,%esi
  call   <get_option@plt>
  mov    %rax,%rcx
  test   %rax,%rax
  jne    L15
  mov    0x8(%rbx),%rsi
  mov    0x10(%rbx),%r8
  mov    %r14,%rcx
  mov    %r15,%rdx
  mov    %rbp,%rdi
  add    $0x18,%rbx
  call   <dump_tcpflag@plt>
  cmp    %r12,%rbx
  jne    L28
L25:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L12
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L12:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D146
type_infered: string
name: retrieve_data
arguments: tag: D98
type_infered: string
name: retrieve_data
arguments: tag: D80
type_infered: string
name: retrieve_data
arguments: tag: D135
type_infered: string
name: retrieve_data
arguments: tag: D45
type_infered: string
name: retrieve_data
arguments: tag: D42
type_infered: string
name: retrieve_data
arguments: tag: D29
type_infered: string
name: retrieve_data
arguments: tag: D6
type_infered: string
name: retrieve_data
arguments: tag: D17
type_infered: string
name: retrieve_data
arguments: tag: D94
type_infered: string
name: retrieve_data
arguments: tag: D141
type_infered: string
name: retrieve_data
arguments: tag: D97
type_infered: string
name: retrieve_data
arguments: tag: D58
type_infered: string
name: retrieve_data
arguments: tag: D143
type_infered: string
name: retrieve_data
arguments: tag: D28
type_infered: string

tool: D146: tcp.ack

tool: D98: tcp.psh

tool: D80: 
 %s = %s%s

tool: D135: tcp-ack

tool: D45: tcp-urg

tool: D42: tcp-psh

tool: D29: tcp-rst

tool: D6: tcp.rst

tool: D17: tcp-syn

tool: D94: tcp.syn

tool: D141: tcp.urg

tool: D97: ,

tool: D58: tcp-fin

tool: D143: tcp.fin

tool: 

assistant: ```c
void dump_tcpflags(FILE *pigsty, const char *field, const unsigned char *buffer, const size_t buffer_size) {
  char *data = NULL;
  struct dump_program_instruction_set {
    const char *option;
    const char *field;
    const char *ntok;
  };
  struct dump_program_instruction_set dump_task[] = {{"tcp-urg", "tcp.urg", ","}, {"tcp-ack", "tcp.ack", ","}, {"tcp-psh", "tcp.psh", ","}, {"tcp-rst", "tcp.rst", ","}, {"tcp-syn", "tcp.syn", ","}, {"tcp-fin", "tcp.fin", ""}};
  size_t dump_task_nr = sizeof(dump_task) / sizeof(dump_task[0]);
  size_t d;
  for (d = 0; d < dump_task_nr; d++) {
    data = get_option(dump_task[d].option, NULL);
    if (data != NULL) {
      fprintf(pigsty,
              "\n "
              "%s = %s%s",
              dump_task[d].field, data, dump_task[d].ntok);
    } else {
      dump_tcpflag(pigsty, dump_task[d].field, buffer, buffer_size, dump_task[d].ntok);
    }
  }
}
```