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

```asm
<mfu_mul_src>:
  endbr64
  push   %r12
  cmp    $0xd,%edi
  ja     L11
  lea    D45(%rip),%rcx
  mov    %edi,%eax
  movslq (%rcx,%rax,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
  xchg   %ax,%ax
L11:
  movslq %esi,%rsi
  lea    D29(%rip),%rax
  mov    %edi,%edx
  shl    $0x4,%rsi
  lea    (%rsi,%rax,1),%r12
  lea    D40(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
L21:
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   0x0(%rax)
  lea    D101(%rip),%r12
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   (%rax)
  lea    D80(%rip),%r12
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   (%rax)
  lea    D82(%rip),%r12
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   (%rax)
  lea    D89(%rip),%r12
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   (%rax)
  lea    D62(%rip),%r12
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   (%rax)
  lea    D30(%rip),%r12
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   (%rax)
  lea    D37(%rip),%r12
  jmp    L21
  nopl   0x0(%rax)
  lea    D78(%rip),%r12
  jmp    L21
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D40
data_type: string
name: extract_symbolic_data
arguments: data_tag: D101
data_type: string
name: extract_symbolic_data
arguments: data_tag: D80
data_type: string
name: extract_symbolic_data
arguments: data_tag: D82
data_type: string
name: extract_symbolic_data
arguments: data_tag: D89
data_type: string
name: extract_symbolic_data
arguments: data_tag: D62
data_type: string
name: extract_symbolic_data
arguments: data_tag: D30
data_type: string
name: extract_symbolic_data
arguments: data_tag: D37
data_type: string
name: extract_symbolic_data
arguments: data_tag: D78
data_type: string

tool: D40: src%d

tool: D101: r2

tool: D80: r3

tool: D82: sfu

tool: D89: bar0

tool: D62: bar1

tool: D30: #1

tool: D37: r0

tool: D78: r1

assistant: ```c
const char *mfu_mul_src(unsigned src, int mul_idx) {
  static char ret[2][16];
  char *buf = ret[mul_idx];
  switch (src) {
  case 0:
    return "r0";
  case 1:
    return "r1";
  case 2:
    return "r2";
  case 3:
    return "r3";
  case 10:
    return "sfu";
  case 11:
    return "bar0";
  case 12:
    return "bar1";
  case 13:
    return "#1";
  default:
    sprintf(buf, "src%d", src);
    break;
  }
  return ret[mul_idx];
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<_fcpy>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    %rcx,-0x28(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  sub    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  jmp    L8
L19:
  cmpl   $0x0,-0x8(%rbp)
  js     L7
  mov    -0x8(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jge    L7
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  jmp    L17
L7:
  mov    $0x30,%eax
L17:
  mov    %al,-0x9(%rbp)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  lea    -0x1(%rax),%rcx
  mov    -0x28(%rbp),%rdx
  mov    %rcx,(%rdx)
  movzbl -0x9(%rbp),%edx
  mov    %dl,(%rax)
  subl   $0x1,-0x8(%rbp)
L8:
  mov    -0x20(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x20(%rbp)
  test   %eax,%eax
  jg     L19
  nop
  nop
  leave
  ret
```

assistant: ```c
void _fcpy(const char *digits, int dpt, int precision, char **a_it) {
  int i = dpt + precision - 1;
  int max = strlen(digits);
  while (precision-- > 0) {
    char digit = (i >= 0 && i < max) ? digits[i] : '0';
    *((*a_it)--) = digit;
    --i;
  }
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<_fcpy>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r12
  mov    %edx,%r14d
  mov    %rcx,%rbp
  lea    (%rsi,%rdx,1),%r13d
  call   <strlen@plt>
  test   %r14d,%r14d
  jle    L50
  lea    -0x1(%r13),%ebx
  movslq %ebx,%rdx
  movslq %r13d,%r8
  sub    $0x2,%r8
  lea    -0x1(%r14),%ecx
  sub    %rcx,%r8
  mov    $0x30,%r9d
  jmp    L35
L52:
  mov    %r9d,%esi
L58:
  mov    0x0(%rbp),%rcx
  lea    -0x1(%rcx),%rdi
  mov    %rdi,0x0(%rbp)
  mov    %sil,(%rcx)
  sub    $0x1,%rdx
  cmp    %r8,%rdx
  je     L50
L35:
  test   %edx,%edx
  js     L52
  cmp    %edx,%eax
  jle    L52
  movzbl (%r12,%rdx,1),%esi
  jmp    L58
L50:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
void _fcpy(const char *digits, int dpt, int precision, char **a_it) {
  int i = dpt + precision - 1;
  int max = strlen(digits);
  while (precision-- > 0) {
    char digit = (i >= 0 && i < max) ? digits[i] : '0';
    *((*a_it)--) = digit;
    --i;
  }
}
```
user: Translate the below assembly code into C programming language:

```asm
<_fcpy>:
  endbr64
  push   %r14
  mov    %edx,%r14d
  push   %r13
  mov    %rdi,%r13
  push   %r12
  lea    (%rsi,%rdx,1),%r12d
  push   %rbp
  mov    %rcx,%rbp
  push   %rbx
  call   <strlen@plt>
  test   %r14d,%r14d
  jle    L28
  movslq %r12d,%rsi
  lea    -0x1(%r12),%ebx
  lea    -0x1(%r14),%edx
  sub    $0x2,%rsi
  movslq %ebx,%rcx
  sub    %rdx,%rsi
  jmp    L51
  nopl   0x0(%rax,%rax,1)
L50:
  movzbl 0x0(%r13,%rcx,1),%edi
L19:
  mov    0x0(%rbp),%rdx
  sub    $0x1,%rcx
  lea    -0x1(%rdx),%r8
  mov    %r8,0x0(%rbp)
  mov    %dil,(%rdx)
  cmp    %rsi,%rcx
  je     L28
L51:
  test   %ecx,%ecx
  js     L23
  cmp    %ecx,%eax
  jg     L50
L23:
  mov    $0x30,%edi
  jmp    L19
  nopl   (%rax)
L28:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
void _fcpy(const char *digits, int dpt, int precision, char **a_it) {
  int i = dpt + precision - 1;
  int max = strlen(digits);
  while (precision-- > 0) {
    char digit = (i >= 0 && i < max) ? digits[i] : '0';
    *((*a_it)--) = digit;
    --i;
  }
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<_fcpy>:
  endbr64
  push   %r14
  mov    %edx,%r14d
  push   %r13
  mov    %rdi,%r13
  push   %r12
  lea    (%rsi,%rdx,1),%r12d
  push   %rbp
  mov    %rcx,%rbp
  push   %rbx
  call   <strlen@plt>
  test   %r14d,%r14d
  jle    L39
  lea    -0x1(%r12),%ebx
  movslq %r12d,%r12
  lea    -0x1(%r14),%ecx
  mov    %eax,%esi
  lea    -0x2(%r12),%rdx
  movslq %ebx,%rax
  sub    %rcx,%rdx
  nopl   0x0(%rax)
L28:
  test   %eax,%eax
  js     L18
  cmp    %eax,%esi
  jle    L18
  mov    0x0(%rbp),%rcx
  movzbl 0x0(%r13,%rax,1),%edi
  sub    $0x1,%rax
  lea    -0x1(%rcx),%r8
  mov    %r8,0x0(%rbp)
  mov    %dil,(%rcx)
  cmp    %rax,%rdx
  jne    L28
L39:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nop
L18:
  mov    0x0(%rbp),%rcx
  sub    $0x1,%rax
  lea    -0x1(%rcx),%rdi
  mov    %rdi,0x0(%rbp)
  movb   $0x30,(%rcx)
  cmp    %rdx,%rax
  jne    L28
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
void _fcpy(const char *digits, int dpt, int precision, char **a_it) {
  int i = dpt + precision - 1;
  int max = strlen(digits);
  while (precision-- > 0) {
    char digit = (i >= 0 && i < max) ? digits[i] : '0';
    *((*a_it)--) = digit;
    --i;
  }
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0x14(%rbp)
  movl   $0x2,-0x10(%rbp)
  movl   $0x3,-0xc(%rbp)
  lea    -0x14(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0xc(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L4
  call   <__stack_chk_fail@plt>
L4:
  leave
  ret
```

assistant: ```c
int main() {
  int array[] = {1, 2, 3};
  int *ptr = array;
  return array[2];
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  mov    $0x3,%eax
  ret
```

assistant: ```c
int main() {
  int array[] = {1, 2, 3};
  int *ptr = array;
  return array[2];
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<main>:
  endbr64
  mov    $0x3,%eax
  ret
```

assistant: ```c
int main() {
  int array[] = {1, 2, 3};
  int *ptr = array;
  return array[2];
}
```
user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  mov    $0x3,%eax
  ret
```

assistant: ```c
int main() {
  int array[] = {1, 2, 3};
  int *ptr = array;
  return array[2];
}
```
user: Translate the below assembly code into C programming language:

```asm
<check_data>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L25
L4:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x4(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jbe    L18
  mov    $0xffffffff,%eax
  jmp    L17
L18:
  addl   $0x1,-0x4(%rbp)
L25:
  mov    -0x1c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x4(%rbp),%eax
  cmp    %eax,%edx
  ja     L4
  mov    $0x0,%eax
L17:
  pop    %rbp
  ret
```

assistant: ```c
int check_data(unsigned int *data, unsigned int size) {
  int i;
  for (i = 0; i < size - 1; i++) {
    if (data[i] > data[i + 1]) {
      return -1;
    }
  }
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<check_data>:
  endbr64
  cmp    $0x1,%esi
  je     L18
  mov    %rdi,%rax
  lea    -0x2(%rsi),%edx
  lea    0x4(%rdi,%rdx,4),%rdx
L0:
  mov    0x4(%rax),%ecx
  cmp    %ecx,(%rax)
  ja     L9
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L0
  mov    $0x0,%eax
  ret
L18:
  mov    $0x0,%eax
  ret
L9:
  mov    $0xffffffff,%eax
  ret
```

assistant: ```c
int check_data(unsigned int *data, unsigned int size) {
  int i;
  for (i = 0; i < size - 1; i++) {
    if (data[i] > data[i + 1]) {
      return -1;
    }
  }
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<check_data>:
  endbr64
  cmp    $0x1,%esi
  je     L3
  lea    -0x2(%rsi),%eax
  lea    0x4(%rdi,%rax,4),%rax
  jmp    L4
  nopl   0x0(%rax,%rax,1)
L1:
  add    $0x4,%rdi
  cmp    %rax,%rdi
  je     L3
L4:
  mov    0x4(%rdi),%edx
  cmp    %edx,(%rdi)
  jbe    L1
  mov    $0xffffffff,%eax
  ret
  xchg   %ax,%ax
L3:
  xor    %eax,%eax
  ret
```

assistant: ```c
int check_data(unsigned int *data, unsigned int size) {
  int i;
  for (i = 0; i < size - 1; i++) {
    if (data[i] > data[i + 1]) {
      return -1;
    }
  }
  return 0;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<check_data>:
  endbr64
  cmp    $0x1,%esi
  je     L6
  lea    -0x2(%rsi),%ecx
  mov    (%rdi),%edx
  lea    0x4(%rdi),%rax
  lea    0x8(%rdi,%rcx,4),%rsi
  jmp    L22
  nopl   0x0(%rax)
L5:
  add    $0x4,%rax
  cmp    %rsi,%rax
  je     L6
L22:
  mov    %edx,%ecx
  mov    (%rax),%edx
  cmp    %ecx,%edx
  jae    L5
  mov    $0xffffffff,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L6:
  xor    %eax,%eax
  ret
```

assistant: ```c
int check_data(unsigned int *data, unsigned int size) {
  int i;
  for (i = 0; i < size - 1; i++) {
    if (data[i] > data[i + 1]) {
      return -1;
    }
  }
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<asc2hex>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,%eax
  mov    %al,-0x14(%rbp)
  cmpb   $0x2f,-0x14(%rbp)
  jle    L9
  cmpb   $0x39,-0x14(%rbp)
  jg     L9
  movzbl -0x14(%rbp),%eax
  sub    $0x30,%eax
  mov    %al,-0x1(%rbp)
  jmp    L28
L9:
  cmpb   $0x60,-0x14(%rbp)
  jle    L79
  cmpb   $0x66,-0x14(%rbp)
  jg     L79
  movzbl -0x14(%rbp),%eax
  sub    $0x57,%eax
  mov    %al,-0x1(%rbp)
  jmp    L28
L79:
  cmpb   $0x40,-0x14(%rbp)
  jle    L89
  cmpb   $0x46,-0x14(%rbp)
  jg     L89
  movzbl -0x14(%rbp),%eax
  sub    $0x37,%eax
  mov    %al,-0x1(%rbp)
  jmp    L28
L89:
  movb   $0x0,-0x1(%rbp)
L28:
  movzbl -0x1(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
unsigned char asc2hex(char asccode) {
  unsigned char ret;
  if ('0' <= asccode && asccode <= '9')
    ret = asccode - '0';
  else if ('a' <= asccode && asccode <= 'f')
    ret = asccode - 'a' + 10;
  else if ('A' <= asccode && asccode <= 'F')
    ret = asccode - 'A' + 10;
  else
    ret = 0;
  return ret;
}
```
user: Translate the below assembly code into C programming language:

```asm
<asc2hex>:
  endbr64
  lea    -0x30(%rdi),%eax
  cmp    $0x9,%al
  jbe    L13
  lea    -0x61(%rdi),%eax
  cmp    $0x5,%al
  ja     L9
  lea    -0x57(%rdi),%eax
  ret
L9:
  lea    -0x41(%rdi),%eax
  sub    $0x37,%edi
  cmp    $0x6,%al
  mov    $0x0,%eax
  cmovb  %edi,%eax
L13:
  ret
```

assistant: ```c
unsigned char asc2hex(char asccode) {
  unsigned char ret;
  if ('0' <= asccode && asccode <= '9')
    ret = asccode - '0';
  else if ('a' <= asccode && asccode <= 'f')
    ret = asccode - 'a' + 10;
  else if ('A' <= asccode && asccode <= 'F')
    ret = asccode - 'A' + 10;
  else
    ret = 0;
  return ret;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<asc2hex>:
  endbr64
  lea    -0x30(%rdi),%eax
  cmp    $0x9,%al
  jbe    L12
  lea    -0x61(%rdi),%eax
  cmp    $0x5,%al
  ja     L5
  lea    -0x57(%rdi),%eax
  ret
  cs nopw 0x0(%rax,%rax,1)
L5:
  lea    -0x41(%rdi),%eax
  sub    $0x37,%edi
  cmp    $0x6,%al
  mov    $0x0,%eax
  cmovb  %edi,%eax
L12:
  ret
```

assistant: ```c
unsigned char asc2hex(char asccode) {
  unsigned char ret;
  if ('0' <= asccode && asccode <= '9')
    ret = asccode - '0';
  else if ('a' <= asccode && asccode <= 'f')
    ret = asccode - 'a' + 10;
  else if ('A' <= asccode && asccode <= 'F')
    ret = asccode - 'A' + 10;
  else
    ret = 0;
  return ret;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<asc2hex>:
  endbr64
  lea    -0x30(%rdi),%eax
  cmp    $0x9,%al
  jbe    L5
  lea    -0x61(%rdi),%eax
  cmp    $0x5,%al
  ja     L2
  lea    -0x57(%rdi),%eax
  ret
  cs nopw 0x0(%rax,%rax,1)
L2:
  lea    -0x41(%rdi),%eax
  sub    $0x37,%edi
  cmp    $0x6,%al
  mov    $0x0,%eax
  cmovb  %edi,%eax
L5:
  ret
```

assistant: ```c
unsigned char asc2hex(char asccode) {
  unsigned char ret;
  if ('0' <= asccode && asccode <= '9')
    ret = asccode - '0';
  else if ('a' <= asccode && asccode <= 'f')
    ret = asccode - 'a' + 10;
  else if ('A' <= asccode && asccode <= 'F')
    ret = asccode - 'A' + 10;
  else
    ret = 0;
  return ret;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  lea    -0x2c(%rbp),%rsi
  lea    D4(%rip),%rdi
  call   <scanf@plt>
  mov    -0x2c(%rbp),%edx
  movslq %edx,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rsi
  and    $0xfffffffffffffff0,%rsi
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L91:
  cmp    %rcx,%rsp
  je     L86
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L91
L86:
  mov    %rsi,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L10
  orq    $0x0,-0x8(%rsp,%rax,1)
L10:
  mov    %rsp,%rbx
  test   %edx,%edx
  jle    L133
  mov    %rbx,%r13
  mov    $0x0,%r12d
  lea    D4(%rip),%r14
L85:
  mov    %r13,%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  add    $0x1,%r12d
  mov    -0x2c(%rbp),%r8d
  add    $0x4,%r13
  cmp    %r12d,%r8d
  jg     L85
  mov    $0x1,%edi
  lea    -0x1(%r8),%r10d
  lea    0x4(%rbx),%r9
  cmp    $0x1,%r8d
  jg     L93
L24:
  cmpl   $0x0,-0x2c(%rbp)
  jle    L133
  mov    $0x0,%r12d
  lea    D1(%rip),%r13
L7:
  mov    (%rbx,%r12,4),%esi
  mov    %r13,%rdi
  call   <printf@plt>
  add    $0x1,%r12
  cmp    %r12d,-0x2c(%rbp)
  jg     L7
L133:
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L95
  mov    $0x0,%eax
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
L21:
  add    $0x4,%rax
  cmp    %rsi,%rax
  je     L3
L14:
  mov    (%rax),%edx
  mov    0x4(%rax),%ecx
  cmp    %ecx,%edx
  jle    L21
  mov    %ecx,(%rax)
  mov    %edx,0x4(%rax)
  jmp    L21
L3:
  add    $0x1,%edi
  cmp    %edi,%r8d
  jle    L24
L93:
  mov    %r8d,%eax
  sub    %edi,%eax
  test   %eax,%eax
  jle    L3
  mov    %rbx,%rax
  mov    %r10d,%edx
  sub    %edi,%edx
  lea    (%r9,%rdx,4),%rsi
  jmp    L14
L95:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D4
datatype: string
name: retrieve_data
arguments: data_label: D1
datatype: string

tool: D4: %d

tool: D1: %d 

assistant: ```c
int main() {
  int n, i, j;
  scanf("%d", &n);
  int arr[n];
  for (i = 0; i < n; i++)
    scanf("%d", &arr[i]);
  for (i = 1; i < n; i++) {
    j = 0;
    while (j < n - i) {
      if (arr[j] > arr[j + 1]) {
        int temp = arr[j];
        arr[j] = arr[j + 1];
        arr[j + 1] = temp;
      }
      j++;
    }
  }
  for (i = 0; i < n; i++)
    printf("%d ", arr[i]);
  return 0;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  lea    D14(%rip),%r14
  push   %r13
  lea    -0x2c(%rbp),%rsi
  mov    %r14,%rdi
  push   %r12
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  movslq -0x2c(%rbp),%rax
  mov    %rsp,%rsi
  mov    %rax,%rcx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L59
L130:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L130
L59:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L90
L73:
  mov    %rsp,%rbx
  test   %ecx,%ecx
  jle    L138
  mov    %rbx,%r13
  xor    %r12d,%r12d
  nopl   0x0(%rax)
L144:
  mov    %r13,%rsi
  mov    %r14,%rdi
  add    $0x1,%r12d
  add    $0x4,%r13
  call   <scanf@plt>
  mov    -0x2c(%rbp),%r8d
  cmp    %r12d,%r8d
  jg     L144
  mov    $0x1,%edi
  lea    -0x1(%r8),%r10d
  lea    0x4(%rbx),%r9
  cmp    $0x1,%r8d
  jle    L86
  nopl   0x0(%rax,%rax,1)
L28:
  mov    %r8d,%eax
  sub    %edi,%eax
  test   %eax,%eax
  jle    L101
  mov    %r10d,%edx
  mov    %rbx,%rax
  sub    %edi,%edx
  lea    (%r9,%rdx,4),%rsi
  nopl   (%rax)
L84:
  mov    (%rax),%edx
  mov    0x4(%rax),%ecx
  cmp    %ecx,%edx
  jle    L102
  mov    %ecx,(%rax)
  mov    %edx,0x4(%rax)
L102:
  add    $0x4,%rax
  cmp    %rax,%rsi
  jne    L84
L101:
  add    $0x1,%edi
  cmp    %edi,%r8d
  jg     L28
L57:
  xor    %r12d,%r12d
  lea    D10(%rip),%r13
  nopl   0x0(%rax)
L76:
  mov    (%rbx,%r12,4),%esi
  mov    %r13,%rdi
  add    $0x1,%r12
  call   <printf@plt>
  cmp    %r12d,-0x2c(%rbp)
  jg     L76
L138:
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L103
  lea    -0x20(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
L90:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L73
L86:
  test   %r8d,%r8d
  jle    L138
  jmp    L57
L103:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D14
type_infered: string
name: parse_data
arguments: label: D10
type_infered: string

tool: D14: %d

tool: D10: %d 

assistant: ```c
int main() {
  int n, i, j;
  scanf("%d", &n);
  int arr[n];
  for (i = 0; i < n; i++)
    scanf("%d", &arr[i]);
  for (i = 1; i < n; i++) {
    j = 0;
    while (j < n - i) {
      if (arr[j] > arr[j + 1]) {
        int temp = arr[j];
        arr[j] = arr[j + 1];
        arr[j + 1] = temp;
      }
      j++;
    }
  }
  for (i = 0; i < n; i++)
    printf("%d ", arr[i]);
  return 0;
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  lea    D11(%rip),%r14
  push   %r13
  lea    -0x2c(%rbp),%rsi
  mov    %r14,%rdi
  push   %r12
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  movslq -0x2c(%rbp),%rax
  mov    %rsp,%rsi
  mov    %rax,%rcx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L102
L28:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L28
L102:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L109
L22:
  mov    %rsp,%rbx
  test   %ecx,%ecx
  jle    L83
  mov    %rbx,%r13
  xor    %r12d,%r12d
  nopl   0x0(%rax)
L4:
  mov    %r13,%rsi
  mov    %r14,%rdi
  add    $0x1,%r12d
  add    $0x4,%r13
  call   <scanf@plt>
  mov    -0x2c(%rbp),%r8d
  cmp    %r12d,%r8d
  jg     L4
  mov    $0x1,%edi
  lea    -0x1(%r8),%r10d
  lea    0x4(%rbx),%r9
  cmp    $0x1,%r8d
  jle    L89
  nopl   0x0(%rax,%rax,1)
L40:
  mov    %r8d,%eax
  sub    %edi,%eax
  test   %eax,%eax
  jle    L7
  mov    %r10d,%eax
  mov    %rbx,%rdx
  sub    %edi,%eax
  lea    (%r9,%rax,4),%rsi
  nopl   (%rax)
L41:
  movq   (%rdx),%xmm0
  pshufd $0xe5,%xmm0,%xmm2
  movd   %xmm0,%eax
  movd   %xmm2,%ecx
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %eax,%ecx
  jge    L140
  movq   %xmm1,(%rdx)
L140:
  add    $0x4,%rdx
  cmp    %rsi,%rdx
  jne    L41
L7:
  add    $0x1,%edi
  cmp    %edi,%r8d
  jg     L40
L17:
  xor    %r12d,%r12d
  lea    D14(%rip),%r13
  nopl   0x0(%rax)
L11:
  mov    (%rbx,%r12,4),%esi
  mov    %r13,%rdi
  add    $0x1,%r12
  call   <printf@plt>
  cmp    %r12d,-0x2c(%rbp)
  jg     L11
L83:
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L142
  lea    -0x20(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
L109:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L22
L89:
  test   %r8d,%r8d
  jle    L83
  jmp    L17
L142:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D11
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D14
type_infered: string

tool: D11: %d

tool: D14: %d 

assistant: ```c
int main() {
  int n, i, j;
  scanf("%d", &n);
  int arr[n];
  for (i = 0; i < n; i++)
    scanf("%d", &arr[i]);
  for (i = 1; i < n; i++) {
    j = 0;
    while (j < n - i) {
      if (arr[j] > arr[j + 1]) {
        int temp = arr[j];
        arr[j] = arr[j + 1];
        arr[j + 1] = temp;
      }
      j++;
    }
  }
  for (i = 0; i < n; i++)
    printf("%d ", arr[i]);
  return 0;
}
```