user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  lea    D34(%rip),%rbp
  push   %rbx
  lea    D36(%rip),%rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  movl   $0x1,0x54(%rsp)
  movabs $0x100000001,%rax
  mov    %rax,0x58(%rsp)
  lea    0x2c(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x28(%rsp),%rax
  movq   $0x1,0x60(%rsp)
  mov    %rax,0x10(%rsp)
  nopl   0x0(%rax)
L94:
  mov    0x10(%rsp),%rsi
  mov    0x18(%rsp),%rdx
  lea    D39(%rip),%rdi
  call   <scanf@plt>
  mov    0x28(%rsp),%eax
  mov    0x2c(%rsp),%esi
  cmp    %esi,%eax
  je     L81
  xor    %edx,%edx
  xor    %ecx,%ecx
  lea    0x30(%rsp),%rdi
  jmp    L5
  nopl   0x0(%rax)
L41:
  mov    0x50(%rsp,%rdx,1),%ecx
L5:
  mov    %ecx,(%rdi,%rdx,1)
  add    $0x4,%rdx
  cmp    $0x18,%rdx
  jne    L41
  mov    0x38(%rsp),%r12d
  mov    0x3c(%rsp),%r15d
  jmp    L6
  nopl   (%rax)
L73:
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  pxor   %xmm2,%xmm2
  cvtsi2sd %esi,%xmm1
  cvtsi2sd %eax,%xmm0
  cvtsi2sd %r15d,%xmm2
  divsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %r12d,%xmm1
  divsd  %xmm2,%xmm1
  comisd %xmm0,%xmm1
  ja     L65
  mov    0x40(%rsp),%r14d
  mov    0x44(%rsp),%r13d
L10:
  comisd %xmm1,%xmm0
  ja     L83
  mov    0x30(%rsp),%r12d
  mov    0x34(%rsp),%r15d
L61:
  add    %r14d,%r12d
  add    %r13d,%r15d
  mov    %r12d,0x38(%rsp)
  mov    %r15d,0x3c(%rsp)
L6:
  cmp    %eax,%r12d
  jne    L73
  cmp    %esi,%r15d
  jne    L73
  lea    D10(%rip),%rdi
  call   <puts@plt>
  jmp    L94
  nopl   (%rax)
L83:
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %r12d,0x30(%rsp)
  mov    0x28(%rsp),%eax
  mov    %r15d,0x34(%rsp)
  mov    0x2c(%rsp),%esi
  jmp    L61
  nopl   0x0(%rax)
L65:
  mov    %rbp,%rdi
  movsd  %xmm1,0x8(%rsp)
  mov    %r15d,%r13d
  mov    %r12d,%r14d
  call   <printf@plt>
  mov    0x28(%rsp),%eax
  mov    0x2c(%rsp),%esi
  pxor   %xmm0,%xmm0
  pxor   %xmm2,%xmm2
  mov    %r12d,0x40(%rsp)
  movsd  0x8(%rsp),%xmm1
  cvtsi2sd %eax,%xmm0
  mov    %r15d,0x44(%rsp)
  cvtsi2sd %esi,%xmm2
  divsd  %xmm2,%xmm0
  jmp    L10
L81:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L78
  add    $0x78,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L78:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D34
type_infered: string
name: parse_data
arguments: data_label: D36
type_infered: string
name: parse_data
arguments: data_label: D39
type_infered: string
name: parse_data
arguments: data_label: D10
type_infered: string

tool: D34: L

tool: D36: R

tool: D39: %d %d

tool: 

assistant: ```c
int main() {
  int m, n, i, arr[6], init[6] = {0, 1, 1, 1, 1, 0};
  while (1) {
    scanf("%d %d", &m, &n);
    if (!(m ^ n))
      return 0;
    for (i = 0; i < 6; ++i)
      arr[i] = init[i];
    while (1) {
      if (m == arr[2] && n == arr[3]) {
        puts("");
        break;
      }
      if ((double)m / n < (double)arr[2] / arr[3]) {
        printf("L");
        arr[4] = arr[2];
        arr[5] = arr[3];
      }
      if ((double)m / n > (double)arr[2] / arr[3]) {
        printf("R");
        arr[0] = arr[2];
        arr[1] = arr[3];
      }
      arr[2] = arr[0] + arr[4];
      arr[3] = arr[1] + arr[5];
    }
  }
}
```