ylfeng/ReF-Decompile-dataset huggingface dataset:
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<f>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  lea    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <g@plt>
  mov    -0x18(%rbp),%rax
  movsd  (%rax),%xmm0
  ucomisd D31(%rip),%xmm0
  setnp  %al
  mov    $0x0,%edx
  ucomisd D31(%rip),%xmm0
  cmovne %edx,%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <assertTrue@plt>
  mov    -0x8(%rbp),%rax
  movsd  (%rax),%xmm0
  ucomisd D31(%rip),%xmm0
  setnp  %al
  mov    $0x0,%edx
  ucomisd D31(%rip),%xmm0
  cmovne %edx,%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <assertTrue@plt>
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D31
type: byte[8]
name: retrieve_data
arguments: label: D25
type: string
name: retrieve_data
arguments: label: D4
type: string

tool: {"D31": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

tool: D25: *p == 10

tool: D4: *v == 10

assistant: ```c
void f(double *p) {
  double *v;
  v = p;
  g(&p);
  assertTrue("*p == 10", *p == 10);
  ;
  assertTrue("*v == 10", *v == 10);
  ;
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<f>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%rbx
  mov    %rdi,0x8(%rsp)
  lea    0x8(%rsp),%rdi
  call   <g@plt>
  mov    0x8(%rsp),%rax
  movsd  (%rax),%xmm0
  ucomisd D10(%rip),%xmm0
  setnp  %sil
  movzbl %sil,%esi
  mov    $0x0,%ebp
  movsd  D10(%rip),%xmm1
  ucomisd %xmm0,%xmm1
  cmovne %ebp,%esi
  lea    D22(%rip),%rdi
  call   <assertTrue@plt>
  movsd  (%rbx),%xmm0
  ucomisd D10(%rip),%xmm0
  setnp  %sil
  movzbl %sil,%esi
  movsd  D10(%rip),%xmm2
  ucomisd %xmm0,%xmm2
  cmovne %ebp,%esi
  lea    D43(%rip),%rdi
  call   <assertTrue@plt>
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: data_label: D10
type: byte[8]
name: parse_data
arguments: data_label: D22
type: string
name: parse_data
arguments: data_label: D43
type: string

tool: {"D10": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

tool: D22: *p == 10

tool: D43: *v == 10

assistant: ```c
void f(double *p) {
  double *v;
  v = p;
  g(&p);
  assertTrue("*p == 10", *p == 10);
  ;
  assertTrue("*v == 10", *v == 10);
  ;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<f>:
  endbr64
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %rdi,0x8(%rsp)
  lea    0x8(%rsp),%rdi
  call   <g@plt>
  mov    0x8(%rsp),%rax
  xor    %esi,%esi
  movsd  D20(%rip),%xmm1
  lea    D51(%rip),%rdi
  movsd  (%rax),%xmm0
  ucomisd D20(%rip),%xmm0
  setnp  %sil
  xor    %ebp,%ebp
  ucomisd %xmm0,%xmm1
  cmovne %ebp,%esi
  call   <assertTrue@plt>
  movsd  (%rbx),%xmm0
  xor    %esi,%esi
  ucomisd D20(%rip),%xmm0
  movsd  D20(%rip),%xmm2
  lea    D0(%rip),%rdi
  setnp  %sil
  ucomisd %xmm0,%xmm2
  cmovne %ebp,%esi
  call   <assertTrue@plt>
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D20
datatype: byte[8]
name: unpack_data
arguments: data_label: D51
datatype: string
name: unpack_data
arguments: data_label: D0
datatype: string

tool: {"D20": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

tool: D51: *p == 10

tool: D0: *v == 10

assistant: ```c
void f(double *p) {
  double *v;
  v = p;
  g(&p);
  assertTrue("*p == 10", *p == 10);
  ;
  assertTrue("*v == 10", *v == 10);
  ;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<f>:
  endbr64
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %rdi,0x8(%rsp)
  lea    0x8(%rsp),%rdi
  call   <g@plt>
  mov    0x8(%rsp),%rax
  xor    %esi,%esi
  movsd  D25(%rip),%xmm1
  lea    D22(%rip),%rdi
  movsd  (%rax),%xmm0
  ucomisd D25(%rip),%xmm0
  setnp  %sil
  xor    %ebp,%ebp
  ucomisd %xmm0,%xmm1
  cmovne %ebp,%esi
  call   <assertTrue@plt>
  movsd  (%rbx),%xmm0
  xor    %esi,%esi
  ucomisd D25(%rip),%xmm0
  movsd  D25(%rip),%xmm2
  lea    D55(%rip),%rdi
  setnp  %sil
  ucomisd %xmm0,%xmm2
  cmovne %ebp,%esi
  call   <assertTrue@plt>
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: label: D25
type_guessed: byte[8]
name: read_data
arguments: label: D22
type_guessed: string
name: read_data
arguments: label: D55
type_guessed: string

tool: {"D25": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

tool: D22: *p == 10

tool: D55: *v == 10

assistant: ```c
void f(double *p) {
  double *v;
  v = p;
  g(&p);
  assertTrue("*p == 10", *p == 10);
  ;
  assertTrue("*v == 10", *v == 10);
  ;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movabs $0x726f6d20646f6f67,%rax
  mov    %rax,0xb(%rsp)
  movl   $0x676e696e,0x13(%rsp)
  movb   $0x0,0x17(%rsp)
  lea    0xb(%rsp),%rbp
  mov    %rbp,%rdi
  call   <iFunStrlen@plt>
  mov    %eax,%ebx
  mov    %rbp,%rsi
  lea    D8(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebx,%esi
  lea    D69(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D27(%rip),%rdi
  call   <puts@plt>
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%rbx
  mov    %rbp,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    D39(%rip),%rdi
  call   <puts@plt>
  movb   $0x61,0xb(%rsp)
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L10
L16:
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%esi
  lea    D49(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%esi
  lea    D14(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x8,%esi
  lea    D44(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  mov    $0x0,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  ret
L10:
  mov    %rbp,%rsi
  lea    D32(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L16
L14:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D8
type_guessed: string
name: read_data
arguments: label: D69
type_guessed: string
name: read_data
arguments: label: D27
type_guessed: string
name: read_data
arguments: label: D39
type_guessed: string
name: read_data
arguments: label: D49
type_guessed: string
name: read_data
arguments: label: D14
type_guessed: string
name: read_data
arguments: label: D44
type_guessed: string
name: read_data
arguments: label: D32
type_guessed: string

tool: D8: The string is %s


tool: D69: String iArray lenght is %d


tool: D27: Now I want to test the string copy

tool: D39: Now I change the first element , g -> a in the string

tool: D49: Before free, cpArray length is %d


tool: D14: After free, the cpArray length is %d


tool: D44: cpArray size is %ld


tool: D32: cArray has been changed, now there is :
%s


assistant: ```c
int main(int argc, char **argv) {
  char cArray[] = "good morning";
  char *cpArray = NULL;
  int iCount = iFunStrlen(cArray);
  printf("The string is %s\n", cArray);
  printf("String iArray lenght is %d\n", iCount);
  printf("Now I want to test the string copy\n");
  cpArray = (char *)malloc(iCount);
  strcpy(cpArray, cArray);
  printf("Now I change the first element , g -> a in the string\n");
  cArray[0] = 'a';
  if (strcmp(cArray, cpArray) != 0) {
    printf("cArray has been changed, now there is :\n%s\n", cArray);
  }
  printf("Before free, cpArray length is %d\n", (int)strlen(cpArray));
  free(cpArray);
  printf("After free, the cpArray length is %d\n", (int)strlen(cpArray));
  if (sizeof(cpArray) != 0) {
    printf("cpArray size is %ld\n", sizeof(cpArray));
  }
  return 0;
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  movabs $0x726f6d20646f6f67,%rax
  lea    0xb(%rsp),%r12
  movl   $0x676e696e,0x13(%rsp)
  mov    %r12,%rdi
  movb   $0x0,0x17(%rsp)
  mov    %rax,0xb(%rsp)
  call   <iFunStrlen@plt>
  mov    %r12,%rsi
  lea    D16(%rip),%rdi
  mov    %eax,%ebp
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D7(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D33(%rip),%rdi
  call   <puts@plt>
  mov    %ebp,%edi
  call   <malloc@plt>
  mov    %r12,%rsi
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <strcpy@plt>
  lea    D22(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movb   $0x61,0xb(%rsp)
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L14
L10:
  mov    %rbp,%rdi
  call   <strlen@plt>
  lea    D5(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  lea    D32(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  mov    $0x8,%esi
  lea    D49(%rip),%rdi
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L27
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
L14:
  mov    %r12,%rsi
  lea    D1(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L10
L27:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D16
data_type: string
name: read_data
arguments: label: D7
data_type: string
name: read_data
arguments: label: D33
data_type: string
name: read_data
arguments: label: D22
data_type: string
name: read_data
arguments: label: D5
data_type: string
name: read_data
arguments: label: D32
data_type: string
name: read_data
arguments: label: D49
data_type: string
name: read_data
arguments: label: D1
data_type: string

tool: D16: The string is %s


tool: D7: String iArray lenght is %d


tool: D33: Now I want to test the string copy

tool: D22: Now I change the first element , g -> a in the string

tool: D5: Before free, cpArray length is %d


tool: D32: After free, the cpArray length is %d


tool: D49: cpArray size is %ld


tool: D1: cArray has been changed, now there is :
%s


assistant: ```c
int main(int argc, char **argv) {
  char cArray[] = "good morning";
  char *cpArray = NULL;
  int iCount = iFunStrlen(cArray);
  printf("The string is %s\n", cArray);
  printf("String iArray lenght is %d\n", iCount);
  printf("Now I want to test the string copy\n");
  cpArray = (char *)malloc(iCount);
  strcpy(cpArray, cArray);
  printf("Now I change the first element , g -> a in the string\n");
  cArray[0] = 'a';
  if (strcmp(cArray, cpArray) != 0) {
    printf("cArray has been changed, now there is :\n%s\n", cArray);
  }
  printf("Before free, cpArray length is %d\n", (int)strlen(cpArray));
  free(cpArray);
  printf("After free, the cpArray length is %d\n", (int)strlen(cpArray));
  if (sizeof(cpArray) != 0) {
    printf("cpArray size is %ld\n", sizeof(cpArray));
  }
  return 0;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<emon_log_data>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x420,%rsp
  mov    %rdi,-0x418(%rbp)
  movss  %xmm0,-0x41c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x41c(%rbp),%ecx
  mov    -0x418(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  movd   %ecx,%xmm0
  lea    D6(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  lea    -0x410(%rbp),%rax
  mov    %rax,%rdi
  call   <system@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L9
  call   <__stack_chk_fail@plt>
L9:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D6
data_type: string

tool: D6: curl  "http://emonpi/input/post.json?json={%s:%f}&apikey=9c58f6f0491bf90f7c5580de8a7e7999" -o emon -s

assistant: ```c
void emon_log_data(char *name, float value) {
  {
    char cmdline[1024];
    sprintf(cmdline, "curl  \"http://emonpi/input/post.json?json={%s:%f}&apikey=9c58f6f0491bf90f7c5580de8a7e7999\" -o emon -s", name, value);
    system(cmdline);
  }
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<emon_log_data>:
  endbr64
  push   %rbx
  sub    $0x410,%rsp
  mov    %rdi,%rdx
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  lea    D3(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rdi
  call   <system@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0x410,%rsp
  pop    %rbx
  ret
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D3
datatype: string

tool: D3: curl  "http://emonpi/input/post.json?json={%s:%f}&apikey=9c58f6f0491bf90f7c5580de8a7e7999" -o emon -s

assistant: ```c
void emon_log_data(char *name, float value) {
  {
    char cmdline[1024];
    sprintf(cmdline, "curl  \"http://emonpi/input/post.json?json={%s:%f}&apikey=9c58f6f0491bf90f7c5580de8a7e7999\" -o emon -s", name, value);
    system(cmdline);
  }
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<emon_log_data>:
  endbr64
  push   %rbp
  mov    %rdi,%rdx
  lea    D0(%rip),%rsi
  sub    $0x410,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbp
  mov    %rbp,%rdi
  call   <sprintf@plt>
  mov    %rbp,%rdi
  call   <system@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x410,%rsp
  pop    %rbp
  ret
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D0
type_guessed: string

tool: D0: curl  "http://emonpi/input/post.json?json={%s:%f}&apikey=9c58f6f0491bf90f7c5580de8a7e7999" -o emon -s

assistant: ```c
void emon_log_data(char *name, float value) {
  {
    char cmdline[1024];
    sprintf(cmdline, "curl  \"http://emonpi/input/post.json?json={%s:%f}&apikey=9c58f6f0491bf90f7c5580de8a7e7999\" -o emon -s", name, value);
    system(cmdline);
  }
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<emon_log_data>:
  endbr64
  push   %rbp
  mov    %rdi,%rdx
  lea    D4(%rip),%rsi
  sub    $0x410,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbp
  mov    %rbp,%rdi
  call   <sprintf@plt>
  mov    %rbp,%rdi
  call   <system@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0x410,%rsp
  pop    %rbp
  ret
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D4
type_guessed: string

tool: D4: curl  "http://emonpi/input/post.json?json={%s:%f}&apikey=9c58f6f0491bf90f7c5580de8a7e7999" -o emon -s

assistant: ```c
void emon_log_data(char *name, float value) {
  {
    char cmdline[1024];
    sprintf(cmdline, "curl  \"http://emonpi/input/post.json?json={%s:%f}&apikey=9c58f6f0491bf90f7c5580de8a7e7999\" -o emon -s", name, value);
    system(cmdline);
  }
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<parseint>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  movl   $0x1,-0x4(%rbp)
  mov    -0x20(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L44
  movl   $0xffffffff,-0x4(%rbp)
  addq   $0x1,-0x18(%rbp)
  jmp    L48
L44:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  jne    L48
  movl   $0x1,-0x4(%rbp)
  addq   $0x1,-0x18(%rbp)
L48:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L30
  lea    D6(%rip),%rax
  mov    %rax,%rdx
  mov    $0x62,%esi
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <bench_assertion_failed@plt>
L30:
  jmp    L42
L20:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,(%rax)
  addq   $0x1,-0x18(%rbp)
L42:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L20
  mov    -0x20(%rbp),%rax
  mov    (%rax),%eax
  imul   -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x18(%rbp),%rax
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D6
type_guessed: string
name: read_data
arguments: tag: D15
type_guessed: string

tool: D6: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/abrahamneben/orbcomm_beam_mapping/refs/heads/master/cinelerra-4.6/cinelerra-4.6.mod/thirdparty/fftw-3.0.1/libbench2/problem.c

tool: D15: isdigit(*s)

assistant: ```c
const char *parseint(const char *s, int *n) {
  int sign = 1;
  *n = 0;
  if (*s == '-') {
    sign = -1;
    ++s;
  } else if (*s == '+') {
    sign = +1;
    ++s;
  }
  (void)((isdigit(*s)) || (bench_assertion_failed("isdigit(*s)", 98, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/abrahamneben/orbcomm_beam_mapping/refs/heads/master/cinelerra-4.6/cinelerra-4.6.mod/thirdparty/fftw-3.0.1/libbench2/problem.c"), 0));
  while (isdigit(*s)) {
    *n = *n * 10 + (*s - '0');
    ++s;
  }
  *n *= sign;
  return s;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<parseint>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbp
  movl   $0x0,(%rsi)
  movzbl (%rdi),%eax
  lea    0x1(%rdi),%rbx
  mov    $0xffffffff,%r12d
  cmp    $0x2d,%al
  je     L59
  mov    %rdi,%rbx
  mov    $0x1,%r12d
  cmp    $0x2b,%al
  je     L0
L59:
  movsbl (%rbx),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L29
  lea    D4(%rip),%rdx
  mov    $0x62,%esi
  lea    D17(%rip),%rdi
  call   <bench_assertion_failed@plt>
  jmp    L29
L0:
  lea    0x1(%rdi),%rbx
  jmp    L59
L27:
  mov    0x0(%rbp),%eax
  lea    (%rax,%rax,4),%edx
  movsbl (%rbx),%eax
  lea    -0x30(%rax,%rdx,2),%eax
  mov    %eax,0x0(%rbp)
  add    $0x1,%rbx
L29:
  movsbl (%rbx),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L27
  imul   0x0(%rbp),%r12d
  mov    %r12d,0x0(%rbp)
  mov    %rbx,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D4
data_type: string
name: disassemble_data
arguments: tag: D17
data_type: string

tool: D4: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/abrahamneben/orbcomm_beam_mapping/refs/heads/master/cinelerra-4.6/cinelerra-4.6.mod/thirdparty/fftw-3.0.1/libbench2/problem.c

tool: D17: isdigit(*s)

assistant: ```c
const char *parseint(const char *s, int *n) {
  int sign = 1;
  *n = 0;
  if (*s == '-') {
    sign = -1;
    ++s;
  } else if (*s == '+') {
    sign = +1;
    ++s;
  }
  (void)((isdigit(*s)) || (bench_assertion_failed("isdigit(*s)", 98, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/abrahamneben/orbcomm_beam_mapping/refs/heads/master/cinelerra-4.6/cinelerra-4.6.mod/thirdparty/fftw-3.0.1/libbench2/problem.c"), 0));
  while (isdigit(*s)) {
    *n = *n * 10 + (*s - '0');
    ++s;
  }
  *n *= sign;
  return s;
}
```
user: Translate the below assembly code into C programming language:

```asm
<parseint>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  movl   $0x0,(%rsi)
  movzbl (%rdi),%eax
  cmp    $0x2d,%al
  je     L24
  mov    %rdi,%r12
  mov    $0x1,%ebp
  cmp    $0x2b,%al
  je     L27
L7:
  movsbl %al,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L48
  jmp    L3
  nopw   0x0(%rax,%rax,1)
L0:
  mov    (%rbx),%eax
  add    $0x1,%r12
  lea    (%rax,%rax,4),%edx
  movsbl -0x1(%r12),%eax
  lea    -0x30(%rax,%rdx,2),%eax
  mov    %eax,(%rbx)
L48:
  movsbl (%r12),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L0
  imul   (%rbx),%ebp
  mov    %r12,%rax
  mov    %ebp,(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L27:
  movzbl 0x1(%rdi),%eax
  add    $0x1,%r12
  movsbl %al,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L48
L3:
  lea    D11(%rip),%rdx
  mov    $0x62,%esi
  lea    D13(%rip),%rdi
  call   <bench_assertion_failed@plt>
  jmp    L48
  nopw   0x0(%rax,%rax,1)
L24:
  movzbl 0x1(%rdi),%eax
  lea    0x1(%rdi),%r12
  mov    $0xffffffff,%ebp
  jmp    L7
```

tool_calls: name: disassemble_data
arguments: data_tag: D11
type_guessed: string
name: disassemble_data
arguments: data_tag: D13
type_guessed: string

tool: D11: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/abrahamneben/orbcomm_beam_mapping/refs/heads/master/cinelerra-4.6/cinelerra-4.6.mod/thirdparty/fftw-3.0.1/libbench2/problem.c

tool: D13: isdigit(*s)

assistant: ```c
const char *parseint(const char *s, int *n) {
  int sign = 1;
  *n = 0;
  if (*s == '-') {
    sign = -1;
    ++s;
  } else if (*s == '+') {
    sign = +1;
    ++s;
  }
  (void)((isdigit(*s)) || (bench_assertion_failed("isdigit(*s)", 98, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/abrahamneben/orbcomm_beam_mapping/refs/heads/master/cinelerra-4.6/cinelerra-4.6.mod/thirdparty/fftw-3.0.1/libbench2/problem.c"), 0));
  while (isdigit(*s)) {
    *n = *n * 10 + (*s - '0');
    ++s;
  }
  *n *= sign;
  return s;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<parseint>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  movl   $0x0,(%rsi)
  movzbl (%rdi),%eax
  cmp    $0x2d,%al
  je     L30
  mov    %rdi,%r12
  mov    $0x1,%ebp
  cmp    $0x2b,%al
  je     L65
L10:
  movsbl %al,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L52
  jmp    L16
  nopw   0x0(%rax,%rax,1)
L55:
  mov    (%rbx),%eax
  add    $0x1,%r12
  lea    (%rax,%rax,4),%edx
  movsbl -0x1(%r12),%eax
  lea    -0x30(%rax,%rdx,2),%eax
  mov    %eax,(%rbx)
L52:
  movsbl (%r12),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L55
  imul   (%rbx),%ebp
  mov    %r12,%rax
  mov    %ebp,(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L65:
  movzbl 0x1(%rdi),%eax
  add    $0x1,%r12
  movsbl %al,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L52
L16:
  lea    D12(%rip),%rdx
  mov    $0x62,%esi
  lea    D10(%rip),%rdi
  call   <bench_assertion_failed@plt>
  jmp    L52
  nopw   0x0(%rax,%rax,1)
L30:
  movzbl 0x1(%rdi),%eax
  lea    0x1(%rdi),%r12
  mov    $0xffffffff,%ebp
  jmp    L10
```

tool_calls: name: parse_data
arguments: label: D12
type: string
name: parse_data
arguments: label: D10
type: string

tool: D12: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/abrahamneben/orbcomm_beam_mapping/refs/heads/master/cinelerra-4.6/cinelerra-4.6.mod/thirdparty/fftw-3.0.1/libbench2/problem.c

tool: D10: isdigit(*s)

assistant: ```c
const char *parseint(const char *s, int *n) {
  int sign = 1;
  *n = 0;
  if (*s == '-') {
    sign = -1;
    ++s;
  } else if (*s == '+') {
    sign = +1;
    ++s;
  }
  (void)((isdigit(*s)) || (bench_assertion_failed("isdigit(*s)", 98, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/abrahamneben/orbcomm_beam_mapping/refs/heads/master/cinelerra-4.6/cinelerra-4.6.mod/thirdparty/fftw-3.0.1/libbench2/problem.c"), 0));
  while (isdigit(*s)) {
    *n = *n * 10 + (*s - '0');
    ++s;
  }
  *n *= sign;
  return s;
}
```