user: Please show me the C implementation that matches the assembly code listed below:

```asm
<get_action_field>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xa0,%rsp
  mov    %rdi,-0x88(%rbp)
  mov    %rsi,-0x90(%rbp)
  mov    %edx,-0x94(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x68(%rbp)
  cmpq   $0x0,-0x88(%rbp)
  jne    L102
  mov    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <get_action_class@plt>
  mov    %rax,-0x88(%rbp)
L102:
  cmpq   $0x0,-0x88(%rbp)
  je     L45
  mov    -0x90(%rbp),%rax
  mov    %rax,-0x60(%rbp)
  jmp    L79
L250:
  addq   $0x1,-0x60(%rbp)
L170:
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L127
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L127
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  je     L127
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x26,%al
  jne    L250
L127:
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L79
  addq   $0x1,-0x60(%rbp)
L79:
  mov    -0x94(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x94(%rbp)
  test   %eax,%eax
  jne    L170
  lea    -0x50(%rbp),%rax
  mov    %rax,-0x58(%rbp)
  jmp    L86
L228:
  mov    -0x60(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x60(%rbp)
  mov    -0x58(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x58(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L86:
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L158
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L158
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  je     L158
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x26,%al
  jne    L228
L158:
  mov    -0x58(%rbp),%rax
  movb   $0x0,(%rax)
  lea    -0x50(%rbp),%rax
  mov    %rax,-0x60(%rbp)
  movl   $0xffffffff,-0x7c(%rbp)
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L229
  lea    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0x1,%eax
  jne    L229
  movl   $0x0,-0x7c(%rbp)
  mov    -0x7c(%rbp),%edx
  mov    -0x88(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <ssds_get_field_num@plt>
  mov    %rax,-0x68(%rbp)
  jmp    L45
L229:
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L162
  mov    -0x60(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L162
  lea    -0x7c(%rbp),%rdx
  mov    -0x60(%rbp),%rax
  lea    D18(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  mov    %eax,-0x74(%rbp)
  cmpl   $0x0,-0x74(%rbp)
  je     L45
  mov    -0x7c(%rbp),%edx
  mov    -0x88(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <ssds_get_field_num@plt>
  mov    %rax,-0x68(%rbp)
  jmp    L45
L162:
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L30
  lea    -0x78(%rbp),%rdx
  mov    -0x60(%rbp),%rax
  lea    D13(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  mov    %eax,-0x74(%rbp)
  cmpl   $0x0,-0x74(%rbp)
  je     L45
  mov    -0x78(%rbp),%edx
  mov    -0x88(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <ssds_get_field_id@plt>
  mov    %rax,-0x68(%rbp)
  jmp    L45
L30:
  mov    -0x90(%rbp),%rcx
  lea    -0x30(%rbp),%rax
  mov    $0x20,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <get_sv_ftype@plt>
  mov    %eax,-0x70(%rbp)
  mov    -0x70(%rbp),%edx
  mov    -0x90(%rbp),%rsi
  lea    -0x30(%rbp),%rax
  mov    %edx,%ecx
  mov    $0x20,%edx
  mov    %rax,%rdi
  call   <get_sv_flen@plt>
  mov    %eax,-0x6c(%rbp)
  lea    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L45
  mov    -0x6c(%rbp),%ecx
  mov    -0x70(%rbp),%edx
  lea    -0x50(%rbp),%rsi
  mov    -0x88(%rbp),%rax
  mov    %rax,%rdi
  call   <ssds_find_field@plt>
  mov    %rax,-0x68(%rbp)
L45:
  mov    -0x68(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L114
  call   <__stack_chk_fail@plt>
L114:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D18
type_guessed: string
name: extract_symbolic_data
arguments: tag: D13
type_guessed: string

tool: D18: 0%d

tool: D13: %d

assistant: ```c
struct ssds_field *get_action_field(struct ssds_class *pclass, char *saction, int num) {
  int ret;
  int res;
  int id;
  struct ssds_field *pfield;
  char *sp;
  char *spn;
  char name[32];
  char f_type[32];
  int ftnum;
  int ftlen;
  pfield = NULL;
  if (!pclass) {
    pclass = get_action_class(saction);
  }
  if (pclass) {
    sp = saction;
    while (num--) {
      while (*sp && (*sp != '.') && (*sp != '=') && (*sp != '&'))
        sp++;
      if (*sp == '.')
        sp++;
    }
    spn = name;
    while (*sp && (*sp != '.') && (*sp != '=') && (*sp != '&')) {
      *spn++ = *sp++;
    }
    *spn = 0;
    sp = name;
    ret = -1;
    if ((*sp == '0') && (strlen(name) == 1)) {
      ret = 0;
      pfield = ssds_get_field_num(pclass, ret);
    } else if (*sp == '0' && (isdigit(*(sp + 1)))) {
      res = sscanf(sp, "0%d", &ret);
      if (res)
        pfield = ssds_get_field_num(pclass, ret);
    } else if (isdigit(*sp)) {
      res = sscanf(sp, "%d", &id);
      if (res)
        pfield = ssds_get_field_id(pclass, id);
    } else {
      ftnum = get_sv_ftype(f_type, saction, 32);
      ftlen = get_sv_flen(f_type, saction, 32, ftnum);
      if (strlen(name) > 0)
        pfield = ssds_find_field(pclass, name, ftnum, ftlen);
    }
  }
  return pfield;
}
```