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

```asm
<main>:
  endbr64
  push   %r15
  lea    D19(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rsi
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0xc(%rsp)
  test   %eax,%eax
  je     L85
  lea    0x40(%rsp),%rbx
  lea    D38(%rip),%rbp
  lea    0x10(%rsp),%r14
  lea    D25(%rip),%r13
  lea    D2(%rip),%r15
  lea    0x41(%rsp),%r12
L74:
  pxor   %xmm0,%xmm0
  mov    %rbp,%rdi
  xor    %eax,%eax
  mov    %rbx,%rsi
  movq   $0x0,0x30(%rsp)
  movaps %xmm0,0x10(%rsp)
  movaps %xmm0,0x20(%rsp)
  call   <scanf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L50
  lea    -0x1(%rax),%esi
  mov    %rbx,%rcx
  add    %r12,%rsi
  nopl   0x0(%rax)
L32:
  movsbl (%rcx),%edx
  add    $0x1,%rcx
  sub    $0x30,%edx
  movslq %edx,%rdx
  addl   $0x1,0x10(%rsp,%rdx,4)
  cmp    %rsi,%rcx
  jne    L32
  cmp    $0x1,%eax
  je     L80
L50:
  cmp    $0x2,%eax
  je     L69
  mov    %r14,%rdi
  call   <isMultipleOfEight@plt>
  test   %rax,%rax
  jne    L59
L119:
  mov    %r15,%rdi
  call   <printf@plt>
L26:
  mov    0xc(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0xc(%rsp)
  test   %eax,%eax
  jne    L74
L85:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L66
  add    $0xc8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L69:
  mov    %rbx,%rdi
  call   <atoi@plt>
  test   $0x7,%al
  je     L59
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x22,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%ecx
  add    %ecx,%ecx
  sub    %ecx,%eax
  lea    (%rdx,%rax,2),%eax
  test   $0x7,%al
  jne    L119
L59:
  mov    %r13,%rdi
  call   <printf@plt>
  jmp    L26
  nopl   0x0(%rax)
L80:
  mov    %rbx,%rdi
  call   <atoi@plt>
  test   $0x7,%al
  jne    L119
  mov    %r13,%rdi
  call   <printf@plt>
  jmp    L26
L66:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D19
type: string
name: extract_symbolic_data
arguments: data_label: D38
type: string
name: extract_symbolic_data
arguments: data_label: D25
type: string
name: extract_symbolic_data
arguments: data_label: D2
type: string

tool: D19: %d

tool: D38: %s

tool: D25: YES


tool: D2: NO


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;
}
```