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

```asm
<foo>:
  endbr64
  push   %r13
  mov    %edx,%r13d
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  mov    %edi,%ebp
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <foo>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <bar@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    1050 <bar@plt>
```

assistant: ```c
void foo(int a, int b, int c) {
  foo(a, b, c);
  bar(a, b, c);
  foo(a, b, c);
  bar(a, b, c);
}
```