user: 请将以下的汇编代码转换成C语言代码：

```asm
<dump_tcpflags>:
  endbr64
  push   %r15
  lea    D86(%rip),%rsi
  mov    %rdx,%r15
  lea    D50(%rip),%rdx
  push   %r14
  mov    %rcx,%r14
  push   %r13
  lea    D81(%rip),%r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  lea    D7(%rip),%rdi
  push   %rbx
  movq   %rdi,%xmm1
  lea    D90(%rip),%rdi
  sub    $0xa8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  lea    D55(%rip),%rax
  mov    %rsp,%rbx
  lea    0x90(%rsp),%r12
  movq   %rax,%xmm0
  lea    D0(%rip),%rax
  movq   %rax,%xmm2
  lea    D106(%rip),%rax
  punpcklqdq %xmm2,%xmm1
  movq   %rax,%xmm3
  lea    D137(%rip),%rax
  movaps %xmm1,(%rsp)
  movdqa %xmm0,%xmm1
  punpcklqdq %xmm3,%xmm1
  movaps %xmm1,0x10(%rsp)
  movq   %rax,%xmm1
  lea    D75(%rip),%rax
  punpcklqdq %xmm0,%xmm1
  movq   %rax,%xmm4
  lea    D136(%rip),%rax
  movaps %xmm1,0x20(%rsp)
  movq   %rsi,%xmm1
  movq   %rax,%xmm5
  lea    D115(%rip),%rax
  punpcklqdq %xmm4,%xmm1
  movaps %xmm1,0x30(%rsp)
  movdqa %xmm0,%xmm1
  punpcklqdq %xmm5,%xmm1
  movaps %xmm1,0x40(%rsp)
  movq   %rax,%xmm1
  lea    D87(%rip),%rax
  movq   %rax,%xmm6
  lea    D23(%rip),%rax
  punpcklqdq %xmm0,%xmm1
  movq   %rax,%xmm7
  lea    D33(%rip),%rax
  movaps %xmm1,0x50(%rsp)
  movq   %rdi,%xmm1
  punpcklqdq %xmm7,%xmm0
  movq   %rax,%xmm2
  punpcklqdq %xmm6,%xmm1
  movaps %xmm0,0x70(%rsp)
  movq   %rdx,%xmm0
  punpcklqdq %xmm2,%xmm0
  movaps %xmm1,0x60(%rsp)
  movaps %xmm0,0x80(%rsp)
  jmp    L43
  cs nopw 0x0(%rax,%rax,1)
L22:
  mov    0x8(%rbx),%rdx
  mov    0x10(%rbx),%r8
  mov    %r13,%rsi
  mov    %rbp,%rdi
  add    $0x18,%rbx
  call   <fprintf@plt>
  cmp    %rbx,%r12
  je     L16
L43:
  mov    (%rbx),%rdi
  xor    %esi,%esi
  call   <get_option@plt>
  mov    %rax,%rcx
  test   %rax,%rax
  jne    L22
  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    %rbx,%r12
  jne    L43
L16:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L32
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L32:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D86
type_guessed: string
name: unpack_data
arguments: data_tag: D50
type_guessed: string
name: unpack_data
arguments: data_tag: D81
type_guessed: string
name: unpack_data
arguments: data_tag: D7
type_guessed: string
name: unpack_data
arguments: data_tag: D90
type_guessed: string
name: unpack_data
arguments: data_tag: D55
type_guessed: string
name: unpack_data
arguments: data_tag: D0
type_guessed: string
name: unpack_data
arguments: data_tag: D106
type_guessed: string
name: unpack_data
arguments: data_tag: D137
type_guessed: string
name: unpack_data
arguments: data_tag: D75
type_guessed: string
name: unpack_data
arguments: data_tag: D136
type_guessed: string
name: unpack_data
arguments: data_tag: D115
type_guessed: string
name: unpack_data
arguments: data_tag: D87
type_guessed: string
name: unpack_data
arguments: data_tag: D23
type_guessed: string
name: unpack_data
arguments: data_tag: D33
type_guessed: string

tool: D86: tcp-psh

tool: D50: tcp.fin

tool: D81: 
 %s = %s%s

tool: D7: tcp-urg

tool: D90: tcp-syn

tool: D55: ,

tool: D0: tcp.urg

tool: D106: tcp-ack

tool: D137: tcp.ack

tool: D75: tcp.psh

tool: D136: tcp-rst

tool: D115: tcp.rst

tool: D87: tcp.syn

tool: D23: 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);
    }
  }
}
```