user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  lea    D31(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D69(%rip),%rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x18(%rsp),%rbp
L137:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x18(%rsp),%eax
  sub    $0x2,%eax
  cmp    $0x61,%eax
  ja     L93
L57:
  lea    0x1c(%rsp),%rbp
  lea    D31(%rip),%r12
L100:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x1c(%rsp),%eax
  sub    $0x5,%eax
  cmp    $0x2d,%eax
  ja     L7
L115:
  mov    0x18(%rsp),%eax
  xor    %r15d,%r15d
  movl   $0x0,0xc(%rsp)
  movl   $0x0,0x8(%rsp)
  test   %eax,%eax
  movl   $0x0,0x4(%rsp)
  jle    L150
  xor    %ebx,%ebx
  lea    0x24(%rsp),%r14
  lea    0x20(%rsp),%r13
  lea    0x17(%rsp),%r12
  lea    D55(%rip),%rbp
  jmp    L197
  nopl   0x0(%rax)
L194:
  cmp    $0x48,%al
  je     L76
L46:
  add    $0x1,%ebx
  cmp    %ebx,0x18(%rsp)
  jle    L150
L197:
  mov    %r14,%rcx
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movzbl 0x17(%rsp),%eax
  cmp    $0x53,%al
  je     L101
  cmp    $0x54,%al
  jne    L194
  mov    0x1c(%rsp),%esi
  mov    0x20(%rsp),%edi
  call   <jeTrokut@plt>
  cmp    $0x1,%eax
  je     L153
L68:
  test   %eax,%eax
  jne    L46
  add    0x24(%rsp),%r15d
  add    $0x1,%ebx
  cmp    %ebx,0x18(%rsp)
  jg     L197
  nopl   (%rax)
L150:
  lea    D29(%rip),%rdi
  pxor   %xmm0,%xmm0
  mov    $0x1,%eax
  cvtsi2sd %r15d,%xmm0
  divsd  D67(%rip),%xmm0
  call   <printf@plt>
  mov    0x8(%rsp),%ecx
  mov    0xc(%rsp),%edx
  xor    %eax,%eax
  mov    0x4(%rsp),%esi
  lea    D40(%rip),%rdi
  call   <printf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L118
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L7:
  mov    %r12,%rdi
  call   <puts@plt>
  mov    0x1c(%rsp),%eax
  sub    $0x5,%eax
  cmp    $0x2d,%eax
  ja     L100
  jmp    L115
  nopl   (%rax)
L93:
  mov    %r12,%rdi
  call   <puts@plt>
  mov    0x18(%rsp),%eax
  sub    $0x2,%eax
  cmp    $0x61,%eax
  ja     L137
  jmp    L57
  nopl   (%rax)
L101:
  mov    0x1c(%rsp),%esi
  mov    0x20(%rsp),%edi
  call   <jeSlapica@plt>
  cmp    $0x1,%eax
  jne    L68
  addl   $0x1,0xc(%rsp)
  jmp    L46
  nopl   0x0(%rax,%rax,1)
L76:
  mov    0x1c(%rsp),%esi
  mov    0x20(%rsp),%edi
  call   <jeHambi@plt>
  cmp    $0x1,%eax
  jne    L68
  addl   $0x1,0x4(%rsp)
  jmp    L46
L153:
  addl   $0x1,0x8(%rsp)
  jmp    L46
L118:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D31
type: string
name: retrieve_data
arguments: label: D69
type: string
name: retrieve_data
arguments: label: D55
type: string
name: retrieve_data
arguments: label: D29
type: string
name: retrieve_data
arguments: label: D67
type: f64
name: retrieve_data
arguments: label: D40
type: string

tool: D31: Nepravilan unos!

tool: D69: %d

tool: D55:  %c %d%d

tool: D29: Poklonit ce %.2f kg peciva.


tool: D67: 1000

tool: D40: U automatu ce biti %d hambi peciva, %d slapica i %d sir-trokuta.

assistant: ```c
int main() {
  int i, brPeciva, promjerRupe, opseg, tezina, prolazi, H_br = 0, T_br = 0, S_br = 0, poklon = 0;
  char vrstaPeciva;
  do {
    scanf("%d", &brPeciva);
    if (brPeciva <= 1 || brPeciva >= 100)
      printf("Nepravilan unos!\n");
  } while (brPeciva <= 1 || brPeciva >= 100);
  do {
    scanf("%d", &promjerRupe);
    if (promjerRupe < 5 || promjerRupe > 50)
      printf("Nepravilan unos!\n");
  } while (promjerRupe < 5 || promjerRupe > 50);
  for (i = 0; i < brPeciva; i++) {
    scanf(" %c %d%d", &vrstaPeciva, &opseg, &tezina);
    switch (vrstaPeciva) {
    case 'H':
      prolazi = jeHambi(opseg, promjerRupe);
      if (prolazi == 1)
        H_br++;
      else if (prolazi == 0)
        poklon += tezina;
      break;
    case 'T':
      prolazi = jeTrokut(opseg, promjerRupe);
      if (prolazi == 1)
        T_br++;
      else if (prolazi == 0)
        poklon += tezina;
      break;
    case 'S':
      prolazi = jeSlapica(opseg, promjerRupe);
      if (prolazi == 1)
        S_br++;
      else if (prolazi == 0)
        poklon += tezina;
      break;
    default:
      break;
    }
  }
  printf("Poklonit ce %.2f kg peciva.\n", poklon / 1000.00);
  printf("U automatu ce biti %d hambi peciva, %d slapica i %d sir-trokuta.", H_br, S_br, T_br);
  return 0;
}
```