ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<random_app>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  movl   $0x0,-0xc(%rbp)
  jmp    L20
L19:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0xc(%rbp)
L20:
  cmpl   $0xf,-0xc(%rbp)
  jle    L19
  movl   $0xf,-0xc(%rbp)
  jmp    L4
L9:
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  idivl  -0xc(%rbp)
  mov    %edx,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x8(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    -0xc(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x8(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
  subl   $0x1,-0xc(%rbp)
L4:
  cmpl   $0x0,-0xc(%rbp)
  jg     L9
  nop
  nop
  leave
  ret
```

assistant: ```c
void random_app(unsigned int *sequence) {
  int i;
  srand((unsigned)time(NULL));
  for (i = 0; i < 16; i++) {
    sequence[i] = i;
  }
  for (i = 16 - 1; i >= 1; i--) {
    unsigned int temp;
    unsigned int ii = rand() % i;
    temp = sequence[i];
    sequence[i] = sequence[ii];
    sequence[ii] = temp;
  }
}
```
user: What is the c source code of the assembly code below:

```asm
<random_app>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  mov    $0x0,%eax
L7:
  mov    %eax,0x0(%rbp,%rax,4)
  add    $0x1,%rax
  cmp    $0x10,%rax
  jne    L7
  mov    $0xf,%ebx
L3:
  mov    $0x0,%eax
  call   <rand@plt>
  mov    0x0(%rbp,%rbx,4),%ecx
  cltd
  idiv   %ebx
  lea    0x0(%rbp,%rdx,4),%rax
  mov    (%rax),%edx
  mov    %edx,0x0(%rbp,%rbx,4)
  mov    %ecx,(%rax)
  sub    $0x1,%rbx
  jne    L3
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
void random_app(unsigned int *sequence) {
  int i;
  srand((unsigned)time(NULL));
  for (i = 0; i < 16; i++) {
    sequence[i] = i;
  }
  for (i = 16 - 1; i >= 1; i--) {
    unsigned int temp;
    unsigned int ii = rand() % i;
    temp = sequence[i];
    sequence[i] = sequence[ii];
    sequence[ii] = temp;
  }
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<random_app>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  xor    %edi,%edi
  push   %rbx
  sub    $0x8,%rsp
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  xor    %eax,%eax
  nopl   (%rax)
L14:
  mov    %eax,0x0(%rbp,%rax,4)
  add    $0x1,%rax
  cmp    $0x10,%rax
  jne    L14
  mov    $0xf,%ebx
  nopl   0x0(%rax,%rax,1)
L3:
  xor    %eax,%eax
  call   <rand@plt>
  mov    0x0(%rbp,%rbx,4),%ecx
  cltd
  idiv   %ebx
  lea    0x0(%rbp,%rdx,4),%rax
  mov    (%rax),%edx
  mov    %edx,0x0(%rbp,%rbx,4)
  mov    %ecx,(%rax)
  sub    $0x1,%rbx
  jne    L3
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
void random_app(unsigned int *sequence) {
  int i;
  srand((unsigned)time(NULL));
  for (i = 0; i < 16; i++) {
    sequence[i] = i;
  }
  for (i = 16 - 1; i >= 1; i--) {
    unsigned int temp;
    unsigned int ii = rand() % i;
    temp = sequence[i];
    sequence[i] = sequence[ii];
    sequence[ii] = temp;
  }
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<random_app>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  xor    %edi,%edi
  push   %rbx
  mov    $0xf,%ebx
  sub    $0x8,%rsp
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  movdqa D37(%rip),%xmm0
  movups %xmm0,0x0(%rbp)
  movdqa D11(%rip),%xmm0
  movups %xmm0,0x10(%rbp)
  movdqa D12(%rip),%xmm0
  movups %xmm0,0x20(%rbp)
  movdqa D1(%rip),%xmm0
  movups %xmm0,0x30(%rbp)
L3:
  xor    %eax,%eax
  call   <rand@plt>
  mov    0x0(%rbp,%rbx,4),%ecx
  cltd
  idiv   %ebx
  lea    0x0(%rbp,%rdx,4),%rax
  mov    (%rax),%edx
  mov    %edx,0x0(%rbp,%rbx,4)
  mov    %ecx,(%rax)
  sub    $0x1,%rbx
  jne    L3
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D37
data_type: byte[16]
name: unpack_data
arguments: data_label: D11
data_type: byte[16]
name: unpack_data
arguments: data_label: D12
data_type: byte[16]
name: unpack_data
arguments: data_label: D1
data_type: byte[16]

tool: {"D37": [0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

tool: {"D11": [0x04,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x07,0x00,0x00,0x00]}

tool: {"D12": [0x08,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x0b,0x00,0x00,0x00]}

tool: {"D1": [0x0c,0x00,0x00,0x00,0x0d,0x00,0x00,0x00,0x0e,0x00,0x00,0x00,0x0f,0x00,0x00,0x00]}

assistant: ```c
void random_app(unsigned int *sequence) {
  int i;
  srand((unsigned)time(NULL));
  for (i = 0; i < 16; i++) {
    sequence[i] = i;
  }
  for (i = 16 - 1; i >= 1; i--) {
    unsigned int temp;
    unsigned int ii = rand() % i;
    temp = sequence[i];
    sequence[i] = sequence[ii];
    sequence[ii] = temp;
  }
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<prussdrv_strversion>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x4(%rbp)
  cmpl   $0x1,-0x4(%rbp)
  je     L40
  cmpl   $0x2,-0x4(%rbp)
  je     L11
  jmp    L41
L40:
  lea    D26(%rip),%rax
  jmp    L3
L11:
  lea    D14(%rip),%rax
  jmp    L3
L41:
  lea    D29(%rip),%rax
L3:
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D26
type_infered: string
name: extract_symbolic_data
arguments: tag: D14
type_infered: string
name: extract_symbolic_data
arguments: tag: D29
type_infered: string

tool: D26: AM18XX

tool: D14: AM33XX

tool: D29: UNKNOWN

assistant: ```c
const char *prussdrv_strversion(int version) {
  switch (version) {
  case 1:
    return "AM18XX";
  case 2:
    return "AM33XX";
  default:
    return "UNKNOWN";
  }
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<prussdrv_strversion>:
  endbr64
  lea    D25(%rip),%rax
  cmp    $0x1,%edi
  je     L5
  cmp    $0x2,%edi
  lea    D29(%rip),%rax
  lea    D19(%rip),%rdx
  cmove  %rdx,%rax
L5:
  ret
```

tool_calls: name: parse_data
arguments: label: D25
datatype: string
name: parse_data
arguments: label: D29
datatype: string
name: parse_data
arguments: label: D19
datatype: string

tool: D25: AM18XX

tool: D29: UNKNOWN

tool: D19: AM33XX

assistant: ```c
const char *prussdrv_strversion(int version) {
  switch (version) {
  case 1:
    return "AM18XX";
  case 2:
    return "AM33XX";
  default:
    return "UNKNOWN";
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<prussdrv_strversion>:
  endbr64
  lea    D19(%rip),%rax
  cmp    $0x1,%edi
  je     L5
  cmp    $0x2,%edi
  lea    D8(%rip),%rax
  lea    D3(%rip),%rdx
  cmove  %rdx,%rax
L5:
  ret
```

tool_calls: name: disassemble_data
arguments: label: D19
type_guessed: string
name: disassemble_data
arguments: label: D8
type_guessed: string
name: disassemble_data
arguments: label: D3
type_guessed: string

tool: D19: AM18XX

tool: D8: UNKNOWN

tool: D3: AM33XX

assistant: ```c
const char *prussdrv_strversion(int version) {
  switch (version) {
  case 1:
    return "AM18XX";
  case 2:
    return "AM33XX";
  default:
    return "UNKNOWN";
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<prussdrv_strversion>:
  endbr64
  lea    D12(%rip),%rax
  cmp    $0x1,%edi
  je     L8
  cmp    $0x2,%edi
  lea    D10(%rip),%rax
  lea    D15(%rip),%rdx
  cmove  %rdx,%rax
L8:
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D12
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D10
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D15
type_guessed: string

tool: D12: AM18XX

tool: D10: UNKNOWN

tool: D15: AM33XX

assistant: ```c
const char *prussdrv_strversion(int version) {
  switch (version) {
  case 1:
    return "AM18XX";
  case 2:
    return "AM33XX";
  default:
    return "UNKNOWN";
  }
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<html_printGenericStyleSheet>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  lea    D63(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D69(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  lea    D66(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D19
datatype: string
name: parse_data
arguments: tag: D81
datatype: string
name: parse_data
arguments: tag: D63
datatype: string
name: parse_data
arguments: tag: D16
datatype: string
name: parse_data
arguments: tag: D29
datatype: string
name: parse_data
arguments: tag: D46
datatype: string
name: parse_data
arguments: tag: D58
datatype: string
name: parse_data
arguments: tag: D69
datatype: string
name: parse_data
arguments: tag: D66
datatype: string
name: parse_data
arguments: tag: D26
datatype: string

tool: D19: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

tool: D81: <style type="text/css" media="screen">

tool: D63: body {font:%dpx Verdana,Arial,Helvetica, sans-serif; color:#2F4F4F; margin:50px 50px 50px 50px;}


tool: D16: h1 {font-size:20px; font-weight:1200; color:#0E4C92;}

tool: D29: h2 {font-size:14px; font-weight:1000; color:#0E4C92;}

tool: D46: .note {font-style:italic}

tool: D58: a       {color:#0000CD; text-decoration:none;}

tool: D69: a:hover {color:#4B0082; text-decoration:none;}

tool: D66: table {border-collapse:collapse; font-size:%dpx;}


tool: D26: </style>

assistant: ```c
void html_printGenericStyleSheet(int bodyFontSize) {
  puts("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">");
  puts("<style type=\"text/css\" media=\"screen\">");
  printf("body {font:%dpx Verdana,Arial,Helvetica, sans-serif; color:#2F4F4F; margin:50px 50px 50px 50px;}\n", bodyFontSize);
  puts("h1 {font-size:20px; font-weight:1200; color:#0E4C92;}");
  puts("h2 {font-size:14px; font-weight:1000; color:#0E4C92;}");
  puts(".note {font-style:italic}");
  puts("a       {color:#0000CD; text-decoration:none;}");
  puts("a:hover {color:#4B0082; text-decoration:none;}");
  printf("table {border-collapse:collapse; font-size:%dpx;}\n", bodyFontSize);
  puts("</style>");
}
```
user: What is the c source code of the assembly code below:

```asm
<html_printGenericStyleSheet>:
  endbr64
  push   %rbx
  mov    %edi,%ebx
  lea    D0(%rip),%rdi
  call   <puts@plt>
  lea    D20(%rip),%rdi
  call   <puts@plt>
  mov    %ebx,%esi
  lea    D56(%rip),%rdi
  call   <printf@plt>
  lea    D47(%rip),%rdi
  call   <puts@plt>
  lea    D69(%rip),%rdi
  call   <puts@plt>
  lea    D76(%rip),%rdi
  call   <puts@plt>
  lea    D81(%rip),%rdi
  call   <puts@plt>
  lea    D10(%rip),%rdi
  call   <puts@plt>
  mov    %ebx,%esi
  lea    D58(%rip),%rdi
  call   <printf@plt>
  lea    D65(%rip),%rdi
  call   <puts@plt>
  pop    %rbx
  ret
```

tool_calls: name: parse_data
arguments: data_label: D0
data_type: string
name: parse_data
arguments: data_label: D20
data_type: string
name: parse_data
arguments: data_label: D56
data_type: string
name: parse_data
arguments: data_label: D47
data_type: string
name: parse_data
arguments: data_label: D69
data_type: string
name: parse_data
arguments: data_label: D76
data_type: string
name: parse_data
arguments: data_label: D81
data_type: string
name: parse_data
arguments: data_label: D10
data_type: string
name: parse_data
arguments: data_label: D58
data_type: string
name: parse_data
arguments: data_label: D65
data_type: string

tool: D0: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

tool: D20: <style type="text/css" media="screen">

tool: D56: body {font:%dpx Verdana,Arial,Helvetica, sans-serif; color:#2F4F4F; margin:50px 50px 50px 50px;}


tool: D47: h1 {font-size:20px; font-weight:1200; color:#0E4C92;}

tool: D69: h2 {font-size:14px; font-weight:1000; color:#0E4C92;}

tool: D76: .note {font-style:italic}

tool: D81: a       {color:#0000CD; text-decoration:none;}

tool: D10: a:hover {color:#4B0082; text-decoration:none;}

tool: D58: table {border-collapse:collapse; font-size:%dpx;}


tool: D65: </style>

assistant: ```c
void html_printGenericStyleSheet(int bodyFontSize) {
  puts("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">");
  puts("<style type=\"text/css\" media=\"screen\">");
  printf("body {font:%dpx Verdana,Arial,Helvetica, sans-serif; color:#2F4F4F; margin:50px 50px 50px 50px;}\n", bodyFontSize);
  puts("h1 {font-size:20px; font-weight:1200; color:#0E4C92;}");
  puts("h2 {font-size:14px; font-weight:1000; color:#0E4C92;}");
  puts(".note {font-style:italic}");
  puts("a       {color:#0000CD; text-decoration:none;}");
  puts("a:hover {color:#4B0082; text-decoration:none;}");
  printf("table {border-collapse:collapse; font-size:%dpx;}\n", bodyFontSize);
  puts("</style>");
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<html_printGenericStyleSheet>:
  endbr64
  push   %rbp
  mov    %edi,%ebp
  lea    D16(%rip),%rdi
  call   <puts@plt>
  lea    D51(%rip),%rdi
  call   <puts@plt>
  mov    %ebp,%esi
  lea    D62(%rip),%rdi
  call   <printf@plt>
  lea    D48(%rip),%rdi
  call   <puts@plt>
  lea    D96(%rip),%rdi
  call   <puts@plt>
  lea    D74(%rip),%rdi
  call   <puts@plt>
  lea    D76(%rip),%rdi
  call   <puts@plt>
  lea    D73(%rip),%rdi
  call   <puts@plt>
  mov    %ebp,%esi
  lea    D11(%rip),%rdi
  call   <printf@plt>
  lea    D22(%rip),%rdi
  pop    %rbp
  jmp    1060 <puts@plt>
```

tool_calls: name: unpack_data
arguments: tag: D16
datatype: string
name: unpack_data
arguments: tag: D51
datatype: string
name: unpack_data
arguments: tag: D62
datatype: string
name: unpack_data
arguments: tag: D48
datatype: string
name: unpack_data
arguments: tag: D96
datatype: string
name: unpack_data
arguments: tag: D74
datatype: string
name: unpack_data
arguments: tag: D76
datatype: string
name: unpack_data
arguments: tag: D73
datatype: string
name: unpack_data
arguments: tag: D11
datatype: string
name: unpack_data
arguments: tag: D22
datatype: string

tool: D16: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

tool: D51: <style type="text/css" media="screen">

tool: D62: body {font:%dpx Verdana,Arial,Helvetica, sans-serif; color:#2F4F4F; margin:50px 50px 50px 50px;}


tool: D48: h1 {font-size:20px; font-weight:1200; color:#0E4C92;}

tool: D96: h2 {font-size:14px; font-weight:1000; color:#0E4C92;}

tool: D74: .note {font-style:italic}

tool: D76: a       {color:#0000CD; text-decoration:none;}

tool: D73: a:hover {color:#4B0082; text-decoration:none;}

tool: D11: table {border-collapse:collapse; font-size:%dpx;}


tool: D22: </style>

assistant: ```c
void html_printGenericStyleSheet(int bodyFontSize) {
  puts("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">");
  puts("<style type=\"text/css\" media=\"screen\">");
  printf("body {font:%dpx Verdana,Arial,Helvetica, sans-serif; color:#2F4F4F; margin:50px 50px 50px 50px;}\n", bodyFontSize);
  puts("h1 {font-size:20px; font-weight:1200; color:#0E4C92;}");
  puts("h2 {font-size:14px; font-weight:1000; color:#0E4C92;}");
  puts(".note {font-style:italic}");
  puts("a       {color:#0000CD; text-decoration:none;}");
  puts("a:hover {color:#4B0082; text-decoration:none;}");
  printf("table {border-collapse:collapse; font-size:%dpx;}\n", bodyFontSize);
  puts("</style>");
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<html_printGenericStyleSheet>:
  endbr64
  push   %rbp
  mov    %edi,%ebp
  lea    D80(%rip),%rdi
  call   <puts@plt>
  lea    D61(%rip),%rdi
  call   <puts@plt>
  mov    %ebp,%esi
  lea    D82(%rip),%rdi
  call   <printf@plt>
  lea    D56(%rip),%rdi
  call   <puts@plt>
  lea    D93(%rip),%rdi
  call   <puts@plt>
  lea    D86(%rip),%rdi
  call   <puts@plt>
  lea    D0(%rip),%rdi
  call   <puts@plt>
  lea    D44(%rip),%rdi
  call   <puts@plt>
  mov    %ebp,%esi
  lea    D15(%rip),%rdi
  call   <printf@plt>
  lea    D94(%rip),%rdi
  pop    %rbp
  jmp    1060 <puts@plt>
```

tool_calls: name: read_data
arguments: label: D80
type: string
name: read_data
arguments: label: D61
type: string
name: read_data
arguments: label: D82
type: string
name: read_data
arguments: label: D56
type: string
name: read_data
arguments: label: D93
type: string
name: read_data
arguments: label: D86
type: string
name: read_data
arguments: label: D0
type: string
name: read_data
arguments: label: D44
type: string
name: read_data
arguments: label: D15
type: string
name: read_data
arguments: label: D94
type: string

tool: D80: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

tool: D61: <style type="text/css" media="screen">

tool: D82: body {font:%dpx Verdana,Arial,Helvetica, sans-serif; color:#2F4F4F; margin:50px 50px 50px 50px;}


tool: D56: h1 {font-size:20px; font-weight:1200; color:#0E4C92;}

tool: D93: h2 {font-size:14px; font-weight:1000; color:#0E4C92;}

tool: D86: .note {font-style:italic}

tool: D0: a       {color:#0000CD; text-decoration:none;}

tool: D44: a:hover {color:#4B0082; text-decoration:none;}

tool: D15: table {border-collapse:collapse; font-size:%dpx;}


tool: D94: </style>

assistant: ```c
void html_printGenericStyleSheet(int bodyFontSize) {
  puts("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">");
  puts("<style type=\"text/css\" media=\"screen\">");
  printf("body {font:%dpx Verdana,Arial,Helvetica, sans-serif; color:#2F4F4F; margin:50px 50px 50px 50px;}\n", bodyFontSize);
  puts("h1 {font-size:20px; font-weight:1200; color:#0E4C92;}");
  puts("h2 {font-size:14px; font-weight:1000; color:#0E4C92;}");
  puts(".note {font-style:italic}");
  puts("a       {color:#0000CD; text-decoration:none;}");
  puts("a:hover {color:#4B0082; text-decoration:none;}");
  printf("table {border-collapse:collapse; font-size:%dpx;}\n", bodyFontSize);
  puts("</style>");
}
```
user: What is the c source code of the assembly code below?

```asm
<CalcHistAt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  movss  %xmm0,-0x24(%rbp)
  mov    %edi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8d,-0x44(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x18(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L10
L18:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0xc(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x8(%rbp)
  movss  -0xc(%rbp),%xmm0
  subss  -0x24(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  neg    %eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  comiss -0x14(%rbp),%xmm0
  jbe    L12
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x28(%rbp),%xmm0
  movss  -0x14(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
L12:
  mov    -0x28(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  movss  -0x14(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L35
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x28(%rbp),%xmm1
  movss  -0x14(%rbp),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
L35:
  pxor   %xmm0,%xmm0
  cvtss2sd -0x10(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd -0x8(%rbp),%xmm2
  movsd  D7(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movss  -0x14(%rbp),%xmm0
  mulss  %xmm0,%xmm0
  movss  D9(%rip),%xmm1
  xorps  %xmm0,%xmm1
  movss  -0x8(%rbp),%xmm0
  addss  %xmm0,%xmm0
  mulss  -0x8(%rbp),%xmm0
  divss  %xmm0,%xmm1
  movd   %xmm1,%eax
  movd   %eax,%xmm0
  call   <expf@plt>
  cvtss2sd %xmm0,%xmm0
  mulsd  -0x50(%rbp),%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x4(%rbp)
  movss  -0x18(%rbp),%xmm0
  addss  -0x4(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  addl   $0x1,-0x1c(%rbp)
L10:
  mov    -0x1c(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L18
  movss  -0x18(%rbp),%xmm0
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D7
datatype: f64
name: retrieve_data
arguments: label: D9
datatype: byte[4]

tool: D7: 2.506628253

tool: {"D9": [0x00,0x00,0x00,0x80]}

assistant: ```c
float CalcHistAt(float pt, int bins, float *out_means, float *out_amps, float *out_sigmas, int cur_dists) {
  int i;
  float mark = 0.0;
  for (i = 0; i < cur_dists; i++) {
    float amp = out_amps[i];
    float mean = out_means[i];
    float var = out_sigmas[i];
    float x = mean - pt;
    if (x < -bins / 2)
      x += bins;
    if (x > bins / 2)
      x -= bins;
    float nrm = amp / (var * 2.506628253) * expf(-(x * x) / (2 * var * var));
    mark += nrm;
  }
  return mark;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<CalcHistAt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  movss  %xmm0,0x14(%rsp)
  test   %r8d,%r8d
  jle    L16
  mov    %edi,%r12d
  mov    %rsi,%r13
  mov    %rdx,%r14
  mov    %rcx,%r15
  mov    %edi,%eax
  shr    $0x1f,%eax
  add    %edi,%eax
  sar    %eax
  neg    %eax
  pxor   %xmm5,%xmm5
  cvtsi2ss %eax,%xmm5
  movss  %xmm5,0x18(%rsp)
  neg    %eax
  pxor   %xmm6,%xmm6
  cvtsi2ss %eax,%xmm6
  movss  %xmm6,0x1c(%rsp)
  mov    %r8d,%ebp
  mov    $0x0,%ebx
  pxor   %xmm7,%xmm7
  movss  %xmm7,0xc(%rsp)
  jmp    L1
L36:
  mulss  %xmm0,%xmm0
  xorps  D10(%rip),%xmm0
  movss  0x8(%rsp),%xmm3
  movaps %xmm3,%xmm1
  addss  %xmm3,%xmm1
  mulss  %xmm3,%xmm1
  divss  %xmm1,%xmm0
  call   <expf@plt>
  movaps %xmm0,%xmm2
  pxor   %xmm1,%xmm1
  cvtss2sd 0x10(%rsp),%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd 0x8(%rsp),%xmm0
  mulsd  D12(%rip),%xmm0
  divsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd %xmm2,%xmm0
  mulsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
  addss  0xc(%rsp),%xmm1
  movss  %xmm1,0xc(%rsp)
  add    $0x1,%rbx
  cmp    %rbp,%rbx
  je     L50
L1:
  movss  (%r14,%rbx,4),%xmm4
  movss  %xmm4,0x10(%rsp)
  movss  (%r15,%rbx,4),%xmm5
  movss  %xmm5,0x8(%rsp)
  movss  0x0(%r13,%rbx,4),%xmm0
  subss  0x14(%rsp),%xmm0
  movss  0x18(%rsp),%xmm7
  comiss %xmm0,%xmm7
  jbe    L6
  pxor   %xmm1,%xmm1
  cvtsi2ss %r12d,%xmm1
  addss  %xmm1,%xmm0
L6:
  comiss 0x1c(%rsp),%xmm0
  jbe    L36
  pxor   %xmm1,%xmm1
  cvtsi2ss %r12d,%xmm1
  subss  %xmm1,%xmm0
  jmp    L36
L16:
  pxor   %xmm5,%xmm5
  movss  %xmm5,0xc(%rsp)
L50:
  movss  0xc(%rsp),%xmm0
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D10
data_type: byte[16]
name: unpack_data
arguments: data_label: D12
data_type: f64

tool: {"D10": [0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: D12: 2.506628253

assistant: ```c
float CalcHistAt(float pt, int bins, float *out_means, float *out_amps, float *out_sigmas, int cur_dists) {
  int i;
  float mark = 0.0;
  for (i = 0; i < cur_dists; i++) {
    float amp = out_amps[i];
    float mean = out_means[i];
    float var = out_sigmas[i];
    float x = mean - pt;
    if (x < -bins / 2)
      x += bins;
    if (x > bins / 2)
      x -= bins;
    float nrm = amp / (var * 2.506628253) * expf(-(x * x) / (2 * var * var));
    mark += nrm;
  }
  return mark;
}
```