user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xd0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0xcc(%rbp),%rax
  mov    %rax,%rsi
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  jmp    L97
L116:
  movq   $0x0,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movq   $0x0,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movq   $0x0,-0x90(%rbp)
  lea    -0x80(%rbp),%rax
  mov    %rax,%rsi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xc4(%rbp)
  movl   $0x0,-0xc8(%rbp)
  jmp    L138
L88:
  mov    -0xc8(%rbp),%eax
  cltq
  movzbl -0x80(%rbp,%rax,1),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  movslq %eax,%rdx
  mov    -0xb0(%rbp,%rdx,4),%edx
  add    $0x1,%edx
  cltq
  mov    %edx,-0xb0(%rbp,%rax,4)
  addl   $0x1,-0xc8(%rbp)
L138:
  mov    -0xc8(%rbp),%eax
  cmp    -0xc4(%rbp),%eax
  jl     L88
  cmpl   $0x1,-0xc4(%rbp)
  jne    L45
  lea    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,-0xb4(%rbp)
  mov    -0xb4(%rbp),%eax
  and    $0x7,%eax
  test   %eax,%eax
  je     L14
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L97
L14:
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L97
L45:
  cmpl   $0x2,-0xc4(%rbp)
  jne    L42
  lea    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,-0xc0(%rbp)
  mov    -0xc0(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0xbc(%rbp)
  mov    -0xc0(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0xb8(%rbp)
  mov    -0xc0(%rbp),%eax
  and    $0x7,%eax
  test   %eax,%eax
  je     L121
  mov    -0xbc(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0xb8(%rbp),%eax
  add    %edx,%eax
  and    $0x7,%eax
  test   %eax,%eax
  jne    L85
L121:
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L97
L85:
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L97
L42:
  lea    -0xb0(%rbp),%rax
  mov    %rax,%rdi
  call   <isMultipleOfEight@plt>
  test   %rax,%rax
  je     L123
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L97
L123:
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L97:
  mov    -0xcc(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xcc(%rbp)
  test   %eax,%eax
  jne    L116
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L60
  call   <__stack_chk_fail@plt>
L60:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D74
type_guessed: string
name: retrieve_data
arguments: label: D0
type_guessed: string
name: retrieve_data
arguments: label: D3
type_guessed: string
name: retrieve_data
arguments: label: D75
type_guessed: string

tool: D74: %d

tool: D0: %s

tool: D3: NO


tool: D75: YES


assistant: ```c
int main() {
  int n, t;
  scanf("%d", &t);
  while (t--) {
    int arr[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
    char str[111];
    scanf("%s", str);
    int len = strlen(str);
    for (int i = 0; i < len; i++) {
      arr[str[i] - '0']++;
    }
    if (len == 1) {
      int num = atoi(str);
      if (num % 8) {
        printf("NO\n");
      } else {
        printf("YES\n");
      }
    } else if (len == 2) {
      int num = atoi(str);
      int x = num % 10;
      int y = num / 10;
      if (num % 8 == 0 || (x * 10 + y) % 8 == 0) {
        printf("YES\n");
      } else {
        printf("NO\n");
      }
    } else {
      if (isMultipleOfEight(arr)) {
        printf("YES\n");
      } else {
        printf("NO\n");
      }
    }
  }
  return 0;
}
```