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

```asm
<checkword>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x4(%rbp)
  mov    %esi,-0x8(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  js     L64
  cmpl   $0x270f,-0x4(%rbp)
  jg     L64
  mov    -0x4(%rbp),%edx
  movslq %edx,%rax
  imul   $0x51eb851f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x5,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x64,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  cmp    %eax,-0x8(%rbp)
  jg     L34
L64:
  mov    $0x1,%eax
  jmp    L66
L34:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  cmp    $0x2b,%eax
  seta   %dl
  test   %dl,%dl
  jne    L30
  movabs $0xf03c0300c01,%rdx
  mov    %eax,%ecx
  shr    %cl,%rdx
  mov    %rdx,%rax
  and    $0x1,%eax
  test   %rax,%rax
  setne  %al
  test   %al,%al
  jne    L14
L30:
  mov    $0x1,%eax
  jmp    L66
L14:
  nop
  mov    $0x0,%eax
L66:
  pop    %rbp
  ret
```

assistant: ```c
int checkword(int word, int size) {
  if (word < 0 || word > 9999 || word % 100 >= size) {
    return 1;
  }
  switch (word / 100) {
  case 10:
  case 11:
  case 20:
  case 21:
  case 30:
  case 31:
  case 32:
  case 33:
  case 40:
  case 41:
  case 42:
  case 43:
  case 0:
    break;
  default:
    return 1;
  }
  return 0;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<checkword>:
  endbr64
  mov    $0x1,%eax
  cmp    $0x270f,%edi
  ja     L23
  movslq %edi,%rax
  imul   $0x51eb851f,%rax,%rax
  sar    $0x25,%rax
  mov    %edi,%edx
  sar    $0x1f,%edx
  sub    %edx,%eax
  imul   $0x64,%eax,%eax
  mov    %edi,%edx
  sub    %eax,%edx
  mov    $0x1,%eax
  cmp    %esi,%edx
  jge    L23
  movslq %edi,%rcx
  imul   $0x51eb851f,%rcx,%rcx
  sar    $0x25,%rcx
  sar    $0x1f,%edi
  sub    %edi,%ecx
  cmp    $0x2b,%ecx
  ja     L5
  movabs $0xf03c0300c01,%rax
  shr    %cl,%rax
  not    %rax
  and    $0x1,%eax
  ret
L5:
  mov    $0x1,%eax
L23:
  ret
```

assistant: ```c
int checkword(int word, int size) {
  if (word < 0 || word > 9999 || word % 100 >= size) {
    return 1;
  }
  switch (word / 100) {
  case 10:
  case 11:
  case 20:
  case 21:
  case 30:
  case 31:
  case 32:
  case 33:
  case 40:
  case 41:
  case 42:
  case 43:
  case 0:
    break;
  default:
    return 1;
  }
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<checkword>:
  endbr64
  mov    $0x1,%eax
  cmp    $0x270f,%edi
  ja     L3
  movslq %edi,%rcx
  mov    %edi,%edx
  imul   $0x51eb851f,%rcx,%rcx
  sar    $0x1f,%edx
  sar    $0x25,%rcx
  sub    %edx,%ecx
  imul   $0x64,%ecx,%edx
  sub    %edx,%edi
  cmp    %esi,%edi
  jge    L3
  cmp    $0x2b,%ecx
  ja     L3
  movabs $0xf03c0300c01,%rax
  shr    %cl,%rax
  and    $0x1,%eax
  xor    $0x1,%eax
  movzbl %al,%eax
L3:
  ret
```

assistant: ```c
int checkword(int word, int size) {
  if (word < 0 || word > 9999 || word % 100 >= size) {
    return 1;
  }
  switch (word / 100) {
  case 10:
  case 11:
  case 20:
  case 21:
  case 30:
  case 31:
  case 32:
  case 33:
  case 40:
  case 41:
  case 42:
  case 43:
  case 0:
    break;
  default:
    return 1;
  }
  return 0;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<checkword>:
  endbr64
  mov    $0x1,%eax
  cmp    $0x270f,%edi
  ja     L13
  movslq %edi,%rcx
  mov    %edi,%edx
  imul   $0x51eb851f,%rcx,%rcx
  sar    $0x1f,%edx
  sar    $0x25,%rcx
  sub    %edx,%ecx
  imul   $0x64,%ecx,%edx
  sub    %edx,%edi
  cmp    %esi,%edi
  jge    L13
  cmp    $0x2b,%ecx
  ja     L13
  movabs $0xf03c0300c01,%rax
  shr    %cl,%rax
  and    $0x1,%eax
  xor    $0x1,%eax
  movzbl %al,%eax
L13:
  ret
```

assistant: ```c
int checkword(int word, int size) {
  if (word < 0 || word > 9999 || word % 100 >= size) {
    return 1;
  }
  switch (word / 100) {
  case 10:
  case 11:
  case 20:
  case 21:
  case 30:
  case 31:
  case 32:
  case 33:
  case 40:
  case 41:
  case 42:
  case 43:
  case 0:
    break;
  default:
    return 1;
  }
  return 0;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<Si702x_readTemperature>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    $0xe3,%edi
  call   <Si702x_I2C_write8@plt>
  mov    $0xe3,%edi
  call   <Si702x_I2C_read16@plt>
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  test   %rax,%rax
  js     L10
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L3
L10:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L3:
  movsd  D15(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  D19(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  D2(%rip),%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x4(%rbp)
  movss  -0x4(%rbp),%xmm0
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D15
type_guessed: f64
name: unpack_data
arguments: data_label: D19
type_guessed: byte[8]
name: unpack_data
arguments: data_label: D2
type_guessed: f64

tool: D15: 175.72

tool: {"D19": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x40]}

tool: D2: 46.85

assistant: ```c
float Si702x_readTemperature(void) {
  float temp;
  unsigned int rawTemp;
  Si702x_I2C_write8(0xE3);
  rawTemp = Si702x_I2C_read16(0xE3);
  temp = (rawTemp * 175.72 / 65536) - 46.85;
  return temp;
}
```
user: Translate the below assembly code into C programming language:

```asm
<Si702x_readTemperature>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xe3,%edi
  call   <Si702x_I2C_write8@plt>
  mov    $0xe3,%edi
  call   <Si702x_I2C_read16@plt>
  mov    %eax,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  mulsd  D8(%rip),%xmm0
  mulsd  D16(%rip),%xmm0
  subsd  D13(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  add    $0x8,%rsp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D8
type: f64
name: extract_symbolic_data
arguments: label: D16
type: byte[8]
name: extract_symbolic_data
arguments: label: D13
type: f64

tool: D8: 175.72

tool: {"D16": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3e]}

tool: D13: 46.85

assistant: ```c
float Si702x_readTemperature(void) {
  float temp;
  unsigned int rawTemp;
  Si702x_I2C_write8(0xE3);
  rawTemp = Si702x_I2C_read16(0xE3);
  temp = (rawTemp * 175.72 / 65536) - 46.85;
  return temp;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<Si702x_readTemperature>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xe3,%edi
  call   <Si702x_I2C_write8@plt>
  mov    $0xe3,%edi
  call   <Si702x_I2C_read16@plt>
  pxor   %xmm0,%xmm0
  mov    %eax,%eax
  cvtsi2sd %rax,%xmm0
  mulsd  D8(%rip),%xmm0
  mulsd  D14(%rip),%xmm0
  subsd  D16(%rip),%xmm0
  add    $0x8,%rsp
  cvtsd2ss %xmm0,%xmm0
  ret
```

tool_calls: name: retrieve_data
arguments: label: D8
type_guessed: f64
name: retrieve_data
arguments: label: D14
type_guessed: byte[8]
name: retrieve_data
arguments: label: D16
type_guessed: f64

tool: D8: 175.72

tool: {"D14": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3e]}

tool: D16: 46.85

assistant: ```c
float Si702x_readTemperature(void) {
  float temp;
  unsigned int rawTemp;
  Si702x_I2C_write8(0xE3);
  rawTemp = Si702x_I2C_read16(0xE3);
  temp = (rawTemp * 175.72 / 65536) - 46.85;
  return temp;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<Si702x_readTemperature>:
  endbr64
  sub    $0x8,%rsp
  mov    $0xe3,%edi
  call   <Si702x_I2C_write8@plt>
  mov    $0xe3,%edi
  call   <Si702x_I2C_read16@plt>
  pxor   %xmm0,%xmm0
  mov    %eax,%eax
  cvtsi2sd %rax,%xmm0
  mulsd  D29(%rip),%xmm0
  mulsd  D0(%rip),%xmm0
  subsd  D5(%rip),%xmm0
  add    $0x8,%rsp
  cvtsd2ss %xmm0,%xmm0
  ret
```

tool_calls: name: unpack_data
arguments: label: D29
datatype: f64
name: unpack_data
arguments: label: D0
datatype: byte[8]
name: unpack_data
arguments: label: D5
datatype: f64

tool: D29: 175.72

tool: {"D0": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3e]}

tool: D5: 46.85

assistant: ```c
float Si702x_readTemperature(void) {
  float temp;
  unsigned int rawTemp;
  Si702x_I2C_write8(0xE3);
  rawTemp = Si702x_I2C_read16(0xE3);
  temp = (rawTemp * 175.72 / 65536) - 46.85;
  return temp;
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<memcpy>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  cmpq   $0x1f,-0x38(%rbp)
  jbe    L45
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%rax
  or     %rdx,%rax
  and    $0x7,%eax
  test   %rax,%rax
  jne    L45
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  jmp    L65
L68:
  mov    -0x8(%rbp),%rdx
  lea    0x8(%rdx),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  lea    0x8(%rax),%rcx
  mov    %rcx,-0x18(%rbp)
  mov    (%rdx),%rdx
  mov    %rdx,(%rax)
  mov    -0x8(%rbp),%rdx
  lea    0x8(%rdx),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  lea    0x8(%rax),%rcx
  mov    %rcx,-0x18(%rbp)
  mov    (%rdx),%rdx
  mov    %rdx,(%rax)
  mov    -0x8(%rbp),%rdx
  lea    0x8(%rdx),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  lea    0x8(%rax),%rcx
  mov    %rcx,-0x18(%rbp)
  mov    (%rdx),%rdx
  mov    %rdx,(%rax)
  mov    -0x8(%rbp),%rdx
  lea    0x8(%rdx),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  lea    0x8(%rax),%rcx
  mov    %rcx,-0x18(%rbp)
  mov    (%rdx),%rdx
  mov    %rdx,(%rax)
  subq   $0x20,-0x38(%rbp)
L65:
  cmpq   $0x1f,-0x38(%rbp)
  ja     L68
  jmp    L10
L47:
  mov    -0x8(%rbp),%rdx
  lea    0x8(%rdx),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  lea    0x8(%rax),%rcx
  mov    %rcx,-0x18(%rbp)
  mov    (%rdx),%rdx
  mov    %rdx,(%rax)
  subq   $0x8,-0x38(%rbp)
L10:
  cmpq   $0x7,-0x38(%rbp)
  ja     L47
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L45
L48:
  mov    -0x10(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x20(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L45:
  mov    -0x38(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  test   %rax,%rax
  jne    L48
  mov    -0x28(%rbp),%rax
  pop    %rbp
  ret
```

assistant: ```c
void *memcpy(void *dst_, const void *src_, size_t n) {
  char *dst = dst_;
  long *aligned_dst;
  const char *src = src_;
  const long *aligned_src;
  if (n >= (sizeof(long)) * 4 && !(((long)(intptr_t)src | (long)(intptr_t)dst) & (sizeof(long) - 1))) {
    aligned_dst = (long *)dst;
    aligned_src = (long *)src;
    for (; n >= (sizeof(long)) * 4; n -= (sizeof(long)) * 4) {
      *aligned_dst++ = *aligned_src++;
      *aligned_dst++ = *aligned_src++;
      *aligned_dst++ = *aligned_src++;
      *aligned_dst++ = *aligned_src++;
    }
    for (; n >= (sizeof(long)); n -= (sizeof(long))) {
      *aligned_dst++ = *aligned_src++;
    }
    dst = (char *)aligned_dst;
    src = (char *)aligned_src;
  }
  while (n--) {
    *dst++ = *src++;
  }
  return dst_;
}
```
user: Translate the below assembly code into C programming language:

```asm
<memcpy>:
  endbr64
  mov    %rdi,%r8
  mov    %rdx,%rcx
  cmp    $0x1f,%rdx
  jbe    L35
  or     %rsi,%rdi
  and    $0x7,%edi
  je     L82
  lea    -0x1(%rdx),%rdi
  mov    %r8,%rdx
  jmp    L4
L35:
  mov    %rdi,%rdx
L67:
  lea    -0x1(%rcx),%rdi
  test   %rcx,%rcx
  je     L91
L4:
  mov    $0x0,%eax
L59:
  movzbl (%rsi,%rax,1),%ecx
  mov    %cl,(%rdx,%rax,1)
  mov    %rax,%rcx
  add    $0x1,%rax
  cmp    %rcx,%rdi
  jne    L59
L91:
  mov    %r8,%rax
  ret
L62:
  mov    %rax,%rcx
  jmp    L67
L82:
  lea    -0x20(%rdx),%rax
  and    $0xffffffffffffffe0,%rax
  lea    0x20(%rax),%r11
  lea    (%r8,%r11,1),%r10
  mov    %rsi,%rax
  mov    %r8,%rdx
L75:
  mov    (%rax),%r9
  mov    %r9,(%rdx)
  mov    0x8(%rax),%r9
  mov    %r9,0x8(%rdx)
  mov    0x10(%rax),%r9
  mov    %r9,0x10(%rdx)
  add    $0x20,%rax
  add    $0x20,%rdx
  mov    -0x8(%rax),%r9
  mov    %r9,-0x8(%rdx)
  cmp    %rdx,%r10
  jne    L75
  add    %r11,%rsi
  mov    %rcx,%rax
  and    $0x1f,%eax
  test   $0x18,%cl
  je     L62
  sub    $0x8,%rax
  shr    $0x3,%rax
  lea    0x1(%rax),%r10
L54:
  mov    (%rsi,%rdi,8),%r9
  mov    %r9,(%rdx,%rdi,8)
  mov    %rdi,%r9
  add    $0x1,%rdi
  cmp    %rax,%r9
  jne    L54
  lea    0x0(,%r10,8),%rax
  add    %rax,%rsi
  add    %rax,%rdx
  and    $0x7,%ecx
  jmp    L67
```

assistant: ```c
void *memcpy(void *dst_, const void *src_, size_t n) {
  char *dst = dst_;
  long *aligned_dst;
  const char *src = src_;
  const long *aligned_src;
  if (n >= (sizeof(long)) * 4 && !(((long)(intptr_t)src | (long)(intptr_t)dst) & (sizeof(long) - 1))) {
    aligned_dst = (long *)dst;
    aligned_src = (long *)src;
    for (; n >= (sizeof(long)) * 4; n -= (sizeof(long)) * 4) {
      *aligned_dst++ = *aligned_src++;
      *aligned_dst++ = *aligned_src++;
      *aligned_dst++ = *aligned_src++;
      *aligned_dst++ = *aligned_src++;
    }
    for (; n >= (sizeof(long)); n -= (sizeof(long))) {
      *aligned_dst++ = *aligned_src++;
    }
    dst = (char *)aligned_dst;
    src = (char *)aligned_src;
  }
  while (n--) {
    *dst++ = *src++;
  }
  return dst_;
}
```
user: What is the c source code of the assembly code below?

```asm
<memcpy>:
  endbr64
  mov    %rdi,%r8
  mov    %rdx,%rcx
  cmp    $0x1f,%rdx
  jbe    L75
  or     %rsi,%rdi
  and    $0x7,%edi
  jne    L0
  lea    -0x20(%rdx),%rax
  mov    %r8,%rdx
  and    $0xffffffffffffffe0,%rax
  lea    0x20(%rax),%r11
  mov    %rsi,%rax
  lea    (%r8,%r11,1),%r10
  cs nopw 0x0(%rax,%rax,1)
L68:
  mov    (%rax),%r9
  add    $0x20,%rax
  add    $0x20,%rdx
  mov    %r9,-0x20(%rdx)
  mov    -0x18(%rax),%r9
  mov    %r9,-0x18(%rdx)
  mov    -0x10(%rax),%r9
  mov    %r9,-0x10(%rdx)
  mov    -0x8(%rax),%r9
  mov    %r9,-0x8(%rdx)
  cmp    %rdx,%r10
  jne    L68
  mov    %rcx,%rax
  add    %r11,%rsi
  and    $0x1f,%eax
  test   $0x18,%cl
  je     L42
L4:
  mov    (%rsi,%rdi,1),%r9
  mov    %r9,(%rdx,%rdi,1)
  add    $0x8,%rdi
  mov    %rax,%r9
  sub    %rdi,%r9
  cmp    $0x7,%r9
  ja     L4
  sub    $0x8,%rax
  and    $0x7,%ecx
  shr    $0x3,%rax
  lea    -0x1(%rcx),%rdi
  lea    0x8(,%rax,8),%rax
  add    %rax,%rdx
  add    %rax,%rsi
  test   %rcx,%rcx
  je     L82
  nopl   0x0(%rax)
L21:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L67:
  movzbl (%rsi,%rax,1),%ecx
  mov    %cl,(%rdx,%rax,1)
  mov    %rax,%rcx
  add    $0x1,%rax
  cmp    %rcx,%rdi
  jne    L67
L82:
  mov    %r8,%rax
  ret
  nopw   0x0(%rax,%rax,1)
L75:
  mov    %rdi,%rdx
L19:
  lea    -0x1(%rcx),%rdi
  test   %rcx,%rcx
  jne    L21
  jmp    L82
  xchg   %ax,%ax
L0:
  lea    -0x1(%rdx),%rdi
  mov    %r8,%rdx
  jmp    L21
L42:
  mov    %rax,%rcx
  jmp    L19
```

assistant: ```c
void *memcpy(void *dst_, const void *src_, size_t n) {
  char *dst = dst_;
  long *aligned_dst;
  const char *src = src_;
  const long *aligned_src;
  if (n >= (sizeof(long)) * 4 && !(((long)(intptr_t)src | (long)(intptr_t)dst) & (sizeof(long) - 1))) {
    aligned_dst = (long *)dst;
    aligned_src = (long *)src;
    for (; n >= (sizeof(long)) * 4; n -= (sizeof(long)) * 4) {
      *aligned_dst++ = *aligned_src++;
      *aligned_dst++ = *aligned_src++;
      *aligned_dst++ = *aligned_src++;
      *aligned_dst++ = *aligned_src++;
    }
    for (; n >= (sizeof(long)); n -= (sizeof(long))) {
      *aligned_dst++ = *aligned_src++;
    }
    dst = (char *)aligned_dst;
    src = (char *)aligned_src;
  }
  while (n--) {
    *dst++ = *src++;
  }
  return dst_;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<Calc_3dMat4TranAxisInv>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xd0,%rsp
  mov    %rdi,-0xa8(%rbp)
  mov    %rsi,-0xb0(%rbp)
  mov    %rdx,-0xb8(%rbp)
  mov    %rcx,-0xc0(%rbp)
  mov    %r8,-0xc8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x90(%rbp),%rcx
  mov    -0xc0(%rbp),%rdx
  mov    -0xb8(%rbp),%rsi
  mov    -0xb0(%rbp),%rax
  mov    %rax,%rdi
  call   <Calc_3dMat4RotAxis@plt>
  movss  -0x8c(%rbp),%xmm0
  movss  %xmm0,-0x94(%rbp)
  movss  -0x80(%rbp),%xmm0
  movss  %xmm0,-0x8c(%rbp)
  movss  -0x94(%rbp),%xmm0
  movss  %xmm0,-0x80(%rbp)
  movss  -0x88(%rbp),%xmm0
  movss  %xmm0,-0x94(%rbp)
  movss  -0x70(%rbp),%xmm0
  movss  %xmm0,-0x88(%rbp)
  movss  -0x94(%rbp),%xmm0
  movss  %xmm0,-0x70(%rbp)
  movss  -0x78(%rbp),%xmm0
  movss  %xmm0,-0x94(%rbp)
  movss  -0x6c(%rbp),%xmm0
  movss  %xmm0,-0x78(%rbp)
  movss  -0x94(%rbp),%xmm0
  movss  %xmm0,-0x6c(%rbp)
  mov    -0xa8(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  mov    -0xa8(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mov    -0xa8(%rbp),%rax
  mov    (%rax),%eax
  lea    -0x50(%rbp),%rdx
  mov    %rdx,%rdi
  movaps %xmm1,%xmm2
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  call   <Calc_3dMat4Mov@plt>
  mov    -0xc8(%rbp),%rdx
  lea    -0x50(%rbp),%rcx
  lea    -0x90(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <Calc_3dMat4Multi44@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L0
  call   <__stack_chk_fail@plt>
L0:
  leave
  ret
```

assistant: ```c
void Calc_3dMat4TranAxisInv(float orig[3], float x_axis[3], float y_axis[3], float z_axis[3], float matA[4][4]) {
  float axis_mat[4][4];
  float mov_mat[4][4];
  float ex_work;
  Calc_3dMat4RotAxis(x_axis, y_axis, z_axis, axis_mat);
  ex_work = axis_mat[0][1];
  axis_mat[0][1] = axis_mat[1][0];
  axis_mat[1][0] = ex_work;
  ex_work = axis_mat[0][2];
  axis_mat[0][2] = axis_mat[2][0];
  axis_mat[2][0] = ex_work;
  ex_work = axis_mat[1][2];
  axis_mat[1][2] = axis_mat[2][1];
  axis_mat[2][1] = ex_work;
  Calc_3dMat4Mov(orig[0], orig[1], orig[2], mov_mat);
  Calc_3dMat4Multi44(axis_mat, mov_mat, matA);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<Calc_3dMat4TranAxisInv>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rdi
  mov    %rdx,%rsi
  mov    %rcx,%rdx
  mov    %r8,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r12
  mov    %r12,%rcx
  call   <Calc_3dMat4RotAxis@plt>
  movss  0x4(%rsp),%xmm0
  movss  0x10(%rsp),%xmm1
  movss  %xmm1,0x4(%rsp)
  movss  %xmm0,0x10(%rsp)
  movss  0x8(%rsp),%xmm0
  movss  0x20(%rsp),%xmm1
  movss  %xmm1,0x8(%rsp)
  movss  %xmm0,0x20(%rsp)
  movss  0x18(%rsp),%xmm0
  movss  0x24(%rsp),%xmm1
  movss  %xmm1,0x18(%rsp)
  movss  %xmm0,0x24(%rsp)
  lea    0x40(%rsp),%r13
  mov    %r13,%rdi
  movss  0x8(%rbx),%xmm2
  movss  0x4(%rbx),%xmm1
  movss  (%rbx),%xmm0
  call   <Calc_3dMat4Mov@plt>
  mov    %rbp,%rdx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <Calc_3dMat4Multi44@plt>
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L2:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void Calc_3dMat4TranAxisInv(float orig[3], float x_axis[3], float y_axis[3], float z_axis[3], float matA[4][4]) {
  float axis_mat[4][4];
  float mov_mat[4][4];
  float ex_work;
  Calc_3dMat4RotAxis(x_axis, y_axis, z_axis, axis_mat);
  ex_work = axis_mat[0][1];
  axis_mat[0][1] = axis_mat[1][0];
  axis_mat[1][0] = ex_work;
  ex_work = axis_mat[0][2];
  axis_mat[0][2] = axis_mat[2][0];
  axis_mat[2][0] = ex_work;
  ex_work = axis_mat[1][2];
  axis_mat[1][2] = axis_mat[2][1];
  axis_mat[2][1] = ex_work;
  Calc_3dMat4Mov(orig[0], orig[1], orig[2], mov_mat);
  Calc_3dMat4Multi44(axis_mat, mov_mat, matA);
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<Calc_3dMat4TranAxisInv>:
  endbr64
  push   %r13
  push   %r12
  mov    %r8,%r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %rsi,%rdi
  mov    %rdx,%rsi
  mov    %rcx,%rdx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbp
  lea    0x40(%rsp),%r13
  mov    %rbp,%rcx
  call   <Calc_3dMat4RotAxis@plt>
  movss  0x4(%rsp),%xmm0
  movss  0x8(%rbx),%xmm2
  mov    %r13,%rdi
  movss  0x10(%rsp),%xmm1
  movss  %xmm0,0x10(%rsp)
  movss  0x8(%rsp),%xmm0
  movss  %xmm1,0x4(%rsp)
  movss  0x20(%rsp),%xmm1
  movss  %xmm0,0x20(%rsp)
  movss  0x18(%rsp),%xmm0
  movss  %xmm1,0x8(%rsp)
  movss  0x24(%rsp),%xmm1
  movss  %xmm0,0x24(%rsp)
  movss  (%rbx),%xmm0
  movss  %xmm1,0x18(%rsp)
  movss  0x4(%rbx),%xmm1
  call   <Calc_3dMat4Mov@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <Calc_3dMat4Multi44@plt>
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L8
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L8:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void Calc_3dMat4TranAxisInv(float orig[3], float x_axis[3], float y_axis[3], float z_axis[3], float matA[4][4]) {
  float axis_mat[4][4];
  float mov_mat[4][4];
  float ex_work;
  Calc_3dMat4RotAxis(x_axis, y_axis, z_axis, axis_mat);
  ex_work = axis_mat[0][1];
  axis_mat[0][1] = axis_mat[1][0];
  axis_mat[1][0] = ex_work;
  ex_work = axis_mat[0][2];
  axis_mat[0][2] = axis_mat[2][0];
  axis_mat[2][0] = ex_work;
  ex_work = axis_mat[1][2];
  axis_mat[1][2] = axis_mat[2][1];
  axis_mat[2][1] = ex_work;
  Calc_3dMat4Mov(orig[0], orig[1], orig[2], mov_mat);
  Calc_3dMat4Multi44(axis_mat, mov_mat, matA);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<Calc_3dMat4TranAxisInv>:
  endbr64
  push   %r13
  push   %r12
  mov    %r8,%r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %rsi,%rdi
  mov    %rdx,%rsi
  mov    %rcx,%rdx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbp
  lea    0x40(%rsp),%r13
  mov    %rbp,%rcx
  call   <Calc_3dMat4RotAxis@plt>
  movss  0x20(%rsp),%xmm2
  movss  0x10(%rsp),%xmm1
  mov    %r13,%rdi
  movss  0x4(%rsp),%xmm0
  unpcklps %xmm2,%xmm1
  movss  0x8(%rbx),%xmm2
  movss  %xmm0,0x10(%rsp)
  movss  0x8(%rsp),%xmm0
  movlps %xmm1,0x4(%rsp)
  movss  0x18(%rsp),%xmm1
  unpcklps %xmm1,%xmm0
  movss  0x24(%rsp),%xmm1
  movlps %xmm0,0x20(%rsp)
  movss  (%rbx),%xmm0
  movss  %xmm1,0x18(%rsp)
  movss  0x4(%rbx),%xmm1
  call   <Calc_3dMat4Mov@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <Calc_3dMat4Multi44@plt>
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L7:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void Calc_3dMat4TranAxisInv(float orig[3], float x_axis[3], float y_axis[3], float z_axis[3], float matA[4][4]) {
  float axis_mat[4][4];
  float mov_mat[4][4];
  float ex_work;
  Calc_3dMat4RotAxis(x_axis, y_axis, z_axis, axis_mat);
  ex_work = axis_mat[0][1];
  axis_mat[0][1] = axis_mat[1][0];
  axis_mat[1][0] = ex_work;
  ex_work = axis_mat[0][2];
  axis_mat[0][2] = axis_mat[2][0];
  axis_mat[2][0] = ex_work;
  ex_work = axis_mat[1][2];
  axis_mat[1][2] = axis_mat[2][1];
  axis_mat[2][1] = ex_work;
  Calc_3dMat4Mov(orig[0], orig[1], orig[2], mov_mat);
  Calc_3dMat4Multi44(axis_mat, mov_mat, matA);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<parse_char>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,%eax
  mov    %rsi,-0x10(%rbp)
  mov    %al,-0x4(%rbp)
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    %al,-0x4(%rbp)
  je     L13
  mov    $0xffffffff,%eax
  jmp    L0
L13:
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rax
  lea    0x1(%rax),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,(%rax)
  mov    $0x0,%eax
L0:
  pop    %rbp
  ret
```

assistant: ```c
int parse_char(char c, const char **str) {
  if (**str != c)
    return -1;
  (*str)++;
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<parse_char>:
  endbr64
  mov    (%rsi),%rax
  cmp    %dil,(%rax)
  jne    L4
  add    $0x1,%rax
  mov    %rax,(%rsi)
  mov    $0x0,%eax
  ret
L4:
  mov    $0xffffffff,%eax
  ret
```

assistant: ```c
int parse_char(char c, const char **str) {
  if (**str != c)
    return -1;
  (*str)++;
  return 0;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<parse_char>:
  endbr64
  mov    (%rsi),%rax
  cmp    %dil,(%rax)
  jne    L0
  add    $0x1,%rax
  mov    %rax,(%rsi)
  xor    %eax,%eax
  ret
  cs nopw 0x0(%rax,%rax,1)
L0:
  mov    $0xffffffff,%eax
  ret
```

assistant: ```c
int parse_char(char c, const char **str) {
  if (**str != c)
    return -1;
  (*str)++;
  return 0;
}
```