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

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x32,%ecx
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1e8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1d8(%rsp)
  xor    %eax,%eax
  lea    0x40(%rsp),%r13
  lea    0x3c(%rsp),%rdx
  mov    %r13,%rdi
  lea    0x38(%rsp),%rsi
  rep stos %rax,%es:(%rdi)
  lea    D25(%rip),%rdi
  call   <scanf@plt>
  mov    0x38(%rsp),%eax
  test   %eax,%eax
  jle    L82
  mov    %r13,%rbp
  xor    %ebx,%ebx
  lea    D36(%rip),%r12
L164:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <scanf@plt>
  mov    0x38(%rsp),%r10d
  add    $0x4,%rbp
  cmp    %ebx,%r10d
  jg     L164
  test   %r10d,%r10d
  jle    L82
  mov    0x3c(%rsp),%eax
  lea    -0x1(%r10),%ebp
  mov    $0x3,%ebx
  xor    %esi,%esi
  movl   $0x0,0x20(%rsp)
  mov    $0x1,%r14d
  mov    %eax,0x24(%rsp)
  lea    0x44(%rsp),%rax
  mov    %rax,0x10(%rsp)
  lea    0x2(%r10),%eax
  mov    %rax,0x28(%rsp)
L45:
  mov    0x10(%rsp),%rax
  mov    -0x4(%rax),%edi
  mov    (%rax),%ecx
  mov    0x20(%rsp),%eax
  cmp    %ecx,%edi
  cmovl  %r14d,%eax
  mov    %eax,0x20(%rsp)
  cmp    0x28(%rsp),%rbx
  je     L134
  mov    0x24(%rsp),%eax
  cltd
  idiv   %edi
  imul   %eax,%ecx
  mov    %eax,%r12d
  lea    -0x1(%rbx),%eax
  mov    %edx,0xc(%rsp)
  lea    (%rcx,%rdx,1),%r11d
  cmp    %r11d,%esi
  cmovl  %r11d,%esi
  cmp    %eax,%r10d
  jle    L27
  mov    %r10d,%eax
  lea    0x1(%rbx),%rdx
  sub    %ebx,%eax
  mov    %rdx,0x18(%rsp)
  add    %rdx,%rax
  mov    %rax,(%rsp)
  nopl   0x0(%rax)
L87:
  movslq %ebx,%rax
  mov    %ebx,%ecx
  lea    0x0(%r13,%rax,4),%r8
  cmp    %ebx,%r10d
  jle    L50
  nopl   0x0(%rax,%rax,1)
L41:
  mov    %r11d,%eax
  mov    %r10d,%r9d
  mov    %ebp,%edi
  cltd
  sub    %ecx,%r9d
  idivl  -0x4(%r8)
  cmp    %ecx,%r10d
  cmovle %r14d,%r9d
  sub    %ecx,%edi
  cmp    $0x2,%edi
  jbe    L130
  cmp    %ecx,%r10d
  jle    L130
  movd   %esi,%xmm6
  mov    %r9d,%esi
  movd   %eax,%xmm7
  shr    $0x2,%esi
  pshufd $0x0,%xmm7,%xmm3
  pshufd $0x0,%xmm6,%xmm2
  sub    $0x1,%esi
  movd   %edx,%xmm6
  movdqa %xmm3,%xmm4
  shl    $0x4,%rsi
  psrlq  $0x20,%xmm4
  pshufd $0x0,%xmm6,%xmm5
  lea    0x10(%r8,%rsi,1),%rdi
  mov    %r8,%rsi
  nopl   0x0(%rax)
L121:
  movdqu (%rsi),%xmm1
  movdqu (%rsi),%xmm0
  add    $0x10,%rsi
  psrlq  $0x20,%xmm1
  pmuludq %xmm3,%xmm0
  pmuludq %xmm4,%xmm1
  pshufd $0x8,%xmm0,%xmm0
  pshufd $0x8,%xmm1,%xmm1
  punpckldq %xmm1,%xmm0
  paddd  %xmm5,%xmm0
  movdqa %xmm0,%xmm1
  pcmpgtd %xmm2,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  movdqa %xmm1,%xmm2
  por    %xmm0,%xmm2
  cmp    %rdi,%rsi
  jne    L121
  movdqa %xmm2,%xmm1
  mov    %r9d,%r15d
  psrldq $0x8,%xmm1
  and    $0xfffffffc,%r15d
  movdqa %xmm1,%xmm0
  lea    (%r15,%rcx,1),%edi
  pcmpgtd %xmm2,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm2,%xmm0
  por    %xmm1,%xmm0
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm2
  pandn  %xmm0,%xmm1
  por    %xmm2,%xmm1
  movd   %xmm1,%esi
  cmp    %r15d,%r9d
  je     L17
L97:
  movslq %edi,%r9
  mov    0x40(%rsp,%r9,4),%r15d
  imul   %eax,%r15d
  mov    %r15d,%r9d
  add    %edx,%r9d
  cmp    %r9d,%esi
  cmovl  %r9d,%esi
  lea    0x1(%rdi),%r9d
  cmp    %r9d,%r10d
  jle    L17
  movslq %r9d,%r9
  mov    0x40(%rsp,%r9,4),%r15d
  imul   %eax,%r15d
  mov    %r15d,%r9d
  add    %edx,%r9d
  cmp    %r9d,%esi
  cmovl  %r9d,%esi
  add    $0x2,%edi
  cmp    %edi,%r10d
  jle    L17
  movslq %edi,%rdi
  imul   0x40(%rsp,%rdi,4),%eax
  add    %edx,%eax
  cmp    %eax,%esi
  cmovl  %eax,%esi
L17:
  add    $0x1,%ecx
  add    $0x4,%r8
  cmp    %ecx,%r10d
  jne    L41
L50:
  mov    -0x4(%r13,%rbx,4),%r11d
  imul   %r12d,%r11d
  add    0xc(%rsp),%r11d
  cmp    %r11d,%esi
  cmovl  %r11d,%esi
  add    $0x1,%rbx
  cmp    (%rsp),%rbx
  jne    L87
  addq   $0x4,0x10(%rsp)
  mov    0x18(%rsp),%rbx
  jmp    L45
L130:
  mov    %ecx,%edi
  jmp    L97
L27:
  lea    0x1(%rbx),%rax
  addq   $0x4,0x10(%rsp)
  mov    %rax,0x18(%rsp)
  mov    0x18(%rsp),%rbx
  jmp    L45
L134:
  cmpl   $0x1,0x20(%rsp)
  je     L158
L82:
  lea    D37(%rip),%rdi
  call   <puts@plt>
L18:
  mov    0x1d8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L120
  add    $0x1e8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L158:
  lea    D32(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L18
L120:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D25
type_guessed: string
name: read_data
arguments: data_tag: D36
type_guessed: string
name: read_data
arguments: data_tag: D37
type_guessed: string
name: read_data
arguments: data_tag: D32
type_guessed: string

tool: D25: %d %d

tool: D36: %d

tool: D37: Melhor nao investir agora, cara!

tool: D32: Capital final = R$%d


assistant: ```c
int main() {
  int nDias, nAcoes, cInicial, cAtual, cFinal, valor[100], resto, i, j, k, l, maior = 0, decres = 0;
  for (i = 0; i < 100; i++) {
    valor[i] = 0;
  }
  scanf("%d %d", &nDias, &cInicial);
  for (i = 0; i < nDias; i++)
    scanf("%d", &valor[i]);
  for (i = 0; i < nDias; i++) {
    if (valor[i] < valor[i + 1])
      decres = 1;
    for (j = i + 1; j < nDias; j++) {
      nAcoes = cInicial / valor[i];
      resto = cInicial % valor[i];
      cAtual = (nAcoes * valor[j]) + resto;
      if (cAtual > maior) {
        maior = cAtual;
      }
      for (k = j + 1; k < nDias; k++) {
        for (l = k + 1; l < nDias; l++) {
          cFinal = cAtual;
          nAcoes = cFinal / valor[k];
          resto = cFinal % valor[k];
          cFinal = (nAcoes * valor[l]) + resto;
          if (cFinal > maior) {
            maior = cFinal;
          }
        }
      }
    }
  }
  if (decres == 1)
    printf("Capital final = R$%d\n", maior);
  else
    printf("Melhor nao investir agora, cara!\n");
  return 0;
}
```