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

```asm
<parse_flag_names>:
  endbr64
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  movabs $0xdfffeffffffffffe,%rbp
  push   %rbx
  lea    0x1(%rdi),%rbx
  movzbl (%rdi),%edx
  test   %esi,%esi
  jne    L39
  jmp    L46
  nopw   0x0(%rax,%rax,1)
L84:
  movzbl (%rbx),%edx
  mov    %rbx,%rdi
L29:
  add    $0x1,%rbx
L46:
  movzbl -0x1(%rbx),%eax
  lea    -0x1(%rbx),%rsi
  cmp    $0x3d,%al
  ja     L29
  bt     %rax,%rbp
  jb     L29
  cmp    $0x7e,%dl
  je     L55
  sub    %edi,%esi
  call   <parse_flag_name@plt>
  or     %eax,%r12d
  movzbl -0x1(%rbx),%eax
L55:
  cmp    $0x2c,%al
  je     L84
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L6:
  movzbl (%rbx),%edx
  mov    %rbx,%rdi
L27:
  add    $0x1,%rbx
L39:
  movzbl -0x1(%rbx),%eax
  lea    -0x1(%rbx),%rsi
  cmp    $0x3d,%al
  ja     L27
  bt     %rax,%rbp
  jb     L27
  cmp    $0x7e,%dl
  jne    L3
  cmpb   $0x0,0x1(%rdi)
  je     L66
  add    $0x1,%rdi
L3:
  sub    %edi,%esi
  call   <parse_flag_name@plt>
  or     %eax,%r12d
  movzbl -0x1(%rbx),%eax
L66:
  cmp    $0x2c,%al
  je     L6
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
uint64_t parse_flag_names(const char *str, int all) {
  const char *p = str;
  uint64_t flags = 0;
  while (1) {
    if (*p == ',' || *p == '=' || *p == '\0') {
      if ((*str != '~') || (*str == '~' && all && *++str))
        flags |= parse_flag_name(str, p - str);
      if (*p != ',')
        break;
      str = p + 1;
    }
    p++;
  }
  return flags;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<sr_skip_char_span>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  mov    -0x20(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strspn@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L14
  mov    -0x8(%rbp),%rax
  jmp    L7
L14:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x8(%rbp),%rax
L7:
  leave
  ret
```

assistant: ```c
int sr_skip_char_span(const char **input, const char *chars) {
  size_t count = strspn(*input, chars);
  if (0 == count)
    return count;
  *input += count;
  return count;
}
```
user: What is the c source code of the assembly code below:

```asm
<sr_skip_char_span>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbx
  mov    (%rdi),%rbp
  mov    %rbp,%rdi
  call   <strspn@plt>
  mov    $0x0,%edx
  test   %rax,%rax
  je     L3
  add    %rax,%rbp
  mov    %rbp,(%rbx)
  mov    %eax,%edx
L3:
  mov    %edx,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
int sr_skip_char_span(const char **input, const char *chars) {
  size_t count = strspn(*input, chars);
  if (0 == count)
    return count;
  *input += count;
  return count;
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<sr_skip_char_span>:
  endbr64
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  mov    (%rdi),%rbp
  mov    %rbp,%rdi
  call   <strspn@plt>
  xor    %r8d,%r8d
  test   %rax,%rax
  je     L7
  add    %rax,%rbp
  mov    %eax,%r8d
  mov    %rbp,(%rbx)
L7:
  add    $0x8,%rsp
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
int sr_skip_char_span(const char **input, const char *chars) {
  size_t count = strspn(*input, chars);
  if (0 == count)
    return count;
  *input += count;
  return count;
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<sr_skip_char_span>:
  endbr64
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  mov    (%rdi),%rbp
  mov    %rbp,%rdi
  call   <strspn@plt>
  xor    %r8d,%r8d
  test   %rax,%rax
  je     L4
  add    %rax,%rbp
  mov    %eax,%r8d
  mov    %rbp,(%rbx)
L4:
  add    $0x8,%rsp
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
int sr_skip_char_span(const char **input, const char *chars) {
  size_t count = strspn(*input, chars);
  if (0 == count)
    return count;
  *input += count;
  return count;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<HibernateLowBatSet>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    $0x400fc010,%eax
  mov    (%rax),%rax
  and    $0xffffffffffff9f5f,%rax
  mov    $0x400fc010,%edx
  or     -0x8(%rbp),%rax
  mov    %rax,(%rdx)
  mov    $0x0,%eax
  call   <HibernateWriteComplete@plt>
  nop
  leave
  ret
```

assistant: ```c
void HibernateLowBatSet(unsigned long ulLowBatFlags) {
  ;
  (*((volatile unsigned long *)(0x400FC010))) = (ulLowBatFlags | ((*((volatile unsigned long *)(0x400FC010))) & ~(0x00006000 | 0x000000A0)));
  HibernateWriteComplete();
}
```
user: Translate the below assembly code into C programming language:

```asm
<HibernateLowBatSet>:
  endbr64
  sub    $0x8,%rsp
  mov    0x400fc010,%rax
  and    $0xffffffffffff9f5f,%rax
  or     %rdi,%rax
  mov    %rax,0x400fc010
  mov    $0x0,%eax
  call   <HibernateWriteComplete@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
void HibernateLowBatSet(unsigned long ulLowBatFlags) {
  ;
  (*((volatile unsigned long *)(0x400FC010))) = (ulLowBatFlags | ((*((volatile unsigned long *)(0x400FC010))) & ~(0x00006000 | 0x000000A0)));
  HibernateWriteComplete();
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<HibernateLowBatSet>:
  endbr64
  mov    0x400fc010,%rax
  and    $0xffffffffffff9f5f,%rax
  or     %rdi,%rax
  mov    %rax,0x400fc010
  xor    %eax,%eax
  jmp    1050 <HibernateWriteComplete@plt>
```

assistant: ```c
void HibernateLowBatSet(unsigned long ulLowBatFlags) {
  ;
  (*((volatile unsigned long *)(0x400FC010))) = (ulLowBatFlags | ((*((volatile unsigned long *)(0x400FC010))) & ~(0x00006000 | 0x000000A0)));
  HibernateWriteComplete();
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<HibernateLowBatSet>:
  endbr64
  mov    0x400fc010,%rax
  and    $0xffffffffffff9f5f,%rax
  or     %rdi,%rax
  mov    %rax,0x400fc010
  xor    %eax,%eax
  jmp    1050 <HibernateWriteComplete@plt>
```

assistant: ```c
void HibernateLowBatSet(unsigned long ulLowBatFlags) {
  ;
  (*((volatile unsigned long *)(0x400FC010))) = (ulLowBatFlags | ((*((volatile unsigned long *)(0x400FC010))) & ~(0x00006000 | 0x000000A0)));
  HibernateWriteComplete();
}
```
user: Translate the below assembly code into C programming language:

```asm
<sense_amp_tag_delay>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  movsd  %xmm0,-0x8(%rbp)
  mov    %rdi,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  movsd  D12(%rip),%xmm0
  movsd  %xmm0,(%rax)
  movsd  D10(%rip),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D12
datatype: byte[8]
name: retrieve_data
arguments: tag: D10
datatype: byte[8]

tool: {"D12": [0x03,0xc6,0x9c,0xde,0x43,0x0d,0x08,0x3e]}

tool: {"D10": [0xb9,0xa1,0x32,0xe7,0xf7,0xdd,0xf1,0x3d]}

assistant: ```c
double sense_amp_tag_delay(inrisetime, outrisetime)
double inrisetime, *outrisetime;
{
  *outrisetime = 7e-10;
  return (2.6e-10);
}
```
user: Translate the below assembly code into C programming language:

```asm
<sense_amp_tag_delay>:
  endbr64
  mov    D10(%rip),%rax
  mov    %rax,(%rdi)
  movsd  D8(%rip),%xmm0
  ret
```

tool_calls: name: parse_data
arguments: data_label: D10
data_type: byte[8]
name: parse_data
arguments: data_label: D8
data_type: byte[8]

tool: {"D10": [0x03,0xc6,0x9c,0xde,0x43,0x0d,0x08,0x3e]}

tool: {"D8": [0xb9,0xa1,0x32,0xe7,0xf7,0xdd,0xf1,0x3d]}

assistant: ```c
double sense_amp_tag_delay(inrisetime, outrisetime)
double inrisetime, *outrisetime;
{
  *outrisetime = 7e-10;
  return (2.6e-10);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<sense_amp_tag_delay>:
  endbr64
  mov    D13(%rip),%rax
  movsd  D7(%rip),%xmm0
  mov    %rax,(%rdi)
  ret
```

tool_calls: name: read_data
arguments: label: D13
datatype: byte[8]
name: read_data
arguments: label: D7
datatype: byte[8]

tool: {"D13": [0x03,0xc6,0x9c,0xde,0x43,0x0d,0x08,0x3e]}

tool: {"D7": [0xb9,0xa1,0x32,0xe7,0xf7,0xdd,0xf1,0x3d]}

assistant: ```c
double sense_amp_tag_delay(inrisetime, outrisetime)
double inrisetime, *outrisetime;
{
  *outrisetime = 7e-10;
  return (2.6e-10);
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<sense_amp_tag_delay>:
  endbr64
  mov    D8(%rip),%rax
  movsd  D15(%rip),%xmm0
  mov    %rax,(%rdi)
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D8
datatype: byte[8]
name: extract_symbolic_data
arguments: label: D15
datatype: byte[8]

tool: {"D8": [0x03,0xc6,0x9c,0xde,0x43,0x0d,0x08,0x3e]}

tool: {"D15": [0xb9,0xa1,0x32,0xe7,0xf7,0xdd,0xf1,0x3d]}

assistant: ```c
double sense_amp_tag_delay(inrisetime, outrisetime)
double inrisetime, *outrisetime;
{
  *outrisetime = 7e-10;
  return (2.6e-10);
}
```
user: Translate the below assembly code into C programming language:

```asm
<_check_times>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0x18(%rbp),%eax
  imul   %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cmp    %rax,-0x8(%rbp)
  ja     L13
  cmpl   $0x10000000,-0xc(%rbp)
  jbe    L4
L13:
  mov    $0x180,%esi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <_throw_badalloc_fn@plt>
L4:
  mov    -0xc(%rbp),%eax
  leave
  ret
```

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

tool: D0: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pgerakios/Concurrent-Cyclone-with-inference/refs/heads/master/bin/genfiles/lex.c

assistant: ```c
unsigned int _check_times(unsigned x, unsigned y) {
  unsigned long long whole_ans = ((unsigned long long)x) * ((unsigned long long)y);
  unsigned word_ans = (unsigned)whole_ans;
  if (word_ans < whole_ans || word_ans > (1 << 28))
    (_throw_badalloc_fn("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pgerakios/Concurrent-Cyclone-with-inference/refs/heads/master/bin/genfiles/lex.c", 384));
  return word_ans;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<_check_times>:
  endbr64
  push   %rbx
  mov    %edi,%edi
  mov    %esi,%esi
  imul   %rsi,%rdi
  mov    %edi,%ebx
  mov    %edi,%eax
  cmp    %rax,%rdi
  ja     L6
  cmp    $0x10000000,%edi
  jbe    L14
L6:
  mov    $0x180,%esi
  lea    D9(%rip),%rdi
  mov    $0x0,%eax
  call   <_throw_badalloc_fn@plt>
L14:
  mov    %ebx,%eax
  pop    %rbx
  ret
```

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

tool: D9: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pgerakios/Concurrent-Cyclone-with-inference/refs/heads/master/bin/genfiles/lex.c

assistant: ```c
unsigned int _check_times(unsigned x, unsigned y) {
  unsigned long long whole_ans = ((unsigned long long)x) * ((unsigned long long)y);
  unsigned word_ans = (unsigned)whole_ans;
  if (word_ans < whole_ans || word_ans > (1 << 28))
    (_throw_badalloc_fn("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pgerakios/Concurrent-Cyclone-with-inference/refs/heads/master/bin/genfiles/lex.c", 384));
  return word_ans;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<_check_times>:
  endbr64
  mov    %edi,%edi
  mov    %esi,%esi
  push   %r12
  imul   %rsi,%rdi
  mov    %edi,%eax
  mov    %edi,%r12d
  cmp    %rax,%rdi
  ja     L8
  cmp    $0x10000000,%edi
  ja     L8
  mov    %r12d,%eax
  pop    %r12
  ret
  cs nopw 0x0(%rax,%rax,1)
L8:
  mov    $0x180,%esi
  lea    D1(%rip),%rdi
  xor    %eax,%eax
  call   <_throw_badalloc_fn@plt>
  mov    %r12d,%eax
  pop    %r12
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D1
type_guessed: string

tool: D1: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pgerakios/Concurrent-Cyclone-with-inference/refs/heads/master/bin/genfiles/lex.c

assistant: ```c
unsigned int _check_times(unsigned x, unsigned y) {
  unsigned long long whole_ans = ((unsigned long long)x) * ((unsigned long long)y);
  unsigned word_ans = (unsigned)whole_ans;
  if (word_ans < whole_ans || word_ans > (1 << 28))
    (_throw_badalloc_fn("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pgerakios/Concurrent-Cyclone-with-inference/refs/heads/master/bin/genfiles/lex.c", 384));
  return word_ans;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<_check_times>:
  endbr64
  mov    %edi,%edi
  mov    %esi,%esi
  push   %r12
  imul   %rsi,%rdi
  mov    %edi,%eax
  mov    %edi,%r12d
  cmp    %rax,%rdi
  ja     L8
  cmp    $0x10000000,%edi
  ja     L8
  mov    %r12d,%eax
  pop    %r12
  ret
  cs nopw 0x0(%rax,%rax,1)
L8:
  mov    $0x180,%esi
  lea    D5(%rip),%rdi
  xor    %eax,%eax
  call   <_throw_badalloc_fn@plt>
  mov    %r12d,%eax
  pop    %r12
  ret
```

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

tool: D5: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pgerakios/Concurrent-Cyclone-with-inference/refs/heads/master/bin/genfiles/lex.c

assistant: ```c
unsigned int _check_times(unsigned x, unsigned y) {
  unsigned long long whole_ans = ((unsigned long long)x) * ((unsigned long long)y);
  unsigned word_ans = (unsigned)whole_ans;
  if (word_ans < whole_ans || word_ans > (1 << 28))
    (_throw_badalloc_fn("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pgerakios/Concurrent-Cyclone-with-inference/refs/heads/master/bin/genfiles/lex.c", 384));
  return word_ans;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<ip4_cmp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jle    L0
  mov    $0x1,%eax
  jmp    L13
L0:
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jge    L18
  mov    $0xffffffff,%eax
  jmp    L13
L18:
  mov    $0x0,%eax
L13:
  pop    %rbp
  ret
```

assistant: ```c
int ip4_cmp(const void *m1, const void *m2) {
  const uint32_t *ip1 = m1;
  const uint32_t *ip2 = m2;
  if (*ip1 > *ip2) {
    return 1;
  } else {
    return (*ip1 < *ip2) ? -1 : 0;
  }
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<ip4_cmp>:
  endbr64
  mov    (%rdi),%rcx
  mov    (%rsi),%rdx
  mov    $0x1,%eax
  cmp    %rdx,%rcx
  jg     L7
  setl   %al
  movzbl %al,%eax
  neg    %eax
L7:
  ret
```

assistant: ```c
int ip4_cmp(const void *m1, const void *m2) {
  const uint32_t *ip1 = m1;
  const uint32_t *ip2 = m2;
  if (*ip1 > *ip2) {
    return 1;
  } else {
    return (*ip1 < *ip2) ? -1 : 0;
  }
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<ip4_cmp>:
  endbr64
  mov    (%rsi),%rdx
  mov    $0x1,%eax
  cmp    %rdx,(%rdi)
  jg     L7
  setl   %al
  movzbl %al,%eax
  neg    %eax
L7:
  ret
```

assistant: ```c
int ip4_cmp(const void *m1, const void *m2) {
  const uint32_t *ip1 = m1;
  const uint32_t *ip2 = m2;
  if (*ip1 > *ip2) {
    return 1;
  } else {
    return (*ip1 < *ip2) ? -1 : 0;
  }
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<ip4_cmp>:
  endbr64
  mov    (%rsi),%rdx
  mov    $0x1,%eax
  cmp    %rdx,(%rdi)
  jg     L6
  setl   %al
  movzbl %al,%eax
  neg    %eax
L6:
  ret
```

assistant: ```c
int ip4_cmp(const void *m1, const void *m2) {
  const uint32_t *ip1 = m1;
  const uint32_t *ip2 = m2;
  if (*ip1 > *ip2) {
    return 1;
  } else {
    return (*ip1 < *ip2) ? -1 : 0;
  }
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<extractnz_boundaries_uimatrix>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    %r8,-0x58(%rbp)
  mov    %r9,-0x60(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x68(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x40(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    -0x10(%rbp),%rdi
  lea    -0x18(%rbp),%rcx
  mov    -0x58(%rbp),%rdx
  mov    -0x50(%rbp),%rsi
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <extractnz_boundaries_uivector@plt>
  mov    -0x40(%rbp),%rax
  add    $0x1,%eax
  mov    %eax,-0x2c(%rbp)
  jmp    L13
L17:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    -0x20(%rbp),%rdi
  lea    -0x28(%rbp),%rcx
  mov    -0x58(%rbp),%rdx
  mov    -0x50(%rbp),%rsi
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <extractnz_boundaries_uivector@plt>
  mov    -0x28(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  cmp    %rax,%rdx
  jge    L4
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x18(%rbp)
L4:
  mov    -0x20(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  cmp    %rax,%rdx
  jle    L42
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x10(%rbp)
L42:
  addl   $0x1,-0x2c(%rbp)
L13:
  mov    -0x2c(%rbp),%eax
  cltq
  cmp    %rax,-0x48(%rbp)
  jge    L17
  mov    -0x18(%rbp),%rdx
  mov    -0x60(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x10(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L11
  call   <__stack_chk_fail@plt>
L11:
  leave
  ret
```

assistant: ```c
void extractnz_boundaries_uimatrix(uint **m, long nrl, long nrh, long ncl, long nch, long *nclnz, long *nchnz) {
  int i;
  long a, b;
  long left, right;
  extractnz_boundaries_uivector(m[nrl], ncl, nch, &left, &right);
  for (i = nrl + 1; i <= nrh; i++) {
    extractnz_boundaries_uivector(m[i], ncl, nch, &a, &b);
    if (a < left)
      left = a;
    if (b > right)
      right = b;
  }
  *nclnz = left;
  *nchnz = right;
}
```
user: What is the c source code of the assembly code below?

```asm
<extractnz_boundaries_uimatrix>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%rbx
  mov    %rdx,%r12
  mov    %rcx,%r13
  mov    %r8,%r14
  mov    %r9,(%rsp)
  mov    0x80(%rsp),%rax
  mov    %rax,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x28(%rsp),%rcx
  mov    (%rdi,%rsi,8),%rdi
  lea    0x30(%rsp),%r8
  mov    %r14,%rdx
  mov    %r13,%rsi
  call   <extractnz_boundaries_uivector@plt>
  add    $0x1,%ebx
  movslq %ebx,%rax
  cmp    %rax,%r12
  jl     L46
  mov    %rax,%rbx
  lea    0x20(%rsp),%r15
  jmp    L1
L20:
  add    $0x1,%rbx
  cmp    %rbx,%r12
  jl     L46
L1:
  lea    0x18(%rsp),%rcx
  mov    0x0(%rbp,%rbx,8),%rdi
  mov    %r15,%r8
  mov    %r14,%rdx
  mov    %r13,%rsi
  call   <extractnz_boundaries_uivector@plt>
  mov    0x18(%rsp),%rax
  cmp    0x28(%rsp),%rax
  jge    L66
  mov    %rax,0x28(%rsp)
L66:
  mov    0x20(%rsp),%rax
  cmp    0x30(%rsp),%rax
  jle    L20
  mov    %rax,0x30(%rsp)
  jmp    L20
L46:
  mov    0x28(%rsp),%rax
  mov    (%rsp),%rdx
  mov    %rax,(%rdx)
  mov    0x30(%rsp),%rax
  mov    0x8(%rsp),%rsi
  mov    %rax,(%rsi)
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L69
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L69:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void extractnz_boundaries_uimatrix(uint **m, long nrl, long nrh, long ncl, long nch, long *nclnz, long *nchnz) {
  int i;
  long a, b;
  long left, right;
  extractnz_boundaries_uivector(m[nrl], ncl, nch, &left, &right);
  for (i = nrl + 1; i <= nrh; i++) {
    extractnz_boundaries_uivector(m[i], ncl, nch, &a, &b);
    if (a < left)
      left = a;
    if (b > right)
      right = b;
  }
  *nclnz = left;
  *nchnz = right;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<extractnz_boundaries_uimatrix>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %r8,%r12
  push   %rbp
  mov    %rcx,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x58,%rsp
  mov    (%rdi,%rsi,8),%rdi
  mov    %rbp,%rsi
  mov    %rdx,0x8(%rsp)
  mov    0x90(%rsp),%rax
  lea    0x38(%rsp),%rcx
  mov    %r12,%rdx
  mov    %r9,0x10(%rsp)
  lea    0x40(%rsp),%r8
  mov    %rax,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  call   <extractnz_boundaries_uivector@plt>
  lea    0x1(%r13),%r9d
  movslq %r9d,%r9
  cmp    %r9,%r14
  jl     L19
  mov    %r9,%r15
  lea    0x30(%rsp),%r14
  lea    0x28(%rsp),%r13
  nopw   0x0(%rax,%rax,1)
L10:
  mov    (%rbx,%r15,8),%rdi
  mov    %r14,%r8
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  call   <extractnz_boundaries_uivector@plt>
  mov    0x28(%rsp),%rax
  cmp    0x38(%rsp),%rax
  jge    L13
  mov    %rax,0x38(%rsp)
L13:
  mov    0x30(%rsp),%rax
  cmp    0x40(%rsp),%rax
  jle    L5
  mov    %rax,0x40(%rsp)
L5:
  add    $0x1,%r15
  cmp    %r15,0x8(%rsp)
  jge    L10
L19:
  mov    0x38(%rsp),%rax
  mov    0x10(%rsp),%rbx
  mov    0x18(%rsp),%rdx
  mov    %rax,(%rbx)
  mov    0x40(%rsp),%rax
  mov    %rax,(%rdx)
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L22
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L22:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void extractnz_boundaries_uimatrix(uint **m, long nrl, long nrh, long ncl, long nch, long *nclnz, long *nchnz) {
  int i;
  long a, b;
  long left, right;
  extractnz_boundaries_uivector(m[nrl], ncl, nch, &left, &right);
  for (i = nrl + 1; i <= nrh; i++) {
    extractnz_boundaries_uivector(m[i], ncl, nch, &a, &b);
    if (a < left)
      left = a;
    if (b > right)
      right = b;
  }
  *nclnz = left;
  *nchnz = right;
}
```
user: What is the c source code of the assembly code below?

```asm
<extractnz_boundaries_uimatrix>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %r8,%r12
  push   %rbp
  mov    %rcx,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x58,%rsp
  mov    (%rdi,%rsi,8),%rdi
  mov    %rbp,%rsi
  mov    %rdx,0x8(%rsp)
  mov    0x90(%rsp),%rax
  lea    0x38(%rsp),%rcx
  mov    %r12,%rdx
  mov    %r9,0x10(%rsp)
  lea    0x40(%rsp),%r8
  mov    %rax,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  call   <extractnz_boundaries_uivector@plt>
  lea    0x1(%r13),%r9d
  movslq %r9d,%r9
  cmp    %r9,%r14
  jl     L6
  mov    %r9,%r15
  lea    0x30(%rsp),%r14
  lea    0x28(%rsp),%r13
  xchg   %ax,%ax
L11:
  mov    (%rbx,%r15,8),%rdi
  mov    %r14,%r8
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  call   <extractnz_boundaries_uivector@plt>
  mov    0x28(%rsp),%rax
  cmp    0x38(%rsp),%rax
  jge    L7
  mov    %rax,0x38(%rsp)
L7:
  mov    0x30(%rsp),%rax
  mov    0x40(%rsp),%rdx
  cmp    %rdx,%rax
  jle    L51
  mov    %rax,0x40(%rsp)
  mov    %rax,%rdx
L51:
  add    $0x1,%r15
  cmp    0x8(%rsp),%r15
  jle    L11
L8:
  mov    0x38(%rsp),%rax
  mov    0x10(%rsp),%rbx
  mov    %rax,(%rbx)
  mov    0x18(%rsp),%rax
  mov    %rdx,(%rax)
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L18
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L6:
  mov    0x40(%rsp),%rdx
  jmp    L8
L18:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void extractnz_boundaries_uimatrix(uint **m, long nrl, long nrh, long ncl, long nch, long *nclnz, long *nchnz) {
  int i;
  long a, b;
  long left, right;
  extractnz_boundaries_uivector(m[nrl], ncl, nch, &left, &right);
  for (i = nrl + 1; i <= nrh; i++) {
    extractnz_boundaries_uivector(m[i], ncl, nch, &a, &b);
    if (a < left)
      left = a;
    if (b > right)
      right = b;
  }
  *nclnz = left;
  *nchnz = right;
}
```