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

```asm
<Status_Memory>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    $0x58,%r12d
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x10(%rsp)
  mov    $0x64,%edi
  mov    %rsi,0x18(%rsp)
  mov    $0x1,%esi
  call   <calloc@plt>
  test   %rax,%rax
  jne    L77
L108:
  add    $0x28,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L77:
  mov    $0x64,%edx
  mov    %rax,%rsi
  lea    D3(%rip),%rdi
  mov    %rax,%rbp
  call   <File_Read@plt>
  mov    %eax,%r12d
  cmp    $0x58,%al
  je     L63
  mov    $0x1,%esi
  mov    $0x14,%edi
  call   <calloc@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L117
  mov    $0x1,%esi
  mov    $0x14,%edi
  xor    %r14d,%r14d
  xor    %ebx,%ebx
  call   <calloc@plt>
  mov    %rax,0x8(%rsp)
  test   %rax,%rax
  jne    L32
  jmp    L137
L72:
  movzbl (%r15),%ecx
  movswq %bx,%rax
  add    $0x1,%ebx
  mov    %cl,0x0(%r13,%rax,1)
L7:
  add    $0x1,%r14
  cmp    $0x64,%r14
  je     L159
L32:
  lea    0x0(%rbp,%r14,1),%r15
  mov    %r14d,%r12d
  movsbl (%r15),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L72
  cmpb   $0x6b,(%r15)
  jne    L7
  lea    0x1(%r12),%r14d
  cmp    $0x63,%r12w
  je     L159
  xor    %ebx,%ebx
  jmp    L104
  cs nopw 0x0(%rax,%rax,1)
L123:
  movzbl (%r12),%ecx
  mov    0x8(%rsp),%rdx
  movswq %bx,%rax
  add    $0x1,%ebx
  mov    %cl,(%rdx,%rax,1)
L44:
  add    $0x1,%r14d
  cmp    $0x64,%r14w
  je     L159
L104:
  movswq %r14w,%r12
  add    %rbp,%r12
  movsbl (%r12),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L123
  cmpb   $0x6b,(%r12)
  jne    L44
L159:
  mov    %r13,%rdi
  mov    $0x56,%r12d
  call   <atol@plt>
  mov    0x8(%rsp),%r15
  shl    $0xa,%eax
  movslq %eax,%rbx
  mov    0x10(%rsp),%rax
  mov    %r15,%rdi
  mov    %rbx,(%rax)
  call   <atol@plt>
  mov    %r15,%rdi
  shl    $0xa,%eax
  cltq
  sub    %rax,%rbx
  mov    0x18(%rsp),%rax
  mov    %rbx,(%rax)
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  jmp    L108
L137:
  mov    %r13,%rdi
  call   <free@plt>
L117:
  mov    %rbp,%rdi
  mov    $0x58,%r12d
  call   <free@plt>
  jmp    L108
  nopl   (%rax)
L63:
  mov    %rbp,%rdi
  call   <free@plt>
  jmp    L108
```

tool_calls: name: disassemble_data
arguments: data_tag: D3
type: string

tool: D3: /proc/meminfo

assistant: ```c
char Status_Memory(long *Total, long *Used) {
  char *Content = (char *)calloc(100, sizeof(char));
  if (Content == NULL) {
    return 'X';
  }
  if (File_Read("/proc/meminfo", Content, 100) == 'X') {
    free(Content);
    return 'X';
  }
  char *Memory_Total = (char *)calloc(20, sizeof(char));
  if (Memory_Total == NULL) {
    free(Content);
    return 'X';
  }
  char *Memory_Free = (char *)calloc(20, sizeof(char));
  if (Memory_Free == NULL) {
    free(Memory_Total);
    free(Content);
    return 'X';
  }
  for (short Get_Total = 0, Cursor_Total = 0; Get_Total < 100; Get_Total++) {
    if (isdigit(*(Content + Get_Total)) != 0) {
      *(Memory_Total + Cursor_Total) = *(Content + Get_Total);
      Cursor_Total++;
    } else if (*(Content + Get_Total) == 'k') {
      Get_Total++;
      for (short Get_Free = Get_Total, Cursor_Free = 0; Get_Free < 100; Get_Free++) {
        if (isdigit(*(Content + Get_Free)) != 0) {
          *(Memory_Free + Cursor_Free) = *(Content + Get_Free);
          Cursor_Free++;
        } else if (*(Content + Get_Free) == 'k') {
          break;
        }
      }
      break;
    }
  }
  *Total = atol(Memory_Total) * 1024;
  *Used = *Total - (atol(Memory_Free) * 1024);
  free(Memory_Free);
  free(Memory_Total);
  free(Content);
  return 'V';
}
```