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

```asm
<rdangle>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  movsbl (%rdi),%esi
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  test   %sil,%sil
  je     L128
  mov    %rdi,%rbx
  mov    %edx,%r13d
  lea    D19(%rip),%rbp
  mov    %rcx,%r12
  jmp    L193
  nopl   0x0(%rax,%rax,1)
L147:
  movsbl 0x1(%rbx),%esi
  add    $0x1,%rbx
  test   %sil,%sil
  je     L128
L193:
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L147
  movzbl (%rbx),%eax
  test   %al,%al
  je     L128
  cmp    $0x68,%r13b
  jne    L136
  mov    $0x1,%r13d
  cmp    $0x2d,%al
  jne    L88
  add    $0x1,%rbx
  mov    $0xffffffff,%r13d
L88:
  lea    0xc(%rsp),%rcx
  lea    0x8(%rsp),%rdx
  mov    %rbx,%rdi
  xor    %eax,%eax
  lea    0x10(%rsp),%r8
  lea    D50(%rip),%rsi
  call   <sscanf@plt>
  movsd  0x10(%rsp),%xmm0
  pxor   %xmm2,%xmm2
  movsd  D23(%rip),%xmm1
  mov    %eax,%r14d
  mov    0xc(%rsp),%eax
  divsd  %xmm1,%xmm0
  cvtsi2sd %rax,%xmm2
  mov    0x8(%rsp),%eax
  addsd  %xmm2,%xmm0
  divsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %rax,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %r13d,%xmm1
  xor    %r13d,%r13d
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%r12)
  lea    D45(%rip),%r12
  test   %r14d,%r14d
  jle    L239
  nopl   0x0(%rax)
L226:
  movsbl (%rbx),%esi
  test   %sil,%sil
  jne    L195
  jmp    L239
  nopw   0x0(%rax,%rax,1)
L73:
  movsbl 0x1(%rbx),%esi
  add    $0x1,%rbx
  test   %sil,%sil
  je     L130
L195:
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L73
  movsbl (%rbx),%esi
  test   %sil,%sil
  jne    L160
  jmp    L130
  nopl   0x0(%rax)
L228:
  movsbl 0x1(%rbx),%esi
  add    $0x1,%rbx
  test   %sil,%sil
  je     L130
L160:
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L228
L130:
  add    $0x1,%r13d
  cmp    %r13d,%r14d
  jne    L226
L239:
  xor    %r12d,%r12d
  cmp    $0x3,%r14d
  sete   %r12b
L145:
  mov    %rbx,(%r15)
L14:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L192
  add    $0x28,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L136:
  mov    %r12,%rdx
  lea    D36(%rip),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <sscanf@plt>
  movsbl (%rbx),%esi
  lea    D45(%rip),%rbp
  mov    %eax,%r12d
  test   %sil,%sil
  jne    L74
  jmp    L145
  nopl   0x0(%rax,%rax,1)
L23:
  movsbl 0x1(%rbx),%esi
  add    $0x1,%rbx
  test   %sil,%sil
  je     L145
L74:
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L23
  jmp    L145
  nopl   0x0(%rax)
L128:
  xor    %r12d,%r12d
  jmp    L14
L192:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D19
type_infered: string
name: disassemble_data
arguments: label: D50
type_infered: string
name: disassemble_data
arguments: label: D23
type_infered: f64
name: disassemble_data
arguments: label: D45
type_infered: string
name: disassemble_data
arguments: label: D36
type_infered: string

tool: D19:  	


tool: D50: %d %d %lf

tool: D23: 60

tool: D45: +-.0123456789eE

tool: D36: %lf

assistant: ```c
int rdangle(char *word, char **next, char unit, double *angle) {
  const char *blank = " \t\n";
  const char *number = "+-.0123456789eE";
  int i, ird, sgn;
  unsigned int deg, min;
  double sec;
  char *ch;
  ch = word;
  while (*ch && strchr(blank, *ch))
    ch++;
  if (!*ch)
    return (0);
  if (unit == 'h') {
    sgn = 1;
    if (*ch == '-') {
      sgn = -1;
      ch++;
    }
    ird = sscanf(ch, "%d %d %lf", &deg, &min, &sec);
    *angle = sgn * ((sec / 60. + min) / 60. + deg);
    for (i = 0; i < ird; i++) {
      while (*ch && strchr(blank, *ch))
        ch++;
      while (*ch && strchr(number, *ch))
        ch++;
    }
    if (ird == 3) {
      ird = 1;
    } else {
      ird = 0;
    }
  } else {
    ird = sscanf(ch, "%lf", angle);
    while (*ch && strchr(number, *ch))
      ch++;
  }
  *next = ch;
  return (ird);
}
```