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

```asm
<main>:
  endbr64
  push   %r14
  lea    D58(%rip),%r14
  push   %r13
  lea    D40(%rip),%r13
  push   %r12
  mov    %r13,%rsi
  push   %rbp
  lea    D55(%rip),%rbp
  push   %rbx
  mov    %rbp,%rdi
  lea    D44(%rip),%rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%r12
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  jmp    L73
  nopl   0x0(%rax)
L28:
  mov    %r14,%rdi
  call   <puts@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
L73:
  mov    0x4(%rsp),%eax
  cmp    $0x1869f,%eax
  ja     L28
  movslq %eax,%rdx
  mov    %eax,%ecx
  mov    $0xcccccccd,%edi
  xor    %r8d,%r8d
  imul   $0x68db8bad,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x2c,%rdx
  sub    %ecx,%edx
  imul   $0x2710,%edx,%ecx
  mov    %eax,%edx
  sub    $0x11170,%eax
  sub    %ecx,%edx
  mov    %edx,%r9d
  imul   $0x10624dd3,%r9,%r9
  shr    $0x26,%r9
  imul   $0x3e8,%r9d,%ecx
  mov    %edx,%r9d
  sub    %ecx,%r9d
  mov    %r9d,%ecx
  imul   $0x51eb851f,%rcx,%rcx
  shr    $0x25,%rcx
  imul   $0x64,%ecx,%esi
  mov    %r9d,%ecx
  sub    %esi,%ecx
  mov    %ecx,%esi
  imul   %rdi,%rsi
  shr    $0x23,%rsi
  lea    (%rsi,%rsi,4),%edi
  mov    %ecx,%esi
  add    %edi,%edi
  sub    %edi,%esi
  cmp    $0x270f,%eax
  lea    -0x2bc(%r9),%eax
  setbe  %r8b
  sub    $0x1b58,%edx
  mov    %esi,0x4(%rsp)
  cmp    $0x3e8,%edx
  adc    $0x0,%r8d
  cmp    $0x64,%eax
  adc    $0x0,%r8d
  sub    $0x46,%ecx
  cmp    $0x9,%ecx
  ja     L72
  add    $0x1,%r8d
  cmp    $0x7,%esi
  jne    L24
L76:
  add    $0x1,%r8d
L24:
  mov    %r8d,%edx
  lea    D9(%rip),%rsi
  lea    D42(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L10:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L25
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L72:
  cmp    $0x7,%esi
  je     L76
  test   %r8d,%r8d
  jne    L24
  lea    D1(%rip),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L10
L25:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D58
type: string
name: disassemble_data
arguments: data_tag: D40
type: string
name: disassemble_data
arguments: data_tag: D55
type: string
name: disassemble_data
arguments: data_tag: D44
type: string
name: disassemble_data
arguments: data_tag: D9
type: string
name: disassemble_data
arguments: data_tag: D42
type: string
name: disassemble_data
arguments: data_tag: D1
type: string

tool: D58: You have not entered a valid number

tool: D40: Enter a valid number (up to 5 digits): 

tool: D55: %s

tool: D44: %d

tool: D9: The sevens found are: 

tool: D42: %s%d

tool: D1: No sevens where found!!!

assistant: ```c
int main(void) {
  int number;
  int flag = 1;
  int numA;
  int numB;
  int numC;
  int numD;
  int numE;
  int counter = 0;
  printf("%s", "Enter a valid number (up to 5 digits): ");
  scanf("%d", &number);
  while (flag != -1) {
    if (number >= 0) {
      if (number <= 99999) {
        numA = number / 10000;
        number = number % 10000;
        numB = number / 1000;
        number = number % 1000;
        numC = number / 100;
        number = number % 100;
        numD = number / 10;
        number = number % 10;
        numE = number;
        if (numA == 7) {
          counter++;
        }
        if (numB == 7) {
          counter++;
        }
        if (numC == 7) {
          counter++;
        }
        if (numD == 7) {
          counter++;
        }
        if (numE == 7) {
          counter++;
        }
        flag = -1;
      } else {
        puts("You have not entered a valid number");
        printf("%s", "Enter a valid number (up to 5 digits): ");
        scanf("%d", &number);
        flag = 1;
      }
    } else {
      puts("You have not entered a valid number");
      printf("%s", "Enter a valid number (up to 5 digits): ");
      scanf("%d", &number);
      flag = 1;
    }
  }
  if (counter > 0) {
    printf("%s%d", "The sevens found are: ", counter);
  } else {
    printf("%s", "No sevens where found!!!");
  }
  return 0;
}
```