user: Demonstrate the C code that generates the assembly output below:

```asm
<getAmount>:
  endbr64
  push   %r15
  lea    D50(%rip),%rdi
  xor    %r15d,%r15d
  push   %r14
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  call   <printf@plt>
  xor    %eax,%eax
  call   <InputHandler@plt>
  mov    %rax,%r12
  mov    %rax,%rdi
  call   <checkNullity@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  movslq %eax,%rbp
  mov    %rbp,%rbx
  test   %ebp,%ebp
  jg     L133
  jmp    L43
  nopl   (%rax)
L65:
  cmp    $0xa,%dil
  je     L122
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L122
  cmpb   $0xa,(%r12,%r15,1)
  je     L122
L18:
  lea    D49(%rip),%rdi
  call   <printf@plt>
  lea    D69(%rip),%rdi
  call   <printf@plt>
  mov    %r12,%rdi
  call   <free@plt>
  mov    $0x6,%edi
  call   <exit@plt>
L122:
  add    $0x1,%r15
  cmp    %r15,%rbp
  je     L43
L133:
  mov    %r15d,%r14d
  test   %r15,%r15
  je     L29
  cmpb   $0x2e,(%r12,%r15,1)
  je     L73
L85:
  cmp    $0x1,%r13d
  jbe    L126
  lea    D40(%rip),%rdi
  call   <printf@plt>
  mov    $0x5,%edi
  call   <exit@plt>
L126:
  lea    -0x1(%rbx),%eax
  movsbl (%r12,%r15,1),%edi
  cmp    %r14d,%eax
  je     L65
  call   <isdigit@plt>
  test   %eax,%eax
  je     L18
  add    $0x1,%r15
  cmp    %r15,%rbp
  jne    L133
  nop
L43:
  cmpb   $0x2e,-0x4(%r12,%rbp,1)
  je     L150
  lea    D49(%rip),%rdi
  call   <printf@plt>
  lea    D69(%rip),%rdi
  call   <printf@plt>
  mov    %r12,%rdi
  call   <free@plt>
  mov    $0x6,%edi
  call   <exit@plt>
L150:
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L29:
  cmpb   $0x24,(%r12)
  je     L122
  lea    D11(%rip),%rdi
  call   <printf@plt>
  mov    $0x4,%edi
  call   <exit@plt>
  cmpb   $0x2e,(%r12,%r15,1)
  jne    L85
L73:
  add    $0x1,%r13d
  jmp    L122
```

tool_calls: name: read_data
arguments: data_tag: D50
type_guessed: string
name: read_data
arguments: data_tag: D49
type_guessed: string
name: read_data
arguments: data_tag: D69
type_guessed: string
name: read_data
arguments: data_tag: D40
type_guessed: string
name: read_data
arguments: data_tag: D11
type_guessed: string

tool: D50: Enter purchase amount: 

tool: D49: You have entered invalid input.


tool: D69: Please enter amount in format $120.00


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


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


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