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

```asm
<get_current_val>:
  endbr64
  test   %rdi,%rdi
  je     L147
  test   %rsi,%rsi
  je     L147
  cmp    %rsi,%rdi
  je     L147
  push   %r15
  mov    %rdi,%r10
  mov    %rsi,%r11
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  movl   $0x0,0x18(%rsp)
L287:
  mov    %r10,%rax
  sub    $0x1,%r10
  je     L476
L352:
  cmp    %rax,%r11
  je     L423
  cmp    $0x1,%r11
  je     L423
  lea    -0x2(%r11),%rax
  movl   $0x0,0x1c(%rsp)
  mov    %rax,0x58(%rsp)
  mov    %r10,0x50(%rsp)
  mov    %r10,0x78(%rsp)
  mov    %r11,%r10
L189:
  mov    0x50(%rsp),%r11
  mov    %r11,0x88(%rsp)
  sub    $0x1,%r11
  mov    %r11,0x50(%rsp)
  je     L310
  mov    0x58(%rsp),%rax
  cmp    %rax,%r11
  je     L331
  test   %rax,%rax
  je     L331
  lea    -0x3(%r10),%rax
  movl   $0x0,0x24(%rsp)
  mov    %rax,0x60(%rsp)
  mov    %r10,%rax
  mov    %r11,%r10
  mov    %rax,%r11
L322:
  sub    $0x1,%r10
  je     L215
  mov    0x60(%rsp),%rax
  cmp    %rax,%r10
  je     L401
  test   %rax,%rax
  je     L401
  lea    -0x4(%r11),%rax
  mov    %r10,0x10(%rsp)
  mov    %rax,0x68(%rsp)
  movl   $0x0,0x28(%rsp)
  mov    %r10,0x80(%rsp)
L426:
  subq   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%rcx
  je     L59
  mov    0x68(%rsp),%rax
  test   %rax,%rax
  je     L172
  cmp    %rax,%rcx
  je     L172
  lea    -0x5(%r11),%rax
  movl   $0x0,0x20(%rsp)
  mov    %rax,0x70(%rsp)
L356:
  sub    $0x1,%rcx
  je     L213
  mov    0x70(%rsp),%rax
  test   %rax,%rax
  je     L236
  cmp    %rax,%rcx
  je     L236
  lea    -0x6(%r11),%r9
  mov    %rcx,%r14
  xor    %edx,%edx
L388:
  sub    $0x1,%r14
  je     L90
  test   %r9,%r9
  je     L355
  cmp    %r9,%r14
  je     L355
  lea    -0x7(%r11),%r8
  xor    %ebx,%ebx
  mov    %r14,%rbp
  mov    %r8,%rax
  mov    %r14,%r8
  mov    %ebx,%r14d
  mov    %rax,%rbx
L457:
  sub    $0x1,%rbp
  je     L309
  test   %rbx,%rbx
  je     L28
  cmp    %rbx,%rbp
  je     L28
  lea    -0x8(%r11),%r10
  mov    %rbx,(%rsp)
  mov    %rbp,%r15
  xor    %r12d,%r12d
  mov    %r11,0x8(%rsp)
  mov    %r10,%rbx
  mov    %r14d,%r11d
  mov    %rbp,%r10
L311:
  sub    $0x1,%r15
  je     L116
  test   %rbx,%rbx
  je     L65
  cmp    %rbx,%r15
  je     L65
  mov    0x8(%rsp),%rax
  mov    %r12d,0x2c(%rsp)
  mov    %r15,%rdi
  xor    %r13d,%r13d
  mov    %rcx,%rbp
  mov    %r10,%r14
  mov    %r8,%r12
  lea    -0x9(%rax),%rsi
L217:
  sub    $0x1,%rdi
  mov    %r9,0x48(%rsp)
  mov    %r11d,0x44(%rsp)
  mov    %edx,0x40(%rsp)
  mov    %rsi,0x38(%rsp)
  mov    %rdi,0x30(%rsp)
  call   <get_current_val>
  mov    0x30(%rsp),%rdi
  mov    0x38(%rsp),%rsi
  add    %eax,%r13d
  mov    0x40(%rsp),%edx
  mov    0x44(%rsp),%r11d
  test   %rdi,%rdi
  mov    0x48(%rsp),%r9
  je     L194
  cmp    %rbx,%rdi
  jne    L217
L194:
  mov    %r12,%r8
  mov    0x2c(%rsp),%r12d
  mov    %rbp,%rcx
  mov    %r14,%r10
  add    $0x1,%r13d
L161:
  add    %r13d,%r12d
  cmp    (%rsp),%r15
  jne    L311
  mov    %r11d,%r14d
  mov    (%rsp),%rbx
  mov    0x8(%rsp),%r11
  mov    %r10,%rbp
  add    $0x1,%r12d
L173:
  add    %r12d,%r14d
  cmp    %r9,%rbp
  jne    L457
  mov    %r14d,%ebx
  mov    %r8,%r14
  add    $0x1,%ebx
L11:
  add    %ebx,%edx
  cmp    0x70(%rsp),%r14
  jne    L388
  mov    %edx,%r15d
  add    $0x1,%r15d
L387:
  add    %r15d,0x20(%rsp)
  cmp    0x68(%rsp),%rcx
  jne    L356
  mov    0x20(%rsp),%eax
  add    $0x1,%eax
L494:
  add    %eax,0x28(%rsp)
  mov    0x60(%rsp),%rdi
  cmp    %rdi,0x10(%rsp)
  jne    L426
  mov    0x28(%rsp),%eax
  mov    0x80(%rsp),%r10
  add    $0x1,%eax
L139:
  add    %eax,0x24(%rsp)
  cmp    0x58(%rsp),%r10
  jne    L322
  mov    0x24(%rsp),%eax
  mov    %r11,%r10
  add    $0x1,%eax
L245:
  add    %eax,0x1c(%rsp)
  cmp    0x88(%rsp),%r10
  jne    L189
  mov    0x1c(%rsp),%eax
  mov    %r10,%r11
  mov    0x78(%rsp),%r10
  add    $0x1,%eax
  add    %eax,0x18(%rsp)
  cmp    %r11,%r10
  jne    L287
L226:
  mov    0x18(%rsp),%eax
  add    $0x1,%eax
L302:
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L116:
  mov    %r11d,%r14d
  mov    (%rsp),%rbx
  mov    0x8(%rsp),%r11
  mov    %r10,%rbp
  add    $0x2,%r12d
  jmp    L173
L28:
  mov    $0x1,%r12d
  jmp    L173
L90:
  mov    %edx,%r15d
  add    $0x2,%r15d
  jmp    L387
L355:
  mov    $0x1,%ebx
  jmp    L11
L236:
  mov    $0x1,%r15d
  jmp    L387
L213:
  mov    0x20(%rsp),%eax
  add    $0x2,%eax
  jmp    L494
L309:
  mov    %r14d,%ebx
  mov    %r8,%r14
  add    $0x2,%ebx
  jmp    L11
  xchg   %ax,%ax
L65:
  mov    $0x1,%r13d
  jmp    L161
L172:
  mov    $0x1,%eax
  jmp    L494
L59:
  mov    0x28(%rsp),%eax
  mov    0x80(%rsp),%r10
  add    $0x2,%eax
  jmp    L139
L401:
  mov    $0x1,%eax
  jmp    L139
L331:
  mov    $0x1,%eax
  jmp    L245
L310:
  mov    0x1c(%rsp),%eax
  mov    %r10,%r11
  mov    0x78(%rsp),%r10
  add    $0x2,%eax
L87:
  add    %eax,0x18(%rsp)
  cmp    %r11,%r10
  je     L226
  mov    %r10,%rax
  sub    $0x1,%r10
  jne    L352
L476:
  mov    0x18(%rsp),%eax
  add    $0x2,%eax
  jmp    L302
  nopw   0x0(%rax,%rax,1)
L215:
  mov    0x24(%rsp),%eax
  mov    %r11,%r10
  add    $0x2,%eax
  jmp    L245
L147:
  mov    $0x1,%eax
  ret
L423:
  mov    $0x1,%eax
  jmp    L87
```

assistant: ```c
uint32_t get_current_val(uint8_t line, uint8_t index) {
  if (line == 0) {
    return 1;
  }
  if (index == 0 || index == line) {
    return 1;
  }
  return get_current_val(line - 1, index - 1) + get_current_val(line - 1, index);
}
```