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

```asm
<translateRules>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %edx,-0x84(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0x90(%rbp)
  movl   $0x2,-0x54(%rbp)
  mov    -0x54(%rbp),%eax
  lea    0x1(%rax),%esi
  mov    -0x84(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x50(%rbp)
  movslq %esi,%rax
  mov    %rax,%rcx
  mov    $0x0,%ebx
  imul   $0xc0,%rbx,%rdx
  imul   $0x0,%rcx,%rax
  add    %rdx,%rax
  mov    %rax,-0x98(%rbp)
  mov    $0xc0,%eax
  mul    %rcx
  mov    -0x98(%rbp),%rbx
  lea    (%rbx,%rdx,1),%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rcx
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  movslq %esi,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %edi,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    %r15,%rdx
  imul   %r12,%rdx
  mov    %r13,%rax
  imul   %r14,%rax
  lea    (%rdx,%rax,1),%rbx
  mov    %r14,%rax
  mul    %r12
  add    %rdx,%rbx
  mov    %rbx,%rdx
  imul   $0xc0,%rdx,%r12
  imul   $0x0,%rax,%rbx
  add    %r12,%rbx
  mov    $0xc0,%r12d
  mul    %r12
  add    %rdx,%rbx
  mov    %rbx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  movslq %esi,%rax
  mov    %rax,%r10
  mov    $0x0,%r11d
  movslq %edi,%rax
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    %r11,%rdx
  imul   %r8,%rdx
  mov    %r9,%rax
  imul   %r10,%rax
  lea    (%rdx,%rax,1),%rbx
  mov    %r10,%rax
  mul    %r8
  lea    (%rbx,%rdx,1),%r8
  mov    %r8,%rdx
  imul   $0xc0,%rdx,%r9
  imul   $0x0,%rax,%r8
  add    %r9,%r8
  mov    $0xc0,%r9d
  mul    %r9
  add    %rdx,%r8
  mov    %r8,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rsi
  and    $0xfffffffffffff000,%rsi
  mov    %rsp,%rdx
  sub    %rsi,%rdx
L33:
  cmp    %rdx,%rsp
  je     L63
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L33
L63:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L2
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L2:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x40(%rbp),%rax
  movsd  D112(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x40(%rbp),%rax
  movsd  D83(%rip),%xmm0
  movsd  %xmm0,0x8(%rax)
  mov    -0x40(%rbp),%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,0x10(%rax)
  mov    -0x40(%rbp),%rax
  movsd  D83(%rip),%xmm0
  movsd  %xmm0,0x18(%rax)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rax
  movsd  D112(%rip),%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rax
  add    $0x1,%rdx
  movsd  D83(%rip),%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rax
  add    $0x2,%rdx
  movsd  D112(%rip),%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rax
  add    $0x3,%rdx
  movsd  D83(%rip),%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  mov    %rcx,%rax
  shr    $0x3,%rax
  mov    -0x40(%rbp),%rdx
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  D112(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rax
  shr    $0x3,%rax
  mov    -0x40(%rbp),%rdx
  shl    $0x4,%rax
  add    %rdx,%rax
  add    $0x8,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rax
  shr    $0x3,%rax
  mov    -0x40(%rbp),%rdx
  add    $0x1,%rax
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  D232(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rax
  shr    $0x3,%rax
  mov    -0x40(%rbp),%rdx
  shl    $0x4,%rax
  add    %rdx,%rax
  add    $0x18,%rax
  movsd  D83(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rsi
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  movsd  D188(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rsi
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  add    $0x8,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rsi
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  add    $0x10,%rax
  movsd  D244(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rax
  shr    $0x3,%rax
  mov    -0x40(%rbp),%rsi
  lea    0x1(%rax),%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  movsd  D54(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rsi
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  add    $0x20,%rax
  movsd  D112(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rsi
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  add    $0x28,%rax
  movsd  D244(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rsi
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  add    $0x30,%rax
  movsd  D83(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rax
  shr    $0x3,%rax
  mov    -0x40(%rbp),%rdx
  shl    $0x5,%rax
  add    %rdx,%rax
  movsd  D112(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rax
  shr    $0x3,%rax
  mov    -0x40(%rbp),%rdx
  shl    $0x5,%rax
  add    %rdx,%rax
  add    $0x8,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rax
  shr    $0x3,%rax
  mov    -0x40(%rbp),%rdx
  shl    $0x5,%rax
  add    %rdx,%rax
  add    $0x10,%rax
  movsd  D135(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rax
  shr    $0x3,%rax
  mov    -0x40(%rbp),%rdx
  shl    $0x5,%rax
  add    %rdx,%rax
  add    $0x18,%rax
  movsd  D83(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rsi
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  movsd  D92(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rsi
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  add    $0x8,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rsi
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  add    $0x10,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rsi
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  add    $0x18,%rax
  movsd  D134(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rsi
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  add    $0x20,%rax
  movsd  D112(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rax
  shr    $0x3,%rax
  mov    -0x40(%rbp),%rsi
  lea    0x1(%rax),%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    %rcx,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rsi
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rsi,%rax
  add    $0x30,%rax
  movsd  D83(%rip),%xmm0
  movsd  %xmm0,(%rax)
  movl   $0x0,-0x64(%rbp)
  movl   $0x0,-0x60(%rbp)
  movl   $0x0,-0x5c(%rbp)
  movl   $0x0,-0x58(%rbp)
  jmp    L4
L67:
  mov    %rcx,%rdi
  shr    $0x3,%rdi
  mov    -0x40(%rbp),%rdx
  mov    -0x60(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x5c(%rbp),%eax
  cltq
  imul   %rax,%rdi
  mov    %rsi,%rax
  add    %rax,%rax
  add    %rsi,%rax
  add    %rdi,%rax
  movsd  (%rdx,%rax,8),%xmm0
  movsd  D83(%rip),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L73
  movsd  D83(%rip),%xmm1
  ucomisd %xmm1,%xmm0
  jne    L73
  addl   $0x1,-0x5c(%rbp)
  movl   $0x0,-0x60(%rbp)
  mov    -0x5c(%rbp),%eax
  cmp    -0x84(%rbp),%eax
  jge    L36
L73:
  mov    %rcx,%rdi
  shr    $0x3,%rdi
  mov    -0x40(%rbp),%rdx
  mov    -0x60(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x5c(%rbp),%eax
  cltq
  imul   %rax,%rdi
  mov    %rsi,%rax
  add    %rax,%rax
  add    %rsi,%rax
  add    %rdi,%rax
  add    $0x1,%rax
  movsd  (%rdx,%rax,8),%xmm0
  movsd  D83(%rip),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L31
  movsd  D83(%rip),%xmm1
  ucomisd %xmm1,%xmm0
  jne    L31
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rax,%rdx
  mov    -0x5c(%rbp),%eax
  mov    %eax,(%rdx)
  mov    %rcx,%rdi
  shr    $0x3,%rdi
  mov    -0x40(%rbp),%rdx
  mov    -0x60(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x5c(%rbp),%eax
  cltq
  imul   %rax,%rdi
  mov    %rsi,%rax
  add    %rax,%rax
  add    %rsi,%rax
  add    %rdi,%rax
  add    $0x2,%rax
  movsd  (%rdx,%rax,8),%xmm0
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rax,%rdx
  cvttsd2si %xmm0,%eax
  mov    %eax,0x4(%rdx)
  addl   $0x1,-0x64(%rbp)
  addl   $0x1,-0x60(%rbp)
  jmp    L4
L31:
  mov    -0x58(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    -0x5c(%rbp),%eax
  mov    %eax,(%rdx)
  mov    %rcx,%rdi
  shr    $0x3,%rdi
  mov    -0x40(%rbp),%rdx
  mov    -0x60(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x5c(%rbp),%eax
  cltq
  imul   %rax,%rdi
  mov    %rsi,%rax
  add    %rax,%rax
  add    %rsi,%rax
  add    %rdi,%rax
  add    $0x1,%rax
  movsd  (%rdx,%rax,8),%xmm0
  mov    -0x58(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  cvttsd2si %xmm0,%eax
  mov    %eax,0x4(%rdx)
  mov    %rcx,%rdi
  shr    $0x3,%rdi
  mov    -0x40(%rbp),%rdx
  mov    -0x60(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x5c(%rbp),%eax
  cltq
  imul   %rax,%rdi
  mov    %rsi,%rax
  add    %rax,%rax
  add    %rsi,%rax
  add    %rdi,%rax
  add    $0x2,%rax
  movsd  (%rdx,%rax,8),%xmm0
  mov    -0x58(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  cvttsd2si %xmm0,%eax
  mov    %eax,0x8(%rdx)
  addl   $0x1,-0x58(%rbp)
  addl   $0x1,-0x60(%rbp)
L4:
  mov    -0x5c(%rbp),%eax
  cmp    -0x84(%rbp),%eax
  jl     L67
  jmp    L54
L36:
  nop
L54:
  mov    -0x90(%rbp),%rsp
  nop
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L113
  call   <__stack_chk_fail@plt>
L113:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D112
data_type: byte[8]
name: parse_data
arguments: data_tag: D83
data_type: byte[8]
name: parse_data
arguments: data_tag: D232
data_type: byte[8]
name: parse_data
arguments: data_tag: D188
data_type: f64
name: parse_data
arguments: data_tag: D244
data_type: byte[8]
name: parse_data
arguments: data_tag: D54
data_type: f64
name: parse_data
arguments: data_tag: D135
data_type: byte[8]
name: parse_data
arguments: data_tag: D92
data_type: f64
name: parse_data
arguments: data_tag: D134
data_type: f64

tool: {"D112": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: {"D83": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

tool: {"D232": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

tool: D188: 0.9

tool: {"D244": [0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x40]}

tool: D54: 0.1

tool: {"D135": [0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x40]}

tool: D92: 0.7

tool: D134: 0.3

assistant: ```c
void translateRules(int nonRules[][3], int termRules[][2], int nonTerm) {
  int maxRuleCount = 2;
  double rules[nonTerm][maxRuleCount + 1][3];
  rules[0][0][0] = 1;
  rules[0][0][1] = -1;
  rules[0][0][2] = 0;
  rules[0][1][0] = -1;
  rules[1][0][0] = 1;
  rules[1][0][1] = -1;
  rules[1][0][2] = 1;
  rules[1][1][0] = -1;
  rules[2][0][0] = 1;
  rules[2][0][1] = 0;
  rules[2][0][2] = 3;
  rules[2][1][0] = -1;
  rules[3][0][0] = 0.9;
  rules[3][0][1] = 0;
  rules[3][0][2] = 4;
  rules[3][1][0] = 0.1;
  rules[3][1][1] = 1;
  rules[3][1][2] = 4;
  rules[3][2][0] = -1;
  rules[4][0][0] = 1;
  rules[4][0][1] = 0;
  rules[4][0][2] = 5;
  rules[4][1][0] = -1;
  rules[5][0][0] = 0.7;
  rules[5][0][1] = 0;
  rules[5][0][2] = 0;
  rules[5][1][0] = 0.3;
  rules[5][1][1] = 1;
  rules[5][1][2] = 0;
  rules[5][2][0] = -1;
  int termRuleOut = 0;
  int nonRule = 0;
  int nonTermNum = 0;
  int nonRuleOut = 0;
  while (nonTermNum < nonTerm) {
    if (rules[nonTermNum][nonRule][0] == -1) {
      nonTermNum++;
      nonRule = 0;
      if (nonTermNum >= nonTerm)
        break;
    }
    if (rules[nonTermNum][nonRule][1] == -1) {
      termRules[termRuleOut][0] = nonTermNum;
      termRules[termRuleOut][1] = rules[nonTermNum][nonRule][2];
      termRuleOut++;
      nonRule++;
    } else {
      nonRules[nonRuleOut][0] = nonTermNum;
      nonRules[nonRuleOut][1] = rules[nonTermNum][nonRule][1];
      nonRules[nonRuleOut][2] = rules[nonTermNum][nonRule][2];
      nonRuleOut++;
      nonRule++;
    }
  }
}
```