user: Converte this assembly snippet into its equivalent C code:

```asm
<graphMain>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  movss  %xmm0,0x14(%rsp)
  movss  %xmm1,0x18(%rsp)
  movss  %xmm2,0x1c(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movb   $0x0,0x27(%rsp)
  mov    D26(%rip),%ebx
  mov    %ebx,%ebp
  mov    D151(%rip),%r12d
  mov    %r12d,0x10(%rsp)
  mov    %r12d,0xc(%rsp)
  lea    D15(%rip),%r13
  jmp    L156
L74:
  mov    $0x0,%eax
  call   <sysClear@plt>
  mov    $0xff,%ecx
  mov    $0xff,%edx
  mov    $0x0,%esi
  mov    %r13,%rdi
  call   <sysPrintString@plt>
  mov    D26(%rip),%r12d
  jmp    L116
L16:
  movd   %ebx,%xmm6
  divss  D54(%rip),%xmm6
  movd   %xmm6,%ebx
  mov    D26(%rip),%ebp
L137:
  cmp    $0xe,%al
  jne    L66
  movd   %ebx,%xmm0
  mulss  D115(%rip),%xmm0
  movss  0x10(%rsp),%xmm4
  subss  %xmm0,%xmm4
  movss  %xmm4,0x10(%rsp)
  mov    D26(%rip),%ebp
L60:
  movd   %ebp,%xmm4
  ucomiss D151(%rip),%xmm4
  jp     L34
  jne    L34
L58:
  movd   %r12d,%xmm7
  ucomiss D151(%rip),%xmm7
  jp     L114
  jne    L114
L156:
  lea    0x27(%rsp),%rdi
  call   <sysGetChar@plt>
  cmpb   $0xa,0x27(%rsp)
  je     L74
L116:
  movzbl 0x27(%rsp),%eax
  cmp    $0x2b,%al
  je     L16
  cmp    $0x2d,%al
  jne    L131
  movd   %ebx,%xmm6
  mulss  D54(%rip),%xmm6
  movd   %xmm6,%ebx
  mov    D26(%rip),%ebp
L66:
  cmp    $0xd,%al
  jne    L35
  movd   %ebx,%xmm0
  mulss  D115(%rip),%xmm0
  movss  0xc(%rsp),%xmm5
  subss  %xmm0,%xmm5
  movss  %xmm5,0xc(%rsp)
L34:
  movd   %ebx,%xmm1
  mulss  D100(%rip),%xmm1
  movss  0xc(%rsp),%xmm7
  movaps %xmm7,%xmm0
  subss  %xmm1,%xmm0
  movss  0x1c(%rsp),%xmm6
  movss  0x18(%rsp),%xmm5
  movss  0x14(%rsp),%xmm4
  movss  0x10(%rsp),%xmm2
  movaps %xmm2,%xmm3
  addss  %xmm1,%xmm3
  subss  %xmm1,%xmm2
  addss  %xmm7,%xmm1
  call   <plotWrapper@plt>
  mov    D151(%rip),%ebp
  jmp    L58
L131:
  cmp    $0xf,%al
  jne    L137
  movd   %ebx,%xmm0
  mulss  D115(%rip),%xmm0
  addss  0x10(%rsp),%xmm0
  movss  %xmm0,0x10(%rsp)
  mov    D26(%rip),%ebp
L35:
  cmp    $0xc,%al
  jne    L60
  movd   %ebx,%xmm0
  mulss  D115(%rip),%xmm0
  addss  0xc(%rsp),%xmm0
  movss  %xmm0,0xc(%rsp)
  jmp    L34
L114:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L87
  mov    $0x0,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L87:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D26
datatype: f32
name: unpack_data
arguments: tag: D151
datatype: f32
name: unpack_data
arguments: tag: D15
datatype: string
name: unpack_data
arguments: tag: D54
datatype: f32
name: unpack_data
arguments: tag: D115
datatype: byte[4]
name: unpack_data
arguments: tag: D100
datatype: f32

tool: D26: 1

tool: D151: 0

tool: D15: Exited plot Successfully


tool: D54: 1.5

tool: {"D115": [0x00,0x00,0xa0,0x40]}

tool: D100: 10

assistant: ```c
int graphMain(float a, float b, float c) {
  float x_r = 10;
  float x_l = -10;
  float y_d = x_l;
  float y_u = x_r;
  float x_offset = 0, y_offset = 0, ready_to_exit = 0, draw = 1;
  float factor = 1;
  char ch = 0;
  while (!ready_to_exit) {
    sysGetChar(&ch);
    if (ch == '\n') {
      sysClear();
      sysPrintString("Exited plot Successfully\n", 0, 255, 255);
      ready_to_exit = 1;
    }
    if (ch == '+') {
      factor /= 1.5;
      draw = 1;
    }
    if (ch == '-') {
      factor *= 1.5;
      draw = 1;
    }
    if (ch == 15) {
      y_offset += (5 * factor);
      draw = 1;
    }
    if (ch == 14) {
      y_offset -= (5 * factor);
      draw = 1;
    }
    if (ch == 13) {
      x_offset -= (5 * factor);
      draw = 1;
    }
    if (ch == 12) {
      x_offset += (5 * factor);
      draw = 1;
    }
    if (draw) {
      draw = 0;
      plotWrapper((x_l * factor) + x_offset, (x_r * factor) + x_offset, (y_d * factor) + y_offset, (y_u * factor) + y_offset, a, b, c);
    }
  }
  return 0;
}
```