ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 下面的汇编指令对应的C源代码是什么:

```asm
<slice2>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  movsbl %r12b,%r14d
  mov    %esi,%ebp
  push   %rbx
  mov    %rdi,%rbx
  mov    %edx,%edi
  sub    %esi,%edi
  call   <malloc@plt>
  mov    %r14d,%edx
  mov    %ebp,%esi
  lea    D33(%rip),%rdi
  mov    %rax,%r13
  call   <printf@plt>
  mov    %r14d,%edx
  mov    %ebp,%esi
  lea    D0(%rip),%rdi
  call   <printf@plt>
  lea    D1(%rip),%rdi
  call   <puts@plt>
  movslq %ebp,%rax
  mov    %r12d,%edx
  mov    %r13,%rdi
  lea    (%rbx,%rax,1),%rsi
  call   <strncpy@plt>
  cmp    %ebp,%r12d
  jl     L17
  xor    %ebx,%ebx
  lea    D3(%rip),%r14
  nopw   0x0(%rax,%rax,1)
L16:
  movsbl 0x0(%r13,%rbx,1),%edx
  mov    %ebx,%esi
  mov    %r14,%rdi
  add    $0x1,%rbx
  call   <printf@plt>
  lea    0x0(%rbp,%rbx,1),%eax
  cmp    %eax,%r12d
  jge    L16
L17:
  pop    %rbx
  mov    %r13,%rdi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1090 <free@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D33
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D0
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D3
type_guessed: string

tool: D33: Getting slice[%d:%d] of array 


tool: D0: (Elements %d to %d of array.) 


tool: D1: Here is the slice array... 

tool: D3: Element[%d] is %c 


assistant: ```c
void slice2(char *array, int first, int last) {
  char *retarray = (char *)malloc(last - first);
  int i;
  printf("Getting slice[%d:%d] of array \n", first, last);
  printf("(Elements %d to %d of array.) \n", first, last);
  puts("Here is the slice array... ");
  strncpy(retarray, array + first, last);
  for (i = first; i < last + 1; i++) {
    printf("Element[%d] is %c \n", i - first, retarray[i - first]);
  }
  free(retarray);
  retarray = NULL;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    D85(%rip),%rdi
  call   <printf@plt>
  mov    %rsp,%rsi
  lea    D3(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D24(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D20(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd (%rsp),%xmm0
  movsd  D35(%rip),%xmm1
  comisd %xmm0,%xmm1
  jb     L37
  cmpl   $0x15,0x4(%rsp)
  setge  %sil
  add    $0x44,%esi
L26:
  movsbl %sil,%esi
  lea    D30(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L64
  mov    $0x0,%eax
  add    $0x18,%rsp
  ret
L37:
  movsd  D32(%rip),%xmm1
  comisd %xmm0,%xmm1
  jb     L18
  cmpl   $0x15,0x4(%rsp)
  setge  %sil
  add    $0x44,%esi
  jmp    L26
L18:
  movsd  D23(%rip),%xmm1
  comisd %xmm0,%xmm1
  jb     L10
  cmpl   $0x15,0x4(%rsp)
  setge  %sil
  add    $0x43,%esi
  jmp    L26
L10:
  movsd  D17(%rip),%xmm1
  comisd %xmm0,%xmm1
  jb     L13
  cmpl   $0x15,0x4(%rsp)
  setge  %sil
  add    $0x42,%esi
  jmp    L26
L13:
  cmpl   $0x15,0x4(%rsp)
  setge  %sil
  add    $0x41,%esi
  jmp    L26
L64:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D85
data_type: string
name: read_data
arguments: data_label: D3
data_type: string
name: read_data
arguments: data_label: D24
data_type: string
name: read_data
arguments: data_label: D20
data_type: string
name: read_data
arguments: data_label: D35
data_type: f64
name: read_data
arguments: data_label: D30
data_type: string
name: read_data
arguments: data_label: D32
data_type: f64
name: read_data
arguments: data_label: D23
data_type: f64
name: read_data
arguments: data_label: D17
data_type: f64

tool: D85: Digite a Nota do aluno: 

tool: D3: %f

tool: D24: Digite a quantidade de falta(s) do aluno: 

tool: D20: %d

tool: D35: 3.9

tool: D30: Conceito: %c

tool: D32: 4.9

tool: D23: 7.4

tool: D17: 8.9

assistant: ```c
int main() {
  float nota;
  int falta;
  char conceito;
  printf("Digite a Nota do aluno: ");
  scanf("%f", &nota);
  printf("Digite a quantidade de falta(s) do aluno: ");
  scanf("%d", &falta);
  if (nota <= 3.9) {
    if (falta <= 20) {
      conceito = 'D';
    } else {
      conceito = 'E';
    }
  } else if (nota <= 4.9) {
    if (falta <= 20) {
      conceito = 'D';
    } else {
      conceito = 'E';
    }
  } else if (nota <= 7.4) {
    if (falta <= 20) {
      conceito = 'C';
    } else {
      conceito = 'D';
    }
  } else if (nota <= 8.9) {
    if (falta <= 20) {
      conceito = 'B';
    } else {
      conceito = 'C';
    }
  } else {
    if (falta <= 20) {
      conceito = 'A';
    } else {
      conceito = 'B';
    }
  }
  printf("Conceito: %c", conceito);
  return 0;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<main>:
  endbr64
  sub    $0x18,%rsp
  lea    D4(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rsp,%rsi
  lea    D70(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D15(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  lea    D42(%rip),%rdi
  call   <scanf@plt>
  movsd  D13(%rip),%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd (%rsp),%xmm0
  comisd %xmm0,%xmm1
  jb     L84
  cmpl   $0x14,0x4(%rsp)
  setg   %sil
  add    $0x44,%esi
L32:
  xor    %eax,%eax
  movsbl %sil,%esi
  lea    D47(%rip),%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L37
  xor    %eax,%eax
  add    $0x18,%rsp
  ret
L84:
  movsd  D12(%rip),%xmm1
  mov    0x4(%rsp),%eax
  comisd %xmm0,%xmm1
  jb     L38
  cmp    $0x14,%eax
  setg   %sil
  add    $0x44,%esi
  jmp    L32
L38:
  movsd  D86(%rip),%xmm1
  comisd %xmm0,%xmm1
  jae    L25
  movsd  D10(%rip),%xmm1
  cmp    $0x14,%eax
  setg   %sil
  comisd %xmm0,%xmm1
  jb     L3
  add    $0x42,%esi
  jmp    L32
L25:
  cmp    $0x14,%eax
  setg   %sil
  add    $0x43,%esi
  jmp    L32
L3:
  add    $0x41,%esi
  jmp    L32
L37:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D4
type: string
name: read_data
arguments: label: D70
type: string
name: read_data
arguments: label: D15
type: string
name: read_data
arguments: label: D42
type: string
name: read_data
arguments: label: D13
type: f64
name: read_data
arguments: label: D47
type: string
name: read_data
arguments: label: D12
type: f64
name: read_data
arguments: label: D86
type: f64
name: read_data
arguments: label: D10
type: f64

tool: D4: Digite a Nota do aluno: 

tool: D70: %f

tool: D15: Digite a quantidade de falta(s) do aluno: 

tool: D42: %d

tool: D13: 3.9

tool: D47: Conceito: %c

tool: D12: 4.9

tool: D86: 7.4

tool: D10: 8.9

assistant: ```c
int main() {
  float nota;
  int falta;
  char conceito;
  printf("Digite a Nota do aluno: ");
  scanf("%f", &nota);
  printf("Digite a quantidade de falta(s) do aluno: ");
  scanf("%d", &falta);
  if (nota <= 3.9) {
    if (falta <= 20) {
      conceito = 'D';
    } else {
      conceito = 'E';
    }
  } else if (nota <= 4.9) {
    if (falta <= 20) {
      conceito = 'D';
    } else {
      conceito = 'E';
    }
  } else if (nota <= 7.4) {
    if (falta <= 20) {
      conceito = 'C';
    } else {
      conceito = 'D';
    }
  } else if (nota <= 8.9) {
    if (falta <= 20) {
      conceito = 'B';
    } else {
      conceito = 'C';
    }
  } else {
    if (falta <= 20) {
      conceito = 'A';
    } else {
      conceito = 'B';
    }
  }
  printf("Conceito: %c", conceito);
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  sub    $0x18,%rsp
  lea    D25(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rsp,%rsi
  lea    D46(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D15(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  lea    D81(%rip),%rdi
  call   <scanf@plt>
  movsd  D2(%rip),%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd (%rsp),%xmm0
  comisd %xmm0,%xmm1
  jb     L54
  cmpl   $0x14,0x4(%rsp)
  setg   %sil
  add    $0x44,%esi
L25:
  xor    %eax,%eax
  movsbl %sil,%esi
  lea    D14(%rip),%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L76
  xor    %eax,%eax
  add    $0x18,%rsp
  ret
L54:
  movsd  D34(%rip),%xmm1
  mov    0x4(%rsp),%eax
  comisd %xmm0,%xmm1
  jb     L14
  cmp    $0x14,%eax
  setg   %sil
  add    $0x44,%esi
  jmp    L25
L14:
  movsd  D63(%rip),%xmm1
  comisd %xmm0,%xmm1
  jae    L10
  movsd  D71(%rip),%xmm1
  cmp    $0x14,%eax
  setg   %sil
  comisd %xmm0,%xmm1
  jb     L80
  add    $0x42,%esi
  jmp    L25
L10:
  cmp    $0x14,%eax
  setg   %sil
  add    $0x43,%esi
  jmp    L25
L80:
  add    $0x41,%esi
  jmp    L25
L76:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D25
type_infered: string
name: read_data
arguments: data_tag: D46
type_infered: string
name: read_data
arguments: data_tag: D15
type_infered: string
name: read_data
arguments: data_tag: D81
type_infered: string
name: read_data
arguments: data_tag: D2
type_infered: f64
name: read_data
arguments: data_tag: D14
type_infered: string
name: read_data
arguments: data_tag: D34
type_infered: f64
name: read_data
arguments: data_tag: D63
type_infered: f64
name: read_data
arguments: data_tag: D71
type_infered: f64

tool: D25: Digite a Nota do aluno: 

tool: D46: %f

tool: D15: Digite a quantidade de falta(s) do aluno: 

tool: D81: %d

tool: D2: 3.9

tool: D14: Conceito: %c

tool: D34: 4.9

tool: D63: 7.4

tool: D71: 8.9

assistant: ```c
int main() {
  float nota;
  int falta;
  char conceito;
  printf("Digite a Nota do aluno: ");
  scanf("%f", &nota);
  printf("Digite a quantidade de falta(s) do aluno: ");
  scanf("%d", &falta);
  if (nota <= 3.9) {
    if (falta <= 20) {
      conceito = 'D';
    } else {
      conceito = 'E';
    }
  } else if (nota <= 4.9) {
    if (falta <= 20) {
      conceito = 'D';
    } else {
      conceito = 'E';
    }
  } else if (nota <= 7.4) {
    if (falta <= 20) {
      conceito = 'C';
    } else {
      conceito = 'D';
    }
  } else if (nota <= 8.9) {
    if (falta <= 20) {
      conceito = 'B';
    } else {
      conceito = 'C';
    }
  } else {
    if (falta <= 20) {
      conceito = 'A';
    } else {
      conceito = 'B';
    }
  }
  printf("Conceito: %c", conceito);
  return 0;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<client_send_msg_reply>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8d,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x10(%rbp)
  lea    -0x14(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <client_open@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x0,-0xc(%rbp)
  jle    L5
  mov    -0x38(%rbp),%ecx
  mov    -0x40(%rbp),%rdx
  mov    -0x30(%rbp),%rsi
  mov    -0xc(%rbp),%eax
  mov    %eax,%edi
  call   <client_send_reply@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,%edi
  call   <client_close@plt>
L5:
  mov    -0x10(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L19
  call   <__stack_chk_fail@plt>
L19:
  leave
  ret
```

assistant: ```c
int client_send_msg_reply(const char *path, const char *msg, int msg_len, char *recv, int recv_len) {
  struct sockaddr_un socket_addr;
  int socket;
  int length = 0;
  socket = client_open(path, &socket_addr);
  if (socket > 0) {
    length = client_send_reply(socket, msg, recv, recv_len);
    client_close(socket);
  }
  return length;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<client_send_msg_reply>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %rsi,%rbp
  mov    %rcx,%r12
  mov    %r8d,%r13d
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  call   <client_open@plt>
  mov    $0x0,%r14d
  test   %eax,%eax
  jg     L2
L26:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L11
  mov    %r14d,%eax
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L2:
  mov    %eax,%ebx
  mov    %r13d,%ecx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %eax,%edi
  call   <client_send_reply@plt>
  mov    %eax,%r14d
  mov    %ebx,%edi
  call   <client_close@plt>
  jmp    L26
L11:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int client_send_msg_reply(const char *path, const char *msg, int msg_len, char *recv, int recv_len) {
  struct sockaddr_un socket_addr;
  int socket;
  int length = 0;
  socket = client_open(path, &socket_addr);
  if (socket > 0) {
    length = client_send_reply(socket, msg, recv, recv_len);
    client_close(socket);
  }
  return length;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<client_send_msg_reply>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  mov    %r8d,%r14d
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  call   <client_open@plt>
  test   %eax,%eax
  jle    L17
  mov    %eax,%ebp
  mov    %eax,%edi
  mov    %r14d,%ecx
  mov    %r13,%rdx
  mov    %r12,%rsi
  call   <client_send_reply@plt>
  mov    %ebp,%edi
  mov    %eax,%r15d
  call   <client_close@plt>
L17:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L11
  add    $0x10,%rsp
  mov    %r15d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L11:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int client_send_msg_reply(const char *path, const char *msg, int msg_len, char *recv, int recv_len) {
  struct sockaddr_un socket_addr;
  int socket;
  int length = 0;
  socket = client_open(path, &socket_addr);
  if (socket > 0) {
    length = client_send_reply(socket, msg, recv, recv_len);
    client_close(socket);
  }
  return length;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<client_send_msg_reply>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  mov    %r8d,%r14d
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  call   <client_open@plt>
  test   %eax,%eax
  jle    L4
  mov    %eax,%ebp
  mov    %eax,%edi
  mov    %r14d,%ecx
  mov    %r13,%rdx
  mov    %r12,%rsi
  call   <client_send_reply@plt>
  mov    %ebp,%edi
  mov    %eax,%r15d
  call   <client_close@plt>
L4:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  add    $0x10,%rsp
  mov    %r15d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L0:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int client_send_msg_reply(const char *path, const char *msg, int msg_len, char *recv, int recv_len) {
  struct sockaddr_un socket_addr;
  int socket;
  int length = 0;
  socket = client_open(path, &socket_addr);
  if (socket > 0) {
    length = client_send_reply(socket, msg, recv, recv_len);
    client_close(socket);
  }
  return length;
}
```
user: What is the c source code of the assembly code below?

```asm
<power>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  movl   $0x1,-0x8(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L12
L18:
  mov    -0x8(%rbp),%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  addl   $0x1,-0x4(%rbp)
L12:
  mov    -0x4(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L18
  mov    -0x8(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
int power(int a, int n) {
  int p = 1, i;
  for (i = 0; i < n; i++)
    p *= a;
  return p;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<power>:
  endbr64
  test   %esi,%esi
  jle    L9
  mov    $0x0,%eax
  mov    $0x1,%edx
L27:
  imul   %edi,%edx
  add    $0x1,%eax
  cmp    %eax,%esi
  jne    L27
L18:
  mov    %edx,%eax
  ret
L9:
  mov    $0x1,%edx
  jmp    L18
```

assistant: ```c
int power(int a, int n) {
  int p = 1, i;
  for (i = 0; i < n; i++)
    p *= a;
  return p;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<power>:
  endbr64
  test   %esi,%esi
  jle    L13
  xor    %eax,%eax
  mov    $0x1,%r8d
L7:
  add    $0x1,%eax
  imul   %edi,%r8d
  cmp    %eax,%esi
  jne    L7
  mov    %r8d,%eax
  ret
  nop
L13:
  mov    $0x1,%r8d
  mov    %r8d,%eax
  ret
```

assistant: ```c
int power(int a, int n) {
  int p = 1, i;
  for (i = 0; i < n; i++)
    p *= a;
  return p;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<power>:
  endbr64
  test   %esi,%esi
  jle    L19
  xor    %eax,%eax
  mov    $0x1,%r8d
L3:
  add    $0x1,%eax
  imul   %edi,%r8d
  cmp    %eax,%esi
  jne    L3
  mov    %r8d,%eax
  ret
  nop
L19:
  mov    $0x1,%r8d
  mov    %r8d,%eax
  ret
```

assistant: ```c
int power(int a, int n) {
  int p = 1, i;
  for (i = 0; i < n; i++)
    p *= a;
  return p;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<morus_enc_aut_partialblock>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %rdi,%r14
  mov    %rsi,%r12
  mov    %rdx,%rbp
  mov    %rcx,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r13
  mov    $0x10,%edx
  mov    $0x0,%esi
  mov    %r13,%rdi
  call   <memset@plt>
  mov    %rbp,%rdx
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <memcpy@plt>
  mov    (%rbx),%eax
  xor    0x14(%rbx),%eax
  xor    (%rsp),%eax
  mov    0x20(%rbx),%edx
  and    0x30(%rbx),%edx
  xor    %edx,%eax
  mov    %eax,0x10(%rsp)
  mov    0x4(%rbx),%eax
  xor    0x18(%rbx),%eax
  xor    0x4(%rsp),%eax
  mov    0x24(%rbx),%edx
  and    0x34(%rbx),%edx
  xor    %edx,%eax
  mov    %eax,0x14(%rsp)
  mov    0x8(%rbx),%eax
  xor    0x1c(%rbx),%eax
  xor    0x8(%rsp),%eax
  mov    0x28(%rbx),%edx
  and    0x38(%rbx),%edx
  xor    %edx,%eax
  mov    %eax,0x18(%rsp)
  mov    0xc(%rbx),%eax
  xor    0x10(%rbx),%eax
  xor    0xc(%rsp),%eax
  mov    0x2c(%rbx),%edx
  and    0x3c(%rbx),%edx
  xor    %edx,%eax
  mov    %eax,0x1c(%rsp)
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <morus_stateupdate@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdx
  mov    %r12,%rdi
  call   <memcpy@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L4
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L4:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void morus_enc_aut_partialblock(const unsigned char *plaintext, unsigned char *ciphertext, unsigned long long len, unsigned int state[][4]) {
  unsigned char plaintextblock[16], ciphertextblock[16];
  memset(plaintextblock, 0, 16);
  memcpy(plaintextblock, plaintext, len);
  ((unsigned int *)ciphertextblock)[0] = ((unsigned int *)plaintextblock)[0] ^ state[0][0] ^ state[1][1] ^ (state[2][0] & state[3][0]);
  ((unsigned int *)ciphertextblock)[1] = ((unsigned int *)plaintextblock)[1] ^ state[0][1] ^ state[1][2] ^ (state[2][1] & state[3][1]);
  ((unsigned int *)ciphertextblock)[2] = ((unsigned int *)plaintextblock)[2] ^ state[0][2] ^ state[1][3] ^ (state[2][2] & state[3][2]);
  ((unsigned int *)ciphertextblock)[3] = ((unsigned int *)plaintextblock)[3] ^ state[0][3] ^ state[1][0] ^ (state[2][3] & state[3][3]);
  morus_stateupdate(((unsigned int *)plaintextblock), state);
  memcpy(ciphertext, ciphertextblock, len);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<morus_enc_aut_partialblock>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  xor    %esi,%esi
  push   %r12
  mov    %rdx,%r12
  mov    $0x10,%edx
  push   %rbp
  mov    %rcx,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r14
  mov    %r14,%rdi
  call   <memset@plt>
  mov    %r12,%rdx
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <memcpy@plt>
  mov    0x0(%rbp),%eax
  mov    0x20(%rbp),%edx
  mov    %rbp,%rsi
  and    0x30(%rbp),%edx
  xor    0x14(%rbp),%eax
  mov    %r14,%rdi
  xor    (%rsp),%eax
  xor    %edx,%eax
  mov    0x24(%rbp),%edx
  and    0x34(%rbp),%edx
  mov    %eax,0x10(%rsp)
  mov    0x4(%rbp),%eax
  xor    0x18(%rbp),%eax
  xor    0x4(%rsp),%eax
  xor    %edx,%eax
  mov    0x28(%rbp),%edx
  and    0x38(%rbp),%edx
  mov    %eax,0x14(%rsp)
  mov    0x8(%rbp),%eax
  xor    0x1c(%rbp),%eax
  xor    0x8(%rsp),%eax
  xor    %edx,%eax
  mov    0x2c(%rbp),%edx
  and    0x3c(%rbp),%edx
  mov    %eax,0x18(%rsp)
  mov    0xc(%rbp),%eax
  xor    0x10(%rbp),%eax
  xor    0xc(%rsp),%eax
  xor    %edx,%eax
  mov    %eax,0x1c(%rsp)
  call   <morus_stateupdate@plt>
  lea    0x10(%rsp),%rsi
  mov    %r12,%rdx
  mov    %r13,%rdi
  call   <memcpy@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0x30,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void morus_enc_aut_partialblock(const unsigned char *plaintext, unsigned char *ciphertext, unsigned long long len, unsigned int state[][4]) {
  unsigned char plaintextblock[16], ciphertextblock[16];
  memset(plaintextblock, 0, 16);
  memcpy(plaintextblock, plaintext, len);
  ((unsigned int *)ciphertextblock)[0] = ((unsigned int *)plaintextblock)[0] ^ state[0][0] ^ state[1][1] ^ (state[2][0] & state[3][0]);
  ((unsigned int *)ciphertextblock)[1] = ((unsigned int *)plaintextblock)[1] ^ state[0][1] ^ state[1][2] ^ (state[2][1] & state[3][1]);
  ((unsigned int *)ciphertextblock)[2] = ((unsigned int *)plaintextblock)[2] ^ state[0][2] ^ state[1][3] ^ (state[2][2] & state[3][2]);
  ((unsigned int *)ciphertextblock)[3] = ((unsigned int *)plaintextblock)[3] ^ state[0][3] ^ state[1][0] ^ (state[2][3] & state[3][3]);
  morus_stateupdate(((unsigned int *)plaintextblock), state);
  memcpy(ciphertext, ciphertextblock, len);
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<morus_enc_aut_partialblock>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  xor    %esi,%esi
  push   %r12
  mov    %rdx,%r12
  mov    $0x10,%edx
  push   %rbp
  mov    %rcx,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r14
  mov    %r14,%rdi
  call   <memset@plt>
  mov    %r12,%rdx
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <memcpy@plt>
  movdqu 0x20(%rbp),%xmm0
  mov    %rbp,%rsi
  mov    %r14,%rdi
  movdqu 0x30(%rbp),%xmm2
  movdqu 0x10(%rbp),%xmm3
  pand   %xmm2,%xmm0
  pshufd $0x39,%xmm3,%xmm1
  pxor   %xmm1,%xmm0
  movdqu 0x0(%rbp),%xmm1
  pxor   (%rsp),%xmm1
  pxor   %xmm1,%xmm0
  movaps %xmm0,0x10(%rsp)
  call   <morus_stateupdate@plt>
  lea    0x10(%rsp),%rsi
  mov    %r12,%rdx
  mov    %r13,%rdi
  call   <memcpy@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x30,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L2:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void morus_enc_aut_partialblock(const unsigned char *plaintext, unsigned char *ciphertext, unsigned long long len, unsigned int state[][4]) {
  unsigned char plaintextblock[16], ciphertextblock[16];
  memset(plaintextblock, 0, 16);
  memcpy(plaintextblock, plaintext, len);
  ((unsigned int *)ciphertextblock)[0] = ((unsigned int *)plaintextblock)[0] ^ state[0][0] ^ state[1][1] ^ (state[2][0] & state[3][0]);
  ((unsigned int *)ciphertextblock)[1] = ((unsigned int *)plaintextblock)[1] ^ state[0][1] ^ state[1][2] ^ (state[2][1] & state[3][1]);
  ((unsigned int *)ciphertextblock)[2] = ((unsigned int *)plaintextblock)[2] ^ state[0][2] ^ state[1][3] ^ (state[2][2] & state[3][2]);
  ((unsigned int *)ciphertextblock)[3] = ((unsigned int *)plaintextblock)[3] ^ state[0][3] ^ state[1][0] ^ (state[2][3] & state[3][3]);
  morus_stateupdate(((unsigned int *)plaintextblock), state);
  memcpy(ciphertext, ciphertextblock, len);
}
```