user: What would the C source look like for the assembly code provided here?

```asm
<get_current_val>:
  endbr64
  test   %rdi,%rdi
  je     L143
  test   %rsi,%rsi
  je     L143
  cmp    %rsi,%rdi
  je     L143
  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)
L168:
  mov    %r10,%rax
  sub    $0x1,%r10
  je     L414
L242:
  cmp    %rax,%r11
  je     L503
  cmp    $0x1,%r11
  je     L503
  lea    -0x2(%r11),%rax
  movl   $0x0,0x1c(%rsp)
  mov    %rax,0x58(%rsp)
  mov    %r10,0x50(%rsp)
  mov    %r10,0x78(%rsp)
  mov    %r11,%r10
L7:
  mov    0x50(%rsp),%r11
  mov    %r11,0x88(%rsp)
  sub    $0x1,%r11
  mov    %r11,0x50(%rsp)
  je     L433
  mov    0x58(%rsp),%rax
  cmp    %rax,%r11
  je     L466
  test   %rax,%rax
  je     L466
  lea    -0x3(%r10),%rax
  movl   $0x0,0x24(%rsp)
  mov    %rax,0x60(%rsp)
  mov    %r10,%rax
  mov    %r11,%r10
  mov    %rax,%r11
L87:
  sub    $0x1,%r10
  je     L209
  mov    0x60(%rsp),%rax
  cmp    %rax,%r10
  je     L491
  test   %rax,%rax
  je     L491
  lea    -0x4(%r11),%rax
  mov    %r10,0x10(%rsp)
  mov    %rax,0x68(%rsp)
  movl   $0x0,0x28(%rsp)
  mov    %r10,0x80(%rsp)
L252:
  subq   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%rcx
  je     L98
  mov    0x68(%rsp),%rax
  test   %rax,%rax
  je     L356
  cmp    %rax,%rcx
  je     L356
  lea    -0x5(%r11),%rax
  movl   $0x0,0x20(%rsp)
  mov    %rax,0x70(%rsp)
L144:
  sub    $0x1,%rcx
  je     L36
  mov    0x70(%rsp),%rax
  test   %rax,%rax
  je     L524
  cmp    %rax,%rcx
  je     L524
  lea    -0x6(%r11),%r9
  mov    %rcx,%r14
  xor    %edx,%edx
L155:
  sub    $0x1,%r14
  je     L281
  test   %r9,%r9
  je     L107
  cmp    %r9,%r14
  je     L107
  lea    -0x7(%r11),%r8
  xor    %ebx,%ebx
  mov    %r14,%rbp
  mov    %r8,%rax
  mov    %r14,%r8
  mov    %ebx,%r14d
  mov    %rax,%rbx
L539:
  sub    $0x1,%rbp
  je     L345
  test   %rbx,%rbx
  je     L162
  cmp    %rbx,%rbp
  je     L162
  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
L352:
  sub    $0x1,%r15
  je     L391
  test   %rbx,%rbx
  je     L152
  cmp    %rbx,%r15
  je     L152
  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
L55:
  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     L148
  cmp    %rbx,%rdi
  jne    L55
L148:
  mov    %r12,%r8
  mov    0x2c(%rsp),%r12d
  mov    %rbp,%rcx
  mov    %r14,%r10
  add    $0x1,%r13d
L179:
  add    %r13d,%r12d
  cmp    (%rsp),%r15
  jne    L352
  mov    %r11d,%r14d
  mov    (%rsp),%rbx
  mov    0x8(%rsp),%r11
  mov    %r10,%rbp
  add    $0x1,%r12d
L153:
  add    %r12d,%r14d
  cmp    %r9,%rbp
  jne    L539
  mov    %r14d,%ebx
  mov    %r8,%r14
  add    $0x1,%ebx
L232:
  add    %ebx,%edx
  cmp    0x70(%rsp),%r14
  jne    L155
  mov    %edx,%r15d
  add    $0x1,%r15d
L89:
  add    %r15d,0x20(%rsp)
  cmp    0x68(%rsp),%rcx
  jne    L144
  mov    0x20(%rsp),%eax
  add    $0x1,%eax
L392:
  add    %eax,0x28(%rsp)
  mov    0x60(%rsp),%rdi
  cmp    %rdi,0x10(%rsp)
  jne    L252
  mov    0x28(%rsp),%eax
  mov    0x80(%rsp),%r10
  add    $0x1,%eax
L453:
  add    %eax,0x24(%rsp)
  cmp    0x58(%rsp),%r10
  jne    L87
  mov    0x24(%rsp),%eax
  mov    %r11,%r10
  add    $0x1,%eax
L104:
  add    %eax,0x1c(%rsp)
  cmp    0x88(%rsp),%r10
  jne    L7
  mov    0x1c(%rsp),%eax
  mov    %r10,%r11
  mov    0x78(%rsp),%r10
  add    $0x1,%eax
  add    %eax,0x18(%rsp)
  cmp    %r11,%r10
  jne    L168
L344:
  mov    0x18(%rsp),%eax
  add    $0x1,%eax
L14:
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L391:
  mov    %r11d,%r14d
  mov    (%rsp),%rbx
  mov    0x8(%rsp),%r11
  mov    %r10,%rbp
  add    $0x2,%r12d
  jmp    L153
L162:
  mov    $0x1,%r12d
  jmp    L153
L281:
  mov    %edx,%r15d
  add    $0x2,%r15d
  jmp    L89
L107:
  mov    $0x1,%ebx
  jmp    L232
L524:
  mov    $0x1,%r15d
  jmp    L89
L36:
  mov    0x20(%rsp),%eax
  add    $0x2,%eax
  jmp    L392
L345:
  mov    %r14d,%ebx
  mov    %r8,%r14
  add    $0x2,%ebx
  jmp    L232
  xchg   %ax,%ax
L152:
  mov    $0x1,%r13d
  jmp    L179
L356:
  mov    $0x1,%eax
  jmp    L392
L98:
  mov    0x28(%rsp),%eax
  mov    0x80(%rsp),%r10
  add    $0x2,%eax
  jmp    L453
L491:
  mov    $0x1,%eax
  jmp    L453
L466:
  mov    $0x1,%eax
  jmp    L104
L433:
  mov    0x1c(%rsp),%eax
  mov    %r10,%r11
  mov    0x78(%rsp),%r10
  add    $0x2,%eax
L519:
  add    %eax,0x18(%rsp)
  cmp    %r11,%r10
  je     L344
  mov    %r10,%rax
  sub    $0x1,%r10
  jne    L242
L414:
  mov    0x18(%rsp),%eax
  add    $0x2,%eax
  jmp    L14
  nopw   0x0(%rax,%rax,1)
L209:
  mov    0x24(%rsp),%eax
  mov    %r11,%r10
  add    $0x2,%eax
  jmp    L104
L143:
  mov    $0x1,%eax
  ret
L503:
  mov    $0x1,%eax
  jmp    L519
```

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);
}
```