user: Please show me the C implementation that matches the assembly code listed below:

```asm
<relayDomain>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x440,%rsp
  mov    %rdi,-0x438(%rbp)
  mov    %rsi,-0x440(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0xffffffff,-0x42c(%rbp)
  mov    -0x440(%rbp),%rax
  lea    D7(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x418(%rbp)
  cmpq   $0x0,-0x418(%rbp)
  je     L91
  movq   $0x0,-0x428(%rbp)
  movl   $0x0,-0x42c(%rbp)
  jmp    L130
L95:
  lea    -0x410(%rbp),%rax
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x418(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    $0x3ff,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  mov    %rax,-0x428(%rbp)
  cmpq   $0x0,-0x428(%rbp)
  je     L130
  mov    -0x428(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L130
  jmp    L74
L16:
  addq   $0x1,-0x428(%rbp)
L74:
  mov    -0x428(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L73
  mov    -0x428(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L16
  mov    -0x428(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  je     L16
L73:
  mov    -0x428(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x420(%rbp)
  jmp    L172
L71:
  mov    -0x420(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    %rdx,-0x420(%rbp)
  movb   $0x0,(%rax)
L172:
  mov    -0x420(%rbp),%rax
  cmp    -0x428(%rbp),%rax
  jbe    L137
  mov    -0x420(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L71
  mov    -0x420(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  je     L71
  mov    -0x420(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xd,%al
  je     L71
  mov    -0x420(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  je     L71
L137:
  mov    -0x428(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L130
  mov    -0x438(%rbp),%rdx
  mov    -0x428(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x42c(%rbp)
L130:
  mov    -0x418(%rbp),%rax
  mov    %rax,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L149
  cmpl   $0x0,-0x42c(%rbp)
  je     L95
L149:
  mov    -0x418(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
L91:
  mov    -0x42c(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L126
  call   <__stack_chk_fail@plt>
L126:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D7
type_infered: string

tool: D7: r

assistant: ```c
int relayDomain(const char *pDomain, const char *pFname) {
  int found = -1;
  FILE *fin = fopen(pFname, "r");
  if (fin != NULL) {
    char buff[1024];
    char *pStr = NULL;
    char *p;
    found = 0;
    while (!feof(fin) && !found) {
      memset(buff, 0, sizeof(buff));
      pStr = fgets(buff, sizeof(buff) - 1, fin);
      if (pStr != NULL && *pStr) {
        while (*pStr && (*pStr == ' ' || *pStr == '\t'))
          pStr++;
        p = pStr + strlen(pStr) - 1;
        while (p > pStr && (*p == ' ' || *p == '\t' || *p == '\r' || *p == '\n'))
          *(p--) = 0;
        if (*pStr)
          found = (strcasecmp(pStr, pDomain) == 0);
      }
    }
    fclose(fin);
  }
  return found;
}
```