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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D13(%rip),%rsi
  lea    D8(%rip),%rdi
  call   <fopen@plt>
  xor    %esi,%esi
  mov    %rax,%rbp
  mov    %rax,%rdi
  call   <output_default_array@plt>
  mov    $0xfe,%edx
  mov    %rbp,%rdi
  mov    $0x1,%esi
  call   <output_const_array@plt>
  mov    %rbp,%rdi
  mov    $0x2,%esi
  call   <output_default_array@plt>
  mov    %rbp,%rdi
  mov    $0x3,%esi
  call   <output_default_array@plt>
  mov    $0xfb,%edx
  mov    %rbp,%rdi
  mov    $0x4,%esi
  call   <output_oneval_array@plt>
  mov    %rbp,%rdi
  mov    $0x5,%esi
  call   <output_default_array@plt>
  mov    $0xfa,%edx
  mov    %rbp,%rdi
  mov    $0x6,%esi
  call   <output_oneval_array@plt>
  mov    %rbp,%rdi
  mov    $0x7,%esi
  call   <output_default_array@plt>
  mov    $0xfd,%edx
  mov    %rbp,%rdi
  mov    $0x8,%esi
  call   <output_const_array@plt>
  mov    %rbp,%rdi
  mov    $0x9,%esi
  call   <output_default_array@plt>
  mov    %rbp,%rdi
  mov    $0xa,%esi
  call   <output_default_array@plt>
  mov    $0xff,%edx
  mov    %rbp,%rdi
  mov    $0xb,%esi
  call   <output_const_array@plt>
  mov    %rbp,%rdi
  mov    $0xc,%esi
  call   <output_default_array@plt>
  mov    $0xfc,%edx
  mov    %rbp,%rdi
  mov    $0xd,%esi
  call   <output_oneval_array@plt>
  mov    %rbp,%rdi
  mov    $0xe,%esi
  call   <output_default_array@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  xor    %eax,%eax
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: label: D13
type: string
name: parse_data
arguments: label: D8
type: string

tool: D13: wt

tool: D8: earth.tab

assistant: ```c
int main() {
  FILE *file = fopen("earth.tab", "wt");
  output_default_array(file, 0);
  output_const_array(file, 1, 254);
  output_default_array(file, 2);
  output_default_array(file, 3);
  output_oneval_array(file, 4, 251);
  output_default_array(file, 5);
  output_oneval_array(file, 6, 250);
  output_default_array(file, 7);
  output_const_array(file, 8, 253);
  output_default_array(file, 9);
  output_default_array(file, 10);
  output_const_array(file, 11, 255);
  output_default_array(file, 12);
  output_oneval_array(file, 13, 252);
  output_default_array(file, 14);
  fclose(file);
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<init_array>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L36
L30:
  movl   $0x0,-0x4(%rbp)
  jmp    L2
L37:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x8(%rbp),%xmm1
  mov    -0x4(%rbp),%eax
  add    $0x2,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D15(%rip),%xmm0
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x14(%rbp),%xmm1
  mov    -0x8(%rbp),%eax
  cltq
  imul   $0x28a0,%rax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  divsd  %xmm1,%xmm0
  mov    -0x4(%rbp),%eax
  cltq
  movsd  %xmm0,(%rdx,%rax,8)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x8(%rbp),%xmm1
  mov    -0x4(%rbp),%eax
  add    $0x3,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D0(%rip),%xmm0
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x14(%rbp),%xmm1
  mov    -0x8(%rbp),%eax
  cltq
  imul   $0x28a0,%rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  divsd  %xmm1,%xmm0
  mov    -0x4(%rbp),%eax
  cltq
  movsd  %xmm0,(%rdx,%rax,8)
  addl   $0x1,-0x4(%rbp)
L2:
  mov    -0x4(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L37
  addl   $0x1,-0x8(%rbp)
L36:
  mov    -0x8(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L30
  nop
  nop
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: tag: D15
type_guessed: byte[8]
name: parse_data
arguments: tag: D0
type_guessed: byte[8]

tool: {"D15": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40]}

tool: {"D0": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

assistant: ```c
void init_array(int n, double A[1300 + 0][1300 + 0], double B[1300 + 0][1300 + 0]) {
  int i, j;
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++) {
      A[i][j] = ((double)i * (j + 2) + 2) / n;
      B[i][j] = ((double)i * (j + 3) + 3) / n;
    }
}
```
user: What is the c source code of the assembly code below?

```asm
<init_array>:
  endbr64
  mov    %edi,%r8d
  test   %edi,%edi
  jle    L6
  mov    %rsi,%r10
  mov    %rdx,%r9
  mov    $0x0,%edi
  mov    %r8d,%esi
  pxor   %xmm2,%xmm2
  cvtsi2sd %r8d,%xmm2
  movsd  D0(%rip),%xmm4
  movsd  D11(%rip),%xmm3
L22:
  mov    %r10,%rcx
  mov    %r9,%rdx
  mov    $0x0,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %edi,%xmm1
L3:
  lea    0x2(%rax),%r11d
  pxor   %xmm0,%xmm0
  cvtsi2sd %r11d,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm4,%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  lea    0x3(%rax),%r11d
  pxor   %xmm0,%xmm0
  cvtsi2sd %r11d,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm3,%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %rsi,%rax
  jne    L3
  add    $0x1,%edi
  add    $0x28a0,%r10
  add    $0x28a0,%r9
  cmp    %edi,%r8d
  jne    L22
L6:
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D0
type: byte[8]
name: retrieve_data
arguments: data_tag: D11
type: byte[8]

tool: {"D0": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40]}

tool: {"D11": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

assistant: ```c
void init_array(int n, double A[1300 + 0][1300 + 0], double B[1300 + 0][1300 + 0]) {
  int i, j;
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++) {
      A[i][j] = ((double)i * (j + 2) + 2) / n;
      B[i][j] = ((double)i * (j + 3) + 3) / n;
    }
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<init_array>:
  endbr64
  test   %edi,%edi
  jle    L11
  pxor   %xmm2,%xmm2
  mov    %rdx,%rcx
  xor    %r9d,%r9d
  movslq %edi,%r8
  cvtsi2sd %edi,%xmm2
  movsd  D6(%rip),%xmm4
  movsd  D17(%rip),%xmm3
  nopl   (%rax)
L25:
  pxor   %xmm1,%xmm1
  xor    %eax,%eax
  cvtsi2sd %r9d,%xmm1
  nopl   0x0(%rax,%rax,1)
L26:
  lea    0x2(%rax),%edx
  pxor   %xmm0,%xmm0
  cvtsi2sd %edx,%xmm0
  lea    0x3(%rax),%edx
  mulsd  %xmm1,%xmm0
  addsd  %xmm4,%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,(%rsi,%rax,8)
  pxor   %xmm0,%xmm0
  cvtsi2sd %edx,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm3,%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r8
  jne    L26
  add    $0x1,%r9d
  add    $0x28a0,%rsi
  add    $0x28a0,%rcx
  cmp    %r9d,%edi
  jne    L25
L11:
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D6
type: byte[8]
name: disassemble_data
arguments: tag: D17
type: byte[8]

tool: {"D6": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40]}

tool: {"D17": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

assistant: ```c
void init_array(int n, double A[1300 + 0][1300 + 0], double B[1300 + 0][1300 + 0]) {
  int i, j;
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++) {
      A[i][j] = ((double)i * (j + 2) + 2) / n;
      B[i][j] = ((double)i * (j + 3) + 3) / n;
    }
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<echo_client_usage>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  lea    D14(%rip),%rdx
  lea    D12(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <fflush@plt>
  nop
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D14
datatype: string
name: disassemble_data
arguments: data_tag: D12
datatype: string

tool: D14: Usage:                                                 
  echo-client [options] [text] ...                    

Options:                                                
  -a | --address    echo server address/hostname        
  -p | --port       echo server port/service            
  -d | --debug      run the program in debug mode      
  -v | --version    show the program version and exit   
  -h | --help       show this help and exit           

Examples:                                               
  echo-client "this text" and this other text!        
  echo-client -d -a localhost -p 7777 "this text"   



tool: D12: %s

assistant: ```c
void echo_client_usage(FILE *out) {
  static const char usage_str[] = ("Usage:                                                 \n"
                                   "  echo-client [options] [text] ...                    \n\n"
                                   "Options:                                                \n"
                                   "  -a | --address    echo server address/hostname        \n"
                                   "  -p | --port       echo server port/service            \n"
                                   "  -d | --debug      run the program in debug mode      \n"
                                   "  -v | --version    show the program version and exit   \n"
                                   "  -h | --help       show this help and exit           \n\n"
                                   "Examples:                                               \n"
                                   "  echo-client \"this text\" and this other text!        \n"
                                   "  echo-client -d -a localhost -p 7777 \"this text\"   \n\n");
  fprintf(out, "%s", usage_str);
  fflush(out);
  return;
}
```
user: Translate the below assembly code into C programming language:

```asm
<echo_client_usage>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  lea    D5(%rip),%rdx
  lea    D16(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbx,%rdi
  call   <fflush@plt>
  pop    %rbx
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D5
data_type: string
name: disassemble_data
arguments: data_label: D16
data_type: string

tool: D5: Usage:                                                 
  echo-client [options] [text] ...                    

Options:                                                
  -a | --address    echo server address/hostname        
  -p | --port       echo server port/service            
  -d | --debug      run the program in debug mode      
  -v | --version    show the program version and exit   
  -h | --help       show this help and exit           

Examples:                                               
  echo-client "this text" and this other text!        
  echo-client -d -a localhost -p 7777 "this text"   



tool: D16: %s

assistant: ```c
void echo_client_usage(FILE *out) {
  static const char usage_str[] = ("Usage:                                                 \n"
                                   "  echo-client [options] [text] ...                    \n\n"
                                   "Options:                                                \n"
                                   "  -a | --address    echo server address/hostname        \n"
                                   "  -p | --port       echo server port/service            \n"
                                   "  -d | --debug      run the program in debug mode      \n"
                                   "  -v | --version    show the program version and exit   \n"
                                   "  -h | --help       show this help and exit           \n\n"
                                   "Examples:                                               \n"
                                   "  echo-client \"this text\" and this other text!        \n"
                                   "  echo-client -d -a localhost -p 7777 \"this text\"   \n\n");
  fprintf(out, "%s", usage_str);
  fflush(out);
  return;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<echo_client_usage>:
  endbr64
  push   %rbp
  lea    D18(%rip),%rdx
  mov    %rdi,%rbp
  lea    D13(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  pop    %rbp
  jmp    1070 <fflush@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D18
type_guessed: string
name: parse_data
arguments: data_tag: D13
type_guessed: string

tool: D18: Usage:                                                 
  echo-client [options] [text] ...                    

Options:                                                
  -a | --address    echo server address/hostname        
  -p | --port       echo server port/service            
  -d | --debug      run the program in debug mode      
  -v | --version    show the program version and exit   
  -h | --help       show this help and exit           

Examples:                                               
  echo-client "this text" and this other text!        
  echo-client -d -a localhost -p 7777 "this text"   



tool: D13: %s

assistant: ```c
void echo_client_usage(FILE *out) {
  static const char usage_str[] = ("Usage:                                                 \n"
                                   "  echo-client [options] [text] ...                    \n\n"
                                   "Options:                                                \n"
                                   "  -a | --address    echo server address/hostname        \n"
                                   "  -p | --port       echo server port/service            \n"
                                   "  -d | --debug      run the program in debug mode      \n"
                                   "  -v | --version    show the program version and exit   \n"
                                   "  -h | --help       show this help and exit           \n\n"
                                   "Examples:                                               \n"
                                   "  echo-client \"this text\" and this other text!        \n"
                                   "  echo-client -d -a localhost -p 7777 \"this text\"   \n\n");
  fprintf(out, "%s", usage_str);
  fflush(out);
  return;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<echo_client_usage>:
  endbr64
  push   %rbp
  lea    D9(%rip),%rdx
  mov    %rdi,%rbp
  lea    D0(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  pop    %rbp
  jmp    1070 <fflush@plt>
```

tool_calls: name: parse_data
arguments: tag: D9
type_infered: string
name: parse_data
arguments: tag: D0
type_infered: string

tool: D9: Usage:                                                 
  echo-client [options] [text] ...                    

Options:                                                
  -a | --address    echo server address/hostname        
  -p | --port       echo server port/service            
  -d | --debug      run the program in debug mode      
  -v | --version    show the program version and exit   
  -h | --help       show this help and exit           

Examples:                                               
  echo-client "this text" and this other text!        
  echo-client -d -a localhost -p 7777 "this text"   



tool: D0: %s

assistant: ```c
void echo_client_usage(FILE *out) {
  static const char usage_str[] = ("Usage:                                                 \n"
                                   "  echo-client [options] [text] ...                    \n\n"
                                   "Options:                                                \n"
                                   "  -a | --address    echo server address/hostname        \n"
                                   "  -p | --port       echo server port/service            \n"
                                   "  -d | --debug      run the program in debug mode      \n"
                                   "  -v | --version    show the program version and exit   \n"
                                   "  -h | --help       show this help and exit           \n\n"
                                   "Examples:                                               \n"
                                   "  echo-client \"this text\" and this other text!        \n"
                                   "  echo-client -d -a localhost -p 7777 \"this text\"   \n\n");
  fprintf(out, "%s", usage_str);
  fflush(out);
  return;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<zylons>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  movq   $0xd00003,-0x8(%rbp)
  movb   $0xfe,-0x9(%rbp)
L0:
  mov    -0x8(%rbp),%rax
  movzbl -0x9(%rbp),%edx
  mov    %dl,(%rax)
  movzbl -0x9(%rbp),%eax
  shr    %al
  mov    %eax,%edx
  movzbl -0x9(%rbp),%eax
  shl    $0x7,%eax
  or     %edx,%eax
  mov    %al,-0x9(%rbp)
  mov    $0x1f40,%edi
  call   <rtems_bsp_delay@plt>
  jmp    L0
```

assistant: ```c
void zylons() {
  unsigned char *leds = (unsigned char *)0xd00003;
  unsigned char curled = 0xfe;
  while (1) {
    *leds = curled;
    curled = (curled >> 1) | (curled << 7);
    rtems_bsp_delay(8000);
  }
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<zylons>:
  endbr64
  push   %rbx
  mov    $0xfffffffe,%ebx
L9:
  mov    %bl,0xd00003
  ror    %bl
  mov    $0x1f40,%edi
  call   <rtems_bsp_delay@plt>
  jmp    L9
```

assistant: ```c
void zylons() {
  unsigned char *leds = (unsigned char *)0xd00003;
  unsigned char curled = 0xfe;
  while (1) {
    *leds = curled;
    curled = (curled >> 1) | (curled << 7);
    rtems_bsp_delay(8000);
  }
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<zylons>:
  endbr64
  push   %rbx
  mov    $0xfffffffe,%ebx
  nopw   0x0(%rax,%rax,1)
L3:
  mov    %bl,0xd00003
  mov    $0x1f40,%edi
  ror    %bl
  call   <rtems_bsp_delay@plt>
  jmp    L3
```

assistant: ```c
void zylons() {
  unsigned char *leds = (unsigned char *)0xd00003;
  unsigned char curled = 0xfe;
  while (1) {
    *leds = curled;
    curled = (curled >> 1) | (curled << 7);
    rtems_bsp_delay(8000);
  }
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<zylons>:
  endbr64
  push   %rbx
  mov    $0xfffffffe,%ebx
  nopw   0x0(%rax,%rax,1)
L7:
  mov    %bl,0xd00003
  mov    $0x1f40,%edi
  ror    %bl
  call   <rtems_bsp_delay@plt>
  jmp    L7
```

assistant: ```c
void zylons() {
  unsigned char *leds = (unsigned char *)0xd00003;
  unsigned char curled = 0xfe;
  while (1) {
    *leds = curled;
    curled = (curled >> 1) | (curled << 7);
    rtems_bsp_delay(8000);
  }
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<corrected_mean_ecliptic_obliquity>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm1
  movsd  D7(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D6(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <radians@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  D3(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  call   <mean_ecliptic_obliquity@plt>
  mov    %eax,%edi
  call   <degrees@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm2
  addsd  -0x8(%rbp),%xmm2
  movq   %xmm2,%rax
  movq   %rax,%xmm0
  call   <radians@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D7
type: byte[8]
name: unpack_data
arguments: data_tag: D6
type: f64
name: unpack_data
arguments: data_tag: D3
type: f64

tool: {"D7": [0x06,0x81,0x95,0x43,0x8b,0x38,0x9e,0xc0]}

tool: D6: 125.04

tool: D3: 0.00256

assistant: ```c
double corrected_mean_ecliptic_obliquity(double tm) {
  double rc = 0.00256 * cos(radians(-1934.136 * tm + 125.04));
  return radians(rc + degrees(mean_ecliptic_obliquity(tm)));
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<corrected_mean_ecliptic_obliquity>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  movq   %xmm0,%rbp
  mulsd  D10(%rip),%xmm0
  addsd  D12(%rip),%xmm0
  call   <radians@plt>
  call   <cos@plt>
  movq   %xmm0,%rbx
  movq   %rbp,%xmm0
  call   <mean_ecliptic_obliquity@plt>
  mov    %eax,%edi
  call   <degrees@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  mulsd  D3(%rip),%xmm0
  addsd  %xmm1,%xmm0
  call   <radians@plt>
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: label: D10
type_infered: byte[8]
name: retrieve_data
arguments: label: D12
type_infered: f64
name: retrieve_data
arguments: label: D3
type_infered: f64

tool: {"D10": [0x06,0x81,0x95,0x43,0x8b,0x38,0x9e,0xc0]}

tool: D12: 125.04

tool: D3: 0.00256

assistant: ```c
double corrected_mean_ecliptic_obliquity(double tm) {
  double rc = 0.00256 * cos(radians(-1934.136 * tm + 125.04));
  return radians(rc + degrees(mean_ecliptic_obliquity(tm)));
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<corrected_mean_ecliptic_obliquity>:
  endbr64
  sub    $0x18,%rsp
  movsd  %xmm0,0x8(%rsp)
  mulsd  D24(%rip),%xmm0
  addsd  D27(%rip),%xmm0
  call   <radians@plt>
  call   <cos@plt>
  movsd  0x8(%rsp),%xmm2
  movsd  %xmm0,(%rsp)
  movapd %xmm2,%xmm0
  call   <mean_ecliptic_obliquity@plt>
  mov    %eax,%edi
  call   <degrees@plt>
  movsd  (%rsp),%xmm1
  mulsd  D17(%rip),%xmm1
  add    $0x18,%rsp
  movapd %xmm0,%xmm2
  movapd %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  jmp    10a0 <radians@plt>
```

tool_calls: name: read_data
arguments: tag: D24
data_type: byte[8]
name: read_data
arguments: tag: D27
data_type: f64
name: read_data
arguments: tag: D17
data_type: f64

tool: {"D24": [0x06,0x81,0x95,0x43,0x8b,0x38,0x9e,0xc0]}

tool: D27: 125.04

tool: D17: 0.00256

assistant: ```c
double corrected_mean_ecliptic_obliquity(double tm) {
  double rc = 0.00256 * cos(radians(-1934.136 * tm + 125.04));
  return radians(rc + degrees(mean_ecliptic_obliquity(tm)));
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<corrected_mean_ecliptic_obliquity>:
  endbr64
  sub    $0x18,%rsp
  movsd  %xmm0,0x8(%rsp)
  mulsd  D24(%rip),%xmm0
  addsd  D12(%rip),%xmm0
  call   <radians@plt>
  call   <cos@plt>
  movsd  0x8(%rsp),%xmm2
  movsd  %xmm0,(%rsp)
  movapd %xmm2,%xmm0
  call   <mean_ecliptic_obliquity@plt>
  mov    %eax,%edi
  call   <degrees@plt>
  movsd  (%rsp),%xmm1
  mulsd  D0(%rip),%xmm1
  add    $0x18,%rsp
  movapd %xmm0,%xmm2
  movapd %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  jmp    10a0 <radians@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D24
type_guessed: byte[8]
name: disassemble_data
arguments: tag: D12
type_guessed: f64
name: disassemble_data
arguments: tag: D0
type_guessed: f64

tool: {"D24": [0x06,0x81,0x95,0x43,0x8b,0x38,0x9e,0xc0]}

tool: D12: 125.04

tool: D0: 0.00256

assistant: ```c
double corrected_mean_ecliptic_obliquity(double tm) {
  double rc = 0.00256 * cos(radians(-1934.136 * tm + 125.04));
  return radians(rc + degrees(mean_ecliptic_obliquity(tm)));
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<pat_index>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,%eax
  mov    %al,-0x14(%rbp)
  movsbl -0x14(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x24,-0x4(%rbp)
  je     L52
  cmpl   $0x25,-0x4(%rbp)
  jne    L18
L52:
  mov    -0x4(%rbp),%eax
  sub    $0x24,%eax
  jmp    L155
L18:
  cmpl   $0x27,-0x4(%rbp)
  jne    L91
  mov    -0x4(%rbp),%eax
  sub    $0x25,%eax
  jmp    L155
L91:
  cmpl   $0x2b,-0x4(%rbp)
  jle    L116
  cmpl   $0x2e,-0x4(%rbp)
  jg     L116
  mov    -0x4(%rbp),%eax
  sub    $0x29,%eax
  jmp    L155
L116:
  cmpl   $0x2f,-0x4(%rbp)
  jle    L120
  cmpl   $0x39,-0x4(%rbp)
  jg     L120
  mov    -0x4(%rbp),%eax
  sub    $0x2a,%eax
  jmp    L155
L120:
  cmpl   $0x40,-0x4(%rbp)
  jle    L73
  cmpl   $0x5a,-0x4(%rbp)
  jg     L73
  mov    -0x4(%rbp),%eax
  sub    $0x31,%eax
  jmp    L155
L73:
  cmpl   $0x60,-0x4(%rbp)
  jle    L72
  cmpl   $0x7a,-0x4(%rbp)
  jg     L72
  mov    -0x4(%rbp),%eax
  sub    $0x37,%eax
  jmp    L155
L72:
  mov    $0xffffffff,%eax
L155:
  pop    %rbp
  ret
```

assistant: ```c
int pat_index(char c) {
  int ci = (int)c;
  if (ci == 36 || ci == 37) {
    return ci - 36;
  } else if (ci == 39) {
    return ci - 37;
  } else if (ci >= 44 && ci <= 46) {
    return ci - 41;
  } else if (ci >= 48 && ci <= 57) {
    return ci - 42;
  } else if (ci >= 65 && ci <= 90) {
    return ci - 49;
  } else if (ci >= 97 && ci <= 122) {
    return ci - 55;
  }
  return -1;
}
```