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

```asm
<main>:
  endbr64
  push   %r15
  lea    D103(%rip),%rdi
  lea    D25(%rip),%r15
  push   %r14
  lea    D33(%rip),%r14
  push   %r13
  lea    D12(%rip),%r13
  push   %r12
  lea    D67(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D73(%rip),%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rcx
  lea    0x8(%rsp),%rdx
  lea    0x4(%rsp),%rsi
  lea    0x10(%rsp),%r8
  lea    0x14(%rsp),%rbp
  call   <scanf@plt>
  nopw   0x0(%rax,%rax,1)
L77:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  cmp    %eax,0x4(%rsp)
  jle    L72
  add    $0x1,%eax
  mov    %eax,0xc(%rsp)
  mov    0x10(%rsp),%eax
  cmp    %eax,0x8(%rsp)
  jle    L110
  add    $0x1,%eax
  mov    %r12,%rdi
  mov    %eax,0x10(%rsp)
  call   <printf@plt>
  jmp    L77
  nopl   0x0(%rax)
L72:
  mov    0x8(%rsp),%ecx
  mov    0x10(%rsp),%edx
  jge    L35
  sub    $0x1,%eax
  mov    %eax,0xc(%rsp)
  cmp    %ecx,%edx
  jl     L158
  jle    L6
  sub    $0x1,%edx
  mov    %r15,%rdi
  mov    %edx,0x10(%rsp)
  call   <printf@plt>
  jmp    L77
  nopl   0x0(%rax)
L110:
  jge    L120
  sub    $0x1,%eax
  mov    %r14,%rdi
  mov    %eax,0x10(%rsp)
  call   <printf@plt>
  jmp    L77
  cs nopw 0x0(%rax,%rax,1)
L35:
  cmp    %ecx,%edx
  jl     L89
  jle    L103
  sub    $0x1,%edx
  lea    D53(%rip),%rdi
  mov    %edx,0x10(%rsp)
  call   <printf@plt>
  jmp    L77
  xchg   %ax,%ax
L120:
  mov    %r13,%rdi
  call   <printf@plt>
  jmp    L77
  nopl   (%rax)
L6:
  lea    D87(%rip),%rdi
  call   <printf@plt>
  jmp    L77
  nopl   0x0(%rax)
L103:
  lea    D3(%rip),%rdi
  call   <printf@plt>
  jmp    L77
  nopl   0x0(%rax)
L158:
  add    $0x1,%edx
  lea    D97(%rip),%rdi
  mov    %edx,0x10(%rsp)
  call   <printf@plt>
  jmp    L77
  nopl   0x0(%rax,%rax,1)
L89:
  add    $0x1,%edx
  lea    D24(%rip),%rdi
  mov    %edx,0x10(%rsp)
  call   <printf@plt>
  jmp    L77
```

tool_calls: name: parse_data
arguments: label: D103
data_type: string
name: parse_data
arguments: label: D25
data_type: string
name: parse_data
arguments: label: D33
data_type: string
name: parse_data
arguments: label: D12
data_type: string
name: parse_data
arguments: label: D67
data_type: string
name: parse_data
arguments: label: D73
data_type: string
name: parse_data
arguments: label: D53
data_type: string
name: parse_data
arguments: label: D87
data_type: string
name: parse_data
arguments: label: D3
data_type: string
name: parse_data
arguments: label: D97
data_type: string
name: parse_data
arguments: label: D24
data_type: string

tool: D103: %d%d%d%d

tool: D25: NW


tool: D33: NE


tool: D12: E


tool: D67: SE


tool: D73: %d

tool: D53: N


tool: D87: W


tool: D3: ERROR


tool: D97: SW


tool: D24: S


assistant: ```c
int main() {
  int light_x;
  int light_y;
  int current_x;
  int current_y;
  scanf("%d%d%d%d", &light_x, &light_y, &current_x, &current_y);
  while (1) {
    int remainingTurns;
    scanf("%d", &remainingTurns);
    if (light_x > current_x) {
      current_x++;
      if (light_y > current_y) {
        current_y++;
        printf("SE\n");
      } else if (light_y < current_y) {
        current_y--;
        printf("NE\n");
      } else {
        printf("E\n");
      }
    } else if (light_x < current_x) {
      current_x--;
      if (light_y > current_y) {
        current_y++;
        printf("SW\n");
      } else if (light_y < current_y) {
        current_y--;
        printf("NW\n");
      } else {
        printf("W\n");
      }
    } else {
      if (light_y > current_y) {
        current_y++;
        printf("S\n");
      } else if (light_y < current_y) {
        current_y--;
        printf("N\n");
      } else {
        printf("ERROR\n");
      }
    }
  }
  return 0;
}
```