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

```asm
<hermite>:
  endbr64
  test   %edi,%edi
  jle    L53
  push   %r15
  mov    %edi,%r11d
  mov    %esi,%r9d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  cmp    $0x1,%edi
  je     L14
  lea    -0x1(%rdi),%eax
  lea    -0x2(%rdi),%edx
  mov    %edi,0xc(%rsp)
  mov    $0x1,%r11d
  and    $0xfffffffe,%eax
  lea    (%rsi,%rsi,1),%r12d
  mov    %r11d,0x18(%rsp)
  mov    %esi,%r11d
  sub    %eax,%edx
  movl   $0x0,0x10(%rsp)
  mov    %r12d,%r8d
  mov    %edx,0x74(%rsp)
L268:
  mov    0xc(%rsp),%eax
  movl   $0x0,0x28(%rsp)
  mov    %r8d,%ecx
  mov    %r11d,%esi
  movl   $0x1,0x14(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x78(%rsp)
  mov    %eax,0x24(%rsp)
L112:
  cmpl   $0x1,0x24(%rsp)
  je     L269
  mov    0x24(%rsp),%eax
  mov    $0x1,%r8d
  movl   $0x0,0x30(%rsp)
  mov    %ecx,%r14d
  mov    %r8d,0x1c(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x7c(%rsp)
  mov    %eax,0x2c(%rsp)
L63:
  cmpl   $0x1,0x2c(%rsp)
  je     L164
  mov    0x2c(%rsp),%eax
  mov    $0x1,%ecx
  movl   $0x0,0x38(%rsp)
  mov    %r14d,%r11d
  mov    %ecx,0x20(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x80(%rsp)
  mov    %eax,0x34(%rsp)
L21:
  cmpl   $0x1,0x34(%rsp)
  je     L37
  mov    0x34(%rsp),%eax
  mov    $0x1,%edx
  movl   $0x0,0x40(%rsp)
  mov    %edx,0x48(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x84(%rsp)
  mov    %eax,0x3c(%rsp)
L138:
  cmpl   $0x1,0x3c(%rsp)
  je     L96
  mov    0x3c(%rsp),%eax
  xor    %r13d,%r13d
  mov    $0x1,%edx
  mov    %r13d,%r10d
  sub    $0x1,%eax
  mov    %eax,0x88(%rsp)
  mov    %eax,%r15d
L225:
  cmp    $0x1,%r15d
  je     L241
  lea    -0x1(%r15),%r12d
  sub    $0x2,%r15d
  mov    %r10d,0x4c(%rsp)
  mov    %edx,%r14d
  mov    %r12d,0x44(%rsp)
  mov    %r15d,%r8d
  xor    %r9d,%r9d
  mov    $0x1,%ebp
  mov    %r15d,0x50(%rsp)
  mov    %r12d,%edx
L129:
  cmp    $0x1,%edx
  je     L167
  mov    %r11d,%eax
  mov    %r14d,%r10d
  mov    %ebp,%r11d
  xor    %ecx,%ecx
  mov    $0x1,%r13d
  mov    %r8d,%ebp
  mov    %eax,%r14d
L121:
  cmp    $0x1,%ebp
  je     L80
  lea    -0x1(%rbp),%eax
  mov    %ebp,0x54(%rsp)
  xor    %r12d,%r12d
  mov    $0x1,%ebx
  mov    %eax,0x8c(%rsp)
  mov    %eax,%r15d
  mov    %r10d,%ebp
  mov    %r13d,0x58(%rsp)
  mov    %edx,%r13d
  mov    %r14d,0x5c(%rsp)
  mov    %r11d,%r14d
L260:
  cmp    $0x1,%r15d
  je     L119
  lea    -0x1(%r15),%edi
  mov    %r8d,0x70(%rsp)
  mov    %ecx,0x6c(%rsp)
  mov    %r9d,0x68(%rsp)
  mov    %esi,0x64(%rsp)
  mov    %edi,0x60(%rsp)
  call   <hermite>
  mov    0x64(%rsp),%esi
  mov    0x60(%rsp),%edi
  mov    0x68(%rsp),%r9d
  mov    0x6c(%rsp),%ecx
  imul   %esi,%eax
  mov    0x70(%rsp),%r8d
  imul   %ebx,%edi
  imul   %ebx,%eax
  neg    %edi
  sub    $0x2,%r15d
  lea    (%rdi,%rdi,1),%ebx
  lea    (%r12,%rax,2),%r12d
  jne    L260
  mov    %ebp,%r10d
  mov    %r13d,%edx
  mov    %r14d,%r11d
  mov    0x54(%rsp),%ebp
  mov    0x58(%rsp),%r13d
  mov    0x5c(%rsp),%r14d
L50:
  lea    (%r12,%rbx,1),%eax
  mov    0x8c(%rsp),%edi
  imul   %esi,%eax
  imul   %r13d,%edi
  imul   %r13d,%eax
  neg    %edi
  lea    (%rdi,%rdi,1),%r13d
  lea    (%rcx,%rax,2),%ecx
  sub    $0x2,%ebp
  jne    L121
  mov    %r11d,%ebp
  mov    %r14d,%r11d
  mov    %r10d,%r14d
L285:
  lea    (%rcx,%r13,1),%eax
  imul   %esi,%eax
  imul   %ebp,%eax
  imul   %r8d,%ebp
  sub    $0x2,%r8d
  lea    (%r9,%rax,2),%r9d
  neg    %ebp
  add    %ebp,%ebp
  sub    $0x2,%edx
  jne    L129
  mov    0x4c(%rsp),%r10d
  mov    0x50(%rsp),%r15d
  mov    %r14d,%edx
L154:
  lea    (%r9,%rbp,1),%eax
  imul   %esi,%eax
  imul   %edx,%eax
  imul   0x44(%rsp),%edx
  lea    (%r10,%rax,2),%r10d
  neg    %edx
  add    %edx,%edx
  test   %r15d,%r15d
  jne    L225
  mov    %r10d,%r13d
L184:
  lea    0x0(%r13,%rdx,1),%eax
  mov    0x48(%rsp),%edx
  mov    0x40(%rsp),%edi
  imul   %esi,%eax
  imul   %edx,%eax
  imul   0x88(%rsp),%edx
  lea    (%rdi,%rax,2),%eax
  neg    %edx
  mov    %eax,0x40(%rsp)
  add    %edx,%edx
  subl   $0x2,0x3c(%rsp)
  mov    %edx,0x48(%rsp)
  jne    L138
L24:
  mov    0x40(%rsp),%eax
  mov    0x38(%rsp),%ebx
  add    %edx,%eax
  mov    0x20(%rsp),%edx
  imul   %esi,%eax
  imul   %edx,%eax
  imul   0x84(%rsp),%edx
  lea    (%rbx,%rax,2),%eax
  neg    %edx
  subl   $0x2,0x34(%rsp)
  lea    (%rdx,%rdx,1),%edi
  mov    %eax,0x38(%rsp)
  mov    %edi,0x20(%rsp)
  jne    L21
  mov    %edi,%ecx
  mov    %r11d,%r14d
L229:
  mov    0x38(%rsp),%eax
  mov    0x1c(%rsp),%edx
  mov    0x30(%rsp),%edi
  add    %ecx,%eax
  imul   %esi,%eax
  imul   %edx,%eax
  imul   0x80(%rsp),%edx
  lea    (%rdi,%rax,2),%eax
  neg    %edx
  subl   $0x2,0x2c(%rsp)
  lea    (%rdx,%rdx,1),%ebx
  mov    %eax,0x30(%rsp)
  mov    %ebx,0x1c(%rsp)
  jne    L63
  mov    %ebx,%r8d
  mov    %r14d,%ecx
L141:
  mov    0x30(%rsp),%eax
  mov    0x14(%rsp),%edx
  mov    0x28(%rsp),%ebx
  add    %r8d,%eax
  imul   %esi,%eax
  imul   %edx,%eax
  imul   0x7c(%rsp),%edx
  lea    (%rbx,%rax,2),%eax
  neg    %edx
  subl   $0x2,0x24(%rsp)
  lea    (%rdx,%rdx,1),%edi
  mov    %eax,0x28(%rsp)
  mov    %edi,0x14(%rsp)
  jne    L112
  mov    %ecx,%r8d
  mov    %esi,%r11d
  jmp    L297
  xchg   %ax,%ax
L119:
  mov    %r14d,%r11d
  mov    0x5c(%rsp),%r14d
  mov    %ebp,%r10d
  mov    %r13d,%edx
  mov    0x54(%rsp),%ebp
  mov    0x58(%rsp),%r13d
  imul   %r14d,%ebx
  jmp    L50
L80:
  mov    %r11d,%ebp
  mov    %r14d,%r11d
  mov    %r10d,%r14d
  imul   %r11d,%r13d
  jmp    L285
L241:
  imul   %r11d,%edx
  mov    %r10d,%r13d
  jmp    L184
L167:
  imul   %r11d,%ebp
  mov    0x4c(%rsp),%r10d
  mov    0x50(%rsp),%r15d
  mov    %r14d,%edx
  jmp    L154
L96:
  mov    0x48(%rsp),%edx
  imul   %r11d,%edx
  jmp    L24
L37:
  mov    0x20(%rsp),%ecx
  mov    %r11d,%r14d
  imul   %r11d,%ecx
  jmp    L229
L164:
  mov    0x1c(%rsp),%r8d
  mov    %r14d,%ecx
  imul   %r14d,%r8d
  jmp    L141
L269:
  mov    0x14(%rsp),%eax
  mov    %ecx,%r8d
  mov    %esi,%r11d
  imul   %ecx,%eax
  mov    %eax,0x14(%rsp)
L297:
  mov    0x28(%rsp),%eax
  add    0x14(%rsp),%eax
  imul   %r11d,%eax
  mov    0x18(%rsp),%edx
  mov    0x10(%rsp),%edi
  subl   $0x2,0xc(%rsp)
  mov    0xc(%rsp),%ebx
  imul   %edx,%eax
  imul   0x78(%rsp),%edx
  lea    (%rdi,%rax,2),%eax
  neg    %edx
  mov    %eax,0x10(%rsp)
  lea    (%rdx,%rdx,1),%ecx
  mov    %ecx,0x18(%rsp)
  cmp    0x74(%rsp),%ebx
  je     L288
  cmpl   $0x1,0xc(%rsp)
  jne    L268
  mov    %r11d,%r9d
  mov    0x18(%rsp),%r11d
  mov    %eax,%edi
L216:
  mov    %r9d,%eax
  imul   %r11d,%eax
  lea    (%rdi,%rax,2),%eax
L146:
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L288:
  add    %ecx,%eax
  jmp    L146
L53:
  mov    $0x1,%eax
  ret
L14:
  movl   $0x0,0x10(%rsp)
  mov    0x10(%rsp),%edi
  jmp    L216
```

assistant: ```c
int hermite(int n, int x) {
  if (n <= 0)
    return 1;
  if (n == 1)
    return 2 * x;
  if (n >= 2)
    return (2 * x * hermite(n - 1, x)) - (2 * (n - 1) * hermite(n - 2, x));
}
```