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

```asm
<getAmount>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  lea    D44(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <InputHandler@plt>
  mov    %rax,%r13
  mov    %rax,%rdi
  call   <checkNullity@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  jle    L8
  mov    %r13,%rbp
  mov    $0x0,%ebx
  mov    $0x0,%r15d
  jmp    L143
L45:
  cmpb   $0x24,0x0(%r13)
  je     L87
  lea    D10(%rip),%rdi
  call   <printf@plt>
  mov    $0x4,%edi
  call   <exit@plt>
  jmp    L135
L97:
  add    $0x1,%r15d
  jmp    L87
L164:
  lea    D56(%rip),%rdi
  call   <printf@plt>
  mov    $0x5,%edi
  call   <exit@plt>
  jmp    L156
L8:
  movslq %r12d,%r12
  cmpb   $0x2e,-0x4(%r13,%r12,1)
  jne    L48
L150:
  mov    %r13,%rax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L48:
  lea    D64(%rip),%rdi
  call   <printf@plt>
  lea    D16(%rip),%rdi
  call   <printf@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    $0x6,%edi
  call   <exit@plt>
  jmp    L150
L105:
  movsbl (%r14),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L87
L121:
  lea    D64(%rip),%rdi
  call   <printf@plt>
  lea    D16(%rip),%rdi
  call   <printf@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    $0x6,%edi
  call   <exit@plt>
L87:
  add    $0x1,%ebx
  add    $0x1,%rbp
  cmp    %ebx,%r12d
  je     L8
L143:
  test   %ebx,%ebx
  je     L45
L135:
  mov    %rbp,%r14
  cmpb   $0x2e,0x0(%rbp)
  je     L97
  cmp    $0x1,%r15d
  ja     L164
L156:
  lea    -0x1(%r12),%eax
  cmp    %ebx,%eax
  jne    L105
  movzbl (%r14),%edi
  cmp    $0xa,%dil
  je     L87
  movsbl %dil,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L87
  cmpb   $0xa,(%r14)
  jne    L121
  jmp    L87
```

tool_calls: name: retrieve_data
arguments: label: D44
type_infered: string
name: retrieve_data
arguments: label: D10
type_infered: string
name: retrieve_data
arguments: label: D56
type_infered: string
name: retrieve_data
arguments: label: D64
type_infered: string
name: retrieve_data
arguments: label: D16
type_infered: string

tool: D44: Enter purchase amount: 

tool: D10: Invalid imput: Please start amount with $ 


tool: D56: Invalid imput: Please use no more than 1 "."


tool: D64: You have entered invalid input.


tool: D16: Please enter amount in format $120.00


assistant: ```c
char *getAmount(void) {
  printf("Enter purchase amount: ");
  char *amount = InputHandler();
  checkNullity(amount);
  int len = strlen(amount);
  unsigned int period = 0;
  for (int i = 0; i < len; i++) {
    if (i == 0 && amount[i] == '$') {
      continue;
    }
    if (i == 0 && amount[i] != '$') {
      printf("Invalid imput: Please start amount with $ \n");
      exit(4);
    }
    if (amount[i] == '.') {
      period++;
      continue;
    }
    if (period > 1) {
      printf("Invalid imput: Please use no more than 1 \".\"\n");
      exit(5);
    }
    if (i == len - 1 && amount[i] == '\n') {
      continue;
    }
    if (!isdigit(amount[i])) {
      if (!(i == len - 1 && amount[i] == '\n')) {
        printf("You have entered invalid input.\n");
        printf("Please enter amount in format $120.00\n");
        free(amount);
        exit(6);
      }
    }
  }
  if (amount[len - 4] != '.') {
    printf("You have entered invalid input.\n");
    printf("Please enter amount in format $120.00\n");
    free(amount);
    exit(6);
  }
  return amount;
}
```