ylfeng/ReF-Decompile-dataset huggingface dataset:
user: Converte this assembly snippet into its equivalent C code:

```asm
<xitoa>:
  endbr64
  push   %r13
  mov    %edi,%r13d
  mov    $0x1,%edi
  push   %r12
  sub    $0x8,%rsp
  call   <xmalloc@plt>
  mov    %r13d,%edx
  lea    D1(%rip),%rsi
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <sprintf@plt>
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %r12
  pop    %r13
  ret
```

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

tool: D1: %d

assistant: ```c
char *xitoa(int integer) {
  char *string;
  string = xmalloc(sizeof(integer) * sizeof(char) / sizeof(int));
  sprintf(string, "%d", integer);
  return string;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<xitoa>:
  endbr64
  push   %r13
  mov    %edi,%r13d
  mov    $0x1,%edi
  push   %r12
  sub    $0x8,%rsp
  call   <xmalloc@plt>
  mov    %r13d,%edx
  lea    D0(%rip),%rsi
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <sprintf@plt>
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %r12
  pop    %r13
  ret
```

tool_calls: name: unpack_data
arguments: tag: D0
type_guessed: string

tool: D0: %d

assistant: ```c
char *xitoa(int integer) {
  char *string;
  string = xmalloc(sizeof(integer) * sizeof(char) / sizeof(int));
  sprintf(string, "%d", integer);
  return string;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<send_repl_len>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    %edx,-0x8(%rbp)
  mov    -0x8(%rbp),%edx
  mov    -0x10(%rbp),%rsi
  mov    -0x4(%rbp),%eax
  mov    $0x0,%ecx
  mov    %eax,%edi
  call   <send@plt>
  test   %rax,%rax
  jns    L6
  mov    $0x4,%edi
  call   <raiseerr@plt>
  mov    -0x4(%rbp),%eax
  mov    %eax,%edi
  call   <close@plt>
  mov    $0x0,%edi
  call   <exit@plt>
L6:
  mov    $0x0,%eax
  leave
  ret
```

assistant: ```c
int send_repl_len(int send_sock, char *msg, int len) {
  if (send(send_sock, msg, len, 0) < 0) {
    raiseerr(4);
    close(send_sock);
    exit(0);
  }
  return 0;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<send_repl_len>:
  endbr64
  push   %rbx
  mov    %edi,%ebx
  mov    $0x0,%ecx
  call   <send@plt>
  test   %rax,%rax
  js     L0
L14:
  mov    $0x0,%eax
  pop    %rbx
  ret
L0:
  mov    $0x4,%edi
  call   <raiseerr@plt>
  mov    %ebx,%edi
  call   <close@plt>
  mov    $0x0,%edi
  call   <exit@plt>
  jmp    L14
```

assistant: ```c
int send_repl_len(int send_sock, char *msg, int len) {
  if (send(send_sock, msg, len, 0) < 0) {
    raiseerr(4);
    close(send_sock);
    exit(0);
  }
  return 0;
}
```
user: What is the c source code of the assembly code below?

```asm
<send_repl_len>:
  endbr64
  push   %rbp
  xor    %ecx,%ecx
  mov    %edi,%ebp
  call   <send@plt>
  test   %rax,%rax
  js     L3
  xor    %eax,%eax
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L3:
  mov    $0x4,%edi
  call   <raiseerr@plt>
  mov    %ebp,%edi
  call   <close@plt>
  xor    %edi,%edi
  call   <exit@plt>
  xor    %eax,%eax
  pop    %rbp
  ret
```

assistant: ```c
int send_repl_len(int send_sock, char *msg, int len) {
  if (send(send_sock, msg, len, 0) < 0) {
    raiseerr(4);
    close(send_sock);
    exit(0);
  }
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<send_repl_len>:
  endbr64
  push   %rbp
  xor    %ecx,%ecx
  mov    %edi,%ebp
  call   <send@plt>
  test   %rax,%rax
  js     L8
  xor    %eax,%eax
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L8:
  mov    $0x4,%edi
  call   <raiseerr@plt>
  mov    %ebp,%edi
  call   <close@plt>
  xor    %edi,%edi
  call   <exit@plt>
  xor    %eax,%eax
  pop    %rbp
  ret
```

assistant: ```c
int send_repl_len(int send_sock, char *msg, int len) {
  if (send(send_sock, msg, len, 0) < 0) {
    raiseerr(4);
    close(send_sock);
    exit(0);
  }
  return 0;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<gen_id_avltree>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x18(%rbp)
  movl   $0x0,-0x1c(%rbp)
  lea    -0x10(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <gettimeofday@plt>
  jmp    L35
L33:
  cmpq   $0x0,-0x18(%rbp)
  jne    L11
  cmpl   $0x0,-0x1c(%rbp)
  jle    L11
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
L11:
  mov    -0x10(%rbp),%edi
  mov    -0xc(%rbp),%ecx
  mov    -0x28(%rbp),%rdx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rax
  mov    %edi,%r9d
  mov    %ecx,%r8d
  mov    %rdx,%rcx
  lea    D9(%rip),%rdx
  mov    %rax,%rdi
  call   <snprintf@plt>
  mov    %eax,-0x1c(%rbp)
L35:
  cmpq   $0x0,-0x18(%rbp)
  je     L33
  mov    -0x18(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L15
  call   <__stack_chk_fail@plt>
L15:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: tag: D9
type_infered: string

tool: D9: %s.%lu.%06lu

assistant: ```c
char *gen_id_avltree(char *prefix) {
  struct timeval now;
  char *id;
  int len;
  id = NULL;
  len = 0;
  gettimeofday(&now, NULL);
  while (id == NULL) {
    if (id == NULL && len > 0) {
      id = malloc(sizeof(char) * len);
    }
    len = snprintf(id, len, "%s.%lu.%06lu", prefix, now.tv_sec, now.tv_usec);
  }
  return id;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<gen_id_avltree>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  mov    $0x0,%esi
  call   <gettimeofday@plt>
  mov    $0x0,%ebx
  mov    $0x0,%ebp
  lea    D3(%rip),%r13
L35:
  mov    (%rsp),%r9d
  mov    0x4(%rsp),%r8d
  mov    %r12,%rcx
  mov    %r13,%rdx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <snprintf@plt>
  mov    %eax,%ebx
  test   %rbp,%rbp
  jne    L14
  test   %ebx,%ebx
  jle    L35
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  jmp    L35
L14:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L33
  mov    %rbp,%rax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L33:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D3
data_type: string

tool: D3: %s.%lu.%06lu

assistant: ```c
char *gen_id_avltree(char *prefix) {
  struct timeval now;
  char *id;
  int len;
  id = NULL;
  len = 0;
  gettimeofday(&now, NULL);
  while (id == NULL) {
    if (id == NULL && len > 0) {
      id = malloc(sizeof(char) * len);
    }
    len = snprintf(id, len, "%s.%lu.%06lu", prefix, now.tv_sec, now.tv_usec);
  }
  return id;
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<gen_id_avltree>:
  endbr64
  push   %r13
  xor    %esi,%esi
  lea    D6(%rip),%r13
  push   %r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  call   <gettimeofday@plt>
  nopl   0x0(%rax)
L16:
  mov    (%rsp),%r9d
  mov    0x4(%rsp),%r8d
  mov    %ebp,%esi
  mov    %rbx,%rcx
  mov    %r13,%rdx
  xor    %edi,%edi
  call   <snprintf@plt>
  mov    %eax,%ebp
L7:
  test   %ebp,%ebp
  jle    L16
  mov    %ebp,%edi
  call   <malloc@plt>
  mov    (%rsp),%r9d
  mov    0x4(%rsp),%r8d
  mov    %ebp,%esi
  mov    %rbx,%rcx
  mov    %r13,%rdx
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <snprintf@plt>
  mov    %eax,%ebp
  test   %r12,%r12
  je     L7
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L15
  add    $0x18,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L15:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D6
datatype: string

tool: D6: %s.%lu.%06lu

assistant: ```c
char *gen_id_avltree(char *prefix) {
  struct timeval now;
  char *id;
  int len;
  id = NULL;
  len = 0;
  gettimeofday(&now, NULL);
  while (id == NULL) {
    if (id == NULL && len > 0) {
      id = malloc(sizeof(char) * len);
    }
    len = snprintf(id, len, "%s.%lu.%06lu", prefix, now.tv_sec, now.tv_usec);
  }
  return id;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<gen_id_avltree>:
  endbr64
  push   %r13
  xor    %esi,%esi
  lea    D6(%rip),%r13
  push   %r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  call   <gettimeofday@plt>
  nopl   0x0(%rax)
L6:
  mov    (%rsp),%r9d
  mov    0x4(%rsp),%r8d
  mov    %ebp,%esi
  mov    %rbx,%rcx
  mov    %r13,%rdx
  xor    %edi,%edi
  call   <snprintf@plt>
  mov    %eax,%ebp
L24:
  test   %ebp,%ebp
  jle    L6
  mov    %ebp,%edi
  call   <malloc@plt>
  mov    (%rsp),%r9d
  mov    0x4(%rsp),%r8d
  mov    %ebp,%esi
  mov    %rbx,%rcx
  mov    %r13,%rdx
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <snprintf@plt>
  mov    %eax,%ebp
  test   %r12,%r12
  je     L24
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L28
  add    $0x18,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L28:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D6
type_infered: string

tool: D6: %s.%lu.%06lu

assistant: ```c
char *gen_id_avltree(char *prefix) {
  struct timeval now;
  char *id;
  int len;
  id = NULL;
  len = 0;
  gettimeofday(&now, NULL);
  while (id == NULL) {
    if (id == NULL && len > 0) {
      id = malloc(sizeof(char) * len);
    }
    len = snprintf(id, len, "%s.%lu.%06lu", prefix, now.tv_sec, now.tv_usec);
  }
  return id;
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x10(%rbp),%rdx
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,-0xc(%rbp)
  cmpl   $0x9c4,-0xc(%rbp)
  jle    L26
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L74
L26:
  cmpl   $0x1f3,-0xc(%rbp)
  jle    L49
  cmpl   $0x9c4,-0xc(%rbp)
  jg     L49
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L74
L49:
  cmpl   $0x96,-0xc(%rbp)
  jle    L2
  cmpl   $0x1f3,-0xc(%rbp)
  jg     L2
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L74
L2:
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L74:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L17
  call   <__stack_chk_fail@plt>
L17:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D46
type_guessed: string
name: disassemble_data
arguments: data_tag: D12
type_guessed: string
name: disassemble_data
arguments: data_tag: D23
type_guessed: string
name: disassemble_data
arguments: data_tag: D0
type_guessed: string
name: disassemble_data
arguments: data_tag: D22
type_guessed: string
name: disassemble_data
arguments: data_tag: D28
type_guessed: string

tool: D46: Enter the value of breadth and length of a room respectively: 

tool: D12: %d %d

tool: D23: 
 Auditorium

tool: D0: 
 Hall

tool: D22: 
 Big Room

tool: D28: 
 Small Room

assistant: ```c
int main(void) {
  int l, b, area;
  printf("Enter the value of breadth and length of a room respectively: ");
  scanf("%d %d", &l, &b);
  area = l * b;
  if (area > 2500)
    printf("\n Auditorium");
  else if (area >= 500 && area <= 2500)
    printf("\n Hall");
  else if (area > 150 && area < 500)
    printf("\n Big Room");
  else
    printf("\n Small Room");
  return 0;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    D50(%rip),%rdi
  call   <printf@plt>
  lea    0x4(%rsp),%rdx
  mov    %rsp,%rsi
  lea    D8(%rip),%rdi
  call   <scanf@plt>
  mov    (%rsp),%eax
  imul   0x4(%rsp),%eax
  cmp    $0x9c4,%eax
  jg     L32
  lea    -0x1f4(%rax),%edx
  cmp    $0x7d0,%edx
  jbe    L62
  sub    $0x97,%eax
  cmp    $0x15c,%eax
  ja     L30
  lea    D7(%rip),%rdi
  call   <printf@plt>
  jmp    L1
L32:
  lea    D2(%rip),%rdi
  call   <printf@plt>
L1:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  mov    $0x0,%eax
  add    $0x18,%rsp
  ret
L62:
  lea    D56(%rip),%rdi
  call   <printf@plt>
  jmp    L1
L30:
  lea    D6(%rip),%rdi
  call   <printf@plt>
  jmp    L1
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D50
data_type: string
name: retrieve_data
arguments: tag: D8
data_type: string
name: retrieve_data
arguments: tag: D7
data_type: string
name: retrieve_data
arguments: tag: D2
data_type: string
name: retrieve_data
arguments: tag: D56
data_type: string
name: retrieve_data
arguments: tag: D6
data_type: string

tool: D50: Enter the value of breadth and length of a room respectively: 

tool: D8: %d %d

tool: D7: 
 Big Room

tool: D2: 
 Auditorium

tool: D56: 
 Hall

tool: D6: 
 Small Room

assistant: ```c
int main(void) {
  int l, b, area;
  printf("Enter the value of breadth and length of a room respectively: ");
  scanf("%d %d", &l, &b);
  area = l * b;
  if (area > 2500)
    printf("\n Auditorium");
  else if (area >= 500 && area <= 2500)
    printf("\n Hall");
  else if (area > 150 && area < 500)
    printf("\n Big Room");
  else
    printf("\n Small Room");
  return 0;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  sub    $0x18,%rsp
  lea    D14(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rdx
  mov    %rsp,%rsi
  lea    D50(%rip),%rdi
  call   <scanf@plt>
  mov    (%rsp),%eax
  imul   0x4(%rsp),%eax
  cmp    $0x9c4,%eax
  jg     L31
  lea    -0x1f4(%rax),%edx
  cmp    $0x7d0,%edx
  jbe    L65
  sub    $0x97,%eax
  cmp    $0x15c,%eax
  ja     L45
  lea    D28(%rip),%rdi
  call   <printf@plt>
L62:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L25
  xor    %eax,%eax
  add    $0x18,%rsp
  ret
L65:
  lea    D47(%rip),%rdi
  call   <printf@plt>
  jmp    L62
L31:
  lea    D57(%rip),%rdi
  call   <printf@plt>
  jmp    L62
L45:
  lea    D20(%rip),%rdi
  call   <printf@plt>
  jmp    L62
L25:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D14
data_type: string
name: read_data
arguments: label: D50
data_type: string
name: read_data
arguments: label: D28
data_type: string
name: read_data
arguments: label: D47
data_type: string
name: read_data
arguments: label: D57
data_type: string
name: read_data
arguments: label: D20
data_type: string

tool: D14: Enter the value of breadth and length of a room respectively: 

tool: D50: %d %d

tool: D28: 
 Big Room

tool: D47: 
 Hall

tool: D57: 
 Auditorium

tool: D20: 
 Small Room

assistant: ```c
int main(void) {
  int l, b, area;
  printf("Enter the value of breadth and length of a room respectively: ");
  scanf("%d %d", &l, &b);
  area = l * b;
  if (area > 2500)
    printf("\n Auditorium");
  else if (area >= 500 && area <= 2500)
    printf("\n Hall");
  else if (area > 150 && area < 500)
    printf("\n Big Room");
  else
    printf("\n Small Room");
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<main>:
  endbr64
  sub    $0x18,%rsp
  lea    D58(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rdx
  mov    %rsp,%rsi
  lea    D11(%rip),%rdi
  call   <scanf@plt>
  mov    (%rsp),%eax
  imul   0x4(%rsp),%eax
  cmp    $0x9c4,%eax
  jg     L57
  lea    -0x1f4(%rax),%edx
  cmp    $0x7d0,%edx
  jbe    L42
  sub    $0x97,%eax
  cmp    $0x15c,%eax
  ja     L19
  lea    D1(%rip),%rdi
  call   <printf@plt>
L29:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L66
  xor    %eax,%eax
  add    $0x18,%rsp
  ret
L42:
  lea    D26(%rip),%rdi
  call   <printf@plt>
  jmp    L29
L57:
  lea    D16(%rip),%rdi
  call   <printf@plt>
  jmp    L29
L19:
  lea    D25(%rip),%rdi
  call   <printf@plt>
  jmp    L29
L66:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D58
data_type: string
name: retrieve_data
arguments: data_label: D11
data_type: string
name: retrieve_data
arguments: data_label: D1
data_type: string
name: retrieve_data
arguments: data_label: D26
data_type: string
name: retrieve_data
arguments: data_label: D16
data_type: string
name: retrieve_data
arguments: data_label: D25
data_type: string

tool: D58: Enter the value of breadth and length of a room respectively: 

tool: D11: %d %d

tool: D1: 
 Big Room

tool: D26: 
 Hall

tool: D16: 
 Auditorium

tool: D25: 
 Small Room

assistant: ```c
int main(void) {
  int l, b, area;
  printf("Enter the value of breadth and length of a room respectively: ");
  scanf("%d %d", &l, &b);
  area = l * b;
  if (area > 2500)
    printf("\n Auditorium");
  else if (area >= 500 && area <= 2500)
    printf("\n Hall");
  else if (area > 150 && area < 500)
    printf("\n Big Room");
  else
    printf("\n Small Room");
  return 0;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<binearest_interp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  movss  %xmm0,-0x4(%rbp)
  movss  %xmm1,-0x8(%rbp)
  movss  %xmm2,-0xc(%rbp)
  movss  %xmm3,-0x10(%rbp)
  movss  %xmm4,-0x14(%rbp)
  movss  %xmm5,-0x18(%rbp)
  mov    -0x14(%rbp),%eax
  movd   %eax,%xmm0
  call   <roundf@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  movd   %eax,%xmm0
  call   <roundf@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  ucomiss -0x14(%rbp),%xmm0
  jp     L152
  pxor   %xmm0,%xmm0
  ucomiss -0x14(%rbp),%xmm0
  je     L85
L152:
  pxor   %xmm0,%xmm0
  ucomiss -0x18(%rbp),%xmm0
  jp     L85
  pxor   %xmm0,%xmm0
  ucomiss -0x18(%rbp),%xmm0
  jne    L85
  movss  -0x10(%rbp),%xmm0
  jmp    L63
L85:
  pxor   %xmm0,%xmm0
  ucomiss -0x14(%rbp),%xmm0
  jp     L146
  pxor   %xmm0,%xmm0
  ucomiss -0x14(%rbp),%xmm0
  jne    L146
  pxor   %xmm0,%xmm0
  ucomiss -0x18(%rbp),%xmm0
  jp     L126
  pxor   %xmm0,%xmm0
  ucomiss -0x18(%rbp),%xmm0
  je     L146
L126:
  movss  -0x4(%rbp),%xmm0
  jmp    L63
L146:
  pxor   %xmm0,%xmm0
  ucomiss -0x14(%rbp),%xmm0
  jp     L48
  pxor   %xmm0,%xmm0
  ucomiss -0x14(%rbp),%xmm0
  jne    L48
  pxor   %xmm0,%xmm0
  ucomiss -0x18(%rbp),%xmm0
  jp     L48
  pxor   %xmm0,%xmm0
  ucomiss -0x18(%rbp),%xmm0
  jne    L48
  movss  -0xc(%rbp),%xmm0
  jmp    L63
L48:
  pxor   %xmm0,%xmm0
  ucomiss -0x14(%rbp),%xmm0
  jp     L64
  pxor   %xmm0,%xmm0
  ucomiss -0x14(%rbp),%xmm0
  je     L133
L64:
  pxor   %xmm0,%xmm0
  ucomiss -0x18(%rbp),%xmm0
  jp     L140
  pxor   %xmm0,%xmm0
  ucomiss -0x18(%rbp),%xmm0
  je     L133
L140:
  movss  -0x8(%rbp),%xmm0
  jmp    L63
L133:
  pxor   %xmm0,%xmm0
L63:
  leave
  ret
```

assistant: ```c
float binearest_interp(float tl, float tr, float bl, float br, float x_amount, float y_amount) {
  x_amount = roundf(x_amount);
  y_amount = roundf(y_amount);
  if (x_amount && !y_amount) {
    return br;
  }
  if (!x_amount && y_amount) {
    return tl;
  }
  if (!x_amount && !y_amount) {
    return bl;
  }
  if (x_amount && y_amount) {
    return tr;
  }
  return 0.0f;
}
```
user: What is the c source code of the assembly code below?

```asm
<binearest_interp>:
  endbr64
  sub    $0x28,%rsp
  movss  %xmm0,0x14(%rsp)
  movss  %xmm1,0x1c(%rsp)
  movss  %xmm2,0x18(%rsp)
  movss  %xmm3,0x10(%rsp)
  movaps %xmm4,%xmm0
  movss  %xmm5,0xc(%rsp)
  call   <roundf@plt>
  movss  %xmm0,0x8(%rsp)
  movss  0xc(%rsp),%xmm0
  call   <roundf@plt>
  pxor   %xmm1,%xmm1
  movss  0x8(%rsp),%xmm6
  ucomiss %xmm1,%xmm6
  setp   %al
  mov    $0x1,%edx
  cmovne %edx,%eax
  ucomiss %xmm1,%xmm0
  setnp  %dl
  mov    $0x0,%ecx
  cmovne %ecx,%edx
  test   %al,%al
  je     L76
  movss  0x10(%rsp),%xmm1
  test   %dl,%dl
  je     L76
L49:
  movaps %xmm1,%xmm0
  add    $0x28,%rsp
  ret
L76:
  pxor   %xmm1,%xmm1
  movss  0x8(%rsp),%xmm7
  ucomiss %xmm1,%xmm7
  setnp  %cl
  mov    $0x0,%esi
  cmovne %esi,%ecx
  ucomiss %xmm1,%xmm0
  setp   %sil
  mov    $0x1,%edi
  cmovne %edi,%esi
  test   %cl,%cl
  je     L26
  movss  0x14(%rsp),%xmm1
  test   %sil,%sil
  jne    L49
L26:
  test   %dl,%dl
  je     L28
  movss  0x18(%rsp),%xmm1
  test   %cl,%cl
  jne    L49
L28:
  test   %al,%al
  je     L75
  test   %sil,%sil
  je     L75
  movss  0x1c(%rsp),%xmm1
  jmp    L49
L75:
  pxor   %xmm1,%xmm1
  jmp    L49
```

assistant: ```c
float binearest_interp(float tl, float tr, float bl, float br, float x_amount, float y_amount) {
  x_amount = roundf(x_amount);
  y_amount = roundf(y_amount);
  if (x_amount && !y_amount) {
    return br;
  }
  if (!x_amount && y_amount) {
    return tl;
  }
  if (!x_amount && !y_amount) {
    return bl;
  }
  if (x_amount && y_amount) {
    return tr;
  }
  return 0.0f;
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<binearest_interp>:
  endbr64
  push   %r15
  movd   %xmm2,%r15d
  push   %r14
  movd   %xmm0,%r14d
  movaps %xmm4,%xmm0
  push   %rbp
  movd   %xmm1,%ebp
  push   %rbx
  movd   %xmm3,%ebx
  sub    $0x18,%rsp
  movss  %xmm5,0xc(%rsp)
  call   <roundf@plt>
  movss  0xc(%rsp),%xmm5
  movss  %xmm0,0x8(%rsp)
  movaps %xmm5,%xmm0
  call   <roundf@plt>
  movss  0x8(%rsp),%xmm1
  pxor   %xmm2,%xmm2
  mov    $0x1,%edx
  mov    $0x0,%ecx
  ucomiss %xmm2,%xmm1
  setp   %al
  cmovne %edx,%eax
  ucomiss %xmm2,%xmm0
  setnp  %dl
  cmovne %ecx,%edx
  test   %al,%al
  je     L58
  movd   %ebx,%xmm3
  test   %dl,%dl
  je     L58
L22:
  add    $0x18,%rsp
  movaps %xmm3,%xmm0
  pop    %rbx
  pop    %rbp
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L58:
  ucomiss %xmm2,%xmm1
  mov    $0x0,%esi
  mov    $0x1,%edi
  setnp  %cl
  cmovne %esi,%ecx
  ucomiss %xmm2,%xmm0
  setp   %sil
  cmovne %edi,%esi
  test   %cl,%cl
  je     L27
  movd   %r14d,%xmm3
  test   %sil,%sil
  jne    L22
L27:
  test   %dl,%dl
  je     L51
  movd   %r15d,%xmm3
  test   %cl,%cl
  jne    L22
L51:
  test   %al,%al
  je     L18
  movd   %ebp,%xmm3
  test   %sil,%sil
  jne    L22
L18:
  add    $0x18,%rsp
  movaps %xmm2,%xmm3
  pop    %rbx
  movaps %xmm3,%xmm0
  pop    %rbp
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
float binearest_interp(float tl, float tr, float bl, float br, float x_amount, float y_amount) {
  x_amount = roundf(x_amount);
  y_amount = roundf(y_amount);
  if (x_amount && !y_amount) {
    return br;
  }
  if (!x_amount && y_amount) {
    return tl;
  }
  if (!x_amount && !y_amount) {
    return bl;
  }
  if (x_amount && y_amount) {
    return tr;
  }
  return 0.0f;
}
```