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

```asm
<parsenum>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  movl   $0x1,-0x8(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x6b,%al
  jne    L16
  movl   $0x3e8,-0x8(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L97
L16:
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x6d,%al
  jne    L111
  movl   $0xf4240,-0x8(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L97
L111:
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x67,%al
  jne    L42
  movl   $0x3b9aca00,-0x8(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L97
L42:
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x4b,%al
  jne    L59
  movl   $0x400,-0x8(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L97
L59:
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x4d,%al
  jne    L104
  movl   $0x100000,-0x8(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L97
L104:
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x47,%al
  jne    L97
  movl   $0x40000000,-0x8(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L97:
  mov    -0x20(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  lea    D5(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  cmp    $0x1,%eax
  jne    L24
  mov    -0x20(%rbp),%rax
  mov    (%rax),%eax
  imul   -0x8(%rbp),%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,(%rax)
  mov    $0x1,%eax
  jmp    L29
L24:
  mov    $0x0,%eax
L29:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: tag: D5
datatype: string

tool: D5: %i

assistant: ```c
bool parsenum(char *str, int *out) {
  int len = strlen(str);
  int multiplier = 1;
  if (str[len - 1] == 'k') {
    multiplier = 1000;
    str[len - 1] = '\0';
  } else if (str[len - 1] == 'm') {
    multiplier = 1000 * 1000;
    str[len - 1] = '\0';
  } else if (str[len - 1] == 'g') {
    multiplier = 1000 * 1000 * 1000;
    str[len - 1] = '\0';
  } else if (str[len - 1] == 'K') {
    multiplier = 1024;
    str[len - 1] = '\0';
  } else if (str[len - 1] == 'M') {
    multiplier = 1024 * 1024;
    str[len - 1] = '\0';
  } else if (str[len - 1] == 'G') {
    multiplier = 1024 * 1024 * 1024;
    str[len - 1] = '\0';
  }
  if (sscanf(str, "%i", out) == 1) {
    *out = *out * multiplier;
    return true;
  } else {
    return false;
  }
}
```