user: 下面的汇编指令对应的C源代码是什么：

```asm
<parse_ip>:
  endbr64
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    (%rsi),%rdx
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  mov    (%rdi),%eax
  mov    %rdx,0x10(%rsp)
  mov    %eax,0xc(%rsp)
  cmp    $0x1,%eax
  jle    L12
  mov    %rdi,%rbp
  mov    (%rdx),%rdi
  mov    %rsi,%rbx
  lea    D130(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L147
  mov    0x10(%rsp),%rax
  lea    D66(%rip),%rsi
  mov    (%rax),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L14
  mov    0x10(%rsp),%rax
  lea    D141(%rip),%rsi
  mov    (%rax),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L261
  mov    0x10(%rsp),%rax
  lea    D126(%rip),%rsi
  mov    (%rax),%rdi
  call   <matches@plt>
  test   %rax,%rax
  jne    L195
L261:
  xor    %eax,%eax
L96:
  call   <NEXT_ARG@plt>
  lea    0x10(%rsp),%rsi
  xor    %r8d,%r8d
  mov    %r12,%rdx
  lea    0xc(%rsp),%rdi
  mov    $0x1,%ecx
  call   <parse_u8@plt>
  jmp    L266
  nopl   0x0(%rax)
L14:
  call   <NEXT_ARG@plt>
  lea    0x10(%rsp),%rsi
  lea    0xc(%rsp),%rdi
  mov    %r12,%rdx
  mov    $0x10,%ecx
  call   <parse_ip_addr@plt>
L266:
  mov    0xc(%rsp),%edx
  mov    %edx,0x0(%rbp)
  mov    0x10(%rsp),%rdx
  mov    %rdx,(%rbx)
L279:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L248
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L147:
  call   <NEXT_ARG@plt>
  lea    0x10(%rsp),%rsi
  lea    0xc(%rsp),%rdi
  mov    %r12,%rdx
  mov    $0xc,%ecx
  call   <parse_ip_addr@plt>
  jmp    L266
  xchg   %ax,%ax
L195:
  mov    0x10(%rsp),%rax
  lea    D127(%rip),%rsi
  mov    (%rax),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L55
  mov    0x10(%rsp),%rax
  lea    D32(%rip),%rsi
  mov    (%rax),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L29
  mov    0x10(%rsp),%rax
  lea    D86(%rip),%rsi
  mov    (%rax),%rdi
  call   <matches@plt>
  test   %rax,%rax
  je     L96
  mov    0x10(%rsp),%rax
  lea    D81(%rip),%rsi
  mov    (%rax),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L203
  mov    0x10(%rsp),%rax
  lea    D132(%rip),%rsi
  mov    (%rax),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L124
  mov    0x10(%rsp),%rax
  lea    D10(%rip),%rsi
  mov    (%rax),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L188
  mov    0x10(%rsp),%rax
  lea    D49(%rip),%rsi
  mov    (%rax),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L181
  mov    0x10(%rsp),%rax
  lea    D97(%rip),%rsi
  mov    (%rax),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L37
  mov    0x10(%rsp),%rax
  lea    D80(%rip),%rsi
  mov    (%rax),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L153
  mov    0x10(%rsp),%rax
  lea    D100(%rip),%rsi
  mov    (%rax),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L93
  mov    0x10(%rsp),%rax
  lea    D21(%rip),%rsi
  mov    (%rax),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L12
  call   <NEXT_ARG@plt>
  lea    0x10(%rsp),%rsi
  lea    0xc(%rsp),%rdi
  mov    %r12,%rdx
  mov    $0x1,%r8d
  mov    $0x14,%ecx
  call   <parse_u8@plt>
  jmp    L266
  nopw   0x0(%rax,%rax,1)
L55:
  call   <NEXT_ARG@plt>
  lea    0x10(%rsp),%rsi
  xor    %r8d,%r8d
  xor    %ecx,%ecx
  lea    0xc(%rsp),%rdi
  mov    %r12,%rdx
  call   <parse_u8@plt>
  jmp    L266
  nopl   0x0(%rax)
L29:
  call   <NEXT_ARG@plt>
  lea    0x10(%rsp),%rsi
  xor    %r8d,%r8d
  mov    %r12,%rdx
  lea    0xc(%rsp),%rdi
  mov    $0x9,%ecx
  call   <parse_u8@plt>
  jmp    L266
  nopl   0x0(%rax)
L12:
  mov    $0xffffffff,%eax
  jmp    L279
  nopw   0x0(%rax,%rax,1)
L203:
  xor    %r8d,%r8d
  mov    $0x6,%ecx
  mov    $0x3fff,%edx
  xor    %esi,%esi
  mov    %r12,%rdi
  subl   $0x1,0xc(%rsp)
  addq   $0x8,0x10(%rsp)
  call   <pack_key16@plt>
  jmp    L266
L124:
  xor    %r8d,%r8d
  mov    $0x6,%ecx
  mov    $0x1fff,%edx
  xor    %esi,%esi
  mov    %r12,%rdi
  subl   $0x1,0xc(%rsp)
  addq   $0x8,0x10(%rsp)
  call   <pack_key16@plt>
  jmp    L266
L188:
  xor    %r8d,%r8d
  mov    $0x6,%ecx
  mov    $0x4000,%edx
  mov    %r12,%rdi
  mov    $0x4000,%esi
  subl   $0x1,0xc(%rsp)
  addq   $0x8,0x10(%rsp)
  call   <pack_key16@plt>
  jmp    L266
L181:
  xor    %r8d,%r8d
  mov    $0x6,%ecx
  mov    $0x2000,%edx
  mov    %r12,%rdi
  mov    $0x2000,%esi
  subl   $0x1,0xc(%rsp)
  addq   $0x8,0x10(%rsp)
  call   <pack_key16@plt>
  jmp    L266
L37:
  call   <NEXT_ARG@plt>
  lea    0x10(%rsp),%rsi
  xor    %r8d,%r8d
  mov    %r12,%rdx
  lea    0xc(%rsp),%rdi
  mov    $0x16,%ecx
  call   <parse_u16@plt>
  jmp    L266
L153:
  call   <NEXT_ARG@plt>
  lea    0x10(%rsp),%rsi
  xor    %r8d,%r8d
  mov    %r12,%rdx
  lea    0xc(%rsp),%rdi
  mov    $0x14,%ecx
  call   <parse_u16@plt>
  jmp    L266
L93:
  call   <NEXT_ARG@plt>
  lea    0x10(%rsp),%rsi
  xor    %r8d,%r8d
  mov    %r12,%rdx
  lea    0xc(%rsp),%rdi
  mov    $0x14,%ecx
  call   <parse_u8@plt>
  jmp    L266
L248:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D130
type_infered: string
name: retrieve_data
arguments: data_tag: D66
type_infered: string
name: retrieve_data
arguments: data_tag: D141
type_infered: string
name: retrieve_data
arguments: data_tag: D126
type_infered: string
name: retrieve_data
arguments: data_tag: D127
type_infered: string
name: retrieve_data
arguments: data_tag: D32
type_infered: string
name: retrieve_data
arguments: data_tag: D86
type_infered: string
name: retrieve_data
arguments: data_tag: D81
type_infered: string
name: retrieve_data
arguments: data_tag: D132
type_infered: string
name: retrieve_data
arguments: data_tag: D10
type_infered: string
name: retrieve_data
arguments: data_tag: D49
type_infered: string
name: retrieve_data
arguments: data_tag: D97
type_infered: string
name: retrieve_data
arguments: data_tag: D80
type_infered: string
name: retrieve_data
arguments: data_tag: D100
type_infered: string
name: retrieve_data
arguments: data_tag: D21
type_infered: string

tool: D130: src

tool: D66: dst

tool: D141: tos

tool: D126: dsfield

tool: D127: ihl

tool: D32: protocol

tool: D86: precedence

tool: D81: nofrag

tool: D132: firstfrag

tool: D10: df

tool: D49: mf

tool: D97: dport

tool: D80: sport

tool: D100: icmp_type

tool: D21: icmp_code

assistant: ```c
int parse_ip(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) {
  int res = -1;
  int argc = *argc_p;
  char **argv = *argv_p;
  if (argc < 2)
    return -1;
  if (strcmp(*argv, "src") == 0) {
    NEXT_ARG();
    res = parse_ip_addr(&argc, &argv, sel, 12);
    goto done;
  }
  if (strcmp(*argv, "dst") == 0) {
    NEXT_ARG();
    res = parse_ip_addr(&argc, &argv, sel, 16);
    goto done;
  }
  if (strcmp(*argv, "tos") == 0 || matches(*argv, "dsfield") == 0) {
    NEXT_ARG();
    res = parse_u8(&argc, &argv, sel, 1, 0);
    goto done;
  }
  if (strcmp(*argv, "ihl") == 0) {
    NEXT_ARG();
    res = parse_u8(&argc, &argv, sel, 0, 0);
    goto done;
  }
  if (strcmp(*argv, "protocol") == 0) {
    NEXT_ARG();
    res = parse_u8(&argc, &argv, sel, 9, 0);
    goto done;
  }
  if (matches(*argv, "precedence") == 0) {
    NEXT_ARG();
    res = parse_u8(&argc, &argv, sel, 1, 0);
    goto done;
  }
  if (strcmp(*argv, "nofrag") == 0) {
    argc--;
    argv++;
    res = pack_key16(sel, 0, 0x3FFF, 6, 0);
    goto done;
  }
  if (strcmp(*argv, "firstfrag") == 0) {
    argc--;
    argv++;
    res = pack_key16(sel, 0, 0x1FFF, 6, 0);
    goto done;
  }
  if (strcmp(*argv, "df") == 0) {
    argc--;
    argv++;
    res = pack_key16(sel, 0x4000, 0x4000, 6, 0);
    goto done;
  }
  if (strcmp(*argv, "mf") == 0) {
    argc--;
    argv++;
    res = pack_key16(sel, 0x2000, 0x2000, 6, 0);
    goto done;
  }
  if (strcmp(*argv, "dport") == 0) {
    NEXT_ARG();
    res = parse_u16(&argc, &argv, sel, 22, 0);
    goto done;
  }
  if (strcmp(*argv, "sport") == 0) {
    NEXT_ARG();
    res = parse_u16(&argc, &argv, sel, 20, 0);
    goto done;
  }
  if (strcmp(*argv, "icmp_type") == 0) {
    NEXT_ARG();
    res = parse_u8(&argc, &argv, sel, 20, 0);
    goto done;
  }
  if (strcmp(*argv, "icmp_code") == 0) {
    NEXT_ARG();
    res = parse_u8(&argc, &argv, sel, 20, 1);
    goto done;
  }
  return -1;
done:
  *argc_p = argc;
  *argv_p = argv;
  return res;
}
```