user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<fib>:
  endbr64
  push   %r15
  mov    %edi,%eax
  sub    $0x1,%edi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %edi,0x8(%rsp)
  movl   $0x0,0x14(%rsp)
  cmp    $0x1,%eax
  jbe    L149
  cmpl   $0x1,0x8(%rsp)
  jbe    L71
L174:
  mov    0x8(%rsp),%eax
  movl   $0x0,0x18(%rsp)
  sub    $0x1,%eax
  mov    %eax,0xc(%rsp)
  cmpl   $0x1,0xc(%rsp)
  mov    %eax,0x24(%rsp)
  je     L262
L181:
  mov    0xc(%rsp),%eax
  movl   $0x0,0x1c(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x10(%rsp)
  cmpl   $0x1,0x10(%rsp)
  mov    %eax,0x28(%rsp)
  je     L223
L12:
  mov    0x10(%rsp),%eax
  movl   $0x0,0x20(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x30(%rsp)
  mov    %eax,%r11d
L306:
  cmp    $0x1,%r11d
  je     L177
  lea    -0x1(%r11),%eax
  xor    %ecx,%ecx
  mov    %eax,0x2c(%rsp)
  mov    %eax,%ebp
L199:
  cmp    $0x1,%ebp
  je     L173
  lea    -0x1(%rbp),%esi
  xor    %r12d,%r12d
  mov    %esi,%edx
L165:
  cmp    $0x1,%edx
  je     L25
  lea    -0x2(%rdx),%r8d
  xor    %r15d,%r15d
  mov    %r8d,%r9d
L64:
  lea    0x1(%r9),%eax
  mov    %r9d,%ebx
  xor    %r13d,%r13d
  cmp    $0x1,%eax
  jbe    L85
  mov    %ebx,%r10d
  xor    %r14d,%r14d
  cmp    $0x1,%ebx
  je     L128
  nopl   0x0(%rax)
L40:
  lea    -0x1(%r10),%edi
  mov    %r8d,0x4c(%rsp)
  mov    %esi,0x48(%rsp)
  mov    %r9d,0x44(%rsp)
  mov    %edx,0x40(%rsp)
  mov    %r11d,0x3c(%rsp)
  mov    %ecx,0x38(%rsp)
  mov    %r10d,0x34(%rsp)
  call   <fib>
  mov    0x34(%rsp),%r10d
  mov    0x38(%rsp),%ecx
  add    %eax,%r14d
  mov    0x3c(%rsp),%r11d
  mov    0x40(%rsp),%edx
  sub    $0x2,%r10d
  mov    0x44(%rsp),%r9d
  mov    0x48(%rsp),%esi
  cmp    $0x1,%r10d
  mov    0x4c(%rsp),%r8d
  ja     L40
  add    $0x1,%r14d
  lea    -0x2(%rbx),%eax
  sub    $0x1,%ebx
  add    %r14d,%r13d
  cmp    $0x1,%ebx
  jbe    L209
L7:
  mov    %eax,%ebx
  xor    %r14d,%r14d
  mov    %ebx,%r10d
  cmp    $0x1,%ebx
  jne    L40
L128:
  mov    $0x1,%r14d
  lea    -0x2(%rbx),%eax
  sub    $0x1,%ebx
  add    %r14d,%r13d
  cmp    $0x1,%ebx
  ja     L7
L209:
  add    $0x1,%r13d
  lea    -0x2(%r9),%eax
  add    %r13d,%r15d
  cmp    $0x1,%r9d
  ja     L249
L130:
  add    $0x1,%r15d
  sub    $0x1,%edx
  add    %r15d,%r12d
  cmp    $0x1,%edx
  ja     L258
L163:
  add    $0x1,%r12d
L134:
  add    %r12d,%ecx
  sub    $0x2,%ebp
  cmp    $0x1,%esi
  ja     L199
  add    $0x1,%ecx
L280:
  add    %ecx,0x20(%rsp)
  sub    $0x2,%r11d
  cmpl   $0x1,0x2c(%rsp)
  ja     L306
  mov    0x20(%rsp),%eax
  add    $0x1,%eax
L176:
  add    %eax,0x1c(%rsp)
  mov    0x10(%rsp),%eax
  sub    $0x2,%eax
  cmpl   $0x1,0x30(%rsp)
  jbe    L296
  mov    %eax,0x10(%rsp)
  cmpl   $0x1,0x10(%rsp)
  jne    L12
L223:
  movl   $0x0,0x30(%rsp)
  mov    $0x1,%eax
  jmp    L176
L25:
  mov    $0x1,%r15d
  sub    $0x1,%edx
  mov    $0xffffffff,%r8d
  add    %r15d,%r12d
  cmp    $0x1,%edx
  jbe    L163
L258:
  mov    %r8d,%edx
  jmp    L165
  nopl   0x0(%rax)
L85:
  mov    $0x1,%r13d
  lea    -0x2(%r9),%eax
  add    %r13d,%r15d
  cmp    $0x1,%r9d
  jbe    L130
L249:
  mov    %eax,%r9d
  jmp    L64
L173:
  mov    $0x1,%r12d
  xor    %esi,%esi
  jmp    L134
L177:
  movl   $0x0,0x2c(%rsp)
  mov    $0x1,%ecx
  jmp    L280
L296:
  mov    0x1c(%rsp),%eax
  add    $0x1,%eax
L303:
  add    %eax,0x18(%rsp)
  mov    0xc(%rsp),%eax
  sub    $0x2,%eax
  cmpl   $0x1,0x28(%rsp)
  jbe    L236
  mov    %eax,0xc(%rsp)
  cmpl   $0x1,0xc(%rsp)
  jne    L181
L262:
  movl   $0x0,0x28(%rsp)
  mov    $0x1,%eax
  jmp    L303
L236:
  mov    0x18(%rsp),%eax
  add    $0x1,%eax
L145:
  add    %eax,0x14(%rsp)
  mov    0x8(%rsp),%eax
  sub    $0x2,%eax
  cmpl   $0x1,0x24(%rsp)
  jbe    L156
  mov    %eax,0x8(%rsp)
  cmpl   $0x1,0x8(%rsp)
  ja     L174
L71:
  mov    0x8(%rsp),%edi
  mov    $0x1,%eax
  sub    $0x1,%edi
  mov    %edi,0x24(%rsp)
  jmp    L145
L156:
  mov    0x14(%rsp),%eax
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  add    $0x1,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L149:
  add    $0x58,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int fib(int a) {
  if (a == 0 || a == 1) {
    return 1;
  } else {
    int n1 = 0, n2 = 0;
#pragma omp task firstprivate(a) shared(n1)
    n1 = fib(a - 1);
#pragma omp task firstprivate(a) shared(n2)
    n2 = fib(a - 2);
#pragma omp taskwait
    return n1 + n2;
  }
}
```