ylfeng/ReF-Decompile-dataset huggingface dataset:
user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <EE_bluetooth_init@plt>
  xor    %eax,%eax
  call   <EE_bluetooth_inquiry@plt>
  test   %eax,%eax
  jne    L5
  lea    D5(%rip),%rdi
  call   <puts@plt>
  lea    D23(%rip),%rdi
  call   <EE_bluetooth_connect_dev@plt>
  xor    %eax,%eax
  call   <ee_elm327_init@plt>
  xor    %eax,%eax
  call   <ee_elm327_get_version@plt>
  lea    D1(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  nopl   0x0(%rax)
L14:
  xor    %eax,%eax
  call   <vehicleScan@plt>
  jmp    L14
L5:
  xor    %eax,%eax
  call   <EE_bluetooth_connect@plt>
  add    $0x1,%eax
  je     L11
  xor    %eax,%eax
  call   <ee_elm327_init@plt>
  xor    %eax,%eax
  call   <ee_elm327_get_version@plt>
  lea    D1(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  nopl   0x0(%rax)
L18:
  xor    %eax,%eax
  call   <vehicleScan@plt>
  jmp    L18
L11:
  lea    D33(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <EE_bluetooth_free@plt>
  lea    D7(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  pop    %rdx
  ret
```

tool_calls: name: parse_data
arguments: tag: D5
type: string
name: parse_data
arguments: tag: D23
type: string
name: parse_data
arguments: tag: D1
type: string
name: parse_data
arguments: tag: D33
type: string
name: parse_data
arguments: tag: D7
type: string

tool: D5: No device found

tool: D23: 00:0D:18:3A:73:9D

tool: D1: Elm327 Version: %s


tool: D33: Error during Bluetooth connection!

tool: D7: Bye!

assistant: ```c
int main(int argc, char **argv) {
  EE_bluetooth_init();
  if (!EE_bluetooth_inquiry()) {
    printf("No device found\n");
    EE_bluetooth_connect_dev("00:0D:18:3A:73:9D");
    ee_elm327_init();
    printf("Elm327 Version: %s\n", ee_elm327_get_version());
    for (;;) {
      vehicleScan();
    }
  } else {
    if (EE_bluetooth_connect() == -1) {
      printf("Error during Bluetooth connection!\n");
    } else {
      ee_elm327_init();
      printf("Elm327 Version: %s\n", ee_elm327_get_version());
      for (;;) {
        vehicleScan();
      }
    }
  }
  EE_bluetooth_free();
  printf("Bye!\n");
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<UPnPContentDirectory_GetSearchCapabilities>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x8(%rbp),%rax
  lea    D6(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <UPnPResponse_ContentDirectory_GetSearchCapabilities@plt>
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D10
type_infered: string
name: retrieve_data
arguments: label: D6
type_infered: string

tool: D10: Invoke: UPnPContentDirectory_GetSearchCapabilities();


tool: D6: Sample String

assistant: ```c
void UPnPContentDirectory_GetSearchCapabilities(void *upnptoken) {
  printf("Invoke: UPnPContentDirectory_GetSearchCapabilities();\r\n");
  UPnPResponse_ContentDirectory_GetSearchCapabilities(upnptoken, "Sample String");
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<UPnPContentDirectory_GetSearchCapabilities>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  lea    D17(%rip),%rdi
  call   <printf@plt>
  lea    D15(%rip),%rsi
  mov    %rbx,%rdi
  call   <UPnPResponse_ContentDirectory_GetSearchCapabilities@plt>
  pop    %rbx
  ret
```

tool_calls: name: disassemble_data
arguments: label: D17
data_type: string
name: disassemble_data
arguments: label: D15
data_type: string

tool: D17: Invoke: UPnPContentDirectory_GetSearchCapabilities();


tool: D15: Sample String

assistant: ```c
void UPnPContentDirectory_GetSearchCapabilities(void *upnptoken) {
  printf("Invoke: UPnPContentDirectory_GetSearchCapabilities();\r\n");
  UPnPResponse_ContentDirectory_GetSearchCapabilities(upnptoken, "Sample String");
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<UPnPContentDirectory_GetSearchCapabilities>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  lea    D13(%rip),%rdi
  call   <printf@plt>
  mov    %rbp,%rdi
  lea    D1(%rip),%rsi
  pop    %rbp
  jmp    1070 <UPnPResponse_ContentDirectory_GetSearchCapabilities@plt>
```

tool_calls: name: retrieve_data
arguments: label: D13
data_type: string
name: retrieve_data
arguments: label: D1
data_type: string

tool: D13: Invoke: UPnPContentDirectory_GetSearchCapabilities();


tool: D1: Sample String

assistant: ```c
void UPnPContentDirectory_GetSearchCapabilities(void *upnptoken) {
  printf("Invoke: UPnPContentDirectory_GetSearchCapabilities();\r\n");
  UPnPResponse_ContentDirectory_GetSearchCapabilities(upnptoken, "Sample String");
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<UPnPContentDirectory_GetSearchCapabilities>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  lea    D9(%rip),%rdi
  call   <printf@plt>
  mov    %rbp,%rdi
  lea    D19(%rip),%rsi
  pop    %rbp
  jmp    1070 <UPnPResponse_ContentDirectory_GetSearchCapabilities@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D9
datatype: string
name: parse_data
arguments: data_tag: D19
datatype: string

tool: D9: Invoke: UPnPContentDirectory_GetSearchCapabilities();


tool: D19: Sample String

assistant: ```c
void UPnPContentDirectory_GetSearchCapabilities(void *upnptoken) {
  printf("Invoke: UPnPContentDirectory_GetSearchCapabilities();\r\n");
  UPnPResponse_ContentDirectory_GetSearchCapabilities(upnptoken, "Sample String");
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<coeffs>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  movsd  %xmm0,-0x18(%rbp)
  movsd  %xmm1,-0x20(%rbp)
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  movsd  %xmm2,-0x38(%rbp)
  movsd  -0x18(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  -0x20(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x8(%rbp)
  movsd  -0x38(%rbp),%xmm0
  comisd -0x8(%rbp),%xmm0
  jbe    L15
  mov    -0x28(%rbp),%rax
  movsd  D4(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x30(%rbp),%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  jmp    L16
L15:
  movsd  -0x18(%rbp),%xmm0
  divsd  -0x8(%rbp),%xmm0
  mov    -0x28(%rbp),%rax
  movsd  %xmm0,(%rax)
  movsd  -0x20(%rbp),%xmm0
  divsd  -0x8(%rbp),%xmm0
  mov    -0x30(%rbp),%rax
  movsd  %xmm0,(%rax)
L16:
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D4
type_infered: f64

tool: D4: 1

assistant: ```c
void coeffs(x, y, c, s, accuracy) double x, y, *c, *s;
double accuracy;
{
  double root;
  root = sqrt(x * x + y * y);
  if (root < accuracy) {
    *c = 1.0;
    *s = 0.0;
  } else {
    *c = x / root;
    *s = y / root;
  }
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<coeffs>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  movsd  %xmm0,(%rsp)
  movsd  %xmm1,0x8(%rsp)
  mov    %rdi,%rbp
  mov    %rsi,%rbx
  movq   %xmm2,%r12
  movapd %xmm0,%xmm3
  mulsd  %xmm0,%xmm3
  movapd %xmm3,%xmm0
  movapd %xmm1,%xmm4
  mulsd  %xmm1,%xmm4
  addsd  %xmm4,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L35
  sqrtsd %xmm0,%xmm0
L3:
  movq   %r12,%xmm5
  comisd %xmm0,%xmm5
  ja     L22
  movsd  (%rsp),%xmm2
  divsd  %xmm0,%xmm2
  movsd  0x8(%rsp),%xmm1
  divsd  %xmm0,%xmm1
L9:
  movsd  %xmm2,0x0(%rbp)
  movsd  %xmm1,(%rbx)
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L35:
  call   <sqrt@plt>
  jmp    L3
L22:
  movsd  D5(%rip),%xmm2
  pxor   %xmm1,%xmm1
  jmp    L9
```

tool_calls: name: disassemble_data
arguments: data_tag: D5
type: f64

tool: D5: 1

assistant: ```c
void coeffs(x, y, c, s, accuracy) double x, y, *c, *s;
double accuracy;
{
  double root;
  root = sqrt(x * x + y * y);
  if (root < accuracy) {
    *c = 1.0;
    *s = 0.0;
  } else {
    *c = x / root;
    *s = y / root;
  }
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<coeffs>:
  endbr64
  movapd %xmm1,%xmm3
  movapd %xmm0,%xmm4
  pxor   %xmm5,%xmm5
  mulsd  %xmm0,%xmm0
  mulsd  %xmm1,%xmm3
  addsd  %xmm3,%xmm0
  ucomisd %xmm0,%xmm5
  ja     L22
  sqrtsd %xmm0,%xmm0
  comisd %xmm0,%xmm2
  ja     L26
  divsd  %xmm0,%xmm4
  movapd %xmm1,%xmm5
  divsd  %xmm0,%xmm5
  movsd  %xmm4,(%rdi)
  movsd  %xmm5,(%rsi)
  ret
  nopl   0x0(%rax)
L26:
  movsd  D10(%rip),%xmm4
  movsd  %xmm4,(%rdi)
  movsd  %xmm5,(%rsi)
  ret
L22:
  sub    $0x38,%rsp
  mov    %rsi,0x20(%rsp)
  mov    %rdi,0x18(%rsp)
  movsd  %xmm2,0x28(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm4,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x28(%rsp),%xmm2
  mov    0x20(%rsp),%rsi
  pxor   %xmm5,%xmm5
  mov    0x18(%rsp),%rdi
  movsd  0x10(%rsp),%xmm1
  comisd %xmm0,%xmm2
  movsd  0x8(%rsp),%xmm4
  ja     L36
  divsd  %xmm0,%xmm4
  movapd %xmm1,%xmm5
  divsd  %xmm0,%xmm5
L23:
  movsd  %xmm4,(%rdi)
  movsd  %xmm5,(%rsi)
  add    $0x38,%rsp
  ret
L36:
  movsd  D10(%rip),%xmm4
  jmp    L23
```

tool_calls: name: disassemble_data
arguments: data_tag: D10
type: f64

tool: D10: 1

assistant: ```c
void coeffs(x, y, c, s, accuracy) double x, y, *c, *s;
double accuracy;
{
  double root;
  root = sqrt(x * x + y * y);
  if (root < accuracy) {
    *c = 1.0;
    *s = 0.0;
  } else {
    *c = x / root;
    *s = y / root;
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<coeffs>:
  endbr64
  movapd %xmm1,%xmm3
  movapd %xmm0,%xmm4
  pxor   %xmm5,%xmm5
  mulsd  %xmm0,%xmm0
  mulsd  %xmm1,%xmm3
  addsd  %xmm3,%xmm0
  ucomisd %xmm0,%xmm5
  ja     L13
  sqrtsd %xmm0,%xmm0
  comisd %xmm0,%xmm2
  ja     L32
  divsd  %xmm0,%xmm4
  movapd %xmm1,%xmm5
  divsd  %xmm0,%xmm5
  movsd  %xmm4,(%rdi)
  movsd  %xmm5,(%rsi)
  ret
  nopl   0x0(%rax)
L32:
  movsd  D9(%rip),%xmm4
  movsd  %xmm4,(%rdi)
  movsd  %xmm5,(%rsi)
  ret
L13:
  sub    $0x38,%rsp
  mov    %rsi,0x20(%rsp)
  mov    %rdi,0x18(%rsp)
  movsd  %xmm2,0x28(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm4,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x28(%rsp),%xmm2
  mov    0x20(%rsp),%rsi
  pxor   %xmm5,%xmm5
  mov    0x18(%rsp),%rdi
  movsd  0x10(%rsp),%xmm1
  comisd %xmm0,%xmm2
  movsd  0x8(%rsp),%xmm4
  ja     L19
  divsd  %xmm0,%xmm4
  movapd %xmm1,%xmm5
  divsd  %xmm0,%xmm5
L35:
  movsd  %xmm4,(%rdi)
  movsd  %xmm5,(%rsi)
  add    $0x38,%rsp
  ret
L19:
  movsd  D9(%rip),%xmm4
  jmp    L35
```

tool_calls: name: parse_data
arguments: data_tag: D9
datatype: f64

tool: D9: 1

assistant: ```c
void coeffs(x, y, c, s, accuracy) double x, y, *c, *s;
double accuracy;
{
  double root;
  root = sqrt(x * x + y * y);
  if (root < accuracy) {
    *c = 1.0;
    *s = 0.0;
  } else {
    *c = x / root;
    *s = y / root;
  }
}
```
user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    -0x10(%rbp),%rdx
  mov    -0x4(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <parse_args1@plt>
  mov    -0x10(%rbp),%rdx
  mov    -0x4(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <parse_args2@plt>
  mov    $0x0,%eax
  call   <do_operations@plt>
  mov    $0x0,%eax
  call   <cleanup@plt>
  mov    $0x0,%eax
  leave
  ret
```

assistant: ```c
int main(int argc, const char *argv[]) {
  parse_args1(argc, argv);
  parse_args2(argc, argv);
  do_operations();
  cleanup();
  return 0;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %edi,%ebx
  mov    %rsi,%rbp
  call   <parse_args1@plt>
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <parse_args2@plt>
  mov    $0x0,%eax
  call   <do_operations@plt>
  mov    $0x0,%eax
  call   <cleanup@plt>
  mov    $0x0,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
int main(int argc, const char *argv[]) {
  parse_args1(argc, argv);
  parse_args2(argc, argv);
  do_operations();
  cleanup();
  return 0;
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<main>:
  endbr64
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %edi,%ebp
  sub    $0x8,%rsp
  call   <parse_args1@plt>
  mov    %r12,%rsi
  mov    %ebp,%edi
  call   <parse_args2@plt>
  xor    %eax,%eax
  call   <do_operations@plt>
  xor    %eax,%eax
  call   <cleanup@plt>
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
int main(int argc, const char *argv[]) {
  parse_args1(argc, argv);
  parse_args2(argc, argv);
  do_operations();
  cleanup();
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %edi,%ebp
  sub    $0x8,%rsp
  call   <parse_args1@plt>
  mov    %r12,%rsi
  mov    %ebp,%edi
  call   <parse_args2@plt>
  xor    %eax,%eax
  call   <do_operations@plt>
  xor    %eax,%eax
  call   <cleanup@plt>
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
int main(int argc, const char *argv[]) {
  parse_args1(argc, argv);
  parse_args2(argc, argv);
  do_operations();
  cleanup();
  return 0;
}
```
user: What is the c source code of the assembly code below?

```asm
<apply_filter_lo>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %edx,-0x1c(%rbp)
  mov    %rcx,-0x28(%rbp)
  mov    $0x40,%edi
  call   <_mm_set1_epi16@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <_mm_unpacklo_epi8@plt>
  mov    %eax,-0x8(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    -0x8(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <_mm_maddubs_epi16@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0xc(%rbp),%edx
  mov    -0x4(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <_mm_add_epi16@plt>
  mov    $0x7,%esi
  mov    %eax,%edi
  call   <_mm_srai_epi16@plt>
  mov    -0x28(%rbp),%rdx
  mov    %eax,(%rdx)
  nop
  leave
  ret
```

assistant: ```c
void apply_filter_lo(const __m128i v_a_lo_b, const __m128i v_b_lo_b, const __m128i v_filter_b, __m128i *v_res_w) {
  const __m128i v_rounding_w = _mm_set1_epi16(1 << (7 - 1));
  __m128i v_input_b = _mm_unpacklo_epi8(v_a_lo_b, v_b_lo_b);
  __m128i v_temp0_w = _mm_maddubs_epi16(v_input_b, v_filter_b);
  *v_res_w = _mm_srai_epi16(_mm_add_epi16(v_temp0_w, v_rounding_w), 7);
}
```
user: What is the c source code of the assembly code below?

```asm
<apply_filter_lo>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%r13d
  mov    %esi,%r14d
  mov    %edx,%r12d
  mov    %rcx,%rbx
  mov    $0x40,%edi
  call   <_mm_set1_epi16@plt>
  mov    %eax,%ebp
  mov    %r14d,%esi
  mov    %r13d,%edi
  call   <_mm_unpacklo_epi8@plt>
  mov    %eax,%edi
  mov    %r12d,%esi
  call   <_mm_maddubs_epi16@plt>
  mov    %eax,%edi
  mov    %ebp,%esi
  call   <_mm_add_epi16@plt>
  mov    %eax,%edi
  mov    $0x7,%esi
  call   <_mm_srai_epi16@plt>
  mov    %eax,(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
void apply_filter_lo(const __m128i v_a_lo_b, const __m128i v_b_lo_b, const __m128i v_filter_b, __m128i *v_res_w) {
  const __m128i v_rounding_w = _mm_set1_epi16(1 << (7 - 1));
  __m128i v_input_b = _mm_unpacklo_epi8(v_a_lo_b, v_b_lo_b);
  __m128i v_temp0_w = _mm_maddubs_epi16(v_input_b, v_filter_b);
  *v_res_w = _mm_srai_epi16(_mm_add_epi16(v_temp0_w, v_rounding_w), 7);
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<apply_filter_lo>:
  endbr64
  push   %r14
  mov    %esi,%r14d
  push   %r13
  mov    %edi,%r13d
  mov    $0x40,%edi
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  push   %rbx
  mov    %rcx,%rbx
  call   <_mm_set1_epi16@plt>
  mov    %r14d,%esi
  mov    %r13d,%edi
  mov    %eax,%ebp
  call   <_mm_unpacklo_epi8@plt>
  mov    %r12d,%esi
  mov    %eax,%edi
  call   <_mm_maddubs_epi16@plt>
  mov    %ebp,%esi
  mov    %eax,%edi
  call   <_mm_add_epi16@plt>
  mov    $0x7,%esi
  mov    %eax,%edi
  call   <_mm_srai_epi16@plt>
  mov    %eax,(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
void apply_filter_lo(const __m128i v_a_lo_b, const __m128i v_b_lo_b, const __m128i v_filter_b, __m128i *v_res_w) {
  const __m128i v_rounding_w = _mm_set1_epi16(1 << (7 - 1));
  __m128i v_input_b = _mm_unpacklo_epi8(v_a_lo_b, v_b_lo_b);
  __m128i v_temp0_w = _mm_maddubs_epi16(v_input_b, v_filter_b);
  *v_res_w = _mm_srai_epi16(_mm_add_epi16(v_temp0_w, v_rounding_w), 7);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<apply_filter_lo>:
  endbr64
  push   %r14
  mov    %esi,%r14d
  push   %r13
  mov    %edi,%r13d
  mov    $0x40,%edi
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  push   %rbx
  mov    %rcx,%rbx
  call   <_mm_set1_epi16@plt>
  mov    %r14d,%esi
  mov    %r13d,%edi
  mov    %eax,%ebp
  call   <_mm_unpacklo_epi8@plt>
  mov    %r12d,%esi
  mov    %eax,%edi
  call   <_mm_maddubs_epi16@plt>
  mov    %ebp,%esi
  mov    %eax,%edi
  call   <_mm_add_epi16@plt>
  mov    $0x7,%esi
  mov    %eax,%edi
  call   <_mm_srai_epi16@plt>
  mov    %eax,(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
void apply_filter_lo(const __m128i v_a_lo_b, const __m128i v_b_lo_b, const __m128i v_filter_b, __m128i *v_res_w) {
  const __m128i v_rounding_w = _mm_set1_epi16(1 << (7 - 1));
  __m128i v_input_b = _mm_unpacklo_epi8(v_a_lo_b, v_b_lo_b);
  __m128i v_temp0_w = _mm_maddubs_epi16(v_input_b, v_filter_b);
  *v_res_w = _mm_srai_epi16(_mm_add_epi16(v_temp0_w, v_rounding_w), 7);
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<getAssr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  movsd  %xmm0,-0x48(%rbp)
  movsd  %xmm1,-0x50(%rbp)
  mov    %edi,-0x54(%rbp)
  movsd  -0x48(%rbp),%xmm1
  movsd  D12(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0x54(%rbp),%xmm2
  movsd  %xmm2,-0x60(%rbp)
  movsd  -0x38(%rbp),%xmm0
  subsd  -0x50(%rbp),%xmm0
  movq   D26(%rip),%xmm1
  andpd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <tan@plt>
  addsd  -0x60(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  D10(%rip),%xmm0
  divsd  -0x30(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <atan@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rbx
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  %xmm0,-0x60(%rbp)
  mov    -0x50(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  -0x60(%rbp),%xmm1
  mulsd  %xmm0,%xmm1
  movq   %rbx,%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x60(%rbp)
  mov    -0x50(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  -0x60(%rbp),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  -0x20(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  D67(%rip),%xmm0
  comisd -0x18(%rbp),%xmm0
  ja     L6
  movsd  -0x18(%rbp),%xmm0
  movsd  D10(%rip),%xmm1
  comisd %xmm1,%xmm0
  jbe    L14
L6:
  movsd  D14(%rip),%xmm0
  jmp    L28
L14:
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  call   <acos@plt>
  movq   %xmm0,%rax
  movsd  D12(%rip),%xmm0
  movq   %rax,%xmm1
  divsd  %xmm0,%xmm1
  movsd  D15(%rip),%xmm0
  mulsd  %xmm1,%xmm0
L28:
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D12
datatype: byte[8]
name: retrieve_data
arguments: data_label: D26
datatype: qword
name: retrieve_data
arguments: data_label: D10
datatype: f64
name: retrieve_data
arguments: data_label: D67
datatype: byte[8]
name: retrieve_data
arguments: data_label: D14
datatype: byte[8]
name: retrieve_data
arguments: data_label: D15
datatype: byte[8]

tool: {"D12": [0x44,0x9d,0x52,0xa2,0x46,0xdf,0x91,0x3f]}

tool: D26: 9223372036854775807

tool: D10: 1

tool: {"D67": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

tool: {"D14": [0x00,0x00,0x00,0x00,0x00,0xc0,0x58,0x40]}

tool: {"D15": [0x11,0x11,0x11,0x11,0x11,0x11,0xb1,0x3f]}

assistant: ```c
double getAssr(double lat, double dec, int mathhab) {
  double part1, part2, part3, part4;
  double rlat = ((lat) * (3.1415926535898 / 180.0));
  part1 = mathhab + tan(fabs(rlat - dec));
  part2 = atan(1.0 / part1);
  part3 = sin(part2) - (sin(rlat) * sin(dec));
  part4 = (part3 / (cos(rlat) * cos(dec)));
  if (part4 < -1 || part4 > 1) {
    return 99;
  }
  return 1 / 15.0 * ((acos(part4)) / (3.1415926535898 / 180.0));
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<getAssr>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  movq   %xmm0,%r15
  movsd  %xmm1,0x8(%rsp)
  mov    %edi,%r12d
  lea    0x18(%rsp),%r13
  lea    0x10(%rsp),%r14
  mov    %r14,%rsi
  mov    %r13,%rdi
  movapd %xmm1,%xmm0
  call   <sincos@plt>
  mov    0x10(%rsp),%rbx
  mov    0x18(%rsp),%rbp
  movq   %r15,%xmm2
  mulsd  D18(%rip),%xmm2
  movq   %xmm2,%r15
  mov    %r14,%rsi
  mov    %r13,%rdi
  movapd %xmm2,%xmm0
  call   <sincos@plt>
  movq   %r15,%xmm0
  subsd  0x8(%rsp),%xmm0
  andpd  D69(%rip),%xmm0
  call   <tan@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %r12d,%xmm1
  addsd  %xmm0,%xmm1
  movsd  D0(%rip),%xmm0
  divsd  %xmm1,%xmm0
  call   <atan@plt>
  call   <sin@plt>
  movq   %rbp,%xmm1
  mulsd  0x18(%rsp),%xmm1
  subsd  %xmm1,%xmm0
  movq   %rbx,%xmm1
  mulsd  0x10(%rsp),%xmm1
  divsd  %xmm1,%xmm0
  movsd  D56(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L9
  movsd  D68(%rip),%xmm1
  comisd D0(%rip),%xmm0
  jbe    L1
L37:
  movapd %xmm1,%xmm0
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1:
  call   <acos@plt>
  movapd %xmm0,%xmm1
  divsd  D18(%rip),%xmm1
  mulsd  D14(%rip),%xmm1
  jmp    L37
L9:
  movsd  D68(%rip),%xmm1
  jmp    L37
```

tool_calls: name: disassemble_data
arguments: label: D18
type_infered: byte[8]
name: disassemble_data
arguments: label: D69
type_infered: qword[2]
name: disassemble_data
arguments: label: D0
type_infered: f64[2]
name: disassemble_data
arguments: label: D56
type_infered: byte[8]
name: disassemble_data
arguments: label: D68
type_infered: byte[8]
name: disassemble_data
arguments: label: D14
type_infered: byte[8]

tool: {"D18": [0x44,0x9d,0x52,0xa2,0x46,0xdf,0x91,0x3f]}

tool: {"D69": [0x7fffffffffffffff,0x0000000000000000]}

tool: {"D0": [1.0,-1.0]}

tool: {"D56": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

tool: {"D68": [0x00,0x00,0x00,0x00,0x00,0xc0,0x58,0x40]}

tool: {"D14": [0x11,0x11,0x11,0x11,0x11,0x11,0xb1,0x3f]}

assistant: ```c
double getAssr(double lat, double dec, int mathhab) {
  double part1, part2, part3, part4;
  double rlat = ((lat) * (3.1415926535898 / 180.0));
  part1 = mathhab + tan(fabs(rlat - dec));
  part2 = atan(1.0 / part1);
  part3 = sin(part2) - (sin(rlat) * sin(dec));
  part4 = (part3 / (cos(rlat) * cos(dec)));
  if (part4 < -1 || part4 > 1) {
    return 99;
  }
  return 1 / 15.0 * ((acos(part4)) / (3.1415926535898 / 180.0));
}
```