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

```asm
<latlon2ul>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x28,%rsp
  mov    (%rdi),%rbp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,0x10(%rsp)
  jmp    L150
  nopl   0x0(%rax,%rax,1)
L280:
  movsbl -0x1(%r12),%eax
  lea    (%rbx,%rbx,4),%edx
  mov    %r12,%rbp
  lea    -0x30(%rax,%rdx,2),%ebx
L150:
  movzbl 0x0(%rbp),%edi
  lea    0x1(%rbp),%r12
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L280
  jmp    L294
  nopl   0x0(%rax)
L92:
  add    $0x1,%r12
L294:
  movzbl 0x0(%rbp),%edi
  mov    %rbp,%r14
  mov    %r12,%rbp
  call   <isspace@plt>
  test   %rax,%rax
  jne    L92
  movzbl (%r14),%edi
  xor    %ebp,%ebp
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L63
  jmp    L3
  nopl   (%rax)
L144:
  movsbl -0x1(%r12),%eax
  lea    0x0(%rbp,%rbp,4),%edx
  mov    %r12,%r14
  lea    -0x30(%rax,%rdx,2),%ebp
L63:
  movzbl (%r14),%edi
  lea    0x1(%r14),%r12
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L144
  jmp    L275
  nopl   (%rax)
L195:
  add    $0x1,%r12
L275:
  movzbl (%r14),%edi
  mov    %r14,%r15
  mov    %r12,%r14
  call   <isspace@plt>
  test   %rax,%rax
  jne    L195
  movzbl (%r15),%edi
  xor    %r12d,%r12d
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L356
  movl   $0x0,0x1c(%rsp)
  mov    %r15,%r14
  xor    %r12d,%r12d
L357:
  movzbl (%r14),%eax
  lea    -0x45(%rax),%ecx
  cmp    $0x32,%cl
  ja     L18
L100:
  movabs $0x4400000044000,%rsi
  mov    $0x1,%eax
  shl    %cl,%rax
  test   %rsi,%rax
  jne    L125
  movabs $0x20100000201,%rsi
  xor    %r15d,%r15d
  test   %rsi,%rax
  jne    L295
L313:
  mov    $0x1,%eax
  shl    %cl,%rax
  movabs $0x420000004200,%rcx
  test   %rcx,%rax
  jne    L4
  movabs $0x4000100040001,%rcx
  test   %rcx,%rax
  setne  %al
  movzbl %al,%eax
  add    %eax,%eax
L260:
  mov    0x10(%rsp),%rsi
  add    $0x1,%r14
  mov    %eax,(%rsi)
  jmp    L99
  nopl   0x0(%rax)
L351:
  add    $0x1,%r14
L99:
  movzbl (%r14),%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L351
  movzbl (%r14),%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L209
  nopl   0x0(%rax,%rax,1)
L202:
  movzbl 0x1(%r14),%edi
  add    $0x1,%r14
  call   <isspace@plt>
  test   %rax,%rax
  jne    L202
L209:
  mov    0x8(%rsp),%rax
  mov    %r14,(%rax)
  add    $0x28,%rsp
  mov    %r15d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L47:
  movsbl -0x1(%r14),%eax
  lea    (%r12,%r12,4),%ecx
  mov    %r14,%r15
  lea    -0x30(%rax,%rcx,2),%r12d
L356:
  movzbl (%r15),%edi
  lea    0x1(%r15),%r14
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L47
  cmpb   $0x2e,(%r15)
  movl   $0x0,0x1c(%rsp)
  jne    L245
  jmp    L41
  cs nopw 0x0(%rax,%rax,1)
L326:
  add    $0x1,%r14
L245:
  movzbl (%r15),%edi
  mov    %r15,%r13
  mov    %r14,%r15
  call   <isspace@plt>
  test   %rax,%rax
  je     L326
  nopl   0x0(%rax,%rax,1)
L352:
  movzbl 0x0(%r13),%edi
  mov    %r13,%r14
  add    $0x1,%r13
  call   <isspace@plt>
  test   %rax,%rax
  jne    L352
  jmp    L357
  nopl   0x0(%rax,%rax,1)
L3:
  movzbl (%r14),%eax
  movl   $0x0,0x1c(%rsp)
  xor    %r12d,%r12d
  xor    %ebp,%ebp
  lea    -0x45(%rax),%ecx
  cmp    $0x32,%cl
  jbe    L100
L18:
  xor    %r15d,%r15d
  xor    %eax,%eax
  jmp    L260
L295:
  imul   $0x3c,%ebx,%eax
  mov    0x1c(%rsp),%esi
  add    %ebp,%eax
  imul   $0x3c,%eax,%eax
  add    %r12d,%eax
  imul   $0x3e8,%eax,%eax
  lea    -0x80000000(%rsi,%rax,1),%r15d
  jmp    L313
L125:
  imul   $0x3c,%ebx,%eax
  add    %ebp,%eax
  imul   $0x3c,%eax,%eax
  add    %r12d,%eax
  imul   $0xfffffc18,%eax,%eax
  add    $0x80000000,%eax
  sub    0x1c(%rsp),%eax
  mov    %eax,%r15d
  jmp    L313
L41:
  movzbl 0x1(%r15),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L256
  mov    %r14,%r15
  lea    0x1(%r14),%r14
  jmp    L245
L4:
  mov    $0x1,%eax
  jmp    L260
L256:
  movsbl 0x1(%r15),%eax
  movzbl 0x2(%r15),%edi
  sub    $0x30,%eax
  imul   $0x64,%eax,%eax
  mov    %eax,0x1c(%rsp)
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L105
  add    $0x2,%r15
  lea    0x1(%r15),%r14
  jmp    L245
L105:
  movsbl 0x2(%r15),%eax
  mov    0x1c(%rsp),%esi
  movzbl 0x3(%r15),%edi
  lea    -0xf0(%rax,%rax,4),%eax
  lea    (%rsi,%rax,2),%eax
  mov    %eax,0x1c(%rsp)
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L210
  add    $0x3,%r15
  lea    0x1(%r15),%r14
  jmp    L245
L210:
  movsbl 0x3(%r15),%eax
  mov    0x1c(%rsp),%esi
  add    $0x4,%r15
  lea    0x1(%r15),%r14
  lea    -0x30(%rsi,%rax,1),%eax
  mov    %eax,0x1c(%rsp)
  jmp    L245
```

assistant: ```c
u_int32_t latlon2ul(char **latlonstrptr, int *which) {
  char *cp;
  u_int32_t retval;
  int deg = 0, min = 0, secs = 0, secsfrac = 0;
  cp = *latlonstrptr;
  while (isdigit((unsigned char)*cp))
    deg = deg * 10 + (*cp++ - '0');
  while (isspace((unsigned char)*cp))
    cp++;
  if (!(isdigit((unsigned char)*cp)))
    goto fndhemi;
  while (isdigit((unsigned char)*cp))
    min = min * 10 + (*cp++ - '0');
  while (isspace((unsigned char)*cp))
    cp++;
  if (!(isdigit((unsigned char)*cp)))
    goto fndhemi;
  while (isdigit((unsigned char)*cp))
    secs = secs * 10 + (*cp++ - '0');
  if (*cp == '.') {
    cp++;
    if (isdigit((unsigned char)*cp)) {
      secsfrac = (*cp++ - '0') * 100;
      if (isdigit((unsigned char)*cp)) {
        secsfrac += (*cp++ - '0') * 10;
        if (isdigit((unsigned char)*cp)) {
          secsfrac += (*cp++ - '0');
        }
      }
    }
  }
  while (!isspace((unsigned char)*cp))
    cp++;
  while (isspace((unsigned char)*cp))
    cp++;
fndhemi:
  switch (*cp) {
  case 'N':
  case 'n':
  case 'E':
  case 'e':
    retval = ((u_int32_t)1 << 31) + (((((deg * 60) + min) * 60) + secs) * 1000) + secsfrac;
    break;
  case 'S':
  case 's':
  case 'W':
  case 'w':
    retval = ((u_int32_t)1 << 31) - (((((deg * 60) + min) * 60) + secs) * 1000) - secsfrac;
    break;
  default:
    retval = 0;
    break;
  }
  switch (*cp) {
  case 'N':
  case 'n':
  case 'S':
  case 's':
    *which = 1;
    break;
  case 'E':
  case 'e':
  case 'W':
  case 'w':
    *which = 2;
    break;
  default:
    *which = 0;
    break;
  }
  cp++;
  while (!isspace((unsigned char)*cp))
    cp++;
  while (isspace((unsigned char)*cp))
    cp++;
  *latlonstrptr = cp;
  return (retval);
}
```