user: 这段汇编代码用C语言表示是什么样的:

```asm
<reset_sighandling>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    D105(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,-0xc(%rbp)
  lea    -0x14(%rbp),%rax
  add    $0x4,%rax
  mov    %rax,%rdi
  call   <sigemptyset@plt>
  mov    D36(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  mov    D112(%rip),%rax
  mov    (%rax),%eax
  lea    -0x14(%rbp),%rcx
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <sigaction@plt>
  cmp    $0xffffffff,%eax
  jne    L137
  mov    $0x1,%eax
  jmp    L84
L137:
  mov    D6(%rip),%rax
  mov    (%rax),%eax
  lea    -0x14(%rbp),%rcx
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <sigaction@plt>
  cmp    $0xffffffff,%eax
  jne    L223
  mov    $0x1,%eax
  jmp    L84
L223:
  mov    D41(%rip),%rax
  mov    (%rax),%eax
  lea    -0x14(%rbp),%rcx
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <sigaction@plt>
  cmp    $0xffffffff,%eax
  jne    L150
  mov    $0x1,%eax
  jmp    L84
L150:
  mov    D1(%rip),%rax
  mov    (%rax),%eax
  lea    -0x14(%rbp),%rcx
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <sigaction@plt>
  cmp    $0xffffffff,%eax
  jne    L132
  mov    $0x1,%eax
  jmp    L84
L132:
  mov    D125(%rip),%rax
  mov    (%rax),%eax
  lea    -0x14(%rbp),%rcx
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <sigaction@plt>
  cmp    $0xffffffff,%eax
  jne    L209
  mov    $0x1,%eax
  jmp    L84
L209:
  mov    D81(%rip),%rax
  mov    (%rax),%eax
  lea    -0x14(%rbp),%rcx
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <sigaction@plt>
  cmp    $0xffffffff,%eax
  jne    L62
  mov    $0x1,%eax
  jmp    L84
L62:
  mov    D34(%rip),%rax
  mov    (%rax),%eax
  lea    -0x14(%rbp),%rcx
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <sigaction@plt>
  cmp    $0xffffffff,%eax
  jne    L110
  mov    $0x1,%eax
  jmp    L84
L110:
  mov    D99(%rip),%rax
  mov    (%rax),%eax
  lea    -0x14(%rbp),%rcx
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <sigaction@plt>
  cmp    $0xffffffff,%eax
  jne    L127
  mov    $0x1,%eax
  jmp    L84
L127:
  mov    D4(%rip),%rax
  mov    (%rax),%eax
  lea    -0x14(%rbp),%rcx
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <sigaction@plt>
  cmp    $0xffffffff,%eax
  jne    L65
  mov    $0x1,%eax
  jmp    L84
L65:
  mov    D2(%rip),%rax
  mov    (%rax),%eax
  lea    -0x14(%rbp),%rcx
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <sigaction@plt>
  cmp    $0xffffffff,%eax
  jne    L197
  mov    $0x1,%eax
  jmp    L84
L197:
  mov    D45(%rip),%rax
  mov    (%rax),%eax
  lea    -0x14(%rbp),%rcx
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <sigaction@plt>
  cmp    $0xffffffff,%eax
  jne    L135
  mov    $0x1,%eax
  jmp    L84
L135:
  mov    $0x0,%eax
L84:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L17
  call   <__stack_chk_fail@plt>
L17:
  leave
  ret
```

assistant: ```c
int reset_sighandling() {
  struct sigaction sa;
  sa.sa_handler = SIG_DFL;
  sigemptyset(&sa.sa_mask);
  sa.sa_flags = SA_RESTART;
  if (sigaction((SIGINT), (&sa), (NULL)) == -1)
    return 1;
  ;
  if (sigaction((SIGPIPE), (&sa), (NULL)) == -1)
    return 1;
  ;
  if (sigaction((SIGALRM), (&sa), (NULL)) == -1)
    return 1;
  ;
  if (sigaction((SIGTTIN), (&sa), (NULL)) == -1)
    return 1;
  ;
  if (sigaction((SIGTTOU), (&sa), (NULL)) == -1)
    return 1;
  ;
  if (sigaction((SIGQUIT), (&sa), (NULL)) == -1)
    return 1;
  ;
  if (sigaction((SIGTERM), (&sa), (NULL)) == -1)
    return 1;
  ;
  if (sigaction((SIGUSR1), (&sa), (NULL)) == -1)
    return 1;
  ;
  if (sigaction((SIGUSR2), (&sa), (NULL)) == -1)
    return 1;
  ;
  if (sigaction((SIGHUP), (&sa), (NULL)) == -1)
    return 1;
  ;
  if (sigaction((SIGCHLD), (&sa), (NULL)) == -1)
    return 1;
  ;
  return 0;
}
```