user: Converte this assembly snippet into its equivalent C code:

```asm
<boithoad_getPassword>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xb0,%rsp
  mov    %rdi,-0xa8(%rbp)
  mov    %rsi,-0xb0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x98(%rbp)
  mov    -0xa8(%rbp),%rcx
  lea    -0x90(%rbp),%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    $0xda3,%esi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <cconnect@plt>
  mov    %eax,-0x94(%rbp)
  cmpl   $0x0,-0x94(%rbp)
  jne    L82
  mov    $0x0,%eax
  jmp    L60
L82:
  mov    -0x94(%rbp),%eax
  lea    D42(%rip),%r9
  mov    $0x0,%r8d
  mov    $0x0,%ecx
  mov    $0x1,%edx
  mov    $0x1e,%esi
  mov    %eax,%edi
  call   <sendpacked@plt>
  lea    -0x90(%rbp),%rcx
  mov    -0x94(%rbp),%eax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <sendall@plt>
  lea    -0x9c(%rbp),%rcx
  mov    -0x94(%rbp),%eax
  mov    $0x4,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <recvall@plt>
  test   %eax,%eax
  jne    L23
  mov    $0x0,%eax
  jmp    L60
L23:
  mov    -0x9c(%rbp),%eax
  cmp    $0x1,%eax
  jne    L26
  lea    -0x50(%rbp),%rcx
  mov    -0x94(%rbp),%eax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <recvall@plt>
  test   %eax,%eax
  jne    L10
  mov    $0x0,%eax
  jmp    L60
L10:
  lea    -0x50(%rbp),%rdx
  mov    -0xb0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  movl   $0x1,-0x98(%rbp)
  jmp    L77
L26:
  mov    $0xfd,%edx
  lea    D35(%rip),%rax
  mov    %rax,%rsi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0xb0(%rbp),%rax
  lea    D42(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  movl   $0x0,-0x98(%rbp)
L77:
  mov    -0x94(%rbp),%eax
  mov    %eax,%edi
  call   <close@plt>
  mov    -0x98(%rbp),%eax
L60:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L47
  call   <__stack_chk_fail@plt>
L47:
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D20
data_type: string
name: read_data
arguments: label: D42
data_type: string
name: read_data
arguments: label: D35
data_type: string
name: read_data
arguments: label: D21
data_type: string

tool: D20: localhost

tool: 

tool: D35: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bowlofstew/enterprise-search/refs/heads/master/src/boithoadClientLib/boithoadClientLib.c

tool: D21: dident have a passord at %s:%d


assistant: ```c
int boithoad_getPassword(const char username_in[], char password_in[]) {
  int socketha;
  int intresponse;
  char username[64];
  char password[64];
  int forreturn = 0;
  strncpy(username, username_in, sizeof(username));
  if ((socketha = cconnect("localhost", 3491)) == 0) {
    return 0;
  }
  sendpacked(socketha, 30, 1, 0, NULL, "");
  sendall(socketha, username, sizeof(username));
  if (!recvall(socketha, &intresponse, sizeof(intresponse))) {
    return 0;
  }
  if (intresponse == 1) {
    if (!recvall(socketha, password, sizeof(password))) {
      return 0;
    }
    strcpy(password_in, password);
    forreturn = 1;
  } else {
    printf("dident have a passord at %s:%d\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bowlofstew/enterprise-search/refs/heads/master/src/boithoadClientLib/boithoadClientLib.c", 253);
    strcpy(password_in, "");
    forreturn = 0;
  }
  close(socketha);
  return forreturn;
}
```