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

```asm
<librpip_device_node_exists>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0xa,-0x14(%rbp)
  ja     L43
  mov    -0x14(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  lea    D103(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D103(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  call   <stat@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L22
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D93(%rip),%rax
  mov    %rax,%rdi
  call   <stat@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L22
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <stat@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L22
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <stat@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L22
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <stat@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L22
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  call   <stat@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L22
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <stat@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L22
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <stat@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L22
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  call   <stat@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L22
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  call   <stat@plt>
  mov    %eax,-0xc(%rbp)
  jmp    L22
L43:
  movl   $0xffffffff,-0xc(%rbp)
L22:
  mov    -0xc(%rbp),%eax
  not    %eax
  shr    $0x1f,%eax
  movzbl %al,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L96
  call   <__stack_chk_fail@plt>
L96:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D85
type: string
name: disassemble_data
arguments: data_tag: D93
type: string
name: disassemble_data
arguments: data_tag: D53
type: string
name: disassemble_data
arguments: data_tag: D16
type: string
name: disassemble_data
arguments: data_tag: D17
type: string
name: disassemble_data
arguments: data_tag: D83
type: string
name: disassemble_data
arguments: data_tag: D27
type: string
name: disassemble_data
arguments: data_tag: D5
type: string
name: disassemble_data
arguments: data_tag: D50
type: string

tool: D85: /dev/gpiomem

tool: D93: /dev/ttyAMA0

tool: D53: /dev/ttyS0

tool: D16: /dev/i2c-0

tool: D17: /dev/i2c-1

tool: D83: /dev/spidev0.0

tool: D27: /dev/spidev0.1

tool: D5: /dev/spidev1.0

tool: D50: /dev/spidev1.1

assistant: ```c
uint32_t librpip_device_node_exists(uint32_t devid) {
  struct stat fileStat;
  int result;
  switch (devid) {
  case 1:
    result = stat("/dev/gpiomem", &fileStat);
    break;
  case 2:
    result = stat("/dev/ttyAMA0", &fileStat);
    break;
  case 3:
    result = stat("/dev/ttyS0", &fileStat);
    break;
  case 4:
    result = stat("/dev/i2c-0", &fileStat);
    break;
  case 5:
    result = stat("/dev/i2c-1", &fileStat);
    break;
  case 6:
    result = stat("/dev/spidev0.0", &fileStat);
    break;
  case 7:
    result = stat("/dev/spidev0.1", &fileStat);
    break;
  case 8:
    result = stat("/dev/spidev1.0", &fileStat);
    break;
  case 9:
    result = stat("/dev/spidev1.1", &fileStat);
    break;
  case 10:
    result = stat("/dev/spidev1.1", &fileStat);
    break;
  default:
    result = -1;
  }
  return result < 0 ? 0 : 1;
}
```