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

```asm
<e_p_konv_mess>:
  endbr64
  push   %r15
  push   %r14
  mov    %r8,%r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %rdx,%r12
  mov    $0x4,%edx
  push   %rbp
  mov    %rsi,%rbp
  lea    D33(%rip),%rsi
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %r9,0x8(%rsp)
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L294
  movsbl 0x4(%rbx),%edi
  call   <isalnum@plt>
  mov    %eax,%r15d
  test   %eax,%eax
  je     L331
L294:
  mov    $0x7,%edx
  lea    D28(%rip),%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L313
  movsbl 0x7(%rbx),%edi
  call   <isalnum@plt>
  mov    %eax,%r15d
  test   %eax,%eax
  je     L145
L313:
  mov    $0x4,%edx
  lea    D68(%rip),%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L163
  movsbl 0x4(%rbx),%edi
  call   <isalnum@plt>
  mov    %eax,%r15d
  test   %eax,%eax
  je     L72
L163:
  mov    $0x6,%edx
  lea    D5(%rip),%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L151
L214:
  xor    %r15d,%r15d
L26:
  add    $0x18,%rsp
  mov    %r15d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L151:
  movsbl 0x6(%rbx),%edi
  call   <isalnum@plt>
  mov    %eax,%r15d
  test   %eax,%eax
  jne    L214
  lea    0x6(%rbx),%r13
  mov    $0x7,%edx
  lea    D55(%rip),%rsi
  mov    %r13,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L228
  mov    $0x6,%edx
  lea    D10(%rip),%rsi
  mov    %r13,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L339
  movb   $0x41,(%r12)
  lea    0x1(%r12),%rdi
  mov    %rbp,%rsi
  lea    0xc(%rbx),%r13
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    0x50(%rsp),%rcx
  mov    %eax,(%rcx)
L226:
  movzbl 0x0(%r13),%eax
  cmp    $0x2b,%al
  je     L133
  cmp    $0x2d,%al
  jne    L214
  lea    0x1(%r13),%rdi
  call   <atoi@plt>
  mov    0x50(%rsp),%rcx
  sub    %eax,(%rcx)
  jmp    L26
  nopl   0x0(%rax,%rax,1)
L331:
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%r12d
  sub    $0x1,%r12d
  js     L223
  movslq %r12d,%rbx
  add    %rbp,%rbx
  jmp    L35
  nopl   (%rax)
L87:
  sub    $0x1,%r12d
  sub    $0x1,%rbx
  cmp    $0xffffffff,%r12d
  je     L368
L35:
  movsbl (%rbx),%edi
  mov    %rbx,%r14
  call   <isspace@plt>
  test   %eax,%eax
  je     L87
  add    $0x1,%r12d
  movslq %r12d,%r12
  lea    0x0(%rbp,%r12,1),%r14
L368:
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  jmp    L26
  nopl   0x0(%rax)
L145:
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <strcpy@plt>
  jmp    L26
  nopl   0x0(%rax,%rax,1)
L72:
  movsbl 0x0(%rbp),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L379
  mov    %rbp,%rdi
  call   <atoi@plt>
  mov    0x8(%rsp),%rcx
  mov    %eax,(%rcx)
  movzbl 0x4(%rbx),%eax
  cmp    $0x2b,%al
  je     L205
  cmp    $0x2d,%al
  jne    L214
  lea    0x5(%rbx),%rdi
  call   <atoi@plt>
  mov    0x8(%rsp),%rcx
  sub    %eax,(%rcx)
  jmp    L26
  nopl   0x0(%rax)
L379:
  mov    $0x1,%r15d
  jmp    L26
  nopl   0x0(%rax,%rax,1)
L228:
  movb   $0x42,(%r12)
  lea    0x1(%r12),%rdi
  mov    %rbp,%rsi
  lea    0xd(%rbx),%r13
  call   <strcpy@plt>
  mov    0x50(%rsp),%rax
  movl   $0x0,(%rax)
  jmp    L226
L205:
  lea    0x5(%rbx),%rdi
  call   <atoi@plt>
  mov    0x8(%rsp),%rcx
  add    %eax,(%rcx)
  jmp    L26
  nopl   0x0(%rax,%rax,1)
L339:
  mov    $0xa,%edx
  lea    D7(%rip),%rsi
  mov    %r13,%rdi
  call   <strncmp@plt>
  mov    %eax,%r14d
  test   %eax,%eax
  jne    L183
  cmpb   $0x0,0x0(%rbp)
  je     L379
  movzbl 0x10(%rbx),%eax
  lea    -0x2b(%rax),%edx
  mov    %al,(%r12)
  and    $0xfd,%edx
  je     L243
  test   %al,%al
  je     L243
  add    $0x11,%rbx
  lea    0x1(%r12),%rax
  jmp    L208
  nopw   0x0(%rax,%rax,1)
L101:
  test   %dl,%dl
  je     L246
L208:
  movzbl (%rbx),%edx
  mov    %rbx,%r13
  mov    %rax,%rsi
  add    $0x1,%rbx
  add    $0x1,%rax
  lea    -0x2b(%rdx),%ecx
  mov    %dl,-0x1(%rax)
  and    $0xfd,%ecx
  jne    L101
L246:
  movb   $0x0,(%rsi)
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <strstr@plt>
  mov    %eax,%edx
  sub    %ebp,%edx
  cmp    %rax,%rbp
  mov    0x50(%rsp),%rax
  cmovb  %edx,%r14d
  mov    %r14d,(%rax)
  mov    $0x50,%eax
  mov    %ax,(%r12)
  jmp    L226
L133:
  lea    0x1(%r13),%rdi
  call   <atoi@plt>
  mov    0x50(%rsp),%rcx
  add    %eax,(%rcx)
  jmp    L26
L223:
  cltq
  lea    0x0(%rbp,%rax,1),%r14
  jmp    L368
L183:
  movsbl 0x0(%rbp),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L379
  mov    %rbp,%rdi
  call   <atoi@plt>
  mov    0x50(%rsp),%rcx
  mov    %eax,(%rcx)
  movb   $0x0,(%r12)
  jmp    L226
L243:
  lea    0x10(%rbx),%r13
  mov    %r12,%rsi
  jmp    L246
```

tool_calls: name: read_data
arguments: data_label: D33
type_infered: string
name: read_data
arguments: data_label: D28
type_infered: string
name: read_data
arguments: data_label: D68
type_infered: string
name: read_data
arguments: data_label: D5
type_infered: string
name: read_data
arguments: data_label: D55
type_infered: string
name: read_data
arguments: data_label: D10
type_infered: string
name: read_data
arguments: data_label: D7
type_infered: string

tool: D33: FILE

tool: D28: CMPTEXT

tool: D68: LINE

tool: D5: COLUMN

tool: D55: =BEFORE

tool: D10: =AFTER

tool: D7: =PREVIOUS?

assistant: ```c
int e_p_konv_mess(char *var, char *str, char *txt, char *file, char *cmp, int *y, int *x) {
  int i;
  char *cp;
  if (!strncmp(var, "FILE", 4) && !isalnum(var[4])) {
    for (i = strlen(str) - 1; i >= 0 && !isspace(str[i]); i--)
      ;
    strcpy(file, str + i + 1);
  } else if (!strncmp(var, "CMPTEXT", 7) && !isalnum(var[7]))
    strcpy(cmp, str);
  else if (!strncmp(var, "LINE", 4) && !isalnum(var[4])) {
    if (!isdigit(str[0]))
      return (1);
    *y = atoi(str);
    if (var[4] == '+')
      *y += atoi(var + 5);
    else if (var[4] == '-')
      *y -= atoi(var + 5);
  } else if (!strncmp(var, "COLUMN", 6) && !isalnum(var[6])) {
    if (!strncmp(var + 6, "=BEFORE", 7)) {
      txt[0] = 'B';
      strcpy(txt + 1, str);
      *x = 0;
      var += 13;
    } else if (!strncmp(var + 6, "=AFTER", 6)) {
      txt[0] = 'A';
      strcpy(txt + 1, str);
      *x = strlen(str);
      var += 12;
    } else if (!strncmp(var + 6, "=PREVIOUS?", 10)) {
      if (!str[0])
        return (1);
      for (i = 0; (txt[i] = var[16 + i]) && txt[i] != '+' && txt[i] != '-'; i++)
        ;
      txt[i] = '\0';
      var += (16 + i);
      cp = strstr(str, txt);
      for (i = 0; str + i < cp; i++)
        ;
      *x = i;
      txt[0] = 'P';
      txt[1] = '\0';
    } else if (!isdigit(str[0]))
      return (1);
    else {
      *x = atoi(str);
      txt[0] = '\0';
      var += 6;
    }
    if (var[0] == '+')
      *x += atoi(var + 1);
    else if (var[0] == '-')
      *x -= atoi(var + 1);
  }
  return (0);
}
```