ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<cosf>:
  endbr64
  mulss  %xmm0,%xmm0
  movss  D32(%rip),%xmm4
  movss  D25(%rip),%xmm1
  mulss  %xmm0,%xmm4
  movaps %xmm0,%xmm3
  mulss  %xmm0,%xmm3
  subss  %xmm4,%xmm1
  movaps %xmm3,%xmm2
  divss  D19(%rip),%xmm3
  mulss  %xmm0,%xmm2
  addss  %xmm3,%xmm1
  movaps %xmm2,%xmm3
  divss  D14(%rip),%xmm3
  subss  %xmm3,%xmm1
  mulss  %xmm0,%xmm2
  divss  D48(%rip),%xmm2
  addss  %xmm2,%xmm1
  movaps %xmm1,%xmm0
  ret
```

tool_calls: name: unpack_data
arguments: label: D32
type_infered: byte[4]
name: unpack_data
arguments: label: D25
type_infered: byte[4]
name: unpack_data
arguments: label: D19
type_infered: byte[4]
name: unpack_data
arguments: label: D14
type_infered: byte[4]
name: unpack_data
arguments: label: D48
type_infered: byte[4]

tool: {"D32": [0x00,0x00,0x00,0x3f]}

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

tool: {"D19": [0x00,0x00,0xc0,0x41]}

tool: {"D14": [0x00,0x00,0x34,0x44]}

tool: {"D48": [0x00,0x80,0x1d,0x47]}

assistant: ```c
float cosf(float x) {
  float xsquare = x * x;
  return 1 - xsquare / 2 + xsquare * xsquare / 24 - xsquare * xsquare * xsquare / 720 + xsquare * xsquare * xsquare * xsquare / 40320;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<cosf>:
  endbr64
  mulss  %xmm0,%xmm0
  movss  D17(%rip),%xmm4
  movss  D27(%rip),%xmm1
  mulss  %xmm0,%xmm4
  movaps %xmm0,%xmm3
  mulss  %xmm0,%xmm3
  subss  %xmm4,%xmm1
  movaps %xmm3,%xmm2
  divss  D24(%rip),%xmm3
  mulss  %xmm0,%xmm2
  addss  %xmm3,%xmm1
  movaps %xmm2,%xmm3
  divss  D25(%rip),%xmm3
  subss  %xmm3,%xmm1
  mulss  %xmm0,%xmm2
  divss  D11(%rip),%xmm2
  addss  %xmm2,%xmm1
  movaps %xmm1,%xmm0
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D17
type: byte[4]
name: unpack_data
arguments: data_tag: D27
type: byte[4]
name: unpack_data
arguments: data_tag: D24
type: byte[4]
name: unpack_data
arguments: data_tag: D25
type: byte[4]
name: unpack_data
arguments: data_tag: D11
type: byte[4]

tool: {"D17": [0x00,0x00,0x00,0x3f]}

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

tool: {"D24": [0x00,0x00,0xc0,0x41]}

tool: {"D25": [0x00,0x00,0x34,0x44]}

tool: {"D11": [0x00,0x80,0x1d,0x47]}

assistant: ```c
float cosf(float x) {
  float xsquare = x * x;
  return 1 - xsquare / 2 + xsquare * xsquare / 24 - xsquare * xsquare * xsquare / 720 + xsquare * xsquare * xsquare * xsquare / 40320;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xc(%rbp)
  mov    $0x1,%edi
  call   <mc_set_debug@plt>
  mov    $0x0,%eax
  call   <test_basic_printbuf_memset@plt>
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <test_printbuf_memset_length@plt>
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rdi
  call   <test_printbuf_memappend@plt>
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0xc(%rbp),%eax
  mov    %eax,%edi
  call   <test_sprintbuf@plt>
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D36
type: string

tool: D36: ========================================


assistant: ```c
int main(int argc, char **argv) {
  int before_resize = 0;
  mc_set_debug(1);
  test_basic_printbuf_memset();
  printf("========================================\n");
  test_printbuf_memset_length();
  printf("========================================\n");
  test_printbuf_memappend(&before_resize);
  printf("========================================\n");
  test_sprintbuf(before_resize);
  printf("========================================\n");
  return 0;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<main>:
  endbr64
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x4(%rsp)
  mov    $0x1,%edi
  call   <mc_set_debug@plt>
  mov    $0x0,%eax
  call   <test_basic_printbuf_memset@plt>
  lea    D7(%rip),%rbx
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <test_printbuf_memset_length@plt>
  mov    %rbx,%rdi
  call   <printf@plt>
  lea    0x4(%rsp),%rdi
  call   <test_printbuf_memappend@plt>
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%edi
  call   <test_sprintbuf@plt>
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  mov    $0x0,%eax
  add    $0x10,%rsp
  pop    %rbx
  ret
L2:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D7
type: string

tool: D7: ========================================


assistant: ```c
int main(int argc, char **argv) {
  int before_resize = 0;
  mc_set_debug(1);
  test_basic_printbuf_memset();
  printf("========================================\n");
  test_printbuf_memset_length();
  printf("========================================\n");
  test_printbuf_memappend(&before_resize);
  printf("========================================\n");
  test_sprintbuf(before_resize);
  printf("========================================\n");
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<main>:
  endbr64
  push   %rbp
  mov    $0x1,%edi
  lea    D4(%rip),%rbp
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x4(%rsp)
  call   <mc_set_debug@plt>
  xor    %eax,%eax
  call   <test_basic_printbuf_memset@plt>
  mov    %rbp,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <test_printbuf_memset_length@plt>
  mov    %rbp,%rdi
  call   <printf@plt>
  lea    0x4(%rsp),%rdi
  call   <test_printbuf_memappend@plt>
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%edi
  call   <test_sprintbuf@plt>
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L8
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D4
datatype: string

tool: D4: ========================================


assistant: ```c
int main(int argc, char **argv) {
  int before_resize = 0;
  mc_set_debug(1);
  test_basic_printbuf_memset();
  printf("========================================\n");
  test_printbuf_memset_length();
  printf("========================================\n");
  test_printbuf_memappend(&before_resize);
  printf("========================================\n");
  test_sprintbuf(before_resize);
  printf("========================================\n");
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    $0x1,%edi
  lea    D9(%rip),%rbp
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x4(%rsp)
  call   <mc_set_debug@plt>
  xor    %eax,%eax
  call   <test_basic_printbuf_memset@plt>
  mov    %rbp,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <test_printbuf_memset_length@plt>
  mov    %rbp,%rdi
  call   <printf@plt>
  lea    0x4(%rsp),%rdi
  call   <test_printbuf_memappend@plt>
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%edi
  call   <test_sprintbuf@plt>
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D9
data_type: string

tool: D9: ========================================


assistant: ```c
int main(int argc, char **argv) {
  int before_resize = 0;
  mc_set_debug(1);
  test_basic_printbuf_memset();
  printf("========================================\n");
  test_printbuf_memset_length();
  printf("========================================\n");
  test_printbuf_memappend(&before_resize);
  printf("========================================\n");
  test_sprintbuf(before_resize);
  printf("========================================\n");
  return 0;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<updateRssFreq>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    $0x2,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <isNumericOk@plt>
  test   %rax,%rax
  je     L5
  mov    -0x8(%rbp),%rax
  mov    %rax,%rsi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <setConfigTextValue@plt>
  mov    $0x1,%eax
  jmp    L16
L5:
  mov    $0x0,%eax
L16:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D0
type_infered: string

tool: D0: web.rss.freq

assistant: ```c
int updateRssFreq(char *value) {
  if (isNumericOk(value, 1, 2)) {
    setConfigTextValue("web.rss.freq", value);
    return 1;
  } else {
    return 0;
  }
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<updateRssFreq>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  mov    $0x2,%edx
  mov    $0x1,%esi
  call   <isNumericOk@plt>
  mov    %rax,%rdx
  mov    $0x0,%eax
  test   %rdx,%rdx
  jne    L15
L10:
  pop    %rbx
  ret
L15:
  mov    %rbx,%rsi
  lea    D7(%rip),%rdi
  call   <setConfigTextValue@plt>
  mov    $0x1,%eax
  jmp    L10
```

tool_calls: name: unpack_data
arguments: data_label: D7
type_guessed: string

tool: D7: web.rss.freq

assistant: ```c
int updateRssFreq(char *value) {
  if (isNumericOk(value, 1, 2)) {
    setConfigTextValue("web.rss.freq", value);
    return 1;
  } else {
    return 0;
  }
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<updateRssFreq>:
  endbr64
  push   %rbp
  mov    $0x2,%edx
  mov    $0x1,%esi
  mov    %rdi,%rbp
  call   <isNumericOk@plt>
  mov    %rax,%r8
  xor    %eax,%eax
  test   %r8,%r8
  jne    L6
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L6:
  mov    %rbp,%rsi
  lea    D2(%rip),%rdi
  call   <setConfigTextValue@plt>
  mov    $0x1,%eax
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D2
datatype: string

tool: D2: web.rss.freq

assistant: ```c
int updateRssFreq(char *value) {
  if (isNumericOk(value, 1, 2)) {
    setConfigTextValue("web.rss.freq", value);
    return 1;
  } else {
    return 0;
  }
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<updateRssFreq>:
  endbr64
  push   %rbp
  mov    $0x2,%edx
  mov    $0x1,%esi
  mov    %rdi,%rbp
  call   <isNumericOk@plt>
  mov    %rax,%r8
  xor    %eax,%eax
  test   %r8,%r8
  jne    L6
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L6:
  mov    %rbp,%rsi
  lea    D4(%rip),%rdi
  call   <setConfigTextValue@plt>
  mov    $0x1,%eax
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: label: D4
type: string

tool: D4: web.rss.freq

assistant: ```c
int updateRssFreq(char *value) {
  if (isNumericOk(value, 1, 2)) {
    setConfigTextValue("web.rss.freq", value);
    return 1;
  } else {
    return 0;
  }
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<Teapot_LowLevel_UnbindVertexBufferObjectAndDisableVertexAttributes>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  mov    %esi,-0x8(%rbp)
  mov    $0x0,%eax
  call   <Teapot_LowLevel_UnbindVertexBufferObject@plt>
  mov    -0x8(%rbp),%edx
  mov    -0x4(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <Teapot_LowLevel_DisableVertexAttributes@plt>
  nop
  leave
  ret
```

assistant: ```c
void Teapot_LowLevel_UnbindVertexBufferObjectAndDisableVertexAttributes(int disableVertexAttribArray, int disableNormalAttribArray) {
  Teapot_LowLevel_UnbindVertexBufferObject();
  Teapot_LowLevel_DisableVertexAttributes(disableVertexAttribArray, disableNormalAttribArray);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<Teapot_LowLevel_UnbindVertexBufferObjectAndDisableVertexAttributes>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %edi,%ebx
  mov    %esi,%ebp
  mov    $0x0,%eax
  call   <Teapot_LowLevel_UnbindVertexBufferObject@plt>
  mov    %ebp,%esi
  mov    %ebx,%edi
  call   <Teapot_LowLevel_DisableVertexAttributes@plt>
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
void Teapot_LowLevel_UnbindVertexBufferObjectAndDisableVertexAttributes(int disableVertexAttribArray, int disableNormalAttribArray) {
  Teapot_LowLevel_UnbindVertexBufferObject();
  Teapot_LowLevel_DisableVertexAttributes(disableVertexAttribArray, disableNormalAttribArray);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<Teapot_LowLevel_UnbindVertexBufferObjectAndDisableVertexAttributes>:
  endbr64
  push   %r12
  xor    %eax,%eax
  mov    %esi,%r12d
  push   %rbp
  mov    %edi,%ebp
  sub    $0x8,%rsp
  call   <Teapot_LowLevel_UnbindVertexBufferObject@plt>
  add    $0x8,%rsp
  mov    %r12d,%esi
  mov    %ebp,%edi
  pop    %rbp
  pop    %r12
  jmp    1070 <Teapot_LowLevel_DisableVertexAttributes@plt>
```

assistant: ```c
void Teapot_LowLevel_UnbindVertexBufferObjectAndDisableVertexAttributes(int disableVertexAttribArray, int disableNormalAttribArray) {
  Teapot_LowLevel_UnbindVertexBufferObject();
  Teapot_LowLevel_DisableVertexAttributes(disableVertexAttribArray, disableNormalAttribArray);
}
```
user: What is the c source code of the assembly code below:

```asm
<Teapot_LowLevel_UnbindVertexBufferObjectAndDisableVertexAttributes>:
  endbr64
  push   %r12
  xor    %eax,%eax
  mov    %esi,%r12d
  push   %rbp
  mov    %edi,%ebp
  sub    $0x8,%rsp
  call   <Teapot_LowLevel_UnbindVertexBufferObject@plt>
  add    $0x8,%rsp
  mov    %r12d,%esi
  mov    %ebp,%edi
  pop    %rbp
  pop    %r12
  jmp    1070 <Teapot_LowLevel_DisableVertexAttributes@plt>
```

assistant: ```c
void Teapot_LowLevel_UnbindVertexBufferObjectAndDisableVertexAttributes(int disableVertexAttribArray, int disableNormalAttribArray) {
  Teapot_LowLevel_UnbindVertexBufferObject();
  Teapot_LowLevel_DisableVertexAttributes(disableVertexAttribArray, disableNormalAttribArray);
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<ssh_uudecode>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <ssh_strdup@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L35
L36:
  addq   $0x1,-0x10(%rbp)
L35:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L36
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  je     L36
  jmp    L21
L31:
  addq   $0x1,-0x10(%rbp)
L21:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L51
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L51
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  jne    L31
L51:
  mov    -0x10(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x38(%rbp),%rdx
  mov    -0x30(%rbp),%rcx
  mov    -0x8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <__b64_pton@plt>
  mov    %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x14(%rbp),%eax
  leave
  ret
```

assistant: ```c
int ssh_uudecode(const char *src, u_char *target, size_t targsize) {
  int len;
  char *encoded, *p;
  encoded = ssh_strdup(src);
  for (p = encoded; *p == ' ' || *p == '\t'; p++)
    ;
  for (; *p != '\0' && *p != ' ' && *p != '\t'; p++)
    ;
  *p = '\0';
  len = __b64_pton(encoded, target, targsize);
  free(encoded);
  return len;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<ssh_uudecode>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbp
  mov    %rdx,%r12
  call   <ssh_strdup@plt>
  mov    %rax,%rbx
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L22
  cmp    $0x9,%al
  jne    L41
L22:
  mov    %rbx,%rax
L81:
  add    $0x1,%rax
  movzbl (%rax),%edx
  cmp    $0x20,%dl
  je     L81
  cmp    $0x9,%dl
  je     L81
L12:
  movzbl (%rax),%edx
  test   $0xdf,%dl
  je     L76
  cmp    $0x9,%dl
  je     L76
L50:
  add    $0x1,%rax
  movzbl (%rax),%edx
  test   $0xdf,%dl
  je     L76
  cmp    $0x9,%dl
  jne    L50
L76:
  movb   $0x0,(%rax)
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <__b64_pton@plt>
  mov    %eax,%ebp
  mov    %rbx,%rdi
  call   <free@plt>
  mov    %ebp,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L41:
  mov    %rbx,%rax
  jmp    L12
```

assistant: ```c
int ssh_uudecode(const char *src, u_char *target, size_t targsize) {
  int len;
  char *encoded, *p;
  encoded = ssh_strdup(src);
  for (p = encoded; *p == ' ' || *p == '\t'; p++)
    ;
  for (; *p != '\0' && *p != ' ' && *p != '\t'; p++)
    ;
  *p = '\0';
  len = __b64_pton(encoded, target, targsize);
  free(encoded);
  return len;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<ssh_uudecode>:
  endbr64
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  call   <ssh_strdup@plt>
  movzbl (%rax),%ecx
  mov    %rax,%rbp
  cmp    $0x20,%cl
  jne    L37
  nop
L59:
  movzbl 0x1(%rax),%ecx
  add    $0x1,%rax
  cmp    $0x20,%cl
  je     L59
L37:
  cmp    $0x9,%cl
  je     L59
  test   $0xdf,%cl
  je     L56
  nopw   0x0(%rax,%rax,1)
L22:
  cmp    $0x9,%cl
  je     L56
  movzbl 0x1(%rax),%ecx
  add    $0x1,%rax
  test   $0xdf,%cl
  jne    L22
L56:
  movb   $0x0,(%rax)
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <__b64_pton@plt>
  mov    %rbp,%rdi
  mov    %eax,%r12d
  call   <free@plt>
  mov    %r12d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

assistant: ```c
int ssh_uudecode(const char *src, u_char *target, size_t targsize) {
  int len;
  char *encoded, *p;
  encoded = ssh_strdup(src);
  for (p = encoded; *p == ' ' || *p == '\t'; p++)
    ;
  for (; *p != '\0' && *p != ' ' && *p != '\t'; p++)
    ;
  *p = '\0';
  len = __b64_pton(encoded, target, targsize);
  free(encoded);
  return len;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<ssh_uudecode>:
  endbr64
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  call   <ssh_strdup@plt>
  movzbl (%rax),%ecx
  mov    %rax,%rbp
  cmp    $0x20,%cl
  jne    L57
  nop
L56:
  movzbl 0x1(%rax),%ecx
  add    $0x1,%rax
  cmp    $0x20,%cl
  je     L56
L57:
  cmp    $0x9,%cl
  je     L56
  test   $0xdf,%cl
  je     L0
  nopw   0x0(%rax,%rax,1)
L42:
  cmp    $0x9,%cl
  je     L0
  movzbl 0x1(%rax),%ecx
  add    $0x1,%rax
  test   $0xdf,%cl
  jne    L42
L0:
  movb   $0x0,(%rax)
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <__b64_pton@plt>
  mov    %rbp,%rdi
  mov    %eax,%r12d
  call   <free@plt>
  mov    %r12d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

assistant: ```c
int ssh_uudecode(const char *src, u_char *target, size_t targsize) {
  int len;
  char *encoded, *p;
  encoded = ssh_strdup(src);
  for (p = encoded; *p == ' ' || *p == '\t'; p++)
    ;
  for (; *p != '\0' && *p != ' ' && *p != '\t'; p++)
    ;
  *p = '\0';
  len = __b64_pton(encoded, target, targsize);
  free(encoded);
  return len;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<set_current_tm>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,-0xc(%rbp)
  lea    -0xc(%rbp),%rax
  mov    %rax,%rdi
  call   <localtime@plt>
  mov    -0x18(%rbp),%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L8
  call   <__stack_chk_fail@plt>
L8:
  leave
  ret
```

assistant: ```c
void set_current_tm(struct tm *ts) {
  time_t ltime = time(NULL);
  *ts = *localtime(&ltime);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<set_current_tm>:
  endbr64
  push   %rbx
  sub    $0x10,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,0x4(%rsp)
  lea    0x4(%rsp),%rdi
  call   <localtime@plt>
  mov    (%rax),%eax
  mov    %eax,(%rbx)
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x10,%rsp
  pop    %rbx
  ret
L5:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void set_current_tm(struct tm *ts) {
  time_t ltime = time(NULL);
  *ts = *localtime(&ltime);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<set_current_tm>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  xor    %edi,%edi
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <time@plt>
  lea    0x4(%rsp),%rdi
  mov    %eax,0x4(%rsp)
  call   <localtime@plt>
  mov    (%rax),%eax
  mov    %eax,(%rbx)
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x10,%rsp
  pop    %rbx
  ret
L2:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void set_current_tm(struct tm *ts) {
  time_t ltime = time(NULL);
  *ts = *localtime(&ltime);
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<set_current_tm>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  xor    %edi,%edi
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <time@plt>
  lea    0x4(%rsp),%rdi
  mov    %eax,0x4(%rsp)
  call   <localtime@plt>
  mov    (%rax),%eax
  mov    %eax,(%rbx)
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L4
  add    $0x10,%rsp
  pop    %rbx
  ret
L4:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void set_current_tm(struct tm *ts) {
  time_t ltime = time(NULL);
  *ts = *localtime(&ltime);
}
```