ylfeng/ReF-Decompile-dataset huggingface dataset:
user: What is the c source code of the assembly code below?

```asm
<DumpArray>:
  endbr64
  push   %r14
  mov    %esi,%r14d
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  lea    D30(%rip),%rdi
  push   %rbx
  call   <puts@plt>
  test   %rbp,%rbp
  je     L14
  movslq %r14d,%r13
  xor    %ebx,%ebx
  lea    D8(%rip),%r12
  test   %r14d,%r14d
  jle    L25
  nopl   0x0(%rax)
L9:
  mov    0x0(%rbp,%rbx,4),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %rbx,%r13
  jne    L9
  pop    %rbx
  mov    $0xa,%edi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1070 <putchar@plt>
  nopl   0x0(%rax,%rax,1)
L25:
  pop    %rbx
  mov    %r14d,%esi
  pop    %rbp
  xor    %eax,%eax
  pop    %r12
  lea    D29(%rip),%rdi
  pop    %r13
  pop    %r14
  jmp    1090 <printf@plt>
  nopl   0x0(%rax)
L14:
  pop    %rbx
  lea    D15(%rip),%rdi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1080 <puts@plt>
```

tool_calls: name: unpack_data
arguments: tag: D30
type_guessed: string
name: unpack_data
arguments: tag: D8
type_guessed: string
name: unpack_data
arguments: tag: D29
type_guessed: string
name: unpack_data
arguments: tag: D15
type_guessed: string

tool: D30: Dump array:

tool: D8:   [%3d] = %d


tool: D29: An array of size %d is invalid



tool: D15: Array pointer is NULL


assistant: ```c
void DumpArray(const int *pArray, const int size) {
  int i = 0;
  printf("Dump array:\n");
  if (pArray == NULL) {
    printf("Array pointer is NULL\n\n");
    return;
  }
  if (size < 1) {
    printf("An array of size %d is invalid\n\n", size);
    return;
  }
  for (i = 0; i < size; ++i) {
    printf("  [%3d] = %d\n", i, pArray[i]);
  }
  printf("\n");
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<interpret_input>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x34,%eax
  je     L90
  cmp    $0x34,%eax
  jg     L71
  cmp    $0x33,%eax
  je     L40
  cmp    $0x33,%eax
  jg     L71
  cmp    $0x31,%eax
  je     L103
  cmp    $0x32,%eax
  je     L96
  jmp    L71
L103:
  mov    $0x0,%eax
  call   <view_order@plt>
  jmp    L24
L96:
  mov    $0x0,%eax
  call   <create_order@plt>
  jmp    L24
L40:
  mov    $0x0,%eax
  call   <update_order@plt>
  jmp    L24
L90:
  mov    $0x1,%eax
  jmp    L109
L71:
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  nop
L24:
  mov    $0x0,%eax
L109:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: tag: D6
type: string

tool: D6: 
Invalid option.


assistant: ```c
uint64_t interpret_input(char *input) {
  switch (input[0]) {
  case '1':
    view_order();
    break;
  case '2':
    create_order();
    break;
  case '3':
    update_order();
    break;
  case '4':
    return 1;
  default:
    puts("\nInvalid option.\n");
    break;
  }
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<interpret_input>:
  endbr64
  sub    $0x8,%rsp
  movzbl (%rdi),%eax
  cmp    $0x33,%al
  je     L2
  jg     L23
  cmp    $0x31,%al
  je     L14
  cmp    $0x32,%al
  jne    L66
  mov    $0x0,%eax
  call   <create_order@plt>
  mov    $0x0,%edx
  jmp    L86
L23:
  mov    $0x1,%edx
  cmp    $0x34,%al
  jne    L66
L86:
  mov    %edx,%eax
  add    $0x8,%rsp
  ret
L14:
  mov    $0x0,%eax
  call   <view_order@plt>
  mov    $0x0,%edx
  jmp    L86
L2:
  mov    $0x0,%eax
  call   <update_order@plt>
  mov    $0x0,%edx
  jmp    L86
L66:
  lea    D1(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%edx
  jmp    L86
```

tool_calls: name: retrieve_data
arguments: data_label: D1
data_type: string

tool: D1: 
Invalid option.


assistant: ```c
uint64_t interpret_input(char *input) {
  switch (input[0]) {
  case '1':
    view_order();
    break;
  case '2':
    create_order();
    break;
  case '3':
    update_order();
    break;
  case '4':
    return 1;
  default:
    puts("\nInvalid option.\n");
    break;
  }
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<interpret_input>:
  endbr64
  sub    $0x8,%rsp
  movzbl (%rdi),%eax
  cmp    $0x33,%al
  je     L0
  jg     L13
  cmp    $0x31,%al
  je     L18
  cmp    $0x32,%al
  jne    L30
  xor    %eax,%eax
  call   <create_order@plt>
  xor    %r8d,%r8d
L10:
  mov    %r8d,%eax
  add    $0x8,%rsp
  ret
  nopl   0x0(%rax,%rax,1)
L13:
  mov    $0x1,%r8d
  cmp    $0x34,%al
  je     L10
L30:
  lea    D2(%rip),%rdi
  call   <puts@plt>
  xor    %r8d,%r8d
  add    $0x8,%rsp
  mov    %r8d,%eax
  ret
  nopl   0x0(%rax)
L18:
  xor    %eax,%eax
  call   <view_order@plt>
  xor    %r8d,%r8d
  add    $0x8,%rsp
  mov    %r8d,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L0:
  xor    %eax,%eax
  call   <update_order@plt>
  xor    %r8d,%r8d
  add    $0x8,%rsp
  mov    %r8d,%eax
  ret
```

tool_calls: name: parse_data
arguments: label: D2
type: string

tool: D2: 
Invalid option.


assistant: ```c
uint64_t interpret_input(char *input) {
  switch (input[0]) {
  case '1':
    view_order();
    break;
  case '2':
    create_order();
    break;
  case '3':
    update_order();
    break;
  case '4':
    return 1;
  default:
    puts("\nInvalid option.\n");
    break;
  }
  return 0;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<interpret_input>:
  endbr64
  sub    $0x8,%rsp
  movzbl (%rdi),%eax
  cmp    $0x33,%al
  je     L30
  jg     L36
  cmp    $0x31,%al
  je     L46
  cmp    $0x32,%al
  jne    L32
  xor    %eax,%eax
  call   <create_order@plt>
  xor    %r8d,%r8d
L3:
  mov    %r8d,%eax
  add    $0x8,%rsp
  ret
  nopl   0x0(%rax,%rax,1)
L36:
  mov    $0x1,%r8d
  cmp    $0x34,%al
  je     L3
L32:
  lea    D1(%rip),%rdi
  call   <puts@plt>
  xor    %r8d,%r8d
  add    $0x8,%rsp
  mov    %r8d,%eax
  ret
  nopl   0x0(%rax)
L46:
  xor    %eax,%eax
  call   <view_order@plt>
  xor    %r8d,%r8d
  add    $0x8,%rsp
  mov    %r8d,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L30:
  xor    %eax,%eax
  call   <update_order@plt>
  xor    %r8d,%r8d
  add    $0x8,%rsp
  mov    %r8d,%eax
  ret
```

tool_calls: name: parse_data
arguments: tag: D1
data_type: string

tool: D1: 
Invalid option.


assistant: ```c
uint64_t interpret_input(char *input) {
  switch (input[0]) {
  case '1':
    view_order();
    break;
  case '2':
    create_order();
    break;
  case '3':
    update_order();
    break;
  case '4':
    return 1;
  default:
    puts("\nInvalid option.\n");
    break;
  }
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<add_point>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <string_length@plt>
  sub    -0x1c(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  jns    L63
  negl   -0x1c(%rbp)
  mov    -0x28(%rbp),%rax
  movb   $0x30,(%rax)
  addq   $0x1,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  movb   $0x2e,(%rax)
  addq   $0x1,-0x28(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L31
L73:
  mov    -0x28(%rbp),%rax
  movb   $0x30,(%rax)
  addq   $0x1,-0x28(%rbp)
  addl   $0x1,-0x4(%rbp)
L31:
  mov    -0x4(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L73
  jmp    L1
L6:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x28(%rbp)
  addq   $0x1,-0x18(%rbp)
L1:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L6
  jmp    L77
L63:
  movl   $0x0,-0x4(%rbp)
  jmp    L60
L22:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x28(%rbp)
  addq   $0x1,-0x18(%rbp)
  addl   $0x1,-0x4(%rbp)
L60:
  mov    -0x4(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L22
  mov    -0x28(%rbp),%rax
  movb   $0x2e,(%rax)
  addq   $0x1,-0x28(%rbp)
  jmp    L76
L3:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x28(%rbp)
  addq   $0x1,-0x18(%rbp)
L76:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L3
L77:
  nop
  leave
  ret
```

assistant: ```c
void add_point(char *str, int point, char *target) {
  int i;
  point = string_length(str) - point;
  if (point < 0) {
    point = -point;
    *target = '0';
    target++;
    *target = '.';
    target++;
    for (i = 0; i < point; i++) {
      *target = '0';
      target++;
    }
    for (; *str != '\0'; str++) {
      *target = *str;
      target++;
    }
  } else {
    for (i = 0; i < point; i++) {
      *target = *str;
      target++;
      str++;
    }
    *target = '.';
    target++;
    for (; *str != '\0'; str++) {
      *target = *str;
      target++;
    }
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<add_point>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %esi,%r12d
  mov    %rdx,%rbp
  call   <string_length@plt>
  mov    %eax,%edx
  sub    %r12d,%edx
  js     L45
  mov    %edx,%ecx
  mov    $0x0,%eax
  test   %edx,%edx
  jle    L32
L69:
  movzbl (%rbx,%rax,1),%edx
  mov    %dl,0x0(%rbp,%rax,1)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L69
  add    %rcx,%rbp
  add    %rcx,%rbx
L32:
  movb   $0x2e,0x0(%rbp)
  movzbl (%rbx),%edx
  test   %dl,%dl
  je     L47
  mov    $0x1,%eax
L68:
  mov    %dl,0x0(%rbp,%rax,1)
  add    $0x1,%rax
  movzbl -0x1(%rbx,%rax,1),%edx
  test   %dl,%dl
  jne    L68
L47:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L45:
  sub    %eax,%r12d
  movb   $0x30,0x0(%rbp)
  movb   $0x2e,0x1(%rbp)
  lea    0x2(%rbp),%rcx
  test   %r12d,%r12d
  jle    L58
  lea    -0x1(%r12),%eax
  lea    0x3(%rbp,%rax,1),%rdx
  mov    %rcx,%rax
L34:
  movb   $0x30,(%rax)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L34
  mov    %r12d,%r12d
  add    %r12,%rcx
L58:
  movzbl (%rbx),%edx
  test   %dl,%dl
  je     L47
  mov    $0x0,%eax
L76:
  mov    %dl,(%rcx,%rax,1)
  add    $0x1,%rax
  movzbl (%rbx,%rax,1),%edx
  test   %dl,%dl
  jne    L76
  jmp    L47
```

assistant: ```c
void add_point(char *str, int point, char *target) {
  int i;
  point = string_length(str) - point;
  if (point < 0) {
    point = -point;
    *target = '0';
    target++;
    *target = '.';
    target++;
    for (i = 0; i < point; i++) {
      *target = '0';
      target++;
    }
    for (; *str != '\0'; str++) {
      *target = *str;
      target++;
    }
  } else {
    for (i = 0; i < point; i++) {
      *target = *str;
      target++;
      str++;
    }
    *target = '.';
    target++;
    for (; *str != '\0'; str++) {
      *target = *str;
      target++;
    }
  }
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<add_point>:
  endbr64
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rdx,%rbx
  call   <string_length@plt>
  mov    %eax,%ecx
  sub    %r12d,%ecx
  js     L42
  movslq %ecx,%rcx
  mov    $0x0,%eax
  je     L50
  nopw   0x0(%rax,%rax,1)
L66:
  movzbl 0x0(%rbp,%rax,1),%edx
  mov    %dl,(%rbx,%rax,1)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L66
  add    %rax,%rbp
  add    %rax,%rbx
L50:
  movb   $0x2e,(%rbx)
  movzbl 0x0(%rbp),%edx
  test   %dl,%dl
  je     L51
  mov    $0x1,%eax
  nopw   0x0(%rax,%rax,1)
L73:
  mov    %dl,(%rbx,%rax,1)
  add    $0x1,%rax
  movzbl -0x1(%rbp,%rax,1),%edx
  test   %dl,%dl
  jne    L73
L51:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
L42:
  sub    %eax,%r12d
  mov    $0x2e30,%eax
  add    $0x2,%rbx
  mov    %ax,-0x2(%rbx)
  test   %r12d,%r12d
  jle    L46
  movslq %r12d,%r12
  mov    %rbx,%rdi
  mov    $0x30,%esi
  mov    %r12,%rdx
  add    %r12,%rbx
  call   <memset@plt>
L46:
  movzbl 0x0(%rbp),%edx
  test   %dl,%dl
  je     L51
  xor    %eax,%eax
  nopl   (%rax)
L68:
  mov    %dl,(%rbx,%rax,1)
  add    $0x1,%rax
  movzbl 0x0(%rbp,%rax,1),%edx
  test   %dl,%dl
  jne    L68
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
void add_point(char *str, int point, char *target) {
  int i;
  point = string_length(str) - point;
  if (point < 0) {
    point = -point;
    *target = '0';
    target++;
    *target = '.';
    target++;
    for (i = 0; i < point; i++) {
      *target = '0';
      target++;
    }
    for (; *str != '\0'; str++) {
      *target = *str;
      target++;
    }
  } else {
    for (i = 0; i < point; i++) {
      *target = *str;
      target++;
      str++;
    }
    *target = '.';
    target++;
    for (; *str != '\0'; str++) {
      *target = *str;
      target++;
    }
  }
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  movl   $0x15,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  shll   -0x4(%rbp)
  mov    -0x4(%rbp),%edx
  mov    -0x8(%rbp),%eax
  mov    %eax,%esi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x3f,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,%esi
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D7
type_infered: string
name: unpack_data
arguments: data_tag: D8
type_infered: string

tool: D7: jim: %d, bob: %d


tool: D8: jim: %d


assistant: ```c
int main(void) {
  int bob, jim = 21;
  bob = jim;
  bob *= 2;
  printf("jim: %d, bob: %d\n", jim, bob);
  jim = 60 + +3;
  printf("jim: %d\n", jim);
  return 0;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x2a,%edx
  mov    $0x15,%esi
  lea    D5(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x3f,%esi
  lea    D3(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: unpack_data
arguments: tag: D5
type_infered: string
name: unpack_data
arguments: tag: D3
type_infered: string

tool: D5: jim: %d, bob: %d


tool: D3: jim: %d


assistant: ```c
int main(void) {
  int bob, jim = 21;
  bob = jim;
  bob *= 2;
  printf("jim: %d, bob: %d\n", jim, bob);
  jim = 60 + +3;
  printf("jim: %d\n", jim);
  return 0;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x2a,%edx
  mov    $0x15,%esi
  xor    %eax,%eax
  lea    D5(%rip),%rdi
  call   <printf@plt>
  mov    $0x3f,%esi
  lea    D7(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D5
type: string
name: extract_symbolic_data
arguments: data_label: D7
type: string

tool: D5: jim: %d, bob: %d


tool: D7: jim: %d


assistant: ```c
int main(void) {
  int bob, jim = 21;
  bob = jim;
  bob *= 2;
  printf("jim: %d, bob: %d\n", jim, bob);
  jim = 60 + +3;
  printf("jim: %d\n", jim);
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x2a,%edx
  mov    $0x15,%esi
  xor    %eax,%eax
  lea    D17(%rip),%rdi
  call   <printf@plt>
  mov    $0x3f,%esi
  lea    D7(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D17
datatype: string
name: disassemble_data
arguments: data_label: D7
datatype: string

tool: D17: jim: %d, bob: %d


tool: D7: jim: %d


assistant: ```c
int main(void) {
  int bob, jim = 21;
  bob = jim;
  bob *= 2;
  printf("jim: %d, bob: %d\n", jim, bob);
  jim = 60 + +3;
  printf("jim: %d\n", jim);
  return 0;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<glmGenerateAxisAngleRotationMatrix3fDeg>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%rbx
  call   <glmRadf@plt>
  movss  %xmm0,0x8(%rsp)
  call   <cos@plt>
  movss  %xmm0,0xc(%rsp)
  movss  0x8(%rsp),%xmm0
  call   <sin@plt>
  movaps %xmm0,%xmm1
  movss  (%rbx),%xmm2
  movss  D3(%rip),%xmm0
  movss  0xc(%rsp),%xmm4
  subss  %xmm4,%xmm0
  mulss  %xmm2,%xmm2
  mulss  %xmm0,%xmm2
  addss  %xmm4,%xmm2
  movss  %xmm2,0x0(%rbp)
  movss  0x4(%rbx),%xmm2
  mulss  (%rbx),%xmm2
  mulss  %xmm0,%xmm2
  movaps %xmm1,%xmm3
  mulss  0x8(%rbx),%xmm3
  addss  %xmm3,%xmm2
  movss  %xmm2,0xc(%rbp)
  movss  0x8(%rbx),%xmm2
  mulss  (%rbx),%xmm2
  mulss  %xmm0,%xmm2
  movaps %xmm1,%xmm3
  mulss  0x4(%rbx),%xmm3
  subss  %xmm3,%xmm2
  movss  %xmm2,0x18(%rbp)
  movss  (%rbx),%xmm2
  mulss  0x4(%rbx),%xmm2
  mulss  %xmm0,%xmm2
  movaps %xmm1,%xmm3
  mulss  0x8(%rbx),%xmm3
  subss  %xmm3,%xmm2
  movss  %xmm2,0x4(%rbp)
  movss  0x4(%rbx),%xmm2
  mulss  %xmm2,%xmm2
  mulss  %xmm0,%xmm2
  addss  %xmm4,%xmm2
  movss  %xmm2,0x10(%rbp)
  movss  0x8(%rbx),%xmm2
  mulss  0x4(%rbx),%xmm2
  mulss  %xmm0,%xmm2
  movaps %xmm1,%xmm3
  mulss  (%rbx),%xmm3
  addss  %xmm3,%xmm2
  movss  %xmm2,0x1c(%rbp)
  movss  (%rbx),%xmm2
  mulss  0x8(%rbx),%xmm2
  mulss  %xmm0,%xmm2
  movaps %xmm1,%xmm3
  mulss  0x4(%rbx),%xmm3
  addss  %xmm3,%xmm2
  movss  %xmm2,0x8(%rbp)
  movss  0x4(%rbx),%xmm2
  mulss  0x8(%rbx),%xmm2
  mulss  %xmm0,%xmm2
  mulss  (%rbx),%xmm1
  subss  %xmm1,%xmm2
  movss  %xmm2,0x14(%rbp)
  movss  0x8(%rbx),%xmm1
  mulss  %xmm1,%xmm1
  mulss  %xmm0,%xmm1
  addss  %xmm4,%xmm1
  movss  %xmm1,0x20(%rbp)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D3
type: byte[4]

tool: {"D3": [0x00,0x00,0x80,0x3f]}

assistant: ```c
void glmGenerateAxisAngleRotationMatrix3fDeg(float m[9], const float axis[3], float angle) {
  float rcos, rsin;
  angle = glmRadf(angle);
  rcos = cos(angle);
  rsin = sin(angle);
  m[0] = rcos + axis[0] * axis[0] * (1.0f - rcos);
  m[3] = axis[2] * rsin + axis[1] * axis[0] * (1.0f - rcos);
  m[6] = -axis[1] * rsin + axis[2] * axis[0] * (1.0f - rcos);
  m[1] = -axis[2] * rsin + axis[0] * axis[1] * (1.0f - rcos);
  m[4] = rcos + axis[1] * axis[1] * (1.0f - rcos);
  m[7] = axis[0] * rsin + axis[2] * axis[1] * (1.0f - rcos);
  m[2] = axis[1] * rsin + axis[0] * axis[2] * (1.0f - rcos);
  m[5] = -axis[0] * rsin + axis[1] * axis[2] * (1.0f - rcos);
  m[8] = rcos + axis[2] * axis[2] * (1.0f - rcos);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<glmGenerateAxisAngleRotationMatrix3fDeg>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x18,%rsp
  call   <glmRadf@plt>
  movss  %xmm0,0xc(%rsp)
  call   <cos@plt>
  movss  0xc(%rsp),%xmm1
  movss  %xmm0,0x8(%rsp)
  movaps %xmm1,%xmm0
  call   <sin@plt>
  movss  (%rbx),%xmm2
  movss  0x8(%rsp),%xmm3
  movaps %xmm0,%xmm1
  movss  D6(%rip),%xmm0
  mulss  %xmm2,%xmm2
  subss  %xmm3,%xmm0
  mulss  %xmm0,%xmm2
  addss  %xmm3,%xmm2
  movss  %xmm2,0x0(%rbp)
  movss  0x4(%rbx),%xmm2
  mulss  (%rbx),%xmm2
  movss  0x8(%rbx),%xmm4
  mulss  %xmm1,%xmm4
  mulss  %xmm0,%xmm2
  addss  %xmm4,%xmm2
  movss  %xmm2,0xc(%rbp)
  movss  0x8(%rbx),%xmm2
  mulss  (%rbx),%xmm2
  movss  0x4(%rbx),%xmm4
  mulss  %xmm1,%xmm4
  mulss  %xmm0,%xmm2
  subss  %xmm4,%xmm2
  movss  %xmm2,0x18(%rbp)
  movss  (%rbx),%xmm2
  mulss  0x4(%rbx),%xmm2
  movss  0x8(%rbx),%xmm4
  mulss  %xmm1,%xmm4
  mulss  %xmm0,%xmm2
  subss  %xmm4,%xmm2
  movss  %xmm2,0x4(%rbp)
  movss  0x4(%rbx),%xmm2
  mulss  %xmm2,%xmm2
  mulss  %xmm0,%xmm2
  addss  %xmm3,%xmm2
  movss  %xmm2,0x10(%rbp)
  movss  0x8(%rbx),%xmm2
  mulss  0x4(%rbx),%xmm2
  movss  (%rbx),%xmm4
  mulss  %xmm1,%xmm4
  mulss  %xmm0,%xmm2
  addss  %xmm4,%xmm2
  movss  %xmm2,0x1c(%rbp)
  movss  (%rbx),%xmm2
  mulss  0x8(%rbx),%xmm2
  movss  0x4(%rbx),%xmm4
  mulss  %xmm1,%xmm4
  mulss  %xmm0,%xmm2
  addss  %xmm4,%xmm2
  movss  %xmm2,0x8(%rbp)
  movss  0x4(%rbx),%xmm2
  mulss  0x8(%rbx),%xmm2
  mulss  (%rbx),%xmm1
  mulss  %xmm0,%xmm2
  subss  %xmm1,%xmm2
  movss  %xmm2,0x14(%rbp)
  movss  0x8(%rbx),%xmm1
  mulss  %xmm1,%xmm1
  mulss  %xmm0,%xmm1
  addss  %xmm3,%xmm1
  movss  %xmm1,0x20(%rbp)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: data_label: D6
data_type: byte[4]

tool: {"D6": [0x00,0x00,0x80,0x3f]}

assistant: ```c
void glmGenerateAxisAngleRotationMatrix3fDeg(float m[9], const float axis[3], float angle) {
  float rcos, rsin;
  angle = glmRadf(angle);
  rcos = cos(angle);
  rsin = sin(angle);
  m[0] = rcos + axis[0] * axis[0] * (1.0f - rcos);
  m[3] = axis[2] * rsin + axis[1] * axis[0] * (1.0f - rcos);
  m[6] = -axis[1] * rsin + axis[2] * axis[0] * (1.0f - rcos);
  m[1] = -axis[2] * rsin + axis[0] * axis[1] * (1.0f - rcos);
  m[4] = rcos + axis[1] * axis[1] * (1.0f - rcos);
  m[7] = axis[0] * rsin + axis[2] * axis[1] * (1.0f - rcos);
  m[2] = axis[1] * rsin + axis[0] * axis[2] * (1.0f - rcos);
  m[5] = -axis[0] * rsin + axis[1] * axis[2] * (1.0f - rcos);
  m[8] = rcos + axis[2] * axis[2] * (1.0f - rcos);
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<glmGenerateAxisAngleRotationMatrix3fDeg>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x18,%rsp
  call   <glmRadf@plt>
  movss  %xmm0,0xc(%rsp)
  call   <cos@plt>
  movss  0xc(%rsp),%xmm1
  movss  %xmm0,0x8(%rsp)
  movaps %xmm1,%xmm0
  call   <sin@plt>
  movss  (%rbx),%xmm2
  movss  0x8(%rsp),%xmm3
  movaps %xmm0,%xmm1
  movss  D0(%rip),%xmm0
  mulss  %xmm2,%xmm2
  subss  %xmm3,%xmm0
  mulss  %xmm0,%xmm2
  addss  %xmm3,%xmm2
  movss  %xmm2,0x0(%rbp)
  movss  0x4(%rbx),%xmm2
  mulss  (%rbx),%xmm2
  movss  0x8(%rbx),%xmm4
  mulss  %xmm1,%xmm4
  mulss  %xmm0,%xmm2
  addss  %xmm4,%xmm2
  movss  %xmm2,0xc(%rbp)
  movss  0x8(%rbx),%xmm2
  mulss  (%rbx),%xmm2
  movss  0x4(%rbx),%xmm4
  mulss  %xmm1,%xmm4
  mulss  %xmm0,%xmm2
  subss  %xmm4,%xmm2
  movss  %xmm2,0x18(%rbp)
  movss  (%rbx),%xmm2
  mulss  0x4(%rbx),%xmm2
  movss  0x8(%rbx),%xmm4
  mulss  %xmm1,%xmm4
  mulss  %xmm0,%xmm2
  subss  %xmm4,%xmm2
  movss  %xmm2,0x4(%rbp)
  movss  0x4(%rbx),%xmm2
  mulss  %xmm2,%xmm2
  mulss  %xmm0,%xmm2
  addss  %xmm3,%xmm2
  movss  %xmm2,0x10(%rbp)
  movss  0x8(%rbx),%xmm2
  mulss  0x4(%rbx),%xmm2
  movss  (%rbx),%xmm4
  mulss  %xmm1,%xmm4
  mulss  %xmm0,%xmm2
  addss  %xmm4,%xmm2
  movss  %xmm2,0x1c(%rbp)
  movss  (%rbx),%xmm2
  mulss  0x8(%rbx),%xmm2
  movss  0x4(%rbx),%xmm4
  mulss  %xmm1,%xmm4
  mulss  %xmm0,%xmm2
  addss  %xmm4,%xmm2
  movss  %xmm2,0x8(%rbp)
  movss  0x4(%rbx),%xmm2
  mulss  0x8(%rbx),%xmm2
  mulss  (%rbx),%xmm1
  mulss  %xmm0,%xmm2
  subss  %xmm1,%xmm2
  movss  %xmm2,0x14(%rbp)
  movss  0x8(%rbx),%xmm1
  mulss  %xmm1,%xmm1
  mulss  %xmm0,%xmm1
  addss  %xmm3,%xmm1
  movss  %xmm1,0x20(%rbp)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D0
type_guessed: byte[4]

tool: {"D0": [0x00,0x00,0x80,0x3f]}

assistant: ```c
void glmGenerateAxisAngleRotationMatrix3fDeg(float m[9], const float axis[3], float angle) {
  float rcos, rsin;
  angle = glmRadf(angle);
  rcos = cos(angle);
  rsin = sin(angle);
  m[0] = rcos + axis[0] * axis[0] * (1.0f - rcos);
  m[3] = axis[2] * rsin + axis[1] * axis[0] * (1.0f - rcos);
  m[6] = -axis[1] * rsin + axis[2] * axis[0] * (1.0f - rcos);
  m[1] = -axis[2] * rsin + axis[0] * axis[1] * (1.0f - rcos);
  m[4] = rcos + axis[1] * axis[1] * (1.0f - rcos);
  m[7] = axis[0] * rsin + axis[2] * axis[1] * (1.0f - rcos);
  m[2] = axis[1] * rsin + axis[0] * axis[2] * (1.0f - rcos);
  m[5] = -axis[0] * rsin + axis[1] * axis[2] * (1.0f - rcos);
  m[8] = rcos + axis[2] * axis[2] * (1.0f - rcos);
}
```