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

```asm
<mean_coverage2>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x186000(%rsp),%r11
L69:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L69
  sub    $0xbd8,%rsp
  mov    %rdi,(%rsp)
  mov    %rsi,0x8(%rsp)
  mov    %ecx,0x1c(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x186bc8(%rsp)
  xor    %eax,%eax
  test   %ecx,%ecx
  jle    L28
  mov    %rdx,%r14
  lea    -0x1(%rcx),%eax
  lea    0x8(%rdx,%rax,8),%rax
  mov    %rax,0x10(%rsp)
  pxor   %xmm3,%xmm3
  movss  %xmm3,0x18(%rsp)
  lea    D5(%rip),%r15
  jmp    L67
L42:
  add    $0x8,%r14
  cmp    %r14,0x10(%rsp)
  je     L66
L67:
  mov    $0x1,%ebx
L16:
  lea    0x186a30(%rsp),%r12
  mov    %ebx,%r8d
  mov    (%r14),%rcx
  mov    (%rsp),%rdx
  mov    %r15,%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  lea    0x30(%rsp),%rbp
  mov    $0x0,%edx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <load_locations@plt>
  mov    %eax,%r12d
  lea    0x186b00(%rsp),%r13
  mov    %ebx,%r8d
  mov    (%r14),%rcx
  mov    0x8(%rsp),%rdx
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <sprintf@plt>
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <load_locations@plt>
  mov    %eax,%esi
  lea    0x24(%rsp),%rcx
  lea    0x2c(%rsp),%rdx
  lea    0x28(%rsp),%r8
  mov    %rbp,%rdi
  call   <coverage@plt>
  movss  0x18(%rsp),%xmm2
  addss  0x2c(%rsp),%xmm2
  movss  %xmm2,0x18(%rsp)
  add    $0x1,%ebx
  cmp    $0x7,%ebx
  jne    L16
  jmp    L42
L66:
  mov    0x1c(%rsp),%eax
  lea    (%rax,%rax,2),%eax
  add    %eax,%eax
L35:
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  movss  0x18(%rsp),%xmm0
  divss  %xmm1,%xmm0
  mov    0x186bc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L74
  add    $0x186bd8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L28:
  pxor   %xmm4,%xmm4
  movss  %xmm4,0x18(%rsp)
  mov    $0x0,%eax
  jmp    L35
L74:
  call   <__stack_chk_fail@plt>
```

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

tool: D5: data/%s_%s%d.txt

assistant: ```c
float mean_coverage2(char *opname1, char *opname2, char **imsets, int nimsets) {
  int nfiles = 0, i, fno, nlocs, np, nc;
  float locs[200000][2];
  float csum = 0.0, cov;
  char fn1[200], fn2[200];
  for (i = 0; i < nimsets; i++) {
    for (fno = 1; fno < 7; fno++) {
      sprintf(fn1, "data/%s_%s%d.txt", opname1, imsets[i], fno);
      nlocs = load_locations(fn1, locs, 0);
      sprintf(fn2, "data/%s_%s%d.txt", opname2, imsets[i], fno);
      nlocs = load_locations(fn2, locs, nlocs);
      coverage(locs, nlocs, &cov, &np, &nc);
      csum += cov;
      nfiles += 1;
    }
  }
  return csum / nfiles;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<mean_coverage2>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x186000(%rsp),%r11
L13:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L13
  sub    $0xbf8,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %ecx,0x3c(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x186be8(%rsp)
  xor    %eax,%eax
  test   %ecx,%ecx
  jle    L24
  mov    %ecx,%eax
  pxor   %xmm0,%xmm0
  lea    D9(%rip),%r13
  mov    %rdx,%rbp
  sub    $0x1,%eax
  lea    0x186a50(%rsp),%r14
  lea    0x50(%rsp),%rbx
  lea    0x8(%rdx,%rax,8),%rax
  lea    0x186b20(%rsp),%r12
  mov    %rax,0x30(%rsp)
  lea    0x48(%rsp),%rax
  mov    %rax,0x20(%rsp)
  lea    0x44(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x4c(%rsp),%rax
  mov    %rax,0x28(%rsp)
  nopw   0x0(%rax,%rax,1)
L10:
  mov    $0x1,%r15d
  cs nopw 0x0(%rax,%rax,1)
L35:
  mov    0x0(%rbp),%rcx
  mov    0x8(%rsp),%rdx
  mov    %r15d,%r8d
  mov    %r13,%rsi
  mov    %r14,%rdi
  movss  %xmm0,0x38(%rsp)
  call   <sprintf@plt>
  xor    %edx,%edx
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <load_locations@plt>
  mov    0x0(%rbp),%rcx
  mov    %r15d,%r8d
  mov    %r13,%rsi
  mov    0x10(%rsp),%rdx
  mov    %r12,%rdi
  mov    %eax,0x4(%rsp)
  add    $0x1,%r15d
  call   <sprintf@plt>
  mov    0x4(%rsp),%edx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <load_locations@plt>
  mov    0x20(%rsp),%r8
  mov    0x18(%rsp),%rcx
  mov    %rbx,%rdi
  mov    0x28(%rsp),%rdx
  mov    %eax,%esi
  call   <coverage@plt>
  movss  0x38(%rsp),%xmm0
  addss  0x4c(%rsp),%xmm0
  cmp    $0x7,%r15d
  jne    L35
  add    $0x8,%rbp
  cmp    0x30(%rsp),%rbp
  jne    L10
  mov    0x3c(%rsp),%eax
  pxor   %xmm1,%xmm1
  lea    (%rax,%rax,2),%eax
  add    %eax,%eax
  cvtsi2ss %eax,%xmm1
L22:
  divss  %xmm1,%xmm0
  mov    0x186be8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L33
  add    $0x186bf8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L24:
  pxor   %xmm1,%xmm1
  movaps %xmm1,%xmm0
  jmp    L22
L33:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D9
data_type: string

tool: D9: data/%s_%s%d.txt

assistant: ```c
float mean_coverage2(char *opname1, char *opname2, char **imsets, int nimsets) {
  int nfiles = 0, i, fno, nlocs, np, nc;
  float locs[200000][2];
  float csum = 0.0, cov;
  char fn1[200], fn2[200];
  for (i = 0; i < nimsets; i++) {
    for (fno = 1; fno < 7; fno++) {
      sprintf(fn1, "data/%s_%s%d.txt", opname1, imsets[i], fno);
      nlocs = load_locations(fn1, locs, 0);
      sprintf(fn2, "data/%s_%s%d.txt", opname2, imsets[i], fno);
      nlocs = load_locations(fn2, locs, nlocs);
      coverage(locs, nlocs, &cov, &np, &nc);
      csum += cov;
      nfiles += 1;
    }
  }
  return csum / nfiles;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<mean_coverage2>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x186000(%rsp),%r11
L34:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L34
  sub    $0xbf8,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %ecx,0x3c(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x186be8(%rsp)
  xor    %eax,%eax
  test   %ecx,%ecx
  jle    L37
  mov    %ecx,%eax
  pxor   %xmm0,%xmm0
  lea    D9(%rip),%r13
  mov    %rdx,%rbp
  sub    $0x1,%eax
  lea    0x186a50(%rsp),%r14
  lea    0x50(%rsp),%rbx
  lea    0x8(%rdx,%rax,8),%rax
  lea    0x186b20(%rsp),%r12
  mov    %rax,0x30(%rsp)
  lea    0x48(%rsp),%rax
  mov    %rax,0x20(%rsp)
  lea    0x44(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x4c(%rsp),%rax
  mov    %rax,0x28(%rsp)
  nopw   0x0(%rax,%rax,1)
L4:
  mov    $0x1,%r15d
  cs nopw 0x0(%rax,%rax,1)
L31:
  mov    0x0(%rbp),%rcx
  mov    0x8(%rsp),%rdx
  mov    %r15d,%r8d
  mov    %r13,%rsi
  mov    %r14,%rdi
  movss  %xmm0,0x38(%rsp)
  call   <sprintf@plt>
  xor    %edx,%edx
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <load_locations@plt>
  mov    0x0(%rbp),%rcx
  mov    %r15d,%r8d
  mov    %r13,%rsi
  mov    0x10(%rsp),%rdx
  mov    %r12,%rdi
  mov    %eax,0x4(%rsp)
  add    $0x1,%r15d
  call   <sprintf@plt>
  mov    0x4(%rsp),%edx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <load_locations@plt>
  mov    0x20(%rsp),%r8
  mov    0x18(%rsp),%rcx
  mov    %rbx,%rdi
  mov    0x28(%rsp),%rdx
  mov    %eax,%esi
  call   <coverage@plt>
  movss  0x38(%rsp),%xmm0
  addss  0x4c(%rsp),%xmm0
  cmp    $0x7,%r15d
  jne    L31
  add    $0x8,%rbp
  cmp    0x30(%rsp),%rbp
  jne    L4
  mov    0x3c(%rsp),%eax
  pxor   %xmm1,%xmm1
  lea    (%rax,%rax,2),%eax
  add    %eax,%eax
  cvtsi2ss %eax,%xmm1
L47:
  divss  %xmm1,%xmm0
  mov    0x186be8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L32
  add    $0x186bf8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L37:
  pxor   %xmm1,%xmm1
  movaps %xmm1,%xmm0
  jmp    L47
L32:
  call   <__stack_chk_fail@plt>
```

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

tool: D9: data/%s_%s%d.txt

assistant: ```c
float mean_coverage2(char *opname1, char *opname2, char **imsets, int nimsets) {
  int nfiles = 0, i, fno, nlocs, np, nc;
  float locs[200000][2];
  float csum = 0.0, cov;
  char fn1[200], fn2[200];
  for (i = 0; i < nimsets; i++) {
    for (fno = 1; fno < 7; fno++) {
      sprintf(fn1, "data/%s_%s%d.txt", opname1, imsets[i], fno);
      nlocs = load_locations(fn1, locs, 0);
      sprintf(fn2, "data/%s_%s%d.txt", opname2, imsets[i], fno);
      nlocs = load_locations(fn2, locs, nlocs);
      coverage(locs, nlocs, &cov, &np, &nc);
      csum += cov;
      nfiles += 1;
    }
  }
  return csum / nfiles;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<find_connected_components>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %r8d,-0x34(%rbp)
  cmpl   $0x0,-0x34(%rbp)
  jne    L44
  mov    $0x0,%eax
  jmp    L39
L44:
  movl   $0x0,-0xc(%rbp)
  jmp    L1
L38:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0xc(%rbp)
L1:
  mov    -0xc(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L38
  movl   $0x0,-0x8(%rbp)
  movl   $0x1,-0x4(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L45
L25:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L33
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x34(%rbp),%r8d
  mov    -0x30(%rbp),%rdi
  mov    -0x28(%rbp),%rcx
  mov    -0x20(%rbp),%rdx
  mov    -0xc(%rbp),%esi
  mov    -0x18(%rbp),%rax
  mov    %r8d,%r9d
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <ccdfs@plt>
  addl   $0x1,-0x8(%rbp)
  addl   $0x1,-0x4(%rbp)
L33:
  addl   $0x1,-0xc(%rbp)
L45:
  mov    -0xc(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L25
  mov    -0x8(%rbp),%eax
L39:
  leave
  ret
```

assistant: ```c
int find_connected_components(int a[], float rs[], float cs[], float ss[], int n) {
  int i, ncc, cc;
  if (!n)
    return 0;
  for (i = 0; i < n; ++i)
    a[i] = 0;
  ncc = 0;
  cc = 1;
  for (i = 0; i < n; ++i)
    if (a[i] == 0) {
      a[i] = cc;
      ccdfs(a, i, rs, cs, ss, n);
      ++ncc;
      ++cc;
    }
  return ncc;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<find_connected_components>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rsi,0x8(%rsp)
  mov    %rdx,0x10(%rsp)
  mov    %rcx,0x18(%rsp)
  test   %r8d,%r8d
  jle    L17
  mov    %rdi,%rbp
  mov    %r8d,%r12d
  mov    %rdi,%rax
  lea    -0x1(%r8),%edx
  lea    0x4(%rdi,%rdx,4),%rdx
L42:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L42
  mov    %r12d,%r13d
  mov    $0x0,%ebx
  mov    $0x1,%r14d
  mov    $0x0,%r15d
  jmp    L43
L38:
  add    $0x1,%rbx
  cmp    %r13,%rbx
  je     L45
L43:
  mov    %ebx,%esi
  cmpl   $0x0,0x0(%rbp,%rbx,4)
  jne    L38
  mov    %r14d,0x0(%rbp,%rbx,4)
  mov    %r12d,%r9d
  mov    0x18(%rsp),%r8
  mov    0x10(%rsp),%rcx
  mov    0x8(%rsp),%rdx
  mov    %rbp,%rdi
  call   <ccdfs@plt>
  add    $0x1,%r15d
  add    $0x1,%r14d
  jmp    L38
L17:
  mov    $0x0,%r15d
L45:
  mov    %r15d,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int find_connected_components(int a[], float rs[], float cs[], float ss[], int n) {
  int i, ncc, cc;
  if (!n)
    return 0;
  for (i = 0; i < n; ++i)
    a[i] = 0;
  ncc = 0;
  cc = 1;
  for (i = 0; i < n; ++i)
    if (a[i] == 0) {
      a[i] = cc;
      ccdfs(a, i, rs, cs, ss, n);
      ++ncc;
      ++cc;
    }
  return ncc;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<find_connected_components>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rsi,0x8(%rsp)
  test   %r8d,%r8d
  jle    L12
  movslq %r8d,%r12
  mov    %rdx,%r14
  xor    %esi,%esi
  mov    %rdi,%rbp
  lea    0x0(,%r12,4),%rdx
  mov    %rcx,%r15
  mov    %r8d,%r13d
  xor    %ebx,%ebx
  call   <memset@plt>
  mov    $0x1,%r10d
  xor    %r11d,%r11d
  jmp    L25
  nopl   0x0(%rax,%rax,1)
L50:
  add    $0x1,%rbx
  cmp    %rbx,%r12
  je     L33
L25:
  mov    0x0(%rbp,%rbx,4),%eax
  mov    %ebx,%esi
  test   %eax,%eax
  jne    L50
  mov    %r10d,0x0(%rbp,%rbx,4)
  mov    0x8(%rsp),%rdx
  mov    %r13d,%r9d
  mov    %r15,%r8
  mov    %r14,%rcx
  mov    %rbp,%rdi
  mov    %r11d,0x4(%rsp)
  add    $0x1,%rbx
  mov    %r10d,(%rsp)
  call   <ccdfs@plt>
  mov    0x4(%rsp),%r11d
  mov    (%rsp),%r10d
  add    $0x1,%r11d
  add    $0x1,%r10d
  cmp    %rbx,%r12
  jne    L25
L33:
  add    $0x18,%rsp
  mov    %r11d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L12:
  xor    %r11d,%r11d
  jmp    L33
```

assistant: ```c
int find_connected_components(int a[], float rs[], float cs[], float ss[], int n) {
  int i, ncc, cc;
  if (!n)
    return 0;
  for (i = 0; i < n; ++i)
    a[i] = 0;
  ncc = 0;
  cc = 1;
  for (i = 0; i < n; ++i)
    if (a[i] == 0) {
      a[i] = cc;
      ccdfs(a, i, rs, cs, ss, n);
      ++ncc;
      ++cc;
    }
  return ncc;
}
```
user: What is the c source code of the assembly code below:

```asm
<find_connected_components>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rsi,0x8(%rsp)
  test   %r8d,%r8d
  jle    L23
  movslq %r8d,%r12
  mov    %rdx,%r14
  xor    %esi,%esi
  mov    %rdi,%rbp
  lea    0x0(,%r12,4),%rdx
  mov    %rcx,%r15
  mov    %r8d,%r13d
  xor    %ebx,%ebx
  call   <memset@plt>
  mov    $0x1,%r10d
  xor    %r11d,%r11d
  jmp    L59
  nopl   0x0(%rax,%rax,1)
L53:
  add    $0x1,%rbx
  cmp    %rbx,%r12
  je     L47
L59:
  mov    0x0(%rbp,%rbx,4),%eax
  mov    %ebx,%esi
  test   %eax,%eax
  jne    L53
  mov    %r10d,0x0(%rbp,%rbx,4)
  mov    0x8(%rsp),%rdx
  mov    %r13d,%r9d
  mov    %r15,%r8
  mov    %r14,%rcx
  mov    %rbp,%rdi
  mov    %r11d,0x4(%rsp)
  add    $0x1,%rbx
  mov    %r10d,(%rsp)
  call   <ccdfs@plt>
  mov    0x4(%rsp),%r11d
  mov    (%rsp),%r10d
  add    $0x1,%r11d
  add    $0x1,%r10d
  cmp    %rbx,%r12
  jne    L59
L47:
  add    $0x18,%rsp
  mov    %r11d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L23:
  xor    %r11d,%r11d
  jmp    L47
```

assistant: ```c
int find_connected_components(int a[], float rs[], float cs[], float ss[], int n) {
  int i, ncc, cc;
  if (!n)
    return 0;
  for (i = 0; i < n; ++i)
    a[i] = 0;
  ncc = 0;
  cc = 1;
  for (i = 0; i < n; ++i)
    if (a[i] == 0) {
      a[i] = cc;
      ccdfs(a, i, rs, cs, ss, n);
      ++ncc;
      ++cc;
    }
  return ncc;
}
```
user: What is the c source code of the assembly code below:

```asm
<_ITSC256I>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  movq   $0x0,-0x8(%rbp)
  movabs $0x8000000000000000,%rax
  and    -0x48(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x48(%rbp),%rax
  shr    $0x1f,%rax
  shl    $0x3f,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x48(%rbp),%rax
  shl    $0x9,%rax
  shr    $0x31,%rax
  shl    $0x19,%rax
  or     -0x8(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  shl    $0x29,%rax
  shr    $0x11,%rax
  or     -0x8(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x48(%rbp),%rax
  add    %rax,%rax
  shr    $0x38,%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x48(%rbp),%rax
  shl    $0x21,%rax
  shr    $0x38,%rax
  mov    %rax,-0x30(%rbp)
  cmpq   $0xff,-0x38(%rbp)
  jne    L10
  movq   $0x6000,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  cmp    -0x8(%rbp),%rax
  je     L33
  movabs $0x3c4e614e3e,%rax
  or     -0x8(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L33
L10:
  cmpq   $0x0,-0x38(%rbp)
  jne    L64
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x18(%rbp)
  jmp    L33
L64:
  addq   $0x3f82,-0x38(%rbp)
L33:
  cmpq   $0xff,-0x30(%rbp)
  jne    L87
  movq   $0x6000,-0x30(%rbp)
  mov    -0x20(%rbp),%rax
  cmp    -0x8(%rbp),%rax
  je     L89
  movabs $0x3c4e614e3e,%rax
  or     -0x8(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  jmp    L89
L87:
  cmpq   $0x0,-0x30(%rbp)
  jne    L18
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x10(%rbp)
  jmp    L89
L18:
  addq   $0x3f82,-0x30(%rbp)
L89:
  shlq   $0x30,-0x38(%rbp)
  shlq   $0x30,-0x30(%rbp)
  mov    -0x38(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  or     -0x18(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x50(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x50(%rbp),%rax
  add    $0x8,%rax
  movq   $0x0,(%rax)
  mov    -0x30(%rbp),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  or     -0x10(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x50(%rbp),%rax
  add    $0x10,%rax
  mov    %rdx,(%rax)
  mov    -0x50(%rbp),%rax
  add    $0x18,%rax
  movq   $0x0,(%rax)
  nop
  pop    %rbp
  ret
```

assistant: ```c
void _ITSC256I(unsigned long datum, long *lp) {
  unsigned long exp1, exp2, man1, man2, nbit, sign1, sign2;
  nbit = 1 << 47;
  sign1 = (datum >> 63) << 63;
  sign2 = (datum >> 31) << 63;
  man1 = nbit | (((datum << 9) >> 49) << 25);
  man2 = nbit | ((datum << 41) >> 17);
  exp1 = (datum << 1) >> 56;
  exp2 = (datum << 33) >> 56;
  if (exp1 == 255) {
    exp1 = 24576;
    if (man1 != nbit)
      man1 = nbit | 0x3C4E614E3E;
  } else if (exp1 == 0) {
    man1 = 0;
    sign1 = 0;
  } else
    exp1 = exp1 + (16384 - 127 + 1);
  if (exp2 == 255) {
    exp2 = 24576;
    if (man2 != nbit)
      man2 = nbit | 0x3C4E614E3E;
  } else if (exp2 == 0) {
    man2 = 0;
    sign2 = 0;
  } else
    exp2 = exp2 + (16384 - 127 + 1);
  exp1 = exp1 << 48;
  exp2 = exp2 << 48;
  *lp = sign1 | (exp1 + man1);
  *(lp + 1) = 0;
  *(lp + 2) = sign2 | (exp2 + man2);
  *(lp + 3) = 0;
  return;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<_ITSC256I>:
  endbr64
  mov    %rsi,%rdx
  movabs $0x8000000000000000,%r9
  and    %rdi,%r9
  mov    %rdi,%rsi
  shr    $0x1f,%rsi
  shl    $0x3f,%rsi
  mov    %rdi,%rcx
  shl    $0x9,%rcx
  shr    $0x31,%rcx
  shl    $0x19,%rcx
  mov    %rdi,%r8
  shl    $0x29,%r8
  shr    $0x11,%r8
  lea    (%rdi,%rdi,1),%rax
  shr    $0x38,%rax
  shl    $0x21,%rdi
  shr    $0x38,%rdi
  cmp    $0xff,%rax
  je     L54
  test   %rax,%rax
  je     L44
  add    $0x3f82,%rax
  jmp    L14
L54:
  mov    $0x6000,%eax
  test   %rcx,%rcx
  je     L14
  movabs $0x3c4e614e3e,%rcx
  jmp    L14
L44:
  mov    %rax,%r9
  mov    %rax,%rcx
L14:
  cmp    $0xff,%rdi
  je     L40
  test   %rdi,%rdi
  je     L42
  add    $0x3f82,%rdi
  jmp    L76
L40:
  mov    $0x6000,%edi
  test   %r8,%r8
  je     L76
  movabs $0x3c4e614e3e,%r8
  jmp    L76
L42:
  mov    %rdi,%rsi
  mov    %rdi,%r8
L76:
  shl    $0x30,%rax
  add    %rcx,%rax
  or     %r9,%rax
  mov    %rax,(%rdx)
  movq   $0x0,0x8(%rdx)
  shl    $0x30,%rdi
  add    %r8,%rdi
  or     %rsi,%rdi
  mov    %rdi,0x10(%rdx)
  movq   $0x0,0x18(%rdx)
  ret
```

assistant: ```c
void _ITSC256I(unsigned long datum, long *lp) {
  unsigned long exp1, exp2, man1, man2, nbit, sign1, sign2;
  nbit = 1 << 47;
  sign1 = (datum >> 63) << 63;
  sign2 = (datum >> 31) << 63;
  man1 = nbit | (((datum << 9) >> 49) << 25);
  man2 = nbit | ((datum << 41) >> 17);
  exp1 = (datum << 1) >> 56;
  exp2 = (datum << 33) >> 56;
  if (exp1 == 255) {
    exp1 = 24576;
    if (man1 != nbit)
      man1 = nbit | 0x3C4E614E3E;
  } else if (exp1 == 0) {
    man1 = 0;
    sign1 = 0;
  } else
    exp1 = exp1 + (16384 - 127 + 1);
  if (exp2 == 255) {
    exp2 = 24576;
    if (man2 != nbit)
      man2 = nbit | 0x3C4E614E3E;
  } else if (exp2 == 0) {
    man2 = 0;
    sign2 = 0;
  } else
    exp2 = exp2 + (16384 - 127 + 1);
  exp1 = exp1 << 48;
  exp2 = exp2 << 48;
  *lp = sign1 | (exp1 + man1);
  *(lp + 1) = 0;
  *(lp + 2) = sign2 | (exp2 + man2);
  *(lp + 3) = 0;
  return;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<_ITSC256I>:
  endbr64
  mov    %rdi,%rdx
  mov    %rdi,%r8
  mov    %rsi,%rax
  movabs $0x8000000000000000,%r10
  shl    $0x9,%rdx
  mov    %rdi,%rsi
  and    %rdi,%r10
  shl    $0x29,%r8
  shr    $0x31,%rdx
  shr    $0x1f,%rsi
  shl    $0x3f,%rsi
  mov    %rdx,%rcx
  lea    (%rdi,%rdi,1),%rdx
  shl    $0x21,%rdi
  shr    $0x38,%rdx
  shl    $0x19,%rcx
  shr    $0x11,%r8
  shr    $0x38,%rdi
  cmp    $0xff,%rdx
  je     L7
  xor    %r9d,%r9d
  test   %rdx,%rdx
  jne    L18
L52:
  cmp    $0xff,%rdi
  je     L49
L77:
  xor    %edx,%edx
  test   %rdi,%rdi
  jne    L27
L13:
  mov    %r9,(%rax)
  movq   $0x0,0x8(%rax)
  mov    %rdx,0x10(%rax)
  movq   $0x0,0x18(%rax)
  ret
  nopl   0x0(%rax)
L27:
  add    $0x3f82,%rdi
  shl    $0x30,%rdi
  lea    (%rdi,%r8,1),%rdx
  or     %rsi,%rdx
  jmp    L13
  nopl   0x0(%rax)
L18:
  add    $0x3f82,%rdx
  shl    $0x30,%rdx
  lea    (%rdx,%rcx,1),%r9
  or     %r10,%r9
  cmp    $0xff,%rdi
  jne    L77
L49:
  movabs $0x6000000000000000,%rdx
  or     %rsi,%rdx
  test   %r8,%r8
  je     L13
  movabs $0x6000003c4e614e3e,%rdx
  or     %rsi,%rdx
  jmp    L13
  nopl   0x0(%rax)
L7:
  movabs $0x6000000000000000,%r9
  or     %r10,%r9
  test   %rcx,%rcx
  je     L52
  movabs $0x6000003c4e614e3e,%r9
  or     %r10,%r9
  jmp    L52
```

assistant: ```c
void _ITSC256I(unsigned long datum, long *lp) {
  unsigned long exp1, exp2, man1, man2, nbit, sign1, sign2;
  nbit = 1 << 47;
  sign1 = (datum >> 63) << 63;
  sign2 = (datum >> 31) << 63;
  man1 = nbit | (((datum << 9) >> 49) << 25);
  man2 = nbit | ((datum << 41) >> 17);
  exp1 = (datum << 1) >> 56;
  exp2 = (datum << 33) >> 56;
  if (exp1 == 255) {
    exp1 = 24576;
    if (man1 != nbit)
      man1 = nbit | 0x3C4E614E3E;
  } else if (exp1 == 0) {
    man1 = 0;
    sign1 = 0;
  } else
    exp1 = exp1 + (16384 - 127 + 1);
  if (exp2 == 255) {
    exp2 = 24576;
    if (man2 != nbit)
      man2 = nbit | 0x3C4E614E3E;
  } else if (exp2 == 0) {
    man2 = 0;
    sign2 = 0;
  } else
    exp2 = exp2 + (16384 - 127 + 1);
  exp1 = exp1 << 48;
  exp2 = exp2 << 48;
  *lp = sign1 | (exp1 + man1);
  *(lp + 1) = 0;
  *(lp + 2) = sign2 | (exp2 + man2);
  *(lp + 3) = 0;
  return;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<_ITSC256I>:
  endbr64
  mov    %rdi,%rdx
  mov    %rdi,%r8
  mov    %rsi,%rax
  movabs $0x8000000000000000,%r10
  shl    $0x9,%rdx
  mov    %rdi,%rsi
  and    %rdi,%r10
  shl    $0x29,%r8
  shr    $0x31,%rdx
  shr    $0x1f,%rsi
  shl    $0x3f,%rsi
  mov    %rdx,%rcx
  lea    (%rdi,%rdi,1),%rdx
  shl    $0x21,%rdi
  shr    $0x38,%rdx
  shl    $0x19,%rcx
  shr    $0x11,%r8
  shr    $0x38,%rdi
  cmp    $0xff,%rdx
  je     L53
  xor    %r9d,%r9d
  test   %rdx,%rdx
  jne    L6
L86:
  cmp    $0xff,%rdi
  je     L7
L23:
  xor    %edx,%edx
  test   %rdi,%rdi
  jne    L14
L36:
  mov    %r9,(%rax)
  movq   $0x0,0x8(%rax)
  mov    %rdx,0x10(%rax)
  movq   $0x0,0x18(%rax)
  ret
  nopl   0x0(%rax)
L14:
  add    $0x3f82,%rdi
  shl    $0x30,%rdi
  lea    (%rdi,%r8,1),%rdx
  or     %rsi,%rdx
  jmp    L36
  nopl   0x0(%rax)
L6:
  add    $0x3f82,%rdx
  shl    $0x30,%rdx
  lea    (%rdx,%rcx,1),%r9
  or     %r10,%r9
  cmp    $0xff,%rdi
  jne    L23
L7:
  movabs $0x6000000000000000,%rdx
  or     %rsi,%rdx
  test   %r8,%r8
  je     L36
  movabs $0x6000003c4e614e3e,%rdx
  or     %rsi,%rdx
  jmp    L36
  nopl   0x0(%rax)
L53:
  movabs $0x6000000000000000,%r9
  or     %r10,%r9
  test   %rcx,%rcx
  je     L86
  movabs $0x6000003c4e614e3e,%r9
  or     %r10,%r9
  jmp    L86
```

assistant: ```c
void _ITSC256I(unsigned long datum, long *lp) {
  unsigned long exp1, exp2, man1, man2, nbit, sign1, sign2;
  nbit = 1 << 47;
  sign1 = (datum >> 63) << 63;
  sign2 = (datum >> 31) << 63;
  man1 = nbit | (((datum << 9) >> 49) << 25);
  man2 = nbit | ((datum << 41) >> 17);
  exp1 = (datum << 1) >> 56;
  exp2 = (datum << 33) >> 56;
  if (exp1 == 255) {
    exp1 = 24576;
    if (man1 != nbit)
      man1 = nbit | 0x3C4E614E3E;
  } else if (exp1 == 0) {
    man1 = 0;
    sign1 = 0;
  } else
    exp1 = exp1 + (16384 - 127 + 1);
  if (exp2 == 255) {
    exp2 = 24576;
    if (man2 != nbit)
      man2 = nbit | 0x3C4E614E3E;
  } else if (exp2 == 0) {
    man2 = 0;
    sign2 = 0;
  } else
    exp2 = exp2 + (16384 - 127 + 1);
  exp1 = exp1 << 48;
  exp2 = exp2 << 48;
  *lp = sign1 | (exp1 + man1);
  *(lp + 1) = 0;
  *(lp + 2) = sign2 | (exp2 + man2);
  *(lp + 3) = 0;
  return;
}
```