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

```asm
<acceptData>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  push   %r13
  mov    %rdi,%r13
  lea    D23(%rip),%rdi
  push   %r12
  mov    %r13,%r14
  mov    %rsi,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  lea    D39(%rip),%rbx
  sub    $0x8,%rsp
  call   <printf@plt>
  jmp    L35
  cs nopw 0x0(%rax,%rax,1)
L26:
  add    $0x4,%r14
  cmp    $0x1e,%r15d
  je     L77
L35:
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmpl   $0xffffffff,(%r14)
  mov    %r15d,%eax
  lea    0x1(%r15),%r15d
  jne    L26
  cs nopw 0x0(%rax,%rax,1)
L86:
  mov    %eax,0x0(%rbp)
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <validateID@plt>
  test   %rax,%rax
  je     L63
  lea    D0(%rip),%rdi
  mov    %r13,%r15
  xor    %r14d,%r14d
  call   <printf@plt>
  movl   $0x0,0x0(%rbp)
  lea    D61(%rip),%rdi
  call   <printf@plt>
  nopl   0x0(%rax,%rax,1)
L33:
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmpl   $0xffffffff,(%r15)
  mov    %r14d,%eax
  lea    0x1(%r14),%r14d
  je     L86
  add    $0x4,%r15
  cmp    $0x1e,%r14d
  jne    L33
  mov    $0x1d,%eax
  jmp    L86
  nopl   0x0(%rax)
L63:
  lea    D12(%rip),%rdi
  mov    %r12,%r14
  xor    %r13d,%r13d
  call   <printf@plt>
  nopw   0x0(%rax,%rax,1)
L32:
  mov    %r14,%rsi
  mov    %rbx,%rdi
  add    $0x1,%r13d
  add    $0x4,%r14
  call   <scanf@plt>
  cmp    %r13d,0x0(%rbp)
  jg     L32
  mov    %rbp,%rsi
  mov    %r12,%rdi
  lea    D43(%rip),%r15
  call   <validatePrefs@plt>
  test   %rax,%rax
  je     L116
  nopl   0x0(%rax,%rax,1)
L58:
  mov    %r15,%rdi
  mov    %r12,%r14
  xor    %r13d,%r13d
  call   <printf@plt>
  lea    D37(%rip),%rdi
  call   <printf@plt>
  nopw   0x0(%rax,%rax,1)
L80:
  mov    %r14,%rsi
  mov    %rbx,%rdi
  add    $0x1,%r13d
  add    $0x4,%r14
  call   <scanf@plt>
  cmp    %r13d,0x0(%rbp)
  jg     L80
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <validatePrefs@plt>
  test   %rax,%rax
  jne    L58
L116:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L77:
  mov    $0x1e,%eax
  jmp    L86
```

tool_calls: name: read_data
arguments: data_tag: D23
type_infered: string
name: read_data
arguments: data_tag: D39
type_infered: string
name: read_data
arguments: data_tag: D0
type_infered: string
name: read_data
arguments: data_tag: D61
type_infered: string
name: read_data
arguments: data_tag: D12
type_infered: string
name: read_data
arguments: data_tag: D43
type_infered: string
name: read_data
arguments: data_tag: D37
type_infered: string

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

tool: D39: %d

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

tool: D61: 

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

tool: D12: Enter lunch preferences for the class: 

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

tool: D37: 

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