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

```asm
<printUsageAndExit>:
  endbr64
  sub    $0x8,%rsp
  lea    D7(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  add    $0x8,%rsp
  jmp    1070 <exit@plt>
```

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

tool: D7: Usage:
  cproxy -l <local addr>:<local port>
         [-l <local addr>:<local port>...]
         -r <remote addr>:<remote port>
         [-b <buf size>] [-n] [-t <num io threads>]
Arguments:
  -l <local addr>:<local port>: specify listen address and port
  -r <remote addr>:<remote port>: specify remote address and port
  -b <buf size>: specify session buffer size in bytes
  -n: enable TCP no delay
  -t: <num io threads>: specify number of I/O threads


assistant: ```c
void printUsageAndExit() {
  printf("Usage:\n"
         "  cproxy -l <local addr>:<local port>\n"
         "         [-l <local addr>:<local port>...]\n"
         "         -r <remote addr>:<remote port>\n"
         "         [-b <buf size>] [-n] [-t <num io threads>]\n"
         "Arguments:\n"
         "  -l <local addr>:<local port>: specify listen address and port\n"
         "  -r <remote addr>:<remote port>: specify remote address and port\n"
         "  -b <buf size>: specify session buffer size in bytes\n"
         "  -n: enable TCP no delay\n"
         "  -t: <num io threads>: specify number of I/O threads\n");
  exit(1);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<printUsageAndExit>:
  endbr64
  sub    $0x8,%rsp
  lea    D4(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  add    $0x8,%rsp
  jmp    1070 <exit@plt>
```

tool_calls: name: read_data
arguments: data_label: D4
type_infered: string

tool: D4: Usage:
  cproxy -l <local addr>:<local port>
         [-l <local addr>:<local port>...]
         -r <remote addr>:<remote port>
         [-b <buf size>] [-n] [-t <num io threads>]
Arguments:
  -l <local addr>:<local port>: specify listen address and port
  -r <remote addr>:<remote port>: specify remote address and port
  -b <buf size>: specify session buffer size in bytes
  -n: enable TCP no delay
  -t: <num io threads>: specify number of I/O threads


assistant: ```c
void printUsageAndExit() {
  printf("Usage:\n"
         "  cproxy -l <local addr>:<local port>\n"
         "         [-l <local addr>:<local port>...]\n"
         "         -r <remote addr>:<remote port>\n"
         "         [-b <buf size>] [-n] [-t <num io threads>]\n"
         "Arguments:\n"
         "  -l <local addr>:<local port>: specify listen address and port\n"
         "  -r <remote addr>:<remote port>: specify remote address and port\n"
         "  -b <buf size>: specify session buffer size in bytes\n"
         "  -n: enable TCP no delay\n"
         "  -t: <num io threads>: specify number of I/O threads\n");
  exit(1);
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<error_show>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0x0,%eax
  call   <clear_scanf@plt>
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  nop
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D2
type: string

tool: D2: 
Error on input selection! Use only digits. Values must be >0. Please try again


assistant: ```c
int error_show(void) {
  clear_scanf();
  printf("\nError on input selection! Use only digits. Values must be >0. Please try again\n");
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<error_show>:
  endbr64
  sub    $0x8,%rsp
  mov    $0x0,%eax
  call   <clear_scanf@plt>
  lea    D4(%rip),%rdi
  call   <printf@plt>
  add    $0x8,%rsp
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D4
type: string

tool: D4: 
Error on input selection! Use only digits. Values must be >0. Please try again


assistant: ```c
int error_show(void) {
  clear_scanf();
  printf("\nError on input selection! Use only digits. Values must be >0. Please try again\n");
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<error_show>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <clear_scanf@plt>
  lea    D8(%rip),%rdi
  add    $0x8,%rsp
  jmp    1060 <printf@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D8
type_guessed: string

tool: D8: 
Error on input selection! Use only digits. Values must be >0. Please try again


assistant: ```c
int error_show(void) {
  clear_scanf();
  printf("\nError on input selection! Use only digits. Values must be >0. Please try again\n");
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<error_show>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <clear_scanf@plt>
  lea    D3(%rip),%rdi
  add    $0x8,%rsp
  jmp    1060 <printf@plt>
```

tool_calls: name: parse_data
arguments: label: D3
datatype: string

tool: D3: 
Error on input selection! Use only digits. Values must be >0. Please try again


assistant: ```c
int error_show(void) {
  clear_scanf();
  printf("\nError on input selection! Use only digits. Values must be >0. Please try again\n");
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<showValueU32U16U16>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %ecx,%eax
  mov    %r8,-0x78(%rbp)
  mov    %r9d,%ecx
  mov    0x10(%rbp),%edx
  mov    %ax,-0x6c(%rbp)
  mov    %ecx,%eax
  mov    %ax,-0x70(%rbp)
  mov    %edx,%eax
  mov    %ax,-0x7c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <strclr@plt>
  mov    -0x60(%rbp),%rdx
  mov    -0x58(%rbp),%rcx
  lea    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <addValueU32@plt>
  movzwl -0x6c(%rbp),%edx
  mov    -0x68(%rbp),%rcx
  lea    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <addValueU16@plt>
  movzwl -0x70(%rbp),%edx
  mov    -0x78(%rbp),%rcx
  lea    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <addValueU16@plt>
  movzwl -0x7c(%rbp),%edx
  lea    -0x50(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <VDP_drawText@plt>
  movzwl -0x7c(%rbp),%eax
  add    $0x1,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  leave
  ret
```

assistant: ```c
unsigned short showValueU32U16U16(char *str1, unsigned long value1, char *str2, unsigned short value2, char *str3, unsigned short value3, unsigned short pos) {
  char s[64];
  strclr(s);
  addValueU32(s, str1, value1);
  addValueU16(s, str2, value2);
  addValueU16(s, str3, value3);
  VDP_drawText(s, 0, pos);
  return pos + 1;
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<showValueU32U16U16>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,%r14
  mov    %rsi,%r15
  mov    %rdx,(%rsp)
  mov    %ecx,%r12d
  mov    %r8,0x8(%rsp)
  mov    %r9d,%ebp
  mov    0xa0(%rsp),%r13d
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strclr@plt>
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <addValueU32@plt>
  movzwl %r12w,%edx
  mov    (%rsp),%rsi
  mov    %rbx,%rdi
  call   <addValueU16@plt>
  movzwl %bp,%edx
  mov    0x8(%rsp),%rsi
  mov    %rbx,%rdi
  call   <addValueU16@plt>
  movzwl %r13w,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <VDP_drawText@plt>
  mov    0x58(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L6
  lea    0x1(%r13),%eax
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L6:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
unsigned short showValueU32U16U16(char *str1, unsigned long value1, char *str2, unsigned short value2, char *str3, unsigned short value3, unsigned short pos) {
  char s[64];
  strclr(s);
  addValueU32(s, str1, value1);
  addValueU16(s, str2, value2);
  addValueU16(s, str3, value3);
  VDP_drawText(s, 0, pos);
  return pos + 1;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<showValueU32U16U16>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  push   %r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  mov    %r9d,%ebx
  sub    $0x68,%rsp
  mov    %ecx,0x4(%rsp)
  lea    0x10(%rsp),%rbp
  mov    0xa0(%rsp),%r14d
  mov    %rsi,0x8(%rsp)
  mov    %rbp,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  call   <strclr@plt>
  mov    0x8(%rsp),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <addValueU32@plt>
  movzwl 0x4(%rsp),%edx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <addValueU16@plt>
  movzwl %bx,%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <addValueU16@plt>
  movzwl %r14w,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <VDP_drawText@plt>
  mov    0x58(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L7
  add    $0x68,%rsp
  lea    0x1(%r14),%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L7:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
unsigned short showValueU32U16U16(char *str1, unsigned long value1, char *str2, unsigned short value2, char *str3, unsigned short value3, unsigned short pos) {
  char s[64];
  strclr(s);
  addValueU32(s, str1, value1);
  addValueU16(s, str2, value2);
  addValueU16(s, str3, value3);
  VDP_drawText(s, 0, pos);
  return pos + 1;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<showValueU32U16U16>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  push   %r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  mov    %r9d,%ebx
  sub    $0x68,%rsp
  mov    %ecx,0x4(%rsp)
  lea    0x10(%rsp),%rbp
  mov    0xa0(%rsp),%r14d
  mov    %rsi,0x8(%rsp)
  mov    %rbp,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  call   <strclr@plt>
  mov    0x8(%rsp),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <addValueU32@plt>
  movzwl 0x4(%rsp),%edx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <addValueU16@plt>
  movzwl %bx,%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <addValueU16@plt>
  movzwl %r14w,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <VDP_drawText@plt>
  mov    0x58(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L1
  add    $0x68,%rsp
  lea    0x1(%r14),%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
unsigned short showValueU32U16U16(char *str1, unsigned long value1, char *str2, unsigned short value2, char *str3, unsigned short value3, unsigned short pos) {
  char s[64];
  strclr(s);
  addValueU32(s, str1, value1);
  addValueU16(s, str2, value2);
  addValueU16(s, str3, value3);
  VDP_drawText(s, 0, pos);
  return pos + 1;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  movl   $0x64,-0x4(%rbp)
  movl   $0x1,-0x8(%rbp)
  jmp    L16
L10:
  mov    -0x8(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L12
  mov    -0x8(%rbp),%eax
  mov    %eax,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L12:
  addl   $0x1,-0x8(%rbp)
L16:
  mov    -0x8(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jle    L10
  mov    $0x0,%eax
  leave
  ret
```

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

tool: D2: %d


assistant: ```c
int main(int argc, char const *argv[]) {
  int i;
  int MAX_INCLUSIVE = 100;
  for (i = 1; i <= MAX_INCLUSIVE; ++i) {
    if (i % 2 == 0) {
      printf("%d\n", i);
    }
  }
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    $0x1,%ebx
  lea    D8(%rip),%rbp
L8:
  add    $0x1,%ebx
  cmp    $0x65,%ebx
  je     L2
  test   $0x1,%bl
  jne    L8
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <printf@plt>
  jmp    L8
L2:
  mov    $0x0,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: label: D8
type: string

tool: D8: %d


assistant: ```c
int main(int argc, char const *argv[]) {
  int i;
  int MAX_INCLUSIVE = 100;
  for (i = 1; i <= MAX_INCLUSIVE; ++i) {
    if (i % 2 == 0) {
      printf("%d\n", i);
    }
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D0(%rip),%rbp
  push   %rbx
  mov    $0x1,%ebx
  sub    $0x8,%rsp
  cs nopw 0x0(%rax,%rax,1)
L14:
  add    $0x1,%ebx
  cmp    $0x65,%ebx
  je     L22
L11:
  test   $0x1,%bl
  jne    L14
  mov    %ebx,%esi
  mov    %rbp,%rdi
  add    $0x1,%ebx
  call   <printf@plt>
  cmp    $0x65,%ebx
  jne    L11
L22:
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D0
type_infered: string

tool: D0: %d


assistant: ```c
int main(int argc, char const *argv[]) {
  int i;
  int MAX_INCLUSIVE = 100;
  for (i = 1; i <= MAX_INCLUSIVE; ++i) {
    if (i % 2 == 0) {
      printf("%d\n", i);
    }
  }
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<main>:
  endbr64
  push   %rbp
  lea    D6(%rip),%rbp
  push   %rbx
  mov    $0x2,%ebx
  sub    $0x8,%rsp
  cs nopw 0x0(%rax,%rax,1)
L7:
  test   $0x1,%bl
  jne    L11
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <printf@plt>
L11:
  add    $0x1,%ebx
  cmp    $0x65,%ebx
  jne    L7
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D6
type: string

tool: D6: %d


assistant: ```c
int main(int argc, char const *argv[]) {
  int i;
  int MAX_INCLUSIVE = 100;
  for (i = 1; i <= MAX_INCLUSIVE; ++i) {
    if (i % 2 == 0) {
      printf("%d\n", i);
    }
  }
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x828,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x2818(%rsp)
  xor    %eax,%eax
  mov    $0x320,%edi
  call   <malloc@plt>
  mov    %rax,%r15
  mov    $0x320,%edi
  call   <malloc@plt>
  mov    %rax,0x8(%rsp)
  mov    $0x320,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    $0x320,%edx
  mov    $0x0,%esi
  mov    %r15,%rdi
  call   <memset@plt>
  lea    D7(%rip),%rsi
  lea    D44(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,(%rsp)
  test   %rax,%rax
  je     L27
L18:
  mov    $0x0,%r14d
  lea    D29(%rip),%r13
L32:
  lea    0x10(%rsp),%rbx
  mov    (%rsp),%rdx
  mov    $0x2800,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  mov    %rbx,%rdi
  call   <puts@plt>
  lea    (%r15,%r14,8),%rbp
  lea    0x74(%rsp),%r12
L38:
  mov    %rbp,%rdx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <sscanf@plt>
  add    $0xa,%rbx
  add    $0x50,%rbp
  cmp    %r12,%rbx
  jne    L38
  add    $0x1,%r14
  cmp    $0xa,%r14
  jne    L32
  lea    D49(%rip),%rbx
  mov    %rbx,%rcx
  mov    $0xa,%edx
  mov    $0xa,%esi
  mov    %r15,%rdi
  call   <print_matrix@plt>
  mov    $0x1,%r8d
  mov    $0x6,%ecx
  mov    $0x6,%edx
  mov    $0xa,%esi
  mov    %r15,%rdi
  call   <housholder@plt>
  mov    %rbx,%rcx
  mov    $0xa,%edx
  mov    $0xa,%esi
  mov    %r15,%rdi
  call   <print_matrix@plt>
  mov    %r15,%rdi
  call   <free@plt>
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  mov    0x2818(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  mov    $0x0,%eax
  add    $0x2828,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L27:
  lea    D33(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L18
L40:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D7
datatype: string
name: parse_data
arguments: label: D44
datatype: string
name: parse_data
arguments: label: D29
datatype: string
name: parse_data
arguments: label: D49
datatype: string
name: parse_data
arguments: label: D33
datatype: string

tool: D7: r

tool: D44: E:\data.txt

tool: D29: %lf

tool: D49: P MATRIX

tool: D33: cant open file to read!

assistant: ```c
int main(int argc, char *args[]) {
  int i;
  double *P = (double *)malloc(sizeof(double) * 10 * 10);
  double *D = (double *)malloc(sizeof(double) * 10 * 10);
  memset(D, 0, sizeof(double) * 10 * 10);
  memset(P, 0, sizeof(double) * 10 * 10);
  FILE *fp = NULL;
  if (!(fp = fopen("E:\\data.txt", "r"))) {
    printf("cant open file to read!\n");
    exit(1);
  }
  int index = 0;
  char buffer[10240];
  for (index = 0; index < 10; index++) {
    fgets(buffer, 10240, fp);
    printf("%s\n", buffer);
    for (i = 0; i < 10; i++) {
      sscanf(buffer + i * 10, "%lf", P + 10 * i + index);
    }
  }
  print_matrix(P, 10, 10, "P MATRIX");
  housholder(P, 10, 6, 6, 1);
  print_matrix(P, 10, 10, "P MATRIX");
  free(P);
  free(D);
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<xdr_u_hyper>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    D38(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jne    L67
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  mov    $0x20,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  cltq
  mov    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  cltq
  mov    %rax,-0x10(%rbp)
  lea    -0x18(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <XDR_PUTLONG@plt>
  test   %rax,%rax
  je     L29
  lea    -0x10(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <XDR_PUTLONG@plt>
  test   %rax,%rax
  je     L29
  mov    $0x1,%eax
  jmp    L103
L29:
  mov    $0x0,%eax
  jmp    L103
L67:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    D56(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jne    L27
  lea    -0x18(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <XDR_GETLONG@plt>
  test   %eax,%eax
  je     L127
  lea    -0x10(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <XDR_GETLONG@plt>
  test   %eax,%eax
  jne    L47
L127:
  mov    D58(%rip),%rax
  mov    (%rax),%eax
  jmp    L103
L47:
  mov    -0x18(%rbp),%rax
  mov    %eax,%edx
  mov    $0x20,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  or     %edx,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  mov    D13(%rip),%rax
  mov    (%rax),%eax
  jmp    L103
L27:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    D36(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jne    L129
  mov    D13(%rip),%rax
  mov    (%rax),%eax
  jmp    L103
L129:
  mov    D58(%rip),%rax
  mov    (%rax),%eax
L103:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L9
  call   <__stack_chk_fail@plt>
L9:
  leave
  ret
```

assistant: ```c
bool_t xdr_u_hyper(XDR *xdrs, u_quad_t *ullp) {
  unsigned long t1;
  unsigned long t2;
  if (xdrs->x_op == XDR_ENCODE) {
    t1 = (unsigned long)((*ullp) >> 32);
    t2 = (unsigned long)(*ullp);
    return (XDR_PUTLONG(xdrs, &t1) && XDR_PUTLONG(xdrs, &t2));
  }
  if (xdrs->x_op == XDR_DECODE) {
    if (!XDR_GETLONG(xdrs, &t1) || !XDR_GETLONG(xdrs, &t2))
      return FALSE;
    *ullp = ((u_quad_t)t1) << 32;
    *ullp |= t2;
    return TRUE;
  }
  if (xdrs->x_op == XDR_FREE)
    return TRUE;
  return FALSE;
}
```
user: What is the c source code of the assembly code below:

```asm
<xdr_u_hyper>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    (%rdi),%rax
  mov    D30(%rip),%rdx
  cmp    (%rdx),%rax
  je     L95
  mov    D21(%rip),%rdx
  cmp    (%rdx),%rax
  je     L49
  mov    D47(%rip),%rdx
  cmp    (%rdx),%rax
  je     L75
  mov    D10(%rip),%rax
  mov    (%rax),%eax
L52:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L81
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  ret
L95:
  mov    (%rsi),%eax
  mov    %eax,%edx
  mov    $0x20,%ecx
  sar    %cl,%edx
  movslq %edx,%rdx
  mov    %rdx,0x8(%rsp)
  cltq
  mov    %rax,0x10(%rsp)
  lea    0x8(%rsp),%rsi
  call   <XDR_PUTLONG@plt>
  mov    %rax,%rdx
  mov    $0x0,%eax
  test   %rdx,%rdx
  je     L52
  lea    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  call   <XDR_PUTLONG@plt>
  test   %rax,%rax
  setne  %al
  movzbl %al,%eax
  jmp    L52
L49:
  lea    0x8(%rsp),%rsi
  call   <XDR_GETLONG@plt>
  test   %eax,%eax
  jne    L92
L1:
  mov    D10(%rip),%rax
  mov    (%rax),%eax
  jmp    L52
L92:
  lea    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  call   <XDR_GETLONG@plt>
  test   %eax,%eax
  je     L1
  mov    0x10(%rsp),%rax
  mov    %eax,0x0(%rbp)
  mov    D3(%rip),%rax
  mov    (%rax),%eax
  jmp    L52
L75:
  mov    D3(%rip),%rax
  mov    (%rax),%eax
  jmp    L52
L81:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
bool_t xdr_u_hyper(XDR *xdrs, u_quad_t *ullp) {
  unsigned long t1;
  unsigned long t2;
  if (xdrs->x_op == XDR_ENCODE) {
    t1 = (unsigned long)((*ullp) >> 32);
    t2 = (unsigned long)(*ullp);
    return (XDR_PUTLONG(xdrs, &t1) && XDR_PUTLONG(xdrs, &t2));
  }
  if (xdrs->x_op == XDR_DECODE) {
    if (!XDR_GETLONG(xdrs, &t1) || !XDR_GETLONG(xdrs, &t2))
      return FALSE;
    *ullp = ((u_quad_t)t1) << 32;
    *ullp |= t2;
    return TRUE;
  }
  if (xdrs->x_op == XDR_FREE)
    return TRUE;
  return FALSE;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<xdr_u_hyper>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x28,%rsp
  mov    D35(%rip),%rdx
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  mov    (%rdi),%rax
  cmp    (%rdx),%rax
  je     L71
  mov    D34(%rip),%rdx
  cmp    (%rdx),%rax
  je     L36
  mov    D1(%rip),%rdx
  cmp    (%rdx),%rax
  je     L18
L61:
  mov    D58(%rip),%rax
  mov    (%rax),%eax
L94:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L6
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   (%rax)
L36:
  lea    0x8(%rsp),%rsi
  call   <XDR_GETLONG@plt>
  test   %eax,%eax
  je     L61
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  call   <XDR_GETLONG@plt>
  test   %eax,%eax
  je     L61
  mov    0x10(%rsp),%rax
  mov    %eax,(%rbx)
  mov    D33(%rip),%rax
  mov    (%rax),%eax
  jmp    L94
  nopl   0x0(%rax)
L18:
  mov    D33(%rip),%rax
  mov    (%rax),%eax
  jmp    L94
  nopl   0x0(%rax,%rax,1)
L71:
  movslq (%rsi),%rax
  mov    $0x20,%ecx
  lea    0x8(%rsp),%rsi
  mov    %eax,%edx
  mov    %rax,0x10(%rsp)
  sar    %cl,%edx
  movslq %edx,%rdx
  mov    %rdx,0x8(%rsp)
  call   <XDR_PUTLONG@plt>
  mov    %rax,%r8
  xor    %eax,%eax
  test   %r8,%r8
  je     L94
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  call   <XDR_PUTLONG@plt>
  test   %rax,%rax
  setne  %al
  movzbl %al,%eax
  jmp    L94
L6:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
bool_t xdr_u_hyper(XDR *xdrs, u_quad_t *ullp) {
  unsigned long t1;
  unsigned long t2;
  if (xdrs->x_op == XDR_ENCODE) {
    t1 = (unsigned long)((*ullp) >> 32);
    t2 = (unsigned long)(*ullp);
    return (XDR_PUTLONG(xdrs, &t1) && XDR_PUTLONG(xdrs, &t2));
  }
  if (xdrs->x_op == XDR_DECODE) {
    if (!XDR_GETLONG(xdrs, &t1) || !XDR_GETLONG(xdrs, &t2))
      return FALSE;
    *ullp = ((u_quad_t)t1) << 32;
    *ullp |= t2;
    return TRUE;
  }
  if (xdrs->x_op == XDR_FREE)
    return TRUE;
  return FALSE;
}
```