user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<main>:
  endbr64
  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
  lea    D14(%rip),%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0xc(%rsp)
  test   %eax,%eax
  je     L47
  lea    0x40(%rsp),%rbx
  lea    D19(%rip),%rbp
  lea    D1(%rip),%r13
  lea    D12(%rip),%r12
  jmp    L150
L38:
  mov    %rbx,%rdi
  call   <atoi@plt>
  test   $0x7,%al
  je     L130
  mov    %r13,%rdi
  call   <printf@plt>
  jmp    L43
L130:
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L43
L112:
  mov    %rbx,%rdi
  call   <atoi@plt>
  test   $0x7,%al
  je     L136
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%ecx
  add    %ecx,%ecx
  sub    %ecx,%eax
  lea    (%rdx,%rax,2),%eax
  test   $0x7,%al
  jne    L137
L136:
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L43
L137:
  mov    %r13,%rdi
  call   <printf@plt>
  jmp    L43
L10:
  mov    %r13,%rdi
  call   <printf@plt>
L43:
  mov    0xc(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0xc(%rsp)
  test   %eax,%eax
  je     L47
L150:
  movq   $0x0,0x10(%rsp)
  movq   $0x0,0x18(%rsp)
  movq   $0x0,0x20(%rsp)
  movq   $0x0,0x28(%rsp)
  movq   $0x0,0x30(%rsp)
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L145
  lea    0x40(%rsp),%rcx
  lea    -0x1(%rax),%edx
  lea    0x41(%rsp,%rdx,1),%rsi
L42:
  movsbl (%rcx),%edx
  sub    $0x30,%edx
  movslq %edx,%rdx
  addl   $0x1,0x10(%rsp,%rdx,4)
  add    $0x1,%rcx
  cmp    %rsi,%rcx
  jne    L42
L145:
  cmp    $0x1,%eax
  je     L38
  cmp    $0x2,%eax
  je     L112
  lea    0x10(%rsp),%rdi
  call   <isMultipleOfEight@plt>
  test   %rax,%rax
  je     L10
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L43
L47:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L126
  mov    $0x0,%eax
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L126:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D14
datatype: string
name: parse_data
arguments: label: D19
datatype: string
name: parse_data
arguments: label: D1
datatype: string
name: parse_data
arguments: label: D12
datatype: string

tool: D14: %d

tool: D19: %s

tool: D1: NO


tool: D12: 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;
}
```