user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x300,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x2e0(%rbp),%rax
  lea    D4(%rip),%rdx
  mov    $0x59,%ecx
  mov    %rax,%rdi
  mov    %rdx,%rsi
  rep movsq %ds:(%rsi),%es:(%rdi)
  mov    %rsi,%rdx
  mov    %rdi,%rax
  movzbl (%rdx),%ecx
  mov    %cl,(%rax)
  movl   $0x0,-0x2fc(%rbp)
  movl   $0x0,-0x2f0(%rbp)
  movl   $0x0,-0x2ec(%rbp)
  movl   $0x0,-0x2e8(%rbp)
  movl   $0x0,-0x2e4(%rbp)
  movl   $0x0,-0x2f8(%rbp)
L83:
  mov    -0x2f8(%rbp),%eax
  cltq
  movzbl -0x2e0(%rbp,%rax,1),%eax
  cmp    $0x4c,%al
  je     L36
  mov    -0x2f8(%rbp),%eax
  cltq
  movzbl -0x2e0(%rbp,%rax,1),%eax
  cmp    $0x52,%al
  je     L36
  mov    -0x2f8(%rbp),%eax
  cltq
  movzbl -0x2e0(%rbp,%rax,1),%eax
  test   %al,%al
  je     L36
  addl   $0x1,-0x2f8(%rbp)
  jmp    L11
L36:
  mov    -0x2f8(%rbp),%eax
  cltq
  movzbl -0x2e0(%rbp,%rax,1),%eax
  cmp    $0x52,%al
  jne    L0
  addl   $0x1,-0x2fc(%rbp)
  jmp    L90
L0:
  addl   $0x3,-0x2fc(%rbp)
L90:
  mov    -0x2fc(%rbp),%eax
  cltd
  shr    $0x1e,%edx
  add    %edx,%eax
  and    $0x3,%eax
  sub    %edx,%eax
  mov    %eax,-0x2fc(%rbp)
  addl   $0x1,-0x2f8(%rbp)
  movl   $0x0,-0x2f4(%rbp)
  jmp    L75
L44:
  mov    -0x2f4(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x2f8(%rbp),%eax
  cltq
  movzbl -0x2e0(%rbp,%rax,1),%eax
  movsbl %al,%eax
  add    %edx,%eax
  sub    $0x30,%eax
  mov    %eax,-0x2f4(%rbp)
  addl   $0x1,-0x2f8(%rbp)
L75:
  mov    -0x2f8(%rbp),%eax
  cltq
  movzbl -0x2e0(%rbp,%rax,1),%eax
  cmp    $0x2f,%al
  jle    L57
  mov    -0x2f8(%rbp),%eax
  cltq
  movzbl -0x2e0(%rbp,%rax,1),%eax
  cmp    $0x39,%al
  jle    L44
L57:
  mov    -0x2fc(%rbp),%eax
  cltq
  mov    -0x2f0(%rbp,%rax,4),%edx
  mov    -0x2f4(%rbp),%eax
  add    %eax,%edx
  mov    -0x2fc(%rbp),%eax
  cltq
  mov    %edx,-0x2f0(%rbp,%rax,4)
L11:
  lea    -0x2e0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x2f8(%rbp)
  jl     L83
  mov    -0x2f0(%rbp),%eax
  mov    -0x2e8(%rbp),%edx
  sub    %edx,%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,%ecx
  mov    -0x2ec(%rbp),%eax
  mov    -0x2e4(%rbp),%edx
  sub    %edx,%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  add    %ecx,%eax
  mov    %eax,%esi
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L54
  call   <__stack_chk_fail@plt>
L54:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D4
type_infered: string
name: extract_symbolic_data
arguments: label: D15
type_infered: string

tool: D4: R3, L5, R2, L1, L2, R5, L2, R2, L2, L2, L1, R2, L2, R4, R4, R1, L2, L3, R3, L1, R2, L2, L4, R4, R5, L3, R3, L3, L3, R4, R5, L3, R3, L5, L1, L2, R2, L1, R3, R1, L1, R187, L1, R2, R47, L5, L1, L2, R4, R3, L3, R3, R4, R1, R3, L1, L4, L1, R2, L1, R4, R5, L1, R77, L5, L4, R3, L2, R4, R5, R5, L2, L2, R2, R5, L2, R194, R5, L2, R4, L5, L4, L2, R5, L3, L2, L5, R5, R2, L3, R3, R1, L4, R2, L1, R5, L1, R5, L1, L1, R3, L1, R5, R2, R5, R5, L4, L5, L5, L5, R3, L2, L5, L4, R3, R1, R1, R4, L2, L4, R5, R5, R4, L2, L2, R5, R5, L5, L2, R4, R4, L4, R1, L3, R1, L1, L1, L1, L4, R5, R4, L4, L4, R5, R3, L2, L2, R3, R1, R4, L3, R1, L4, R3, L3, L2, R2, R2, R2, L1, L4, R3, R2, R2, L3, R2, L3, L2, R4, L2, R3, L4, R5, R4, R1, R5, R3

tool: D15: %d

assistant: ```c
void main() {
  char plan[] = "R3, L5, R2, L1, L2, R5, L2, R2, L2, L2, L1, R2, L2, R4, R4, R1, L2, L3, R3, L1, R2, L2, L4, R4, R5, L3, R3, L3, L3, R4, R5, L3, R3, L5, L1, L2, R2, L1, R3, R1, L1, R187, L1, R2, R47, L5, L1, L2, R4, R3, L3, R3, R4, R1, R3, L1, L4, L1, R2, L1, R4, R5, L1, R77, L5, L4, R3, L2, R4, R5, R5, L2, L2, R2, R5, L2, R194, R5, L2, R4, L5, L4, L2, R5, L3, L2, L5, R5, R2, L3, R3, R1, L4, R2, L1, R5, L1, R5, L1, L1, R3, L1, R5, R2, R5, R5, L4, L5, L5, L5, R3, L2, L5, L4, R3, R1, R1, R4, L2, L4, R5, R5, R4, L2, L2, R5, R5, L5, L2, R4, R4, L4, R1, L3, R1, L1, L1, L1, L4, R5, R4, L4, L4, R5, R3, L2, L2, R3, R1, R4, L3, R1, L4, R3, L3, L2, R2, R2, R2, L1, L4, R3, R2, R2, L3, R2, L3, L2, R4, L2, R3, L4, R5, R4, R1, R5, R3";
  int azimuth = 0;
  int distances[4] = {0, 0, 0, 0};
  int i = 0;
  do {
    if (plan[i] != 'L' && plan[i] != 'R' && plan[i] != '\0') {
      i++;
      continue;
    }
    if (plan[i] == 'R') {
      azimuth += 1;
    } else {
      azimuth += 3;
    }
    azimuth = azimuth % 4;
    i++;
    int distance = 0;
    while (plan[i] >= '0' && plan[i] <= '9') {
      distance = distance * 10 + plan[i] - '0';
      i++;
    }
    distances[azimuth] += distance;
  } while (i < strlen(plan));
  printf("%d", abs(distances[0] - distances[2]) + abs(distances[1] - distances[3]));
}
```