user: 请将以下的汇编代码转换成C语言代码：

```asm
<is_same_blk_file>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,%r12
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    D23(%rip),%rax
  mov    (%rax),%r13d
  movslq %r13d,%rdx
  lea    0xf(%rdx),%rax
  mov    %rax,%rsi
  and    $0xfffffffffffffff0,%rsi
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L115:
  cmp    %rcx,%rsp
  je     L4
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L115
L4:
  mov    %rsi,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L46
  orq    $0x0,-0x8(%rsp,%rax,1)
L46:
  mov    %rsp,%r14
  add    $0xf,%rdx
  mov    %rdx,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rdx
  mov    %rsp,%rax
  sub    %rdx,%rax
L199:
  cmp    %rax,%rsp
  je     L113
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L199
L113:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L39
  orq    $0x0,-0x8(%rsp,%rax,1)
L39:
  mov    %rsp,%r15
  mov    %r14,%rsi
  mov    %r12,%rdi
  call   <realpath@plt>
  test   %eax,%eax
  jne    L147
  mov    %r13d,%edx
  mov    %r12,%rsi
  mov    %r14,%rdi
  call   <__strncpy_null@plt>
L147:
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <realpath@plt>
  test   %eax,%eax
  je     L73
L6:
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  jne    L65
L192:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L127
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L73:
  mov    %r13d,%edx
  mov    %rbx,%rsi
  mov    %r15,%rdi
  call   <__strncpy_null@plt>
  jmp    L6
L65:
  lea    -0x80(%rbp),%rsi
  mov    %r12,%rdi
  call   <stat@plt>
  test   %rax,%rax
  jns    L20
L91:
  mov    D0(%rip),%rax
  mov    (%rax),%edx
  mov    %edx,%eax
  neg    %eax
  mov    D14(%rip),%rcx
  cmp    (%rcx),%edx
  mov    $0x0,%edx
  cmove  %edx,%eax
  jmp    L192
L20:
  lea    -0x60(%rbp),%rsi
  mov    %rbx,%rdi
  call   <stat@plt>
  test   %rax,%rax
  js     L91
  mov    -0x68(%rbp),%edi
  call   <S_ISBLK@plt>
  test   %rax,%rax
  jne    L80
L49:
  mov    $0x0,%eax
  mov    -0x58(%rbp),%rbx
  cmp    %rbx,-0x78(%rbp)
  jne    L192
  mov    -0x50(%rbp),%rax
  cmp    %rax,-0x70(%rbp)
  sete   %al
  movzbl %al,%eax
  jmp    L192
L80:
  mov    -0x48(%rbp),%edi
  call   <S_ISBLK@plt>
  test   %rax,%rax
  je     L49
  mov    $0x1,%eax
  mov    -0x60(%rbp),%rbx
  cmp    %rbx,-0x80(%rbp)
  jne    L49
  jmp    L192
L127:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int is_same_blk_file(const char *a, const char *b) {
  struct stat st_buf_a, st_buf_b;
  char real_a[PATH_MAX];
  char real_b[PATH_MAX];
  if (!realpath(a, real_a))
    __strncpy_null(real_a, a, sizeof(real_a));
  if (!realpath(b, real_b))
    __strncpy_null(real_b, b, sizeof(real_b));
  if (strcmp(real_a, real_b) == 0)
    return 1;
  if (stat(a, &st_buf_a) < 0 || stat(b, &st_buf_b) < 0) {
    if (errno == ENOENT)
      return 0;
    return -errno;
  }
  if (S_ISBLK(st_buf_a.st_mode) && S_ISBLK(st_buf_b.st_mode) && st_buf_a.st_rdev == st_buf_b.st_rdev) {
    return 1;
  }
  if (st_buf_a.st_dev == st_buf_b.st_dev && st_buf_a.st_ino == st_buf_b.st_ino) {
    return 1;
  }
  return 0;
}
```