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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  lea    D14(%rip),%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x378,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x368(%rsp)
  xor    %eax,%eax
  lea    0x28(%rsp),%rax
  lea    0x2c(%rsp),%r15
  mov    %rax,0x18(%rsp)
  lea    0x24(%rsp),%rax
  mov    %rax,0x10(%rsp)
  nopl   0x0(%rax,%rax,1)
L7:
  mov    0x18(%rsp),%rdx
  mov    0x10(%rsp),%rsi
  lea    D31(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x24(%rsp),%edx
  test   %edx,%edx
  jne    L116
  mov    0x28(%rsp),%esi
  test   %esi,%esi
  je     L88
  lea    0x30(%rsp),%r13
  xor    %eax,%eax
  mov    $0x32,%ecx
  mov    %r13,%rdi
  lea    0x1d0(%rsp),%r12
  rep stos %rax,%es:(%rdi)
  mov    $0x32,%ecx
  movl   $0x0,(%rdi)
  mov    %r12,%rdi
  rep stos %rax,%es:(%rdi)
  movl   $0x0,(%rdi)
L120:
  xor    %ebx,%ebx
  xor    %ebp,%ebp
  test   %esi,%esi
  jle    L81
  nopl   0x0(%rax)
L96:
  xor    %ebp,%ebp
  xor    %edx,%edx
  nopl   0x0(%rax)
L18:
  mov    %r15,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  mov    %edx,0xc(%rsp)
  call   <scanf@plt>
  mov    0xc(%rsp),%edx
  movslq 0x2c(%rsp),%rax
  mov    0x28(%rsp),%esi
  movl   $0x1,0x1d0(%rsp,%rax,4)
  add    $0x1,%edx
  add    %eax,%ebp
  cmp    %edx,%esi
  jg     L18
  lea    0x0(%rbp,%rbx,1),%eax
L202:
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  cmp    $0x1,%eax
  je     L101
L81:
  cmp    %esi,0x24(%rsp)
  jge    L119
  sub    %ebx,%ebp
  mov    $0x1,%eax
  mov    %ebp,%edi
  shr    $0x1f,%edi
  add    %ebp,%edi
  sar    %edi
  jmp    L19
  nop
L146:
  add    $0x1,%rax
  cmp    $0x65,%rax
  je     L101
L19:
  cmpl   $0x1,0x0(%r13,%rax,4)
  mov    %eax,%esi
  jne    L146
  lea    (%rdi,%rax,1),%edx
  movslq %edx,%rcx
  cmpl   $0x1,0x1d0(%rsp,%rcx,4)
  jne    L146
L215:
  lea    D1(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L7
  nopl   0x0(%rax,%rax,1)
L116:
  lea    0x30(%rsp),%r13
  mov    $0x0,%eax
  mov    $0x32,%ecx
  mov    %r13,%rdi
  lea    0x1d0(%rsp),%r12
  rep stos %rax,%es:(%rdi)
  mov    $0x32,%ecx
  movl   $0x0,(%rdi)
  mov    %r12,%rdi
  rep stos %rax,%es:(%rdi)
  movl   $0x0,(%rdi)
  jle    L8
  xor    %ebx,%ebx
  xor    %ebp,%ebp
  xchg   %ax,%ax
L209:
  mov    %r15,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  add    $0x1,%ebp
  call   <scanf@plt>
  movslq 0x2c(%rsp),%rax
  movl   $0x1,0x30(%rsp,%rax,4)
  add    %eax,%ebx
  cmp    %ebp,0x24(%rsp)
  jg     L209
  mov    0x28(%rsp),%esi
  test   %esi,%esi
  jg     L96
  mov    %ebx,%eax
  xor    %ebp,%ebp
  jmp    L202
  nopw   0x0(%rax,%rax,1)
L119:
  sub    %ebp,%ebx
  mov    $0x1,%eax
  mov    %ebx,%edi
  shr    $0x1f,%edi
  add    %ebx,%edi
  sar    %edi
  jmp    L229
  nopw   0x0(%rax,%rax,1)
L171:
  add    $0x1,%rax
  cmp    $0x65,%rax
  je     L101
L229:
  cmpl   $0x1,(%r12,%rax,4)
  mov    %eax,%edx
  jne    L171
  lea    (%rdi,%rax,1),%esi
  movslq %esi,%rcx
  cmpl   $0x1,0x30(%rsp,%rcx,4)
  jne    L171
  test   %esi,%esi
  jne    L215
L101:
  lea    D11(%rip),%rdi
  call   <puts@plt>
  jmp    L7
L88:
  mov    0x368(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L42
  add    $0x378,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L8:
  mov    0x28(%rsp),%esi
  jmp    L120
L42:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D14
type_guessed: string
name: unpack_data
arguments: data_label: D31
type_guessed: string
name: unpack_data
arguments: data_label: D1
type_guessed: string
name: unpack_data
arguments: data_label: D11
type_guessed: string

tool: D14: %d

tool: D31: %d %d

tool: D1: %d %d


tool: D11: -1

assistant: ```c
int main(void) {
  int nt, nh, i, temp;
  while (1) {
    scanf("%d %d", &nt, &nh);
    if (nt == 0 && nh == 0)
      break;
    int ct[101] = {0}, ch[101] = {0}, st = 0, sh = 0, flag[2] = {0};
    for (i = 0; i < nt; i++) {
      scanf("%d", &temp);
      st += temp;
      ct[temp] = 1;
    }
    for (i = 0; i < nh; i++) {
      scanf("%d", &temp);
      sh += temp;
      ch[temp] = 1;
    }
    if ((st + sh) % 2 == 1) {
      printf("-1\n");
      continue;
    }
    if (nt < nh) {
      for (i = 1; i <= 100; i++) {
        if (ct[i] == 1 && ch[(sh - st) / 2 + i] == 1) {
          flag[0] = i, flag[1] = (sh - st) / 2 + i;
          break;
        }
      }
    } else {
      for (i = 1; i <= 100; i++) {
        if (ch[i] == 1 && ct[(st - sh) / 2 + i] == 1) {
          flag[0] = (st - sh) / 2 + i, flag[1] = i;
          break;
        }
      }
    }
    if (flag[0] == 0) {
      printf("-1\n");
    } else {
      printf("%d %d\n", flag[0], flag[1]);
    }
  }
  return 0;
}
```