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

```asm
<ParseLongInt>:
  endbr64
  push   %r15
  push   %r14
  mov    %rcx,%r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x48,%rsp
  mov    %rsi,0x18(%rsp)
  mov    %rcx,0x10(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  xor    %eax,%eax
  test   %rdi,%rdi
  movb   $0x0,0x37(%rsp)
  mov    %ax,0x35(%rsp)
  setne  %al
  xor    %edi,%edi
  test   %rsi,%rsi
  movq   $0x0,0x2d(%rsp)
  setne  %dil
  and    %eax,%edi
  call   <assert@plt>
  mov    (%rbx),%rbx
  lea    0x0(%rbp,%rbx,1),%r15
  movzbl (%r15),%edi
  test   %dil,%dil
  je     L106
  test   %r14,%r14
  jne    L28
  lea    D46(%rip),%r12
  jmp    L486
  nopw   0x0(%rax,%rax,1)
L340:
  mov    %r13,%rsi
  mov    %r12,%rdi
  lea    0x0(%rbp,%rbx,1),%r15
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit_wrapper@plt>
L250:
  movzbl (%r15),%edi
  test   %dil,%dil
  je     L367
L486:
  cmp    $0x30,%dil
  je     L324
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L283
L117:
  movzbl (%r15),%edi
  cmp    $0x2d,%dil
  je     L376
  call   <isspace@plt>
  test   %rax,%rax
  je     L340
  add    $0x1,%rbx
  lea    0x0(%rbp,%rbx,1),%r15
  movzbl (%r15),%edi
  test   %dil,%dil
  jne    L486
L367:
  lea    D45(%rip),%rdi
  mov    %r13,%rsi
  call   <printf@plt>
  mov    $0x2,%edi
  call   <exit_wrapper@plt>
  nopw   0x0(%rax,%rax,1)
L376:
  xor    %r12d,%r12d
  lea    D18(%rip),%r14
  jmp    L428
  nopl   0x0(%rax)
L59:
  movzbl 0x0(%rbp,%rbx,1),%eax
  lea    0x1(%r12),%r15
L312:
  mov    %al,0x2d(%rsp,%r12,1)
  mov    %r15,%r12
  cmp    $0xa,%r15
  jbe    L8
L465:
  mov    %r13,%rsi
  mov    %r14,%rdi
  mov    %r15,%r12
  call   <printf@plt>
  mov    $0x4,%edi
  call   <exit_wrapper@plt>
L8:
  add    $0x1,%rbx
L428:
  movzbl 0x0(%rbp,%rbx,1),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L140
  movzbl 0x0(%rbp,%rbx,1),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L59
  movzbl 0x0(%rbp,%rbx,1),%eax
  cmp    $0x2d,%al
  je     L271
  test   %al,%al
  je     L140
  lea    D41(%rip),%rdi
  mov    %r13,%rsi
  call   <printf@plt>
  mov    $0x3,%edi
  call   <exit_wrapper@plt>
  cmp    $0xa,%r12
  jbe    L8
  mov    %r12,%r15
  jmp    L465
  nop
L324:
  lea    0x1(%rbx),%r14
  lea    0x0(%rbp,%r14,1),%rdx
  movzbl (%rdx),%edi
  mov    %rdx,0x8(%rsp)
  call   <isdigit@plt>
  mov    0x8(%rsp),%rdx
  test   %rax,%rax
  jne    L116
  movzbl (%r15),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L117
L283:
  cmpb   $0x0,(%r15)
  jne    L376
  jmp    L367
  nopl   0x0(%rax)
L116:
  mov    %rdx,%r15
  mov    %r14,%rbx
  jmp    L250
  nopl   0x0(%rax,%rax,1)
L271:
  lea    0x1(%r12),%r15
  jmp    L312
  nopw   0x0(%rax,%rax,1)
L140:
  mov    0x18(%rsp),%rax
  movb   $0x0,0x2d(%rsp,%r12,1)
  xor    %r15d,%r15d
  cmpb   $0x30,0x2d(%rsp)
  mov    %rbx,(%rax)
  jne    L50
L421:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L321
  add    $0x48,%rsp
  mov    %r15,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L106:
  cmpq   $0x0,0x10(%rsp)
  je     L367
L445:
  mov    0x10(%rsp),%rax
  xor    %r15d,%r15d
  movl   $0x2,(%rax)
  jmp    L421
  nopw   0x0(%rax,%rax,1)
L50:
  lea    0x2d(%rsp),%rdi
  call   <atol@plt>
  mov    %rax,%r15
  test   %rax,%rax
  jne    L421
  mov    0x10(%rsp),%rax
  test   %rax,%rax
  je     L440
  movl   $0x5,(%rax)
  jmp    L421
L28:
  lea    0x1(%rbx),%r14
  lea    0x0(%rbp,%r14,1),%r12
  lea    -0x1(%r14),%rbx
  cmp    $0x30,%dil
  je     L90
  nopl   0x0(%rax,%rax,1)
L29:
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L458
  movzbl (%r15),%edi
  cmp    $0x2d,%dil
  je     L87
  call   <isspace@plt>
  mov    %rax,%r15
  test   %rax,%rax
  jne    L419
  mov    0x10(%rsp),%rax
  movl   $0x1,(%rax)
  jmp    L421
  nopl   0x0(%rax)
L419:
  movzbl (%r12),%edi
  mov    %r12,%r15
  add    $0x1,%r14
  add    $0x1,%r12
  test   %dil,%dil
  je     L445
  lea    -0x1(%r14),%rbx
  cmp    $0x30,%dil
  jne    L29
L90:
  movzbl (%r12),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L419
  movzbl (%r15),%edi
  jmp    L29
L440:
  mov    %r13,%rsi
  lea    D1(%rip),%rdi
  call   <printf@plt>
  mov    $0x5,%edi
  call   <exit_wrapper@plt>
  jmp    L421
L458:
  cmpb   $0x0,(%r15)
  je     L445
L87:
  lea    0x2c(%rsp),%rax
  mov    $0x1,%r14d
  mov    %rax,0x8(%rsp)
  nopl   0x0(%rax,%rax,1)
L300:
  movzbl 0x0(%rbp,%rbx,1),%edi
  lea    -0x1(%r14),%r12
  call   <isspace@plt>
  mov    %rax,%r15
  test   %rax,%rax
  jne    L140
  movzbl 0x0(%rbp,%rbx,1),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  movzbl 0x0(%rbp,%rbx,1),%eax
  jne    L30
  cmp    $0x2d,%al
  je     L30
  test   %al,%al
  je     L140
  mov    0x10(%rsp),%rax
  movl   $0x3,(%rax)
  jmp    L421
  nopw   0x0(%rax,%rax,1)
L30:
  mov    0x8(%rsp),%rcx
  mov    %al,(%rcx,%r14,1)
  add    $0x1,%r14
  cmp    $0xc,%r14
  jne    L339
  mov    0x10(%rsp),%rax
  movl   $0x4,(%rax)
  jmp    L421
  nopl   0x0(%rax,%rax,1)
L339:
  add    $0x1,%rbx
  jmp    L300
L321:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D46
type_infered: string
name: unpack_data
arguments: label: D45
type_infered: string
name: unpack_data
arguments: label: D18
type_infered: string
name: unpack_data
arguments: label: D41
type_infered: string
name: unpack_data
arguments: label: D1
type_infered: string

tool: D46: Error: Invalid character encountered when numerical string is expected.
Error occurs in line %lu of input file
Aborting


tool: D45: Error: Unexpected end of line encountered.
Error occurs in line %lu of input file
Aborting


tool: D18: Error: The encountered numerical string is too large.
Error occurs in line %lu of input file
Aborting


tool: D41: Error: Non-numerical character encountered when numerical string is expected.
Error occurs in line %lu of input file
Aborting


tool: D1: Error converting numerical string to numerical value.
Error occurs in line %lu of input file
Aborting


assistant: ```c
long int ParseLongInt(char *buffer, unsigned long *startindex, unsigned long linenum, int *errorstatus) {
  unsigned long index;
  char buffer2[11] = {0};
  unsigned long index2 = 0;
  long value = 0;
  (assert((buffer != NULL) && (startindex != NULL)));
  index = *startindex;
  while (buffer[index] != '\0') {
    if ((buffer[index] == '0') && (isdigit((unsigned char)buffer[index + 1])))
      index++;
    else {
      if (isdigit((unsigned char)buffer[index]))
        break;
      if (buffer[index] == '-')
        break;
      if (isspace((unsigned char)buffer[index]))
        index++;
      else {
        if (errorstatus != NULL) {
          *errorstatus = 1;
          return 0;
        } else {
          printf("Error: Invalid character encountered when numerical string is expected.\nError occurs in line %lu of input file\nAborting\n", linenum);
          exit_wrapper(1);
        }
      }
    }
  }
  if (buffer[index] == '\0') {
    if (errorstatus != NULL) {
      *errorstatus = 2;
      return 0;
    } else {
      printf("Error: Unexpected end of line encountered.\nError occurs in line %lu of input file\nAborting\n", linenum);
      exit_wrapper(2);
    }
  }
  while (isspace((unsigned char)buffer[index]) == 0) {
    if (isdigit((unsigned char)buffer[index]))
      buffer2[index2++] = buffer[index];
    else if (buffer[index] == '-')
      buffer2[index2++] = buffer[index];
    else {
      if (buffer[index] == '\0')
        break;
      if (errorstatus != NULL) {
        *errorstatus = 3;
        return 0;
      } else {
        printf("Error: Non-numerical character encountered when numerical string is expected.\nError occurs in line %lu of input file\nAborting\n", linenum);
        exit_wrapper(3);
      }
    }
    if (index2 > 10) {
      if (errorstatus != NULL) {
        *errorstatus = 4;
        return 0;
      } else {
        printf("Error: The encountered numerical string is too large.\nError occurs in line %lu of input file\nAborting\n", linenum);
        exit_wrapper(4);
      }
    }
    index++;
  }
  buffer2[index2] = '\0';
  (*startindex) = index;
  if (buffer2[0] == '0')
    value = 0;
  else {
    value = atol(buffer2);
    if (value == 0) {
      if (errorstatus != NULL) {
        *errorstatus = 5;
        return 0;
      } else {
        printf("Error converting numerical string to numerical value.\nError occurs in line %lu of input file\nAborting\n", linenum);
        exit_wrapper(5);
      }
    }
  }
  return value;
}
```