user: 请将以下的汇编代码转换成C语言代码:

```asm
<acceptData>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  push   %r13
  mov    %rdi,%r13
  lea    D59(%rip),%rdi
  push   %r12
  mov    %r13,%r14
  mov    %rsi,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  lea    D11(%rip),%rbx
  sub    $0x8,%rsp
  call   <printf@plt>
  jmp    L101
  cs nopw 0x0(%rax,%rax,1)
L8:
  add    $0x4,%r14
  cmp    $0x1e,%r15d
  je     L14
L101:
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmpl   $0xffffffff,(%r14)
  mov    %r15d,%eax
  lea    0x1(%r15),%r15d
  jne    L8
  cs nopw 0x0(%rax,%rax,1)
L76:
  mov    %eax,0x0(%rbp)
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <validateID@plt>
  test   %rax,%rax
  je     L75
  lea    D60(%rip),%rdi
  mov    %r13,%r15
  xor    %r14d,%r14d
  call   <printf@plt>
  movl   $0x0,0x0(%rbp)
  lea    D18(%rip),%rdi
  call   <printf@plt>
  nopl   0x0(%rax,%rax,1)
L29:
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmpl   $0xffffffff,(%r15)
  mov    %r14d,%eax
  lea    0x1(%r14),%r14d
  je     L76
  add    $0x4,%r15
  cmp    $0x1e,%r14d
  jne    L29
  mov    $0x1d,%eax
  jmp    L76
  nopl   0x0(%rax)
L75:
  lea    D37(%rip),%rdi
  mov    %r12,%r14
  xor    %r13d,%r13d
  call   <printf@plt>
  nopw   0x0(%rax,%rax,1)
L27:
  mov    %r14,%rsi
  mov    %rbx,%rdi
  add    $0x1,%r13d
  add    $0x4,%r14
  call   <scanf@plt>
  cmp    %r13d,0x0(%rbp)
  jg     L27
  mov    %rbp,%rsi
  mov    %r12,%rdi
  lea    D22(%rip),%r15
  call   <validatePrefs@plt>
  test   %rax,%rax
  je     L58
  nopl   0x0(%rax,%rax,1)
L87:
  mov    %r15,%rdi
  mov    %r12,%r14
  xor    %r13d,%r13d
  call   <printf@plt>
  lea    D8(%rip),%rdi
  call   <printf@plt>
  nopw   0x0(%rax,%rax,1)
L97:
  mov    %r14,%rsi
  mov    %rbx,%rdi
  add    $0x1,%r13d
  add    $0x4,%r14
  call   <scanf@plt>
  cmp    %r13d,0x0(%rbp)
  jg     L97
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <validatePrefs@plt>
  test   %rax,%rax
  jne    L87
L58:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L14:
  mov    $0x1e,%eax
  jmp    L76
```

tool_calls: name: unpack_data
arguments: tag: D59
data_type: string
name: unpack_data
arguments: tag: D11
data_type: string
name: unpack_data
arguments: tag: D60
data_type: string
name: unpack_data
arguments: tag: D18
data_type: string
name: unpack_data
arguments: tag: D37
data_type: string
name: unpack_data
arguments: tag: D22
data_type: string
name: unpack_data
arguments: tag: D8
data_type: string

tool: D59: 
Enter up to 30 student ID numbers or -1 to exit: 

tool: D11: %d

tool: D60: 
Error! All student ID numbers must be unique!

tool: D18: 

Enter up to 30 student ID numbers or -1 to exit: 

tool: D37: Enter lunch preferences for the class: 

tool: D22: 
Invalid preference entered! Please try again!!

tool: D8: 

Enter lunch preferences for the class:

assistant: ```c
void acceptData(int studID[], int prefer[], int *actualSize) {
  int i = 0;
  printf("\nEnter up to 30 student ID numbers or -1 to exit: ");
  do {
    scanf("%d", &studID[i]);
    i++;
  } while (studID[i - 1] != -1 && i < 30);
  if (studID[i - 1] == -1)
    i--;
  *actualSize = i;
  while (validateID(studID, actualSize)) {
    printf("\nError! All student ID numbers must be unique!");
    *actualSize = 0;
    i = 0;
    printf("\n\nEnter up to 30 student ID numbers or -1 to exit: ");
    do {
      scanf("%d", &studID[i]);
      i++;
    } while (studID[i - 1] != -1 && i < 30);
    *actualSize = i - 1;
  }
  i = 0;
  printf("Enter lunch preferences for the class: ");
  do {
    scanf("%d", &prefer[i]);
    i++;
  } while (i < *actualSize);
  while (validatePrefs(prefer, actualSize)) {
    i = 0;
    printf("\nInvalid preference entered! Please try again!!");
    printf("\n\nEnter lunch preferences for the class:");
    do {
      scanf("%d", &prefer[i]);
      i++;
    } while (i < *actualSize);
  }
  return;
}
```