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

```asm
<heir9>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <heir10@plt>
  mov    %eax,-0x24(%rbp)
  mov    $0x0,%eax
  call   <blanks@plt>
  mov    $0x0,%eax
  call   <ch@plt>
  cmp    $0x2a,%eax
  setne  %bl
  mov    $0x0,%eax
  call   <ch@plt>
  cmp    $0x2f,%eax
  setne  %al
  and    %ebx,%eax
  movzbl %al,%ebx
  mov    $0x0,%eax
  call   <ch@plt>
  cmp    $0x25,%eax
  setne  %al
  movzbl %al,%eax
  and    %ebx,%eax
  test   %eax,%eax
  je     L42
  mov    -0x24(%rbp),%eax
  jmp    L111
L42:
  cmpl   $0x0,-0x24(%rbp)
  je     L127
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <rvalue@plt>
L127:
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <match@plt>
  test   %eax,%eax
  je     L89
  mov    $0x0,%eax
  call   <push@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <heir9>
  test   %eax,%eax
  je     L49
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <rvalue@plt>
L49:
  mov    $0x0,%eax
  call   <pop@plt>
  mov    $0x0,%eax
  call   <mult@plt>
  jmp    L127
L89:
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <match@plt>
  test   %eax,%eax
  je     L118
  mov    $0x0,%eax
  call   <push@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <heir10@plt>
  test   %eax,%eax
  je     L17
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <rvalue@plt>
L17:
  mov    $0x0,%eax
  call   <pop@plt>
  mov    $0x0,%eax
  call   <div@plt>
  jmp    L127
L118:
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <match@plt>
  test   %eax,%eax
  je     L30
  mov    $0x0,%eax
  call   <push@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <heir10@plt>
  test   %eax,%eax
  je     L125
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <rvalue@plt>
L125:
  mov    $0x0,%eax
  call   <pop@plt>
  mov    $0x0,%eax
  call   <mod@plt>
  jmp    L127
L30:
  mov    $0x0,%eax
L111:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L96
  call   <__stack_chk_fail@plt>
L96:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D29
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D11
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D6
type_guessed: string

tool: D29: *

tool: D11: /

tool: D6: %

assistant: ```c
heir9(lval) int lval[];
{
  int k, lval2[2];
  k = heir10(lval);
  blanks();
  if ((ch() != '*') & (ch() != '/') & (ch() != '%'))
    return k;
  if (k)
    rvalue(lval);
  while (1) {
    if (match("*")) {
      push();
      if (heir9(lval2))
        rvalue(lval2);
      pop();
      mult();
    } else if (match("/")) {
      push();
      if (heir10(lval2))
        rvalue(lval2);
      pop();
      div();
    } else if (match("%")) {
      push();
      if (heir10(lval2))
        rvalue(lval2);
      pop();
      mod();
    } else
      return 0;
  }
}
```