ylfeng/ReF-Decompile-dataset huggingface dataset:
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<isDirectory>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  call   <stat@plt>
  mov    0x4(%rsp),%edi
  call   <S_ISDIR@plt>
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L2
  add    $0x18,%rsp
  ret
L2:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int isDirectory(char *fileName) {
  struct stat s;
  stat(fileName, &s);
  return S_ISDIR(s.st_mode);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<isDirectory>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  call   <stat@plt>
  mov    0x4(%rsp),%edi
  call   <S_ISDIR@plt>
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L0
  add    $0x18,%rsp
  ret
L0:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int isDirectory(char *fileName) {
  struct stat s;
  stat(fileName, &s);
  return S_ISDIR(s.st_mode);
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<isDirectory>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  call   <stat@plt>
  mov    0x4(%rsp),%edi
  call   <S_ISDIR@plt>
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L2
  add    $0x18,%rsp
  ret
L2:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int isDirectory(char *fileName) {
  struct stat s;
  stat(fileName, &s);
  return S_ISDIR(s.st_mode);
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<ends_with>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  je     L8
  cmpq   $0x0,-0x20(%rbp)
  jne    L0
L8:
  mov    $0x0,%eax
  jmp    L46
L0:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jle    L13
  mov    $0x0,%eax
  jmp    L46
L13:
  mov    -0x8(%rbp),%eax
  sub    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x4(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  sete   %al
  movzbl %al,%eax
L46:
  leave
  ret
```

assistant: ```c
int ends_with(const char *str, const char *search) {
  if (!str || !search) {
    return 0;
  }
  int str_len = strlen(str);
  int search_len = strlen(search);
  if (search_len > str_len) {
    return 0;
  }
  return strncmp(str + (str_len - search_len), search, search_len) == 0;
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<ends_with>:
  endbr64
  test   %rdi,%rdi
  je     L9
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    $0x0,%eax
  test   %rsi,%rsi
  je     L29
  call   <strlen@plt>
  mov    %eax,%r12d
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x0,%eax
  cmp    %edx,%r12d
  jge    L17
L29:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L17:
  sub    %edx,%r12d
  movslq %r12d,%r12
  lea    (%rbx,%r12,1),%rdi
  mov    %rbp,%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  sete   %al
  movzbl %al,%eax
  jmp    L29
L9:
  mov    $0x0,%eax
  ret
```

assistant: ```c
int ends_with(const char *str, const char *search) {
  if (!str || !search) {
    return 0;
  }
  int str_len = strlen(str);
  int search_len = strlen(search);
  if (search_len > str_len) {
    return 0;
  }
  return strncmp(str + (str_len - search_len), search, search_len) == 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<ends_with>:
  endbr64
  test   %rdi,%rdi
  je     L2
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  test   %rsi,%rsi
  je     L14
  mov    %rdi,%rbx
  call   <strlen@plt>
  mov    %rbp,%rdi
  mov    %eax,%r12d
  call   <strlen@plt>
  mov    %eax,%edx
  cmp    %eax,%r12d
  jl     L14
  sub    %eax,%r12d
  mov    %rbp,%rsi
  movslq %r12d,%r12
  lea    (%rbx,%r12,1),%rdi
  call   <strncmp@plt>
  pop    %rbx
  pop    %rbp
  test   %rax,%rax
  pop    %r12
  sete   %al
  movzbl %al,%eax
  ret
  nop
L14:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L2:
  xor    %eax,%eax
  ret
```

assistant: ```c
int ends_with(const char *str, const char *search) {
  if (!str || !search) {
    return 0;
  }
  int str_len = strlen(str);
  int search_len = strlen(search);
  if (search_len > str_len) {
    return 0;
  }
  return strncmp(str + (str_len - search_len), search, search_len) == 0;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<ends_with>:
  endbr64
  test   %rdi,%rdi
  je     L24
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  test   %rsi,%rsi
  je     L6
  mov    %rdi,%rbx
  call   <strlen@plt>
  mov    %rbp,%rdi
  mov    %eax,%r12d
  call   <strlen@plt>
  mov    %eax,%edx
  cmp    %eax,%r12d
  jl     L6
  sub    %eax,%r12d
  mov    %rbp,%rsi
  movslq %r12d,%r12
  lea    (%rbx,%r12,1),%rdi
  call   <strncmp@plt>
  pop    %rbx
  pop    %rbp
  test   %rax,%rax
  pop    %r12
  sete   %al
  movzbl %al,%eax
  ret
  nop
L6:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L24:
  xor    %eax,%eax
  ret
```

assistant: ```c
int ends_with(const char *str, const char *search) {
  if (!str || !search) {
    return 0;
  }
  int str_len = strlen(str);
  int search_len = strlen(search);
  if (search_len > str_len) {
    return 0;
  }
  return strncmp(str + (str_len - search_len), search, search_len) == 0;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<n>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm0
  movsd  D9(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x10(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    D23(%rip),%rdx
  movq   %rdx,%xmm0
  mov    %eax,%edi
  call   <pow@plt>
  movsd  D58(%rip),%xmm1
  movapd %xmm1,%xmm2
  subsd  %xmm0,%xmm2
  movsd  D17(%rip),%xmm0
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  D64(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,-0x20(%rbp)
  mov    D23(%rip),%rax
  movq   %rax,%xmm0
  mov    $0x1,%edi
  call   <pow@plt>
  movsd  D65(%rip),%xmm1
  subsd  %xmm0,%xmm1
  movsd  D63(%rip),%xmm0
  divsd  %xmm1,%xmm0
  addsd  -0x20(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: unpack_data
arguments: tag: D9
type_guessed: byte[8]
name: unpack_data
arguments: tag: D23
type_guessed: byte[8]
name: unpack_data
arguments: tag: D58
type_guessed: f64
name: unpack_data
arguments: tag: D17
type_guessed: f64
name: unpack_data
arguments: tag: D64
type_guessed: f64
name: unpack_data
arguments: tag: D65
type_guessed: f64
name: unpack_data
arguments: tag: D63
type_guessed: f64

tool: {"D9": [0x8d,0xed,0xb5,0xa0,0xf7,0xc6,0xb0,0x3e]}

tool: {"D23": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0]}

tool: D58: 2.383

tool: D17: 0.0912

tool: D64: 3.3646

tool: D65: 7.835

tool: D63: 50.37298

assistant: ```c
double n(double lmbda) {
  double index, l;
  l = lmbda / 1.e-6;
  index = sqrt(3.3646 + (0.0912 / (2.383 - pow(l, -2.0))) + (50.37298 / (7.835 - pow(1, -2.0))));
  return index;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<n>:
  endbr64
  push   %rbx
  divsd  D7(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  mov    D20(%rip),%rax
  movq   %rax,%xmm0
  call   <pow@plt>
  movq   %xmm0,%rbx
  mov    D20(%rip),%rax
  movq   %rax,%xmm0
  mov    $0x1,%edi
  call   <pow@plt>
  movapd %xmm0,%xmm3
  movsd  D55(%rip),%xmm1
  movq   %rbx,%xmm4
  subsd  %xmm4,%xmm1
  movsd  D31(%rip),%xmm0
  divsd  %xmm1,%xmm0
  addsd  D38(%rip),%xmm0
  movsd  D27(%rip),%xmm2
  subsd  %xmm3,%xmm2
  movsd  D72(%rip),%xmm1
  divsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L0
  sqrtsd %xmm0,%xmm0
L5:
  pop    %rbx
  ret
L0:
  call   <sqrt@plt>
  jmp    L5
```

tool_calls: name: retrieve_data
arguments: label: D7
datatype: byte[8]
name: retrieve_data
arguments: label: D20
datatype: byte[8]
name: retrieve_data
arguments: label: D55
datatype: f64
name: retrieve_data
arguments: label: D31
datatype: f64
name: retrieve_data
arguments: label: D38
datatype: f64
name: retrieve_data
arguments: label: D27
datatype: f64
name: retrieve_data
arguments: label: D72
datatype: f64

tool: {"D7": [0x8d,0xed,0xb5,0xa0,0xf7,0xc6,0xb0,0x3e]}

tool: {"D20": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0]}

tool: D55: 2.383

tool: D31: 0.0912

tool: D38: 3.3646

tool: D27: 7.835

tool: D72: 50.37298

assistant: ```c
double n(double lmbda) {
  double index, l;
  l = lmbda / 1.e-6;
  index = sqrt(3.3646 + (0.0912 / (2.383 - pow(l, -2.0))) + (50.37298 / (7.835 - pow(1, -2.0))));
  return index;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<n>:
  endbr64
  sub    $0x18,%rsp
  divsd  D6(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  movsd  D62(%rip),%xmm1
  movapd %xmm1,%xmm0
  call   <pow@plt>
  mov    D62(%rip),%rax
  mov    $0x1,%edi
  movsd  %xmm0,0x8(%rsp)
  movq   %rax,%xmm0
  call   <pow@plt>
  movsd  D55(%rip),%xmm1
  movsd  D0(%rip),%xmm2
  subsd  0x8(%rsp),%xmm1
  movapd %xmm0,%xmm3
  movsd  D63(%rip),%xmm0
  subsd  %xmm3,%xmm2
  divsd  %xmm1,%xmm0
  movsd  D34(%rip),%xmm1
  divsd  %xmm2,%xmm1
  addsd  D78(%rip),%xmm0
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L3
  sqrtsd %xmm0,%xmm0
  add    $0x18,%rsp
  ret
L3:
  add    $0x18,%rsp
  jmp    1060 <sqrt@plt>
```

tool_calls: name: disassemble_data
arguments: label: D6
type_guessed: byte[8]
name: disassemble_data
arguments: label: D62
type_guessed: byte[8]
name: disassemble_data
arguments: label: D55
type_guessed: f64
name: disassemble_data
arguments: label: D0
type_guessed: f64
name: disassemble_data
arguments: label: D63
type_guessed: f64
name: disassemble_data
arguments: label: D34
type_guessed: f64
name: disassemble_data
arguments: label: D78
type_guessed: f64

tool: {"D6": [0x8d,0xed,0xb5,0xa0,0xf7,0xc6,0xb0,0x3e]}

tool: {"D62": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0]}

tool: D55: 2.383

tool: D0: 7.835

tool: D63: 0.0912

tool: D34: 50.37298

tool: D78: 3.3646

assistant: ```c
double n(double lmbda) {
  double index, l;
  l = lmbda / 1.e-6;
  index = sqrt(3.3646 + (0.0912 / (2.383 - pow(l, -2.0))) + (50.37298 / (7.835 - pow(1, -2.0))));
  return index;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<n>:
  endbr64
  sub    $0x18,%rsp
  divsd  D66(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  movsd  D58(%rip),%xmm1
  movapd %xmm1,%xmm0
  call   <pow@plt>
  mov    D58(%rip),%rax
  mov    $0x1,%edi
  movsd  %xmm0,0x8(%rsp)
  movq   %rax,%xmm0
  call   <pow@plt>
  movsd  D10(%rip),%xmm1
  movsd  D48(%rip),%xmm2
  subsd  0x8(%rsp),%xmm1
  movapd %xmm0,%xmm3
  movsd  D13(%rip),%xmm0
  subsd  %xmm3,%xmm2
  divsd  %xmm1,%xmm0
  movsd  D40(%rip),%xmm1
  divsd  %xmm2,%xmm1
  addsd  D61(%rip),%xmm0
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L3
  sqrtsd %xmm0,%xmm0
  add    $0x18,%rsp
  ret
L3:
  add    $0x18,%rsp
  jmp    1060 <sqrt@plt>
```

tool_calls: name: disassemble_data
arguments: label: D66
type: byte[8]
name: disassemble_data
arguments: label: D58
type: byte[8]
name: disassemble_data
arguments: label: D10
type: f64
name: disassemble_data
arguments: label: D48
type: f64
name: disassemble_data
arguments: label: D13
type: f64
name: disassemble_data
arguments: label: D40
type: f64
name: disassemble_data
arguments: label: D61
type: f64

tool: {"D66": [0x8d,0xed,0xb5,0xa0,0xf7,0xc6,0xb0,0x3e]}

tool: {"D58": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0]}

tool: D10: 2.383

tool: D48: 7.835

tool: D13: 0.0912

tool: D40: 50.37298

tool: D61: 3.3646

assistant: ```c
double n(double lmbda) {
  double index, l;
  l = lmbda / 1.e-6;
  index = sqrt(3.3646 + (0.0912 / (2.383 - pow(l, -2.0))) + (50.37298 / (7.835 - pow(1, -2.0))));
  return index;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<bpm>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %r8d,-0x18(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L42
L17:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x1,%eax
  jne    L51
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x1,%eax
  je     L12
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0xffffffff,%eax
  je     L30
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    -0x18(%rbp),%edi
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  mov    -0x20(%rbp),%rsi
  mov    %edi,%r8d
  mov    %eax,%edi
  call   <bpm>
  test   %eax,%eax
  je     L51
L30:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x14(%rbp),%eax
  mov    %eax,(%rdx)
  mov    $0x1,%eax
  jmp    L65
L12:
  nop
L51:
  addl   $0x1,-0x4(%rbp)
L42:
  mov    -0x4(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L17
  mov    $0x0,%eax
L65:
  leave
  ret
```

assistant: ```c
int bpm(int u, int **graph, int *seen, int *match, int n) {
  int v;
  for (v = 0; v < n; v++) {
    if (graph[u][v] == 1) {
      if (seen[v] == 1)
        continue;
      seen[v] = 1;
      if (match[v] == -1 || bpm(match[v], graph, seen, match, n)) {
        match[v] = u;
        return 1;
      }
    }
  }
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<bpm>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %edi,0x1c(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %r8d,0x18(%rsp)
  test   %r8d,%r8d
  jle    L46
  mov    %rdx,%r14
  mov    %rcx,%r15
  movslq %edi,%rax
  lea    (%rsi,%rax,8),%r13
  mov    %r8d,%r12d
  shl    $0x2,%r12
  mov    $0x0,%ebx
  jmp    L67
L14:
  add    $0x4,%rbx
  cmp    %r12,%rbx
  je     L61
L67:
  mov    0x0(%r13),%rax
  mov    (%rax,%rbx,1),%ebp
  cmp    $0x1,%ebp
  jne    L14
  cmpl   $0x1,(%r14,%rbx,1)
  je     L14
  movl   $0x1,(%r14,%rbx,1)
  lea    (%r15,%rbx,1),%rax
  mov    %rax,0x8(%rsp)
  mov    (%r15,%rbx,1),%edi
  cmp    $0xffffffff,%edi
  je     L10
  mov    0x18(%rsp),%r8d
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    0x10(%rsp),%rsi
  call   <bpm>
  test   %eax,%eax
  je     L14
L10:
  mov    0x8(%rsp),%rax
  mov    0x1c(%rsp),%ecx
  mov    %ecx,(%rax)
  jmp    L22
L61:
  mov    $0x0,%ebp
L22:
  mov    %ebp,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L46:
  mov    $0x0,%ebp
  jmp    L22
```

assistant: ```c
int bpm(int u, int **graph, int *seen, int *match, int n) {
  int v;
  for (v = 0; v < n; v++) {
    if (graph[u][v] == 1) {
      if (seen[v] == 1)
        continue;
      seen[v] = 1;
      if (match[v] == -1 || bpm(match[v], graph, seen, match, n)) {
        match[v] = u;
        return 1;
      }
    }
  }
  return 0;
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<bpm>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  test   %r8d,%r8d
  jle    L43
  movslq %edi,%rax
  movslq %r8d,%rbp
  mov    %edi,%r9d
  mov    %rdx,%r14
  mov    (%rsi,%rax,8),%r13
  mov    %rcx,%r15
  shl    $0x2,%rbp
  xor    %ebx,%ebx
  jmp    L35
  cs nopw 0x0(%rax,%rax,1)
L79:
  add    $0x4,%rbx
  cmp    %rbp,%rbx
  je     L43
L35:
  mov    0x0(%r13,%rbx,1),%r12d
  cmp    $0x1,%r12d
  jne    L79
  cmpl   $0x1,(%r14,%rbx,1)
  je     L79
  movl   $0x1,(%r14,%rbx,1)
  mov    (%r15,%rbx,1),%edi
  lea    (%r15,%rbx,1),%r10
  cmp    $0xffffffff,%edi
  je     L61
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    %r9d,0x1c(%rsp)
  mov    %r10,0x10(%rsp)
  mov    %r8d,0x18(%rsp)
  mov    %rsi,0x8(%rsp)
  call   <bpm>
  mov    0x8(%rsp),%rsi
  mov    0x18(%rsp),%r8d
  test   %eax,%eax
  mov    0x10(%rsp),%r10
  mov    0x1c(%rsp),%r9d
  je     L79
L61:
  mov    %r9d,(%r10)
  jmp    L22
  nopl   0x0(%rax)
L43:
  xor    %r12d,%r12d
L22:
  add    $0x28,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int bpm(int u, int **graph, int *seen, int *match, int n) {
  int v;
  for (v = 0; v < n; v++) {
    if (graph[u][v] == 1) {
      if (seen[v] == 1)
        continue;
      seen[v] = 1;
      if (match[v] == -1 || bpm(match[v], graph, seen, match, n)) {
        match[v] = u;
        return 1;
      }
    }
  }
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xb0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x3,-0xa0(%rbp)
  movl   $0x18,-0x9c(%rbp)
  movl   $0x4e,-0x98(%rbp)
  movl   $0x62,-0x94(%rbp)
  movl   $0x6,-0x90(%rbp)
  movl   $0xc,-0x8c(%rbp)
  movl   $0x2d,-0x88(%rbp)
  movl   $0x364,-0x84(%rbp)
  movl   $0xd3,-0x80(%rbp)
  movl   $0x8a7,-0x7c(%rbp)
  movl   $0xa,-0x78(%rbp)
  movl   $0x1cb,-0x74(%rbp)
  movl   $0x2a6,-0x70(%rbp)
  movl   $0x54d,-0x6c(%rbp)
  movl   $0x24,-0x68(%rbp)
  movl   $0x9,-0x64(%rbp)
  movl   $0x1e,-0x60(%rbp)
  movl   $0x19,-0x5c(%rbp)
  movl   $0x1,-0x58(%rbp)
  movl   $0x31,-0x54(%rbp)
  movl   $0x52,-0x50(%rbp)
  movl   $0x1ec,-0x4c(%rbp)
  movl   $0x53,-0x48(%rbp)
  movl   $0x99,-0x44(%rbp)
  movl   $0x2ff,-0x40(%rbp)
  movl   $0x40,-0x3c(%rbp)
  movl   $0x394,-0x38(%rbp)
  movl   $0x51,-0x34(%rbp)
  movl   $0x4,-0x30(%rbp)
  movl   $0x61,-0x2c(%rbp)
  movl   $0x4d2,-0x28(%rbp)
  movl   $0x1a85,-0x24(%rbp)
  movl   $0x1f48,-0x20(%rbp)
  movl   $0x74cbb1,-0x1c(%rbp)
  movl   $0x2694,-0x18(%rbp)
  movl   $0x23,-0xa8(%rbp)
  mov    -0xa8(%rbp),%edx
  lea    -0xa0(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <max@plt>
  mov    %eax,-0xa4(%rbp)
  movl   $0x1,-0xac(%rbp)
  jmp    L24
L25:
  mov    -0xac(%rbp),%edx
  mov    -0xa8(%rbp),%ecx
  lea    -0xa0(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <radix_sort@plt>
  mov    -0xa8(%rbp),%edx
  lea    -0xa0(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <print@plt>
  mov    -0xac(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,-0xac(%rbp)
L24:
  mov    -0xa4(%rbp),%eax
  cltd
  idivl  -0xac(%rbp)
  test   %eax,%eax
  jg     L25
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L23
  call   <__stack_chk_fail@plt>
L23:
  leave
  ret
```

assistant: ```c
int main(void) {
  int arr[] = {3, 24, 78, 98, 6, 12, 45, 868, 211, 2215, 10, 459, 678, 1357, 36, 9, 30, 25, 1, 49, 82, 492, 83, 153, 767, 64, 916, 81, 4, 97, 1234, 6789, 8008, 7654321, 9876};
  int length = 35;
  int m = max(arr, length);
  for (int radix = 1; m / radix > 0; radix *= 10) {
    radix_sort(arr, length, radix);
    print(arr, length);
  }
  return 0;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  movl   $0x3,(%rsp)
  movl   $0x18,0x4(%rsp)
  movl   $0x4e,0x8(%rsp)
  movl   $0x62,0xc(%rsp)
  movl   $0x6,0x10(%rsp)
  movl   $0xc,0x14(%rsp)
  movl   $0x2d,0x18(%rsp)
  movl   $0x364,0x1c(%rsp)
  movl   $0xd3,0x20(%rsp)
  movl   $0x8a7,0x24(%rsp)
  movl   $0xa,0x28(%rsp)
  movl   $0x1cb,0x2c(%rsp)
  movl   $0x2a6,0x30(%rsp)
  movl   $0x54d,0x34(%rsp)
  movl   $0x24,0x38(%rsp)
  movl   $0x9,0x3c(%rsp)
  movl   $0x1e,0x40(%rsp)
  movl   $0x19,0x44(%rsp)
  movl   $0x1,0x48(%rsp)
  movl   $0x31,0x4c(%rsp)
  movl   $0x52,0x50(%rsp)
  movl   $0x1ec,0x54(%rsp)
  movl   $0x53,0x58(%rsp)
  movl   $0x99,0x5c(%rsp)
  movl   $0x2ff,0x60(%rsp)
  movl   $0x40,0x64(%rsp)
  movl   $0x394,0x68(%rsp)
  movl   $0x51,0x6c(%rsp)
  movl   $0x4,0x70(%rsp)
  movl   $0x61,0x74(%rsp)
  movl   $0x4d2,0x78(%rsp)
  movl   $0x1a85,0x7c(%rsp)
  movl   $0x1f48,0x80(%rsp)
  movl   $0x74cbb1,0x84(%rsp)
  movl   $0x2694,0x88(%rsp)
  mov    %rsp,%rdi
  mov    $0x23,%esi
  call   <max@plt>
  test   %eax,%eax
  jle    L10
  mov    %eax,%ebp
  mov    $0x1,%ebx
  mov    %rsp,%r12
L14:
  mov    %ebx,%edx
  mov    $0x23,%esi
  mov    %r12,%rdi
  call   <radix_sort@plt>
  mov    $0x23,%esi
  mov    %r12,%rdi
  call   <print@plt>
  lea    (%rbx,%rbx,4),%ebx
  add    %ebx,%ebx
  mov    %ebp,%eax
  cltd
  idiv   %ebx
  test   %eax,%eax
  jg     L14
L10:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  mov    $0x0,%eax
  add    $0xa0,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L6:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int main(void) {
  int arr[] = {3, 24, 78, 98, 6, 12, 45, 868, 211, 2215, 10, 459, 678, 1357, 36, 9, 30, 25, 1, 49, 82, 492, 83, 153, 767, 64, 916, 81, 4, 97, 1234, 6789, 8008, 7654321, 9876};
  int length = 35;
  int m = max(arr, length);
  for (int radix = 1; m / radix > 0; radix *= 10) {
    radix_sort(arr, length, radix);
    print(arr, length);
  }
  return 0;
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<main>:
  endbr64
  push   %r12
  mov    $0x23,%esi
  push   %rbp
  push   %rbx
  sub    $0xa0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  movabs $0x1800000003,%rax
  mov    %rsp,%r12
  movl   $0x2694,0x88(%rsp)
  mov    %r12,%rdi
  mov    %rax,(%rsp)
  movabs $0x620000004e,%rax
  mov    %rax,0x8(%rsp)
  movabs $0xc00000006,%rax
  mov    %rax,0x10(%rsp)
  movabs $0x3640000002d,%rax
  mov    %rax,0x18(%rsp)
  movabs $0x8a7000000d3,%rax
  mov    %rax,0x20(%rsp)
  movabs $0x1cb0000000a,%rax
  mov    %rax,0x28(%rsp)
  movabs $0x54d000002a6,%rax
  mov    %rax,0x30(%rsp)
  movabs $0x900000024,%rax
  mov    %rax,0x38(%rsp)
  movabs $0x190000001e,%rax
  mov    %rax,0x40(%rsp)
  movabs $0x3100000001,%rax
  mov    %rax,0x48(%rsp)
  movabs $0x1ec00000052,%rax
  mov    %rax,0x50(%rsp)
  movabs $0x9900000053,%rax
  mov    %rax,0x58(%rsp)
  movabs $0x40000002ff,%rax
  mov    %rax,0x60(%rsp)
  movabs $0x5100000394,%rax
  mov    %rax,0x68(%rsp)
  movabs $0x6100000004,%rax
  mov    %rax,0x70(%rsp)
  movabs $0x1a85000004d2,%rax
  mov    %rax,0x78(%rsp)
  movabs $0x74cbb100001f48,%rax
  mov    %rax,0x80(%rsp)
  call   <max@plt>
  test   %eax,%eax
  jle    L1
  mov    %eax,%ebp
  mov    $0x1,%ebx
  nopw   0x0(%rax,%rax,1)
L22:
  mov    %ebx,%edx
  mov    $0x23,%esi
  lea    (%rbx,%rbx,4),%ebx
  mov    %r12,%rdi
  call   <radix_sort@plt>
  mov    $0x23,%esi
  mov    %r12,%rdi
  add    %ebx,%ebx
  call   <print@plt>
  mov    %ebp,%eax
  cltd
  idiv   %ebx
  test   %eax,%eax
  jne    L22
L1:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L16
  add    $0xa0,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L16:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int main(void) {
  int arr[] = {3, 24, 78, 98, 6, 12, 45, 868, 211, 2215, 10, 459, 678, 1357, 36, 9, 30, 25, 1, 49, 82, 492, 83, 153, 767, 64, 916, 81, 4, 97, 1234, 6789, 8008, 7654321, 9876};
  int length = 35;
  int m = max(arr, length);
  for (int radix = 1; m / radix > 0; radix *= 10) {
    radix_sort(arr, length, radix);
    print(arr, length);
  }
  return 0;
}
```