ylfeng/ReF-Decompile-dataset huggingface dataset:
user: Converte this assembly snippet into its equivalent C code:

```asm
<lagrange>:
  endbr64
  test   %edx,%edx
  jle    L39
  movslq %edx,%rcx
  pxor   %xmm5,%xmm5
  xor    %edx,%edx
  nopl   0x0(%rax)
L21:
  movsd  (%rsi,%rdx,8),%xmm4
  xor    %eax,%eax
  nop
L25:
  cmp    %edx,%eax
  je     L19
  movsd  (%rdi,%rax,8),%xmm3
  movsd  (%rdi,%rdx,8),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm3,%xmm1
  subsd  %xmm3,%xmm2
  divsd  %xmm2,%xmm1
  mulsd  %xmm1,%xmm4
L19:
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L25
  add    $0x1,%rdx
  addsd  %xmm4,%xmm5
  cmp    %rcx,%rdx
  jne    L21
  movapd %xmm5,%xmm0
  ret
L39:
  pxor   %xmm5,%xmm5
  movapd %xmm5,%xmm0
  ret
```

assistant: ```c
double lagrange(double *m, double *r, int n, double d) {
  int i, j;
  double sum = 0, prod;
  sum = 0;
  for (i = 0; i <= n - 1; i++) {
    prod = r[i];
    for (j = 0; j <= n - 1; j++) {
      if (i != j)
        prod = prod * ((d - m[j]) / (m[i] - m[j]));
    }
    sum = sum + prod;
  }
  return sum;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<typoLevelArg>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    $0x5df,%ecx
  lea    D21(%rip),%rdx
  lea    D60(%rip),%rsi
  mov    %rax,%rdi
  call   <new_str_cmp@plt>
  test   %eax,%eax
  jne    L8
  mov    $0x1,%eax
  jmp    L20
L8:
  mov    -0x8(%rbp),%rax
  mov    $0x5e1,%ecx
  lea    D21(%rip),%rdx
  lea    D68(%rip),%rsi
  mov    %rax,%rdi
  call   <new_str_cmp@plt>
  test   %eax,%eax
  jne    L38
  mov    $0x0,%eax
  jmp    L20
L38:
  mov    -0x8(%rbp),%rax
  mov    $0x5e3,%ecx
  lea    D21(%rip),%rdx
  lea    D71(%rip),%rsi
  mov    %rax,%rdi
  call   <new_str_cmp@plt>
  test   %eax,%eax
  jne    L21
  mov    $0x2,%eax
  jmp    L20
L21:
  mov    -0x8(%rbp),%rax
  mov    $0x5e5,%ecx
  lea    D21(%rip),%rdx
  lea    D53(%rip),%rsi
  mov    %rax,%rdi
  call   <new_str_cmp@plt>
  test   %eax,%eax
  jne    L41
  mov    $0x3,%eax
  jmp    L20
L41:
  mov    $0xffffffff,%eax
L20:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D21
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D60
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D68
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D71
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D53
type_guessed: string

tool: D21: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c

tool: D60: misspelled

tool: D68: nothing

tool: D71: misused

tool: D53: offensive

assistant: ```c
short typoLevelArg(char *arg) {
  if (!new_str_cmp((arg), ("misspelled"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1503))
    return 1;
  else if (!new_str_cmp((arg), ("nothing"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1505))
    return 0;
  else if (!new_str_cmp((arg), ("misused"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1507))
    return 2;
  else if (!new_str_cmp((arg), ("offensive"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1509))
    return 3;
  else
    return -1;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<typoLevelArg>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  mov    $0x5df,%ecx
  lea    D25(%rip),%rdx
  lea    D78(%rip),%rsi
  call   <new_str_cmp@plt>
  mov    %eax,%edx
  mov    $0x1,%eax
  test   %edx,%edx
  jne    L30
L32:
  pop    %rbx
  ret
L30:
  mov    $0x5e1,%ecx
  lea    D25(%rip),%rdx
  lea    D32(%rip),%rsi
  mov    %rbx,%rdi
  call   <new_str_cmp@plt>
  mov    %eax,%edx
  mov    $0x0,%eax
  test   %edx,%edx
  je     L32
  mov    $0x5e3,%ecx
  lea    D25(%rip),%rdx
  lea    D41(%rip),%rsi
  mov    %rbx,%rdi
  call   <new_str_cmp@plt>
  mov    %eax,%edx
  mov    $0x2,%eax
  test   %edx,%edx
  je     L32
  mov    $0x5e5,%ecx
  lea    D25(%rip),%rdx
  lea    D47(%rip),%rsi
  mov    %rbx,%rdi
  call   <new_str_cmp@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0x4,%eax
  sub    $0x1,%eax
  jmp    L32
```

tool_calls: name: parse_data
arguments: data_label: D25
data_type: string
name: parse_data
arguments: data_label: D78
data_type: string
name: parse_data
arguments: data_label: D32
data_type: string
name: parse_data
arguments: data_label: D41
data_type: string
name: parse_data
arguments: data_label: D47
data_type: string

tool: D25: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c

tool: D78: misspelled

tool: D32: nothing

tool: D41: misused

tool: D47: offensive

assistant: ```c
short typoLevelArg(char *arg) {
  if (!new_str_cmp((arg), ("misspelled"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1503))
    return 1;
  else if (!new_str_cmp((arg), ("nothing"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1505))
    return 0;
  else if (!new_str_cmp((arg), ("misused"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1507))
    return 2;
  else if (!new_str_cmp((arg), ("offensive"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1509))
    return 3;
  else
    return -1;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<typoLevelArg>:
  endbr64
  push   %r12
  lea    D34(%rip),%r12
  mov    $0x5df,%ecx
  lea    D42(%rip),%rsi
  push   %rbp
  mov    %r12,%rdx
  mov    %rdi,%rbp
  sub    $0x8,%rsp
  call   <new_str_cmp@plt>
  mov    %eax,%r8d
  mov    $0x1,%eax
  test   %r8d,%r8d
  jne    L20
L5:
  add    $0x8,%rsp
  pop    %rbp
  pop    %r12
  ret
  xchg   %ax,%ax
L20:
  mov    $0x5e1,%ecx
  mov    %r12,%rdx
  lea    D11(%rip),%rsi
  mov    %rbp,%rdi
  call   <new_str_cmp@plt>
  mov    %eax,%r8d
  xor    %eax,%eax
  test   %r8d,%r8d
  je     L5
  mov    $0x5e3,%ecx
  mov    %r12,%rdx
  lea    D10(%rip),%rsi
  mov    %rbp,%rdi
  call   <new_str_cmp@plt>
  mov    %eax,%r8d
  mov    $0x2,%eax
  test   %r8d,%r8d
  je     L5
  mov    %r12,%rdx
  mov    %rbp,%rdi
  mov    $0x5e5,%ecx
  lea    D19(%rip),%rsi
  call   <new_str_cmp@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  add    $0x8,%rsp
  and    $0x4,%eax
  pop    %rbp
  pop    %r12
  sub    $0x1,%eax
  ret
```

tool_calls: name: read_data
arguments: data_tag: D34
datatype: string
name: read_data
arguments: data_tag: D42
datatype: string
name: read_data
arguments: data_tag: D11
datatype: string
name: read_data
arguments: data_tag: D10
datatype: string
name: read_data
arguments: data_tag: D19
datatype: string

tool: D34: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c

tool: D42: misspelled

tool: D11: nothing

tool: D10: misused

tool: D19: offensive

assistant: ```c
short typoLevelArg(char *arg) {
  if (!new_str_cmp((arg), ("misspelled"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1503))
    return 1;
  else if (!new_str_cmp((arg), ("nothing"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1505))
    return 0;
  else if (!new_str_cmp((arg), ("misused"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1507))
    return 2;
  else if (!new_str_cmp((arg), ("offensive"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1509))
    return 3;
  else
    return -1;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<typoLevelArg>:
  endbr64
  push   %r12
  lea    D40(%rip),%r12
  mov    $0x5df,%ecx
  lea    D0(%rip),%rsi
  push   %rbp
  mov    %r12,%rdx
  mov    %rdi,%rbp
  sub    $0x8,%rsp
  call   <new_str_cmp@plt>
  mov    %eax,%r8d
  mov    $0x1,%eax
  test   %r8d,%r8d
  jne    L24
L21:
  add    $0x8,%rsp
  pop    %rbp
  pop    %r12
  ret
  xchg   %ax,%ax
L24:
  mov    $0x5e1,%ecx
  mov    %r12,%rdx
  lea    D28(%rip),%rsi
  mov    %rbp,%rdi
  call   <new_str_cmp@plt>
  mov    %eax,%r8d
  xor    %eax,%eax
  test   %r8d,%r8d
  je     L21
  mov    $0x5e3,%ecx
  mov    %r12,%rdx
  lea    D6(%rip),%rsi
  mov    %rbp,%rdi
  call   <new_str_cmp@plt>
  mov    %eax,%r8d
  mov    $0x2,%eax
  test   %r8d,%r8d
  je     L21
  mov    %r12,%rdx
  mov    %rbp,%rdi
  mov    $0x5e5,%ecx
  lea    D32(%rip),%rsi
  call   <new_str_cmp@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  add    $0x8,%rsp
  and    $0x4,%eax
  pop    %rbp
  pop    %r12
  sub    $0x1,%eax
  ret
```

tool_calls: name: read_data
arguments: data_tag: D40
type: string
name: read_data
arguments: data_tag: D0
type: string
name: read_data
arguments: data_tag: D28
type: string
name: read_data
arguments: data_tag: D6
type: string
name: read_data
arguments: data_tag: D32
type: string

tool: D40: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c

tool: D0: misspelled

tool: D28: nothing

tool: D6: misused

tool: D32: offensive

assistant: ```c
short typoLevelArg(char *arg) {
  if (!new_str_cmp((arg), ("misspelled"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1503))
    return 1;
  else if (!new_str_cmp((arg), ("nothing"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1505))
    return 0;
  else if (!new_str_cmp((arg), ("misused"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1507))
    return 2;
  else if (!new_str_cmp((arg), ("offensive"), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jpavonabian/6Dragones/refs/heads/master/src/buitdy.c", 1509))
    return 3;
  else
    return -1;
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<swaps32_cond>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  je     L8
  mov    -0x14(%rbp),%eax
  bswap  %eax
  mov    %eax,-0x4(%rbp)
L8:
  mov    -0x4(%rbp),%eax
  mov    %eax,%edi
  call   <foos32@plt>
  leave
  ret
```

assistant: ```c
int swaps32_cond(int x, int y) {
  int z = x;
  if (y)
    z = __builtin_bswap32(x);
  return foos32(z);
}
```
user: 这段汇编代码用C语言表示是什么样的:

```asm
<swaps32_cond>:
  endbr64
  sub    $0x8,%rsp
  mov    %edi,%eax
  bswap  %edi
  test   %esi,%esi
  cmove  %eax,%edi
  call   <foos32@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
int swaps32_cond(int x, int y) {
  int z = x;
  if (y)
    z = __builtin_bswap32(x);
  return foos32(z);
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<swaps32_cond>:
  endbr64
  mov    %edi,%r8d
  test   %esi,%esi
  bswap  %edi
  cmove  %r8d,%edi
  jmp    1050 <foos32@plt>
```

assistant: ```c
int swaps32_cond(int x, int y) {
  int z = x;
  if (y)
    z = __builtin_bswap32(x);
  return foos32(z);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<swaps32_cond>:
  endbr64
  mov    %edi,%r8d
  test   %esi,%esi
  bswap  %edi
  cmove  %r8d,%edi
  jmp    1050 <foos32@plt>
```

assistant: ```c
int swaps32_cond(int x, int y) {
  int z = x;
  if (y)
    z = __builtin_bswap32(x);
  return foos32(z);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<bar>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  lea    0x10(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x44(%rbp),%eax
  mov    %eax,-0x30(%rbp)
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x30(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x40(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L34:
  cmp    %rdx,%rsp
  je     L36
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L34
L36:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L23
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L23:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  lea    -0x30(%rbp),%rdx
  mov    %rdx,%r10
  mov    %rax,%rdi
  call   <foo.0>
  mov    %rbx,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L26
  call   <__stack_chk_fail@plt>
L26:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void bar(int N) {
  int a[N];
  void foo(int a[N]) {}
  foo(a);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<bar>:
  endbr64
  ret
```

assistant: ```c
void bar(int N) {
  int a[N];
  void foo(int a[N]) {}
  foo(a);
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<bar>:
  endbr64
  ret
```

assistant: ```c
void bar(int N) {
  int a[N];
  void foo(int a[N]) {}
  foo(a);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<bar>:
  endbr64
  ret
```

assistant: ```c
void bar(int N) {
  int a[N];
  void foo(int a[N]) {}
  foo(a);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0x0,%eax
  call   <call_ddv@plt>
  mov    $0x0,%eax
  pop    %rbp
  ret
```

assistant: ```c
int main(void) {
  {
    { call_ddv(); }
    return (0);
  }
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x0,%eax
  call   <call_ddv@plt>
  mov    $0x0,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int main(void) {
  {
    { call_ddv(); }
    return (0);
  }
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <call_ddv@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int main(void) {
  {
    { call_ddv(); }
    return (0);
  }
}
```
user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <call_ddv@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int main(void) {
  {
    { call_ddv(); }
    return (0);
  }
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<hexa_decimal>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x38(%rbp)
  movq   $0x0,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  sub    $0x1,%eax
  cltq
  mov    %rax,-0x18(%rbp)
  movq   $0x0,-0x20(%rbp)
  jmp    L9
L0:
  mov    -0x18(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x40,%al
  jle    L20
  mov    -0x18(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x46,%al
  jg     L20
  mov    -0x18(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x37,%eax
  movslq %eax,%rbx
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x10,%edi
  call   <pow@plt>
  imul   %rbx,%rax
  add    %rax,-0x28(%rbp)
  jmp    L31
L20:
  mov    -0x18(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  movslq %eax,%rbx
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x10,%edi
  call   <pow@plt>
  imul   %rbx,%rax
  add    %rax,-0x28(%rbp)
L31:
  addq   $0x1,-0x20(%rbp)
L9:
  mov    -0x20(%rbp),%rax
  cmp    -0x18(%rbp),%rax
  jle    L0
  mov    -0x28(%rbp),%rax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
long int hexa_decimal(char *hexa) {
  long int sum = 0, len, i;
  len = strlen(hexa) - 1;
  for (i = 0; i <= len; i++) {
    if (hexa[len - i] >= 'A' && hexa[len - i] <= 'F')
      sum = sum + (hexa[len - i] - 55) * (long)pow(16, i);
    else
      sum = sum + (hexa[len - i] - 48) * (long)pow(16, i);
  }
  return sum;
}
```
user: What is the c source code of the assembly code below:

```asm
<hexa_decimal>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r13
  call   <strlen@plt>
  mov    %eax,%ebp
  sub    $0x1,%ebp
  js     L42
  movslq %ebp,%rbp
  add    %r13,%rbp
  mov    $0x0,%r12d
  cltq
  lea    -0x1(%r13,%rax,1),%r14
  jmp    L44
L9:
  mov    $0x10,%edi
  call   <pow@plt>
  movsbl %bl,%ebx
  sub    $0x30,%ebx
  movslq %ebx,%rbx
  imul   %rax,%rbx
  add    %rbx,%r12
L18:
  lea    -0x1(%rbp),%rax
  cmp    %r13,%rbp
  je     L12
  mov    %rax,%rbp
L44:
  mov    %r14,%rsi
  sub    %rbp,%rsi
  movzbl 0x0(%rbp),%ebx
  lea    -0x41(%rbx),%eax
  cmp    $0x5,%al
  ja     L9
  mov    $0x10,%edi
  call   <pow@plt>
  movsbl %bl,%ebx
  sub    $0x37,%ebx
  movslq %ebx,%rbx
  imul   %rax,%rbx
  add    %rbx,%r12
  jmp    L18
L42:
  mov    $0x0,%r12d
L12:
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
long int hexa_decimal(char *hexa) {
  long int sum = 0, len, i;
  len = strlen(hexa) - 1;
  for (i = 0; i <= len; i++) {
    if (hexa[len - i] >= 'A' && hexa[len - i] <= 'F')
      sum = sum + (hexa[len - i] - 55) * (long)pow(16, i);
    else
      sum = sum + (hexa[len - i] - 48) * (long)pow(16, i);
  }
  return sum;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<hexa_decimal>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  call   <strlen@plt>
  mov    %eax,%r14d
  sub    $0x1,%r14d
  js     L41
  movslq %r14d,%r14
  cltq
  xor    %r12d,%r12d
  add    %rbp,%r14
  lea    -0x1(%rbp,%rax,1),%r13
  jmp    L3
  nop
L4:
  call   <pow@plt>
  sub    $0x37,%ebx
  movsbq %bl,%rbx
  imul   %rax,%rbx
  lea    -0x1(%r14),%rax
  add    %rbx,%r12
  cmp    %r14,%rbp
  je     L32
L10:
  mov    %rax,%r14
L3:
  movsbl (%r14),%ebx
  mov    %r13,%rsi
  mov    $0x10,%edi
  sub    %r14,%rsi
  lea    -0x41(%rbx),%eax
  cmp    $0x5,%al
  jbe    L4
  call   <pow@plt>
  sub    $0x30,%ebx
  movslq %ebx,%rbx
  imul   %rax,%rbx
  lea    -0x1(%r14),%rax
  add    %rbx,%r12
  cmp    %r14,%rbp
  jne    L10
L32:
  pop    %rbx
  mov    %r12,%rax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L41:
  xor    %r12d,%r12d
  pop    %rbx
  pop    %rbp
  mov    %r12,%rax
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
long int hexa_decimal(char *hexa) {
  long int sum = 0, len, i;
  len = strlen(hexa) - 1;
  for (i = 0; i <= len; i++) {
    if (hexa[len - i] >= 'A' && hexa[len - i] <= 'F')
      sum = sum + (hexa[len - i] - 55) * (long)pow(16, i);
    else
      sum = sum + (hexa[len - i] - 48) * (long)pow(16, i);
  }
  return sum;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<hexa_decimal>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  call   <strlen@plt>
  mov    %eax,%r14d
  sub    $0x1,%r14d
  js     L28
  movslq %r14d,%r14
  cltq
  xor    %r12d,%r12d
  add    %rbp,%r14
  lea    -0x1(%rbp,%rax,1),%r13
  jmp    L31
  nop
L35:
  call   <pow@plt>
  sub    $0x37,%ebx
  movsbq %bl,%rbx
  imul   %rax,%rbx
  lea    -0x1(%r14),%rax
  add    %rbx,%r12
  cmp    %r14,%rbp
  je     L45
L3:
  mov    %rax,%r14
L31:
  movsbl (%r14),%ebx
  mov    %r13,%rsi
  mov    $0x10,%edi
  sub    %r14,%rsi
  lea    -0x41(%rbx),%eax
  cmp    $0x5,%al
  jbe    L35
  call   <pow@plt>
  sub    $0x30,%ebx
  movslq %ebx,%rbx
  imul   %rax,%rbx
  lea    -0x1(%r14),%rax
  add    %rbx,%r12
  cmp    %r14,%rbp
  jne    L3
L45:
  pop    %rbx
  mov    %r12,%rax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L28:
  xor    %r12d,%r12d
  pop    %rbx
  pop    %rbp
  mov    %r12,%rax
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
long int hexa_decimal(char *hexa) {
  long int sum = 0, len, i;
  len = strlen(hexa) - 1;
  for (i = 0; i <= len; i++) {
    if (hexa[len - i] >= 'A' && hexa[len - i] <= 'F')
      sum = sum + (hexa[len - i] - 55) * (long)pow(16, i);
    else
      sum = sum + (hexa[len - i] - 48) * (long)pow(16, i);
  }
  return sum;
}
```