user: Converte this assembly snippet into its equivalent C code:

```asm
<ffinttyp>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    (%rcx),%eax
  mov    %rdx,0x8(%rsp)
  test   %eax,%eax
  jg     L105
  movl   $0x0,(%rsi)
  mov    %rdi,%r14
  mov    %rsi,%r13
  mov    %rcx,%rbp
  movl   $0x0,(%rdx)
  movzbl (%rdi),%eax
  cmp    $0x2b,%al
  je     L325
  cmp    $0x2d,%al
  je     L129
L227:
  cmp    $0x30,%al
  je     L38
L235:
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %eax,%r15d
  test   %eax,%eax
  jle    L78
  lea    -0x1(%rax),%eax
  mov    %r14,%rbx
  lea    0x1(%r14,%rax,1),%r12
  jmp    L353
  nopl   0x0(%rax)
L46:
  add    $0x1,%rbx
  cmp    %r12,%rbx
  je     L336
L353:
  movsbl (%rbx),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L46
L99:
  movl   $0x193,0x0(%rbp)
  mov    $0x193,%eax
L105:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L38:
  movzbl 0x1(%r14),%eax
  add    $0x1,%r14
  cmp    $0x30,%al
  je     L38
  test   %al,%al
  jne    L235
L426:
  movl   $0xc,0x0(%r13)
  mov    0x0(%rbp),%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L129:
  movl   $0x1,(%rdx)
L325:
  movzbl 0x1(%r14),%eax
  add    $0x1,%r14
  jmp    L227
  nopl   0x0(%rax)
L336:
  cmp    $0x2,%r15d
  jle    L426
  cmp    $0x4,%r15d
  je     L443
  lea    -0x6(%r15),%eax
  cmp    $0x3,%eax
  jbe    L138
  lea    -0xb(%r15),%eax
  cmp    $0x7,%eax
  jbe    L402
  cmp    $0x13,%r15d
  jg     L99
  mov    0x8(%rsp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L164
  cmp    $0x3,%r15d
  je     L395
  cmp    $0x5,%r15d
  je     L84
  cmp    $0xa,%r15d
  je     L223
  cmp    $0x13,%r15d
  je     L279
L331:
  mov    0x0(%rbp),%eax
  jmp    L105
L78:
  jne    L426
  movl   $0xcc,0x0(%rbp)
  add    $0x18,%rsp
  mov    $0xcc,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L94:
  lea    D72(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jle    L426
L443:
  movl   $0x15,0x0(%r13)
  mov    0x0(%rbp),%eax
  jmp    L105
L369:
  lea    D28(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jle    L443
L138:
  movl   $0x1f,0x0(%r13)
  mov    0x0(%rbp),%eax
  jmp    L105
L109:
  lea    D15(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jle    L138
L402:
  movl   $0x51,0x0(%r13)
  jmp    L331
L164:
  cmp    $0x3,%r15d
  je     L94
  cmp    $0x5,%r15d
  je     L369
  cmp    $0xa,%r15d
  je     L109
  cmp    $0x13,%r15d
  jne    L331
  lea    D94(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jg     L99
  jmp    L402
L279:
  lea    D58(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jg     L99
  jmp    L402
L223:
  lea    D65(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jle    L138
  lea    D61(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jg     L402
  movl   $0x1e,0x0(%r13)
  mov    0x0(%rbp),%eax
  jmp    L105
L84:
  lea    D95(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jle    L443
  lea    D82(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jg     L138
  movl   $0x14,0x0(%r13)
  mov    0x0(%rbp),%eax
  jmp    L105
L395:
  lea    D80(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jle    L426
  lea    D4(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jg     L443
  movl   $0xb,0x0(%r13)
  mov    0x0(%rbp),%eax
  jmp    L105
```

tool_calls: name: extract_symbolic_data
arguments: tag: D72
type_infered: string
name: extract_symbolic_data
arguments: tag: D28
type_infered: string
name: extract_symbolic_data
arguments: tag: D15
type_infered: string
name: extract_symbolic_data
arguments: tag: D94
type_infered: string
name: extract_symbolic_data
arguments: tag: D58
type_infered: string
name: extract_symbolic_data
arguments: tag: D65
type_infered: string
name: extract_symbolic_data
arguments: tag: D61
type_infered: string
name: extract_symbolic_data
arguments: tag: D95
type_infered: string
name: extract_symbolic_data
arguments: tag: D82
type_infered: string
name: extract_symbolic_data
arguments: tag: D80
type_infered: string
name: extract_symbolic_data
arguments: tag: D4
type_infered: string

tool: D72: 128

tool: D28: 32768

tool: D15: 2147483648

tool: D94: 9223372036854775808

tool: D58: 9223372036854775807

tool: D65: 2147483647

tool: D61: 4294967295

tool: D95: 32767

tool: D82: 65535

tool: D80: 127

tool: D4: 255

assistant: ```c
int ffinttyp(char *cval, int *dtype, int *negative, int *status) {
  int ii, len;
  char *p;
  if (*status > 0)
    return (*status);
  *dtype = 0;
  *negative = 0;
  p = cval;
  if (*p == '+') {
    p++;
  } else if (*p == '-') {
    p++;
    *negative = 1;
  }
  if (*p == '0') {
    while (*p == '0')
      p++;
    if (*p == 0) {
      *dtype = 12;
      return (*status);
    }
  }
  len = strlen(p);
  for (ii = 0; ii < len; ii++) {
    if (!isdigit(*(p + ii))) {
      *status = 403;
      return (*status);
    }
  }
  if (len == 0) {
    *status = 204;
  } else if (len < 3) {
    *dtype = 12;
  } else if (len == 4) {
    *dtype = 21;
  } else if (len > 5 && len < 10) {
    *dtype = 31;
  } else if (len > 10 && len < 19) {
    *dtype = 81;
  } else if (len > 19) {
    *status = 403;
  } else {
    if (!(*negative)) {
      if (len == 3) {
        if (strcmp(p, "127") <= 0) {
          *dtype = 12;
        } else if (strcmp(p, "255") <= 0) {
          *dtype = 11;
        } else {
          *dtype = 21;
        }
      } else if (len == 5) {
        if (strcmp(p, "32767") <= 0) {
          *dtype = 21;
        } else if (strcmp(p, "65535") <= 0) {
          *dtype = 20;
        } else {
          *dtype = 31;
        }
      } else if (len == 10) {
        if (strcmp(p, "2147483647") <= 0) {
          *dtype = 31;
        } else if (strcmp(p, "4294967295") <= 0) {
          *dtype = 30;
        } else {
          *dtype = 81;
        }
      } else if (len == 19) {
        if (strcmp(p, "9223372036854775807") <= 0) {
          *dtype = 81;
        } else {
          *status = 403;
        }
      }
    } else {
      if (len == 3) {
        if (strcmp(p, "128") <= 0) {
          *dtype = 12;
        } else {
          *dtype = 21;
        }
      } else if (len == 5) {
        if (strcmp(p, "32768") <= 0) {
          *dtype = 21;
        } else {
          *dtype = 31;
        }
      } else if (len == 10) {
        if (strcmp(p, "2147483648") <= 0) {
          *dtype = 31;
        } else {
          *dtype = 81;
        }
      } else if (len == 19) {
        if (strcmp(p, "9223372036854775808") <= 0) {
          *dtype = 81;
        } else {
          *status = 403;
        }
      }
    }
  }
  return (*status);
}
```