ylfeng/ReF-Decompile-dataset huggingface dataset:
user: What would the C source look like for the assembly code provided here?

```asm
<lubksb>:
  endbr64
  test   %esi,%esi
  jle    L32
  push   %rbx
  mov    %rdi,%r8
  mov    %rdx,%r11
  mov    %rcx,%rdx
  lea    0x1(%rsi),%ebx
  mov    $0x1,%ecx
  mov    $0x0,%r10d
  pxor   %xmm2,%xmm2
  movaps %xmm2,%xmm3
  jmp    L70
L64:
  cmp    %ecx,%r10d
  jge    L51
  mov    (%r8,%rcx,8),%r9
  movslq %r10d,%rax
L123:
  movss  (%r9,%rax,4),%xmm0
  mulss  (%rdx,%rax,4),%xmm0
  subss  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %eax,%edi
  jg     L123
  jmp    L51
L16:
  mov    %edi,%r10d
L51:
  movss  %xmm1,(%rdx,%rcx,4)
  add    $0x1,%rcx
  cmp    %rbx,%rcx
  je     L78
L70:
  mov    %ecx,%edi
  movslq (%r11,%rcx,4),%rax
  lea    (%rdx,%rax,4),%rax
  movss  (%rax),%xmm1
  movss  (%rdx,%rcx,4),%xmm0
  movss  %xmm0,(%rax)
  test   %r10d,%r10d
  jne    L64
  ucomiss %xmm2,%xmm1
  jp     L16
  ucomiss %xmm3,%xmm1
  je     L51
  jmp    L16
L78:
  movslq %esi,%rdi
  shl    $0x2,%rdi
  lea    0x1(%rsi),%r9d
L73:
  movss  (%rdx,%rdi,1),%xmm1
  cmp    %r9d,%esi
  jl     L85
  mov    (%r8,%rdi,2),%rcx
  movslq %r9d,%rax
L12:
  movss  (%rcx,%rax,4),%xmm0
  mulss  (%rdx,%rax,4),%xmm0
  subss  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %eax,%esi
  jge    L12
L85:
  mov    (%r8,%rdi,2),%rax
  divss  (%rax,%rdi,1),%xmm1
  movss  %xmm1,(%rdx,%rdi,1)
  sub    $0x4,%rdi
  sub    $0x1,%r9d
  cmp    $0x1,%r9d
  jne    L73
  pop    %rbx
  ret
L32:
  ret
```

assistant: ```c
void lubksb(a, n, indx, b) float **a, b[];
int n, *indx;
{
  int i, ii = 0, ip, j;
  float sum;
  for (i = 1; i <= n; i++) {
    ip = indx[i];
    sum = b[ip];
    b[ip] = b[i];
    if (ii)
      for (j = ii; j <= i - 1; j++)
        sum -= a[i][j] * b[j];
    else if (sum)
      ii = i;
    b[i] = sum;
  }
  for (i = n; i >= 1; i--) {
    sum = b[i];
    for (j = i + 1; j <= n; j++)
      sum -= a[i][j] * b[j];
    b[i] = sum / a[i][i];
  }
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<lubksb>:
  endbr64
  test   %esi,%esi
  jle    L47
  push   %rbp
  lea    0x1(%rsi),%ebp
  mov    %rdi,%r8
  xor    %r11d,%r11d
  push   %rbx
  mov    %rbp,%r9
  mov    %rdx,%rbx
  pxor   %xmm2,%xmm2
  mov    %rcx,%rdx
  mov    $0x1,%ecx
  jmp    L60
  nopl   0x0(%rax,%rax,1)
L29:
  ucomiss %xmm2,%xmm1
  jp     L52
  je     L34
L52:
  mov    %edi,%r11d
L34:
  movss  %xmm1,(%rdx,%rcx,4)
  add    $0x1,%rcx
  cmp    %rcx,%rbp
  je     L57
L60:
  movslq (%rbx,%rcx,4),%rax
  movss  (%rdx,%rcx,4),%xmm0
  mov    %ecx,%edi
  lea    (%rdx,%rax,4),%rax
  movss  (%rax),%xmm1
  movss  %xmm0,(%rax)
  test   %r11d,%r11d
  je     L29
  cmp    %ecx,%r11d
  jge    L34
  mov    (%r8,%rcx,8),%r10
  movslq %r11d,%rax
L41:
  movss  (%r10,%rax,4),%xmm0
  mulss  (%rdx,%rax,4),%xmm0
  add    $0x1,%rax
  subss  %xmm0,%xmm1
  cmp    %eax,%edi
  jg     L41
  movss  %xmm1,(%rdx,%rcx,4)
  add    $0x1,%rcx
  cmp    %rcx,%rbp
  jne    L60
L57:
  movslq %esi,%rdi
  shl    $0x2,%rdi
  nopl   0x0(%rax)
L92:
  movss  (%rdx,%rdi,1),%xmm1
  mov    (%r8,%rdi,2),%rcx
  movslq %r9d,%rax
  cmp    %r9d,%esi
  jl     L117
  nopl   0x0(%rax)
L35:
  movss  (%rcx,%rax,4),%xmm0
  mulss  (%rdx,%rax,4),%xmm0
  add    $0x1,%rax
  subss  %xmm0,%xmm1
  cmp    %eax,%esi
  jge    L35
L117:
  sub    $0x1,%r9d
  divss  (%rcx,%rdi,1),%xmm1
  movss  %xmm1,(%rdx,%rdi,1)
  sub    $0x4,%rdi
  cmp    $0x1,%r9d
  jne    L92
  pop    %rbx
  pop    %rbp
  ret
L47:
  ret
```

assistant: ```c
void lubksb(a, n, indx, b) float **a, b[];
int n, *indx;
{
  int i, ii = 0, ip, j;
  float sum;
  for (i = 1; i <= n; i++) {
    ip = indx[i];
    sum = b[ip];
    b[ip] = b[i];
    if (ii)
      for (j = ii; j <= i - 1; j++)
        sum -= a[i][j] * b[j];
    else if (sum)
      ii = i;
    b[i] = sum;
  }
  for (i = n; i >= 1; i--) {
    sum = b[i];
    for (j = i + 1; j <= n; j++)
      sum -= a[i][j] * b[j];
    b[i] = sum / a[i][i];
  }
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<clean_line>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jne    L38
  mov    $0x0,%eax
  jmp    L1
L38:
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L57
  subl   $0x1,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L57:
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xd,%al
  jne    L51
  subl   $0x1,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L51
L42:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  jne    L29
  mov    -0x18(%rbp),%rax
  movb   $0x20,(%rax)
L29:
  addq   $0x1,-0x18(%rbp)
L51:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L42
  mov    -0x4(%rbp),%eax
L1:
  leave
  ret
```

assistant: ```c
int clean_line(char *line) {
  int len = strlen(line);
  if (!len)
    return 0;
  if (line[len - 1] == '\n')
    line[--len] = '\0';
  if (line[len - 1] == '\r')
    line[--len] = '\0';
  for (; *line; line++)
    if (*line == '\t')
      *line = ' ';
  return len;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<clean_line>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  test   %eax,%eax
  je     L26
  movslq %eax,%rdx
  lea    -0x1(%rbx,%rdx,1),%rdx
  cmpb   $0xa,(%rdx)
  je     L71
L70:
  movslq %eax,%rdx
  lea    -0x1(%rbx,%rdx,1),%rdx
  cmpb   $0xd,(%rdx)
  je     L49
L60:
  movzbl (%rbx),%edx
  test   %dl,%dl
  jne    L12
L26:
  pop    %rbx
  ret
L71:
  sub    $0x1,%eax
  movb   $0x0,(%rdx)
  jmp    L70
L49:
  sub    $0x1,%eax
  movb   $0x0,(%rdx)
  jmp    L60
L76:
  add    $0x1,%rbx
  movzbl (%rbx),%edx
  test   %dl,%dl
  je     L26
L12:
  cmp    $0x9,%dl
  jne    L76
  movb   $0x20,(%rbx)
  jmp    L76
```

assistant: ```c
int clean_line(char *line) {
  int len = strlen(line);
  if (!len)
    return 0;
  if (line[len - 1] == '\n')
    line[--len] = '\0';
  if (line[len - 1] == '\r')
    line[--len] = '\0';
  for (; *line; line++)
    if (*line == '\t')
      *line = ' ';
  return len;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<clean_line>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  test   %eax,%eax
  je     L61
  movslq %eax,%rsi
  lea    -0x1(%rbx,%rsi,1),%rdx
  movzbl (%rdx),%ecx
  cmp    $0xa,%cl
  je     L55
  cmp    $0xd,%cl
  je     L10
L83:
  movzbl (%rbx),%edx
  test   %dl,%dl
  je     L61
  nopl   (%rax)
L34:
  cmp    $0x9,%dl
  jne    L36
  movb   $0x20,(%rbx)
L36:
  movzbl 0x1(%rbx),%edx
  add    $0x1,%rbx
  test   %dl,%dl
  jne    L34
L61:
  pop    %rbx
  ret
  cs nopw 0x0(%rax,%rax,1)
L10:
  movb   $0x0,(%rdx)
  sub    $0x1,%eax
  jmp    L83
  nopl   0x0(%rax,%rax,1)
L55:
  movb   $0x0,(%rdx)
  lea    -0x2(%rbx,%rsi,1),%rdx
  sub    $0x1,%eax
  movzbl (%rdx),%ecx
  cmp    $0xd,%cl
  jne    L83
  jmp    L10
```

assistant: ```c
int clean_line(char *line) {
  int len = strlen(line);
  if (!len)
    return 0;
  if (line[len - 1] == '\n')
    line[--len] = '\0';
  if (line[len - 1] == '\r')
    line[--len] = '\0';
  for (; *line; line++)
    if (*line == '\t')
      *line = ' ';
  return len;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<clean_line>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  test   %eax,%eax
  je     L10
  movslq %eax,%rsi
  lea    -0x1(%rbx,%rsi,1),%rdx
  movzbl (%rdx),%ecx
  cmp    $0xa,%cl
  je     L80
  cmp    $0xd,%cl
  je     L55
L14:
  movzbl (%rbx),%edx
  test   %dl,%dl
  je     L10
  nopl   (%rax)
L0:
  cmp    $0x9,%dl
  je     L96
  movzbl 0x1(%rbx),%edx
  add    $0x1,%rbx
  test   %dl,%dl
  jne    L0
L10:
  pop    %rbx
  ret
  nopl   0x0(%rax,%rax,1)
L96:
  movb   $0x20,(%rbx)
  movzbl 0x1(%rbx),%edx
  add    $0x1,%rbx
  test   %dl,%dl
  jne    L0
  pop    %rbx
  ret
  nopl   0x0(%rax)
L55:
  movb   $0x0,(%rdx)
  sub    $0x1,%eax
  jmp    L14
  nopl   0x0(%rax,%rax,1)
L80:
  movb   $0x0,(%rdx)
  lea    -0x2(%rbx,%rsi,1),%rdx
  sub    $0x1,%eax
  movzbl (%rdx),%ecx
  cmp    $0xd,%cl
  jne    L14
  jmp    L55
```

assistant: ```c
int clean_line(char *line) {
  int len = strlen(line);
  if (!len)
    return 0;
  if (line[len - 1] == '\n')
    line[--len] = '\0';
  if (line[len - 1] == '\r')
    line[--len] = '\0';
  for (; *line; line++)
    if (*line == '\t')
      *line = ' ';
  return len;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<roadmap_start_show_destination>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <roadmap_trip_set_focus@plt>
  mov    $0x0,%eax
  call   <roadmap_screen_refresh@plt>
  nop
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: data_tag: D0
type: string

tool: D0: Destination

assistant: ```c
void roadmap_start_show_destination(void) {
  roadmap_trip_set_focus("Destination");
  roadmap_screen_refresh();
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<roadmap_start_show_destination>:
  endbr64
  sub    $0x8,%rsp
  lea    D8(%rip),%rdi
  call   <roadmap_trip_set_focus@plt>
  mov    $0x0,%eax
  call   <roadmap_screen_refresh@plt>
  add    $0x8,%rsp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D8
data_type: string

tool: D8: Destination

assistant: ```c
void roadmap_start_show_destination(void) {
  roadmap_trip_set_focus("Destination");
  roadmap_screen_refresh();
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<roadmap_start_show_destination>:
  endbr64
  sub    $0x8,%rsp
  lea    D0(%rip),%rdi
  call   <roadmap_trip_set_focus@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    1070 <roadmap_screen_refresh@plt>
```

tool_calls: name: parse_data
arguments: label: D0
datatype: string

tool: D0: Destination

assistant: ```c
void roadmap_start_show_destination(void) {
  roadmap_trip_set_focus("Destination");
  roadmap_screen_refresh();
}
```
user: Translate the below assembly code into C programming language:

```asm
<roadmap_start_show_destination>:
  endbr64
  sub    $0x8,%rsp
  lea    D6(%rip),%rdi
  call   <roadmap_trip_set_focus@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  jmp    1070 <roadmap_screen_refresh@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D6
type_guessed: string

tool: D6: Destination

assistant: ```c
void roadmap_start_show_destination(void) {
  roadmap_trip_set_focus("Destination");
  roadmap_screen_refresh();
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0x0,%eax
  call   <convert@plt>
  cmp    $0xffffffff,%eax
  jne    L2
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L2:
  mov    $0x0,%eax
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: label: D5
type_guessed: string

tool: D5: fail to convert


assistant: ```c
int main(void) {
  if (convert() == -1)
    printf("fail to convert\n");
  return 0;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x0,%eax
  call   <convert@plt>
  cmp    $0xffffffff,%eax
  je     L16
L2:
  mov    $0x0,%eax
  add    $0x8,%rsp
  ret
L16:
  lea    D9(%rip),%rdi
  call   <printf@plt>
  jmp    L2
```

tool_calls: name: parse_data
arguments: data_label: D9
data_type: string

tool: D9: fail to convert


assistant: ```c
int main(void) {
  if (convert() == -1)
    printf("fail to convert\n");
  return 0;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <convert@plt>
  cmp    $0xffffffff,%eax
  je     L16
L1:
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
L16:
  lea    D2(%rip),%rdi
  call   <printf@plt>
  jmp    L1
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D2
type_guessed: string

tool: D2: fail to convert


assistant: ```c
int main(void) {
  if (convert() == -1)
    printf("fail to convert\n");
  return 0;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <convert@plt>
  cmp    $0xffffffff,%eax
  je     L13
L18:
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
L13:
  lea    D2(%rip),%rdi
  call   <printf@plt>
  jmp    L18
```

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

tool: D2: fail to convert


assistant: ```c
int main(void) {
  if (convert() == -1)
    printf("fail to convert\n");
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<iinchip_hw_init>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0x0,%eax
  call   <WIZ_HW_RESET@plt>
  nop
L8:
  mov    $0x2e,%edi
  call   <IINCHIP_READ@plt>
  and    $0x1,%eax
  test   %eax,%eax
  je     L8
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void iinchip_hw_init(void) {
  WIZ_HW_RESET();
  while (!(IINCHIP_READ(0x002e) & 0x01))
    ;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<iinchip_hw_init>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x0,%eax
  call   <WIZ_HW_RESET@plt>
L4:
  mov    $0x2e,%edi
  call   <IINCHIP_READ@plt>
  test   $0x1,%al
  je     L4
  add    $0x8,%rsp
  ret
```

assistant: ```c
void iinchip_hw_init(void) {
  WIZ_HW_RESET();
  while (!(IINCHIP_READ(0x002e) & 0x01))
    ;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<iinchip_hw_init>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <WIZ_HW_RESET@plt>
  nop
L5:
  mov    $0x2e,%edi
  call   <IINCHIP_READ@plt>
  test   $0x1,%al
  je     L5
  add    $0x8,%rsp
  ret
```

assistant: ```c
void iinchip_hw_init(void) {
  WIZ_HW_RESET();
  while (!(IINCHIP_READ(0x002e) & 0x01))
    ;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<iinchip_hw_init>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <WIZ_HW_RESET@plt>
  nop
L9:
  mov    $0x2e,%edi
  call   <IINCHIP_READ@plt>
  test   $0x1,%al
  je     L9
  add    $0x8,%rsp
  ret
```

assistant: ```c
void iinchip_hw_init(void) {
  WIZ_HW_RESET();
  while (!(IINCHIP_READ(0x002e) & 0x01))
    ;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<HPAtoINHG>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm1
  movsd  D2(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: tag: D2
type_infered: f64

tool: D2: 0.02953

assistant: ```c
double HPAtoINHG(double HPA) {
  double INHG = 0.0295300 * HPA;
  return INHG;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<HPAtoINHG>:
  endbr64
  mulsd  D0(%rip),%xmm0
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D0
type_guessed: f64

tool: D0: 0.02953

assistant: ```c
double HPAtoINHG(double HPA) {
  double INHG = 0.0295300 * HPA;
  return INHG;
}
```
user: Translate the below assembly code into C programming language:

```asm
<HPAtoINHG>:
  endbr64
  mulsd  D5(%rip),%xmm0
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D5
type_infered: f64

tool: D5: 0.02953

assistant: ```c
double HPAtoINHG(double HPA) {
  double INHG = 0.0295300 * HPA;
  return INHG;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<HPAtoINHG>:
  endbr64
  mulsd  D0(%rip),%xmm0
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D0
type: f64

tool: D0: 0.02953

assistant: ```c
double HPAtoINHG(double HPA) {
  double INHG = 0.0295300 * HPA;
  return INHG;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<l_coeffs2poly>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x10,%rsp
  mov    %rdi,%r12
  mov    %esi,%r14d
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  lea    0x1(%rsi),%ebx
  mov    %ebx,%eax
  imul   %ebx,%eax
  lea    0xf(,%rax,8),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L9:
  cmp    %rdx,%rsp
  je     L36
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L9
L36:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L64
  orq    $0x0,-0x8(%rsp,%rdx,1)
L64:
  mov    %rsp,%r13
  mov    %r14d,%esi
  mov    %r13,%rdi
  call   <l_coeff@plt>
  mov    %ebx,%eax
  lea    0xf(,%rax,8),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L4:
  cmp    %rdx,%rsp
  je     L20
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L4
L20:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L99
  orq    $0x0,-0x8(%rsp,%rdx,1)
L99:
  lea    0x7(%rsp),%rsi
  mov    %rsi,%rax
  shr    $0x3,%rax
  and    $0xfffffffffffffff8,%rsi
  movsd  (%r12),%xmm0
  movsd  %xmm0,0x0(,%rax,8)
  test   %r14d,%r14d
  je     L89
  mov    %ebx,%r8d
  mov    $0x10,%edx
  mov    $0x1,%edi
L82:
  mov    %r8d,%eax
  lea    0x0(%r13,%rax,8),%rcx
  test   %edi,%edi
  js     L49
  movsd  -0x8(%r12,%rdx,1),%xmm1
  mov    $0x0,%eax
L27:
  movapd %xmm1,%xmm0
  mulsd  (%rcx,%rax,1),%xmm0
  addsd  (%rsi,%rax,1),%xmm0
  movsd  %xmm0,(%rsi,%rax,1)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L27
  add    %rdx,%rcx
L49:
  movsd  (%rcx),%xmm0
  mulsd  -0x8(%r12,%rdx,1),%xmm0
  movsd  %xmm0,(%rcx)
  add    $0x1,%edi
  add    %ebx,%r8d
  add    $0x8,%rdx
  cmp    %ebx,%edi
  jne    L82
L89:
  lea    0x0(,%rbx,8),%edx
  mov    %r12,%rdi
  call   <memcpy@plt>
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L35
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
L35:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void l_coeffs2poly(double *coeffs, double CENTER, double WIDTH, unsigned int order) {
  double CC[(order + 1) * (order + 1)];
  l_coeff(CC, order, CENTER, WIDTH);
  double result[order + 1];
  result[0] = coeffs[0];
  for (int n = 1; n <= order; ++n) {
    double *r = CC + n * (order + 1);
    for (int i = 0; i <= n; ++i)
      result[i] += coeffs[n] * *r++;
    *r = coeffs[n] * *r;
  }
  memcpy(coeffs, result, (order + 1) * sizeof(double));
}
```
user: What is the c source code of the assembly code below:

```asm
<l_coeffs2poly>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  mov    %esi,%r14d
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbx
  lea    0x1(%rsi),%ebx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  mov    %ebx,%eax
  mov    %rsp,%rdx
  imul   %ebx,%eax
  lea    0xf(,%rax,8),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  sub    %rcx,%rdx
  cmp    %rdx,%rsp
  je     L98
L4:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdx,%rsp
  jne    L4
L98:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L9
L23:
  mov    %rsp,%r13
  mov    %r14d,%esi
  mov    %r13,%rdi
  call   <l_coeff@plt>
  mov    %ebx,%eax
  mov    %rsp,%rdx
  lea    0xf(,%rax,8),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  sub    %rcx,%rdx
  cmp    %rdx,%rsp
  je     L92
L36:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdx,%rsp
  jne    L36
L92:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L39
L117:
  lea    0x7(%rsp),%rsi
  movsd  (%r12),%xmm1
  mov    %rsi,%rax
  and    $0xfffffffffffffff8,%rsi
  shr    $0x3,%rax
  movsd  %xmm1,0x0(,%rax,8)
  test   %r14d,%r14d
  je     L89
  lea    -0x1(%r14),%eax
  mov    %ebx,%edi
  mov    $0x10,%edx
  lea    0x18(,%rax,8),%r8
  nopl   (%rax)
L122:
  mov    %edi,%eax
  movsd  -0x8(%r12,%rdx,1),%xmm2
  lea    0x0(%r13,%rax,8),%rcx
  xor    %eax,%eax
  jmp    L95
  nopw   0x0(%rax,%rax,1)
L53:
  movsd  (%rsi,%rax,1),%xmm1
L95:
  movsd  (%rcx,%rax,1),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rsi,%rax,1)
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L53
  add    %rdx,%rcx
  add    $0x8,%rdx
  add    %ebx,%edi
  mulsd  (%rcx),%xmm2
  movsd  %xmm2,(%rcx)
  cmp    %rdx,%r8
  je     L89
  movsd  (%rsi),%xmm1
  jmp    L122
L9:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L23
  nop
L89:
  lea    0x0(,%rbx,8),%edx
  mov    %r12,%rdi
  call   <memcpy@plt>
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L66
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
L39:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L117
L66:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void l_coeffs2poly(double *coeffs, double CENTER, double WIDTH, unsigned int order) {
  double CC[(order + 1) * (order + 1)];
  l_coeff(CC, order, CENTER, WIDTH);
  double result[order + 1];
  result[0] = coeffs[0];
  for (int n = 1; n <= order; ++n) {
    double *r = CC + n * (order + 1);
    for (int i = 0; i <= n; ++i)
      result[i] += coeffs[n] * *r++;
    *r = coeffs[n] * *r;
  }
  memcpy(coeffs, result, (order + 1) * sizeof(double));
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<l_coeffs2poly>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  mov    %esi,%r14d
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbx
  lea    0x1(%rsi),%ebx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  mov    %ebx,%eax
  mov    %rsp,%rdx
  imul   %ebx,%eax
  lea    0xf(,%rax,8),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  sub    %rcx,%rdx
  cmp    %rdx,%rsp
  je     L67
L123:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdx,%rsp
  jne    L123
L67:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L112
L73:
  mov    %rsp,%r13
  mov    %r14d,%esi
  mov    %r13,%rdi
  call   <l_coeff@plt>
  mov    %ebx,%eax
  mov    %rsp,%rdx
  lea    0xf(,%rax,8),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  sub    %rcx,%rdx
  cmp    %rdx,%rsp
  je     L122
L20:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdx,%rsp
  jne    L20
L122:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L86
L129:
  lea    0x7(%rsp),%rsi
  movsd  (%r12),%xmm0
  mov    %rsi,%rax
  and    $0xfffffffffffffff8,%rsi
  shr    $0x3,%rax
  movsd  %xmm0,0x0(,%rax,8)
  test   %r14d,%r14d
  je     L121
  lea    -0x1(%r14),%edi
  mov    %ebx,%ecx
  mov    $0x2,%edx
  add    $0x3,%rdi
  nopl   (%rax)
L66:
  movsd  -0x8(%r12,%rdx,8),%xmm1
  mov    %edx,%r9d
  mov    %ecx,%eax
  mov    %edx,%r10d
  shr    %r9d
  lea    0x0(%r13,%rax,8),%r8
  xor    %eax,%eax
  movapd %xmm1,%xmm2
  shl    $0x4,%r9
  unpcklpd %xmm2,%xmm2
  nopl   (%rax)
L13:
  movupd (%r8,%rax,1),%xmm0
  movupd (%rsi,%rax,1),%xmm3
  mulpd  %xmm2,%xmm0
  addpd  %xmm3,%xmm0
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%r9
  jne    L13
  mov    %r10d,%eax
  and    $0xfffffffe,%eax
  mov    %eax,%r9d
  lea    (%r8,%r9,8),%r9
  cmp    %r10d,%eax
  je     L92
  movsd  (%r9),%xmm0
  cltq
  mulsd  %xmm1,%xmm0
  addsd  (%rsi,%rax,8),%xmm0
  movsd  %xmm0,(%rsi,%rax,8)
L92:
  lea    (%r8,%rdx,8),%rax
  add    $0x1,%rdx
  add    %ebx,%ecx
  mulsd  (%rax),%xmm1
  movsd  %xmm1,(%rax)
  cmp    %rdx,%rdi
  jne    L66
L121:
  lea    0x0(,%rbx,8),%edx
  mov    %r12,%rdi
  call   <memcpy@plt>
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L63
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
L112:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L73
L86:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L129
L63:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void l_coeffs2poly(double *coeffs, double CENTER, double WIDTH, unsigned int order) {
  double CC[(order + 1) * (order + 1)];
  l_coeff(CC, order, CENTER, WIDTH);
  double result[order + 1];
  result[0] = coeffs[0];
  for (int n = 1; n <= order; ++n) {
    double *r = CC + n * (order + 1);
    for (int i = 0; i <= n; ++i)
      result[i] += coeffs[n] * *r++;
    *r = coeffs[n] * *r;
  }
  memcpy(coeffs, result, (order + 1) * sizeof(double));
}
```