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

```asm
<fib>:
  endbr64
  push   %r15
  mov    %edi,%eax
  lea    -0x1(%rdi),%edx
  push   %r14
  sub    $0x2,%eax
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %eax,(%rsp)
  mov    $0x1,%eax
  movl   $0x0,0x4(%rsp)
  cmp    $0x1,%edx
  jbe    L11
L307:
  mov    (%rsp),%eax
  movl   $0x0,0x8(%rsp)
  mov    %eax,%esi
  cmp    $0x1,%eax
  jbe    L65
L75:
  cmp    $0x2,%esi
  je     L30
  lea    -0x2(%rsi),%r8d
  movl   $0x0,0xc(%rsp)
  xor    %esi,%esi
  mov    %r8d,%r9d
  mov    %r9d,%ecx
  cmp    $0x1,%r9d
  je     L47
L164:
  cmp    $0x2,%ecx
  je     L159
  sub    $0x2,%ecx
  xor    %edx,%edx
  xor    %r12d,%r12d
  mov    %ecx,%ebx
  mov    %ebx,%r15d
  cmp    $0x1,%ebx
  je     L277
  nop
L272:
  lea    -0x3(%r15),%r10d
  xor    %r14d,%r14d
  cmp    $0x2,%r15d
  je     L223
L297:
  lea    0x1(%r10),%eax
  mov    %r10d,%ebp
  xor    %r13d,%r13d
  cmp    $0x1,%eax
  jbe    L216
  mov    %r15d,%r11d
  mov    %ebp,%edi
  mov    %ebx,%r15d
  xor    %ebx,%ebx
  cmp    $0x1,%ebp
  je     L304
  nopl   0x0(%rax,%rax,1)
L66:
  mov    %ecx,0x2c(%rsp)
  mov    %r8d,0x28(%rsp)
  mov    %r10d,0x24(%rsp)
  mov    %r11d,0x20(%rsp)
  mov    %r9d,0x1c(%rsp)
  mov    %edx,0x18(%rsp)
  mov    %esi,0x14(%rsp)
  mov    %edi,0x10(%rsp)
  call   <fib>
  mov    0x10(%rsp),%edi
  mov    0x14(%rsp),%esi
  add    %eax,%ebx
  mov    0x18(%rsp),%edx
  mov    0x1c(%rsp),%r9d
  sub    $0x2,%edi
  mov    0x20(%rsp),%r11d
  mov    0x24(%rsp),%r10d
  cmp    $0x1,%edi
  mov    0x28(%rsp),%r8d
  mov    0x2c(%rsp),%ecx
  ja     L66
  add    $0x1,%ebx
  lea    -0x2(%rbp),%eax
  sub    $0x1,%ebp
  add    %ebx,%r13d
  cmp    $0x1,%ebp
  jbe    L136
L208:
  mov    %eax,%ebp
  xor    %ebx,%ebx
  mov    %ebp,%edi
  cmp    $0x1,%ebp
  jne    L66
L304:
  mov    $0x1,%ebx
  lea    -0x2(%rbp),%eax
  sub    $0x1,%ebp
  add    %ebx,%r13d
  cmp    $0x1,%ebp
  ja     L208
L136:
  add    $0x1,%r13d
  mov    %r15d,%ebx
  lea    -0x2(%r10),%eax
  mov    %r11d,%r15d
  add    %r13d,%r14d
  cmp    $0x1,%r10d
  ja     L109
L145:
  add    $0x1,%r14d
  sub    $0x2,%r15d
  add    %r14d,%r12d
  cmp    $0x1,%r15d
  ja     L272
L317:
  add    $0x1,%r12d
  lea    -0x2(%rbx),%eax
  sub    $0x1,%ebx
  add    %r12d,%edx
  cmp    $0x1,%ebx
  jbe    L101
L50:
  mov    %eax,%ebx
  xor    %r12d,%r12d
  mov    %ebx,%r15d
  cmp    $0x1,%ebx
  jne    L272
L277:
  mov    $0x1,%r12d
  lea    -0x2(%rbx),%eax
  sub    $0x1,%ebx
  add    %r12d,%edx
  cmp    $0x1,%ebx
  ja     L50
L101:
  add    $0x1,%edx
L114:
  add    %edx,%esi
  cmp    $0x1,%ecx
  ja     L164
  add    $0x1,%esi
L0:
  lea    -0x2(%r9),%eax
  sub    $0x1,%r9d
  add    %esi,0xc(%rsp)
  cmp    $0x1,%r9d
  jbe    L194
  mov    %eax,%r9d
  xor    %esi,%esi
  mov    %r9d,%ecx
  cmp    $0x1,%r9d
  jne    L164
L47:
  mov    $0x1,%esi
  jmp    L0
L223:
  mov    $0x1,%r14d
  sub    $0x2,%r15d
  add    %r14d,%r12d
  cmp    $0x1,%r15d
  ja     L272
  jmp    L317
  nopl   (%rax)
L216:
  mov    $0x1,%r13d
  lea    -0x2(%r10),%eax
  add    %r13d,%r14d
  cmp    $0x1,%r10d
  jbe    L145
L109:
  mov    %eax,%r10d
  jmp    L297
L159:
  mov    $0x1,%edx
  xor    %ecx,%ecx
  jmp    L114
L194:
  mov    0xc(%rsp),%eax
  add    $0x1,%eax
L199:
  add    %eax,0x8(%rsp)
  mov    %r8d,%esi
  cmp    $0x1,%r8d
  ja     L75
  mov    0x8(%rsp),%eax
  add    $0x1,%eax
  jmp    L256
L65:
  mov    $0x1,%eax
L256:
  add    %eax,0x4(%rsp)
  mov    (%rsp),%eax
  lea    -0x2(%rax),%edx
  sub    $0x1,%eax
  cmp    $0x1,%eax
  jbe    L154
  mov    %edx,(%rsp)
  jmp    L307
L154:
  mov    0x4(%rsp),%eax
  add    $0x1,%eax
L11:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L30:
  mov    $0x1,%eax
  xor    %r8d,%r8d
  jmp    L199
```

assistant: ```c
int fib(int x) {
  if (x == 1 || x == 2) {
    return 1;
  } else {
    return fib(x - 1) + fib(x - 2);
  }
}
```