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

```asm
<Valid_User>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x50,%rsp
  mov    %rdi,%r12
  mov    %rsi,%r13
  mov    %rdx,%rbx
  mov    %rcx,%r14
  mov    %r8,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    D67(%rip),%rax
  mov    %rax,(%rsp)
  lea    D43(%rip),%rax
  mov    %rax,0x8(%rsp)
  lea    D13(%rip),%rax
  mov    %rax,0x10(%rsp)
  lea    D58(%rip),%rax
  mov    %rax,0x18(%rsp)
  lea    D14(%rip),%rax
  mov    %rax,0x20(%rsp)
  lea    D61(%rip),%rax
  mov    %rax,0x28(%rsp)
  lea    D16(%rip),%rax
  mov    %rax,0x30(%rsp)
  lea    D28(%rip),%rax
  mov    %rax,0x38(%rsp)
  movq   $0x0,0x40(%rsp)
  mov    $0x0,%eax
  call   <SMB_Init@plt>
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    $0x0,%edi
  call   <SMB_Connect_Server@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L69
L41:
  mov    %rsp,%rsi
  mov    %rbx,%rdi
  call   <SMB_Negotiate@plt>
  test   %rax,%rax
  js     L34
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <SMB_Logon_Server@plt>
  test   %rax,%rax
  js     L23
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <SMB_Discon@plt>
  mov    $0x0,%eax
L29:
  mov    0x48(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L26
  add    $0x50,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L69:
  mov    %rbp,%rdx
  mov    %r14,%rsi
  mov    $0x0,%edi
  call   <SMB_Connect_Server@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  jne    L41
  mov    $0x1,%eax
  jmp    L29
L34:
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <SMB_Discon@plt>
  mov    $0x2,%eax
  jmp    L29
L23:
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <SMB_Discon@plt>
  mov    $0x3,%eax
  jmp    L29
L26:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D67
type_infered: string
name: disassemble_data
arguments: data_label: D43
type_infered: string
name: disassemble_data
arguments: data_label: D13
type_infered: string
name: disassemble_data
arguments: data_label: D58
type_infered: string
name: disassemble_data
arguments: data_label: D14
type_infered: string
name: disassemble_data
arguments: data_label: D61
type_infered: string
name: disassemble_data
arguments: data_label: D16
type_infered: string
name: disassemble_data
arguments: data_label: D28
type_infered: string

tool: D67: PC NETWORK PROGRAM 1.0

tool: D43: MICROSOFT NETWORKS 1.03

tool: D13: MICROSOFT NETWORKS 3.0

tool: D58: LANMAN1.0

tool: D14: LM1.2X002

tool: D61: Samba

tool: D16: NT LM 0.12

tool: D28: NT LANMAN 1.0

assistant: ```c
int Valid_User(char *USERNAME, char *PASSWORD, char *SERVER, char *BACKUP, char *DOMAIN) {
  const char *SMB_Prots[] = {"PC NETWORK PROGRAM 1.0", "MICROSOFT NETWORKS 1.03", "MICROSOFT NETWORKS 3.0", "LANMAN1.0", "LM1.2X002", "Samba", "NT LM 0.12", "NT LANMAN 1.0", NULL};
  void *con;
  SMB_Init();
  con = SMB_Connect_Server(NULL, SERVER, DOMAIN);
  if (con == NULL) {
    con = SMB_Connect_Server(NULL, BACKUP, DOMAIN);
    if (con == NULL) {
      return (1);
    }
  }
  if (SMB_Negotiate(con, SMB_Prots) < 0) {
    SMB_Discon(con, 0);
    return (2);
  }
  if (SMB_Logon_Server(con, USERNAME, PASSWORD) < 0) {
    SMB_Discon(con, 0);
    return (3);
  }
  SMB_Discon(con, 0);
  return (0);
}
```