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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x210,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0x1f8(%rbp)
  jmp    L62
L0:
  movl   $0x0,-0x200(%rbp)
  movl   $0x0,-0x204(%rbp)
  jmp    L20
L70:
  lea    -0x1f0(%rbp),%rdx
  mov    -0x204(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x204(%rbp),%eax
  cltq
  mov    -0x1f0(%rbp,%rax,4),%eax
  add    %eax,-0x200(%rbp)
  addl   $0x1,-0x204(%rbp)
L20:
  mov    -0x208(%rbp),%eax
  cmp    %eax,-0x204(%rbp)
  jl     L70
  mov    -0x208(%rbp),%ecx
  mov    -0x200(%rbp),%eax
  cltd
  idiv   %ecx
  mov    %eax,-0x1f4(%rbp)
  movl   $0x0,-0x1fc(%rbp)
  movl   $0x0,-0x204(%rbp)
  jmp    L71
L45:
  mov    -0x204(%rbp),%eax
  cltq
  mov    -0x1f0(%rbp,%rax,4),%eax
  cmp    %eax,-0x1f4(%rbp)
  jge    L5
  mov    -0x204(%rbp),%eax
  cltq
  mov    -0x1f0(%rbp,%rax,4),%eax
  sub    -0x1f4(%rbp),%eax
  add    %eax,-0x1fc(%rbp)
L5:
  addl   $0x1,-0x204(%rbp)
L71:
  mov    -0x208(%rbp),%eax
  cmp    %eax,-0x204(%rbp)
  jl     L45
  mov    -0x1fc(%rbp),%edx
  mov    -0x1f8(%rbp),%eax
  mov    %eax,%esi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  addl   $0x1,-0x1f8(%rbp)
L62:
  lea    -0x208(%rbp),%rax
  mov    %rax,%rsi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  test   %rax,%rax
  je     L28
  mov    -0x208(%rbp),%eax
  test   %eax,%eax
  jne    L0
L28:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L52
  call   <__stack_chk_fail@plt>
L52:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D13
type_infered: string
name: parse_data
arguments: data_tag: D14
type_infered: string

tool: D13: %d

tool: D14: Set #%d
The minimum number of moves is %d.



assistant: ```c
int main() {
  int i, n, k[120], j, x;
  int avg, a = 1;
  while (scanf("%d", &n) && n) {
    j = 0;
    for (i = 0; i < n; i++) {
      scanf("%d", &k[i]);
      j += k[i];
    }
    avg = j / n;
    x = 0;
    for (i = 0; i < n; i++) {
      if (k[i] > avg) {
        x += (k[i] - avg);
      }
    }
    printf("Set #%d\nThe minimum number of moves is %d.\n\n", a, x);
    a++;
  }
  return 0;
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x218,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  mov    $0x1,%r14d
  lea    0x1c(%rsp),%rax
  mov    %rax,0x8(%rsp)
  lea    D17(%rip),%r13
  mov    $0x0,%r15d
  jmp    L32
L80:
  lea    0x20(%rsp),%rbx
  lea    (%rbx,%rbp,4),%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  add    (%rbx,%rbp,4),%r12d
  mov    0x1c(%rsp),%ecx
  add    $0x1,%rbp
  cmp    %ebp,%ecx
  jg     L80
  mov    %r12d,%eax
  cltd
  idiv   %ecx
  test   %ecx,%ecx
  jle    L58
  lea    -0x1(%rcx),%edx
  lea    0x4(%rbx,%rdx,4),%rdi
  mov    %r15d,%ecx
L38:
  mov    (%rbx),%esi
  mov    %esi,%edx
  sub    %eax,%edx
  add    %ecx,%edx
  cmp    %eax,%esi
  cmovg  %edx,%ecx
  add    $0x4,%rbx
  cmp    %rdi,%rbx
  jne    L38
L13:
  mov    %ecx,%edx
  mov    %r14d,%esi
  lea    D4(%rip),%rdi
  call   <printf@plt>
  add    $0x1,%r14d
L32:
  mov    0x8(%rsp),%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  test   %rax,%rax
  je     L67
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  je     L67
  mov    $0x0,%ebp
  mov    %r15d,%r12d
  mov    %r15d,%ecx
  jg     L80
  jmp    L13
L58:
  mov    %r15d,%ecx
  jmp    L13
L67:
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L79
  mov    $0x0,%eax
  add    $0x218,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L79:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D17
type_guessed: string
name: unpack_data
arguments: tag: D4
type_guessed: string

tool: D17: %d

tool: D4: Set #%d
The minimum number of moves is %d.



assistant: ```c
int main() {
  int i, n, k[120], j, x;
  int avg, a = 1;
  while (scanf("%d", &n) && n) {
    j = 0;
    for (i = 0; i < n; i++) {
      scanf("%d", &k[i]);
      j += k[i];
    }
    avg = j / n;
    x = 0;
    for (i = 0; i < n; i++) {
      if (k[i] > avg) {
        x += (k[i] - avg);
      }
    }
    printf("Set #%d\nThe minimum number of moves is %d.\n\n", a, x);
    a++;
  }
  return 0;
}
```
user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    $0x1,%r13d
  push   %r12
  lea    D16(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x218,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  lea    0x1c(%rsp),%rax
  mov    %rax,0x8(%rsp)
  nop
L77:
  mov    0x8(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  test   %rax,%rax
  je     L15
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  je     L15
  mov    $0x0,%r14d
  mov    $0x0,%r15d
  lea    0x20(%rsp),%rbp
  jle    L65
  nopl   0x0(%rax)
L31:
  lea    0x0(%rbp,%r14,4),%rsi
  mov    %r12,%rdi
  mov    %rbp,%rbx
  call   <scanf@plt>
  mov    0x1c(%rsp),%esi
  add    0x0(%rbp,%r14,4),%r15d
  add    $0x1,%r14
  cmp    %r14d,%esi
  jg     L31
  mov    %r15d,%eax
  cltd
  idiv   %esi
  test   %esi,%esi
  jle    L65
  lea    -0x1(%rsi),%edx
  xor    %r8d,%r8d
  lea    0x24(%rsp,%rdx,4),%rsi
  nopw   0x0(%rax,%rax,1)
L34:
  mov    (%rbx),%ecx
  mov    %ecx,%edx
  sub    %eax,%edx
  add    %r8d,%edx
  cmp    %eax,%ecx
  cmovg  %edx,%r8d
  add    $0x4,%rbx
  cmp    %rsi,%rbx
  jne    L34
L62:
  mov    %r13d,%esi
  mov    %r8d,%edx
  lea    D14(%rip),%rdi
  add    $0x1,%r13d
  call   <printf@plt>
  jmp    L77
  nopl   0x0(%rax,%rax,1)
L15:
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L11
  add    $0x218,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L65:
  xor    %r8d,%r8d
  jmp    L62
L11:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D16
datatype: string
name: read_data
arguments: tag: D14
datatype: string

tool: D16: %d

tool: D14: Set #%d
The minimum number of moves is %d.



assistant: ```c
int main() {
  int i, n, k[120], j, x;
  int avg, a = 1;
  while (scanf("%d", &n) && n) {
    j = 0;
    for (i = 0; i < n; i++) {
      scanf("%d", &k[i]);
      j += k[i];
    }
    avg = j / n;
    x = 0;
    for (i = 0; i < n; i++) {
      if (k[i] > avg) {
        x += (k[i] - avg);
      }
    }
    printf("Set #%d\nThe minimum number of moves is %d.\n\n", a, x);
    a++;
  }
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    $0x1,%r13d
  push   %r12
  lea    D18(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x218,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  lea    0x1c(%rsp),%rax
  mov    %rax,0x8(%rsp)
  nop
L104:
  mov    0x8(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  test   %rax,%rax
  je     L80
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  je     L80
  mov    $0x0,%ebx
  mov    $0x0,%r15d
  lea    0x20(%rsp),%rbp
  jle    L138
  nopl   0x0(%rax,%rax,1)
L68:
  lea    0x0(%rbp,%rbx,4),%rsi
  mov    %r12,%rdi
  mov    %rbp,%r14
  call   <scanf@plt>
  mov    0x1c(%rsp),%esi
  add    0x0(%rbp,%rbx,4),%r15d
  add    $0x1,%rbx
  cmp    %ebx,%esi
  jg     L68
  mov    %r15d,%eax
  cltd
  idiv   %esi
  test   %esi,%esi
  jle    L138
  lea    -0x1(%rsi),%edx
  cmp    $0x2,%edx
  jbe    L3
  mov    %esi,%edx
  movd   %eax,%xmm4
  pxor   %xmm1,%xmm1
  shr    $0x2,%edx
  pshufd $0x0,%xmm4,%xmm2
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x30(%rsp,%rdx,1),%rdx
  nopl   0x0(%rax)
L1:
  movdqa (%r14),%xmm0
  add    $0x10,%r14
  movdqa %xmm0,%xmm3
  pcmpgtd %xmm2,%xmm0
  psubd  %xmm2,%xmm3
  pand   %xmm3,%xmm0
  paddd  %xmm0,%xmm1
  cmp    %r14,%rdx
  jne    L1
  movdqa %xmm1,%xmm0
  mov    %esi,%ecx
  psrldq $0x8,%xmm0
  and    $0xfffffffc,%ecx
  paddd  %xmm0,%xmm1
  movdqa %xmm1,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm1
  movd   %xmm1,%edx
  test   $0x3,%sil
  je     L62
L16:
  movslq %ecx,%rdi
  mov    0x20(%rsp,%rdi,4),%r8d
  mov    %r8d,%edi
  sub    %eax,%edi
  add    %edx,%edi
  cmp    %r8d,%eax
  cmovl  %edi,%edx
  lea    0x1(%rcx),%edi
  cmp    %edi,%esi
  jle    L62
  movslq %edi,%rdi
  mov    0x20(%rsp,%rdi,4),%r8d
  mov    %r8d,%edi
  sub    %eax,%edi
  add    %edx,%edi
  cmp    %r8d,%eax
  cmovl  %edi,%edx
  add    $0x2,%ecx
  cmp    %ecx,%esi
  jle    L62
  movslq %ecx,%rcx
  mov    0x20(%rsp,%rcx,4),%esi
  mov    %esi,%ecx
  sub    %eax,%ecx
  add    %edx,%ecx
  cmp    %esi,%eax
  cmovl  %ecx,%edx
L62:
  mov    %r13d,%esi
  lea    D12(%rip),%rdi
  add    $0x1,%r13d
  call   <printf@plt>
  jmp    L104
  nopl   (%rax)
L80:
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L54
  add    $0x218,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L138:
  xor    %edx,%edx
  jmp    L62
L3:
  xor    %edx,%edx
  xor    %ecx,%ecx
  jmp    L16
L54:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D18
data_type: string
name: read_data
arguments: label: D12
data_type: string

tool: D18: %d

tool: D12: Set #%d
The minimum number of moves is %d.



assistant: ```c
int main() {
  int i, n, k[120], j, x;
  int avg, a = 1;
  while (scanf("%d", &n) && n) {
    j = 0;
    for (i = 0; i < n; i++) {
      scanf("%d", &k[i]);
      j += k[i];
    }
    avg = j / n;
    x = 0;
    for (i = 0; i < n; i++) {
      if (k[i] > avg) {
        x += (k[i] - avg);
      }
    }
    printf("Set #%d\nThe minimum number of moves is %d.\n\n", a, x);
    a++;
  }
  return 0;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movss  D71(%rip),%xmm0
  movss  %xmm0,-0x30(%rbp)
  movss  D22(%rip),%xmm0
  movss  %xmm0,-0x2c(%rbp)
  movss  D6(%rip),%xmm0
  movss  %xmm0,-0x28(%rbp)
  movss  D53(%rip),%xmm0
  movss  %xmm0,-0x24(%rbp)
  movss  D32(%rip),%xmm0
  movss  %xmm0,-0x20(%rbp)
  movss  D52(%rip),%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  D78(%rip),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  D89(%rip),%xmm0
  movss  %xmm0,-0x14(%rbp)
  movl   $0x4,-0x40(%rbp)
  movl   $0x2,-0x3c(%rbp)
  mov    -0x3c(%rbp),%edx
  lea    -0x30(%rbp),%rcx
  mov    -0x40(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <stdlib_strided_dsmeanwd@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  lea    D66(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L3
  call   <__stack_chk_fail@plt>
L3:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D71
type_guessed: f32
name: disassemble_data
arguments: label: D22
type_guessed: f32
name: disassemble_data
arguments: label: D6
type_guessed: f32
name: disassemble_data
arguments: label: D53
type_guessed: f32
name: disassemble_data
arguments: label: D32
type_guessed: f32
name: disassemble_data
arguments: label: D52
type_guessed: f32
name: disassemble_data
arguments: label: D78
type_guessed: f32
name: disassemble_data
arguments: label: D89
type_guessed: f32
name: disassemble_data
arguments: label: D66
type_guessed: string

tool: D71: 1

tool: D22: 2

tool: D6: 3

tool: D53: 4

tool: D32: 5

tool: D52: 6

tool: D78: 7

tool: D89: 8

tool: D66: mean: %lf


assistant: ```c
int main() {
  float x[] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0};
  int64_t N = 4;
  int64_t stride = 2;
  double v = stdlib_strided_dsmeanwd(N, x, stride);
  printf("mean: %lf\n", v);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movl   $0x3f800000,(%rsp)
  movl   $0x40000000,0x4(%rsp)
  movl   $0x40400000,0x8(%rsp)
  movl   $0x40800000,0xc(%rsp)
  movl   $0x40a00000,0x10(%rsp)
  movl   $0x40c00000,0x14(%rsp)
  movl   $0x40e00000,0x18(%rsp)
  movl   $0x41000000,0x1c(%rsp)
  mov    %rsp,%rsi
  mov    $0x2,%edx
  mov    $0x4,%edi
  call   <stdlib_strided_dsmeanwd@plt>
  lea    D5(%rip),%rdi
  call   <printf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  mov    $0x0,%eax
  add    $0x38,%rsp
  ret
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D5
datatype: string

tool: D5: mean: %lf


assistant: ```c
int main() {
  float x[] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0};
  int64_t N = 4;
  int64_t stride = 2;
  double v = stdlib_strided_dsmeanwd(N, x, stride);
  printf("mean: %lf\n", v);
}
```
user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  sub    $0x38,%rsp
  mov    $0x4,%edi
  mov    $0x2,%edx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  movabs $0x400000003f800000,%rax
  mov    %rsp,%rsi
  mov    %rax,(%rsp)
  movabs $0x4080000040400000,%rax
  mov    %rax,0x8(%rsp)
  movabs $0x40c0000040a00000,%rax
  mov    %rax,0x10(%rsp)
  movabs $0x4100000040e00000,%rax
  mov    %rax,0x18(%rsp)
  call   <stdlib_strided_dsmeanwd@plt>
  lea    D4(%rip),%rdi
  call   <printf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  xor    %eax,%eax
  add    $0x38,%rsp
  ret
L0:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D4
type_infered: string

tool: D4: mean: %lf


assistant: ```c
int main() {
  float x[] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0};
  int64_t N = 4;
  int64_t stride = 2;
  double v = stdlib_strided_dsmeanwd(N, x, stride);
  printf("mean: %lf\n", v);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  sub    $0x38,%rsp
  movaps D20(%rip),%xmm0
  mov    $0x4,%edi
  mov    $0x2,%edx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rsi
  movaps %xmm0,(%rsp)
  movaps D7(%rip),%xmm0
  movaps %xmm0,0x10(%rsp)
  call   <stdlib_strided_dsmeanwd@plt>
  lea    D21(%rip),%rdi
  call   <printf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  xor    %eax,%eax
  add    $0x38,%rsp
  ret
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D20
type: f32[4]
name: read_data
arguments: data_tag: D7
type: f32[4]
name: read_data
arguments: data_tag: D21
type: string

tool: {"D20": [1.0,2.0,3.0,4.0]}

tool: {"D7": [5.0,6.0,7.0,8.0]}

tool: D21: mean: %lf


assistant: ```c
int main() {
  float x[] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0};
  int64_t N = 4;
  int64_t stride = 2;
  double v = stdlib_strided_dsmeanwd(N, x, stride);
  printf("mean: %lf\n", v);
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<int2bin>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x70(%rbp)
  movl   $0x0,-0x6c(%rbp)
  movl   $0x0,-0x68(%rbp)
  cmpq   $0x0,-0x78(%rbp)
  jns    L58
  negq   -0x78(%rbp)
  movl   $0x1,-0x68(%rbp)
L58:
  mov    -0x78(%rbp),%rax
  cqto
  shr    $0x3f,%rdx
  add    %rdx,%rax
  and    $0x1,%eax
  sub    %rdx,%rax
  mov    %eax,-0x64(%rbp)
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdx
  shr    $0x3f,%rdx
  add    %rdx,%rax
  sar    %rax
  mov    %rax,-0x78(%rbp)
  mov    -0x64(%rbp),%eax
  lea    0x30(%rax),%ecx
  mov    -0x70(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x70(%rbp)
  mov    %ecx,%edx
  cltq
  mov    %dl,-0x60(%rbp,%rax,1)
  cmpq   $0x0,-0x78(%rbp)
  jg     L58
  jmp    L43
L20:
  mov    -0x70(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x70(%rbp)
  cltq
  movb   $0x30,-0x60(%rbp,%rax,1)
L43:
  cmpl   $0x1f,-0x70(%rbp)
  jle    L20
  cmpl   $0x0,-0x68(%rbp)
  je     L37
  mov    -0x70(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x70(%rbp)
  cltq
  movb   $0x2d,-0x60(%rbp,%rax,1)
  jmp    L37
L8:
  subl   $0x1,-0x70(%rbp)
  mov    -0x6c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x6c(%rbp)
  movslq %eax,%rdx
  mov    -0x80(%rbp),%rax
  add    %rax,%rdx
  mov    -0x70(%rbp),%eax
  cltq
  movzbl -0x60(%rbp,%rax,1),%eax
  mov    %al,(%rdx)
L37:
  cmpl   $0x0,-0x70(%rbp)
  jns    L8
  mov    -0x6c(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L71
  call   <__stack_chk_fail@plt>
L71:
  leave
  ret
```

assistant: ```c
void int2bin(long decimal, char *binary) {
  int k = 0, n = 0;
  int neg_flag = 0;
  int remain;
  char temp[80];
  if (decimal < 0) {
    decimal = -decimal;
    neg_flag = 1;
  }
  do {
    remain = decimal % 2;
    decimal = decimal / 2;
    temp[k++] = remain + '0';
  } while (decimal > 0);
  while (k < 32) {
    temp[k++] = '0';
  }
  if (neg_flag)
    temp[k++] = '-';
  while (k >= 0)
    binary[n++] = temp[--k];
  binary[n - 1] = 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<int2bin>:
  endbr64
  sub    $0x68,%rsp
  mov    %rdi,%rdx
  mov    %rsi,%r8
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  mov    $0x0,%r9d
  test   %rdi,%rdi
  js     L23
L73:
  mov    $0x1,%ecx
  lea    -0x1(%rsp),%r10
L20:
  mov    %rdx,%rsi
  shr    $0x3f,%rsi
  lea    (%rdx,%rsi,1),%rax
  and    $0x1,%eax
  sub    %rsi,%rax
  mov    %rdx,%rdi
  mov    %rdx,%rsi
  shr    $0x3f,%rsi
  add    %rsi,%rdx
  sar    %rdx
  mov    %ecx,%esi
  add    $0x30,%eax
  mov    %al,(%r10,%rcx,1)
  mov    %rcx,%r11
  add    $0x1,%rcx
  cmp    $0x1,%rdi
  jg     L20
  cmp    $0x1f,%esi
  jg     L8
  movslq %esi,%rsi
  lea    (%rsp,%rsi,1),%rax
  lea    0x1(%rsp,%rsi,1),%rdx
  mov    $0x1f,%ecx
  sub    %r11d,%ecx
  add    %rcx,%rdx
L2:
  movb   $0x30,(%rax)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L2
  mov    $0x20,%edi
  test   %r9d,%r9d
  je     L32
  mov    $0x20,%esi
L102:
  lea    0x1(%rsi),%edi
  movslq %esi,%rsi
  movb   $0x2d,(%rsp,%rsi,1)
L91:
  test   %edi,%edi
  js     L54
L32:
  movslq %edi,%rax
  lea    -0x1(%rsp,%rax,1),%rdx
  mov    %r8,%rax
  mov    %edi,%ecx
  lea    0x1(%r8,%rcx,1),%rsi
L63:
  movzbl (%rdx),%ecx
  mov    %cl,(%rax)
  sub    $0x1,%rdx
  add    $0x1,%rax
  cmp    %rsi,%rax
  jne    L63
  add    $0x1,%edi
L74:
  movslq %edi,%rdi
  movb   $0x0,-0x1(%r8,%rdi,1)
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L106
  add    $0x68,%rsp
  ret
L23:
  neg    %rdx
  mov    $0x1,%r9d
  jmp    L73
L8:
  mov    %esi,%edi
  test   %r9d,%r9d
  je     L91
  jmp    L102
L54:
  mov    $0x0,%edi
  jmp    L74
L106:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void int2bin(long decimal, char *binary) {
  int k = 0, n = 0;
  int neg_flag = 0;
  int remain;
  char temp[80];
  if (decimal < 0) {
    decimal = -decimal;
    neg_flag = 1;
  }
  do {
    remain = decimal % 2;
    decimal = decimal / 2;
    temp[k++] = remain + '0';
  } while (decimal > 0);
  while (k < 32) {
    temp[k++] = '0';
  }
  if (neg_flag)
    temp[k++] = '-';
  while (k >= 0)
    binary[n++] = temp[--k];
  binary[n - 1] = 0;
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<int2bin>:
  endbr64
  push   %rbx
  mov    %rsi,%r10
  xor    %ebx,%ebx
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  test   %rdi,%rdi
  jns    L11
  neg    %rdi
  mov    $0x1,%ebx
L11:
  mov    $0x1,%eax
  mov    %rsp,%rcx
  lea    -0x1(%rsp),%r11
  nopl   0x0(%rax,%rax,1)
L113:
  mov    %rdi,%rdx
  mov    %rdi,%rsi
  movslq %eax,%r8
  movslq %eax,%r9
  and    $0x1,%edx
  sar    %rdi
  add    $0x30,%edx
  mov    %dl,(%r11,%rax,1)
  add    $0x1,%rax
  cmp    $0x1,%rsi
  jg     L113
  cmp    $0x1f,%r8d
  jg     L90
  movabs $0x3030303030303030,%rdi
  mov    $0x20,%eax
  sub    %r8d,%eax
  add    %rcx,%r8
  cmp    $0x8,%eax
  jb     L115
  lea    0x8(%r8),%rsi
  mov    %eax,%edx
  mov    %rdi,(%r8)
  and    $0xfffffffffffffff8,%rsi
  mov    %rdi,-0x8(%r8,%rdx,1)
  sub    %rsi,%r8
  add    %r8d,%eax
  and    $0xfffffff8,%eax
  cmp    $0x8,%eax
  jb     L106
  and    $0xfffffff8,%eax
  xor    %edx,%edx
L82:
  mov    %edx,%r8d
  add    $0x8,%edx
  mov    %rdi,(%rsi,%r8,1)
  cmp    %eax,%edx
  jb     L82
L106:
  mov    $0x20,%r9d
L90:
  test   %ebx,%ebx
  jne    L145
  lea    -0x1(%r9),%eax
  mov    %r9d,%edi
  cltq
  movzbl (%rsp,%rax,1),%esi
L151:
  movslq %edi,%rdi
  mov    %r10,%rax
  lea    (%rcx,%rdi,1),%rdx
  lea    (%r10,%rdi,1),%rcx
  jmp    L23
  nopl   0x0(%rax)
L79:
  movzbl -0x1(%rdx),%esi
  add    $0x1,%rax
L23:
  mov    %sil,(%rax)
  sub    $0x1,%rdx
  cmp    %rax,%rcx
  jne    L79
  movb   $0x0,(%r10,%rdi,1)
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L25
  add    $0x60,%rsp
  pop    %rbx
  ret
  nopw   0x0(%rax,%rax,1)
L145:
  movb   $0x2d,(%rsp,%r9,1)
  lea    0x1(%r9),%edi
  mov    $0x2d,%esi
  jmp    L151
L115:
  test   $0x4,%al
  jne    L75
  test   %eax,%eax
  je     L106
  movb   $0x30,(%r8)
  test   $0x2,%al
  je     L106
  mov    $0x3030,%edx
  mov    %dx,-0x2(%r8,%rax,1)
  jmp    L106
L75:
  movl   $0x30303030,(%r8)
  movl   $0x30303030,-0x4(%r8,%rax,1)
  jmp    L106
L25:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void int2bin(long decimal, char *binary) {
  int k = 0, n = 0;
  int neg_flag = 0;
  int remain;
  char temp[80];
  if (decimal < 0) {
    decimal = -decimal;
    neg_flag = 1;
  }
  do {
    remain = decimal % 2;
    decimal = decimal / 2;
    temp[k++] = remain + '0';
  } while (decimal > 0);
  while (k < 32) {
    temp[k++] = '0';
  }
  if (neg_flag)
    temp[k++] = '-';
  while (k >= 0)
    binary[n++] = temp[--k];
  binary[n - 1] = 0;
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<int2bin>:
  endbr64
  push   %rbx
  mov    %rsi,%r9
  xor    %ebx,%ebx
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  test   %rdi,%rdi
  jns    L123
  neg    %rdi
  mov    $0x1,%ebx
L123:
  mov    $0x1,%eax
  mov    %rsp,%r11
  lea    -0x1(%rsp),%r10
  nopl   0x0(%rax,%rax,1)
L14:
  mov    %rdi,%rdx
  mov    %rdi,%rcx
  movslq %eax,%rsi
  mov    %eax,%r8d
  and    $0x1,%edx
  sar    %rdi
  add    $0x30,%edx
  mov    %dl,(%r10,%rax,1)
  add    $0x1,%rax
  cmp    $0x1,%rcx
  jg     L14
  cmp    $0x1f,%esi
  jg     L131
  movabs $0x3030303030303030,%rdi
  mov    $0x20,%eax
  sub    %esi,%eax
  add    %r11,%rsi
  cmp    $0x8,%eax
  jb     L37
  lea    0x8(%rsi),%rcx
  mov    %eax,%edx
  mov    %rdi,(%rsi)
  and    $0xfffffffffffffff8,%rcx
  mov    %rdi,-0x8(%rsi,%rdx,1)
  sub    %rcx,%rsi
  add    %esi,%eax
  and    $0xfffffff8,%eax
  cmp    $0x8,%eax
  jb     L32
  and    $0xfffffff8,%eax
  xor    %edx,%edx
L36:
  mov    %edx,%esi
  add    $0x8,%edx
  mov    %rdi,(%rcx,%rsi,1)
  cmp    %eax,%edx
  jb     L36
L32:
  mov    $0x20,%r8d
L131:
  test   %ebx,%ebx
  je     L49
  movslq %r8d,%rax
  add    $0x1,%r8d
  movb   $0x2d,(%rsp,%rax,1)
L49:
  movslq %r8d,%r8
  mov    %r9,%rax
  lea    -0x1(%r11,%r8,1),%rdx
  lea    0x1(%r9,%r8,1),%rsi
  nopl   0x0(%rax,%rax,1)
L68:
  movzbl (%rdx),%ecx
  add    $0x1,%rax
  sub    $0x1,%rdx
  mov    %cl,-0x1(%rax)
  cmp    %rax,%rsi
  jne    L68
  movb   $0x0,(%r9,%r8,1)
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L135
  add    $0x60,%rsp
  pop    %rbx
  ret
  xchg   %ax,%ax
L37:
  test   $0x4,%al
  jne    L54
  test   %eax,%eax
  je     L32
  movb   $0x30,(%rsi)
  test   $0x2,%al
  je     L32
  mov    $0x3030,%edx
  mov    %dx,-0x2(%rsi,%rax,1)
  jmp    L32
L54:
  movl   $0x30303030,(%rsi)
  movl   $0x30303030,-0x4(%rsi,%rax,1)
  jmp    L32
L135:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void int2bin(long decimal, char *binary) {
  int k = 0, n = 0;
  int neg_flag = 0;
  int remain;
  char temp[80];
  if (decimal < 0) {
    decimal = -decimal;
    neg_flag = 1;
  }
  do {
    remain = decimal % 2;
    decimal = decimal / 2;
    temp[k++] = remain + '0';
  } while (decimal > 0);
  while (k < 32) {
    temp[k++] = '0';
  }
  if (neg_flag)
    temp[k++] = '-';
  while (k >= 0)
    binary[n++] = temp[--k];
  binary[n - 1] = 0;
}
```