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   <chr@plt>
  cmp    $0x2a,%eax
  setne  %bl
  mov    $0x0,%eax
  call   <chr@plt>
  cmp    $0x2f,%eax
  setne  %al
  and    %ebx,%eax
  movzbl %al,%ebx
  mov    $0x0,%eax
  call   <chr@plt>
  cmp    $0x25,%eax
  setne  %al
  movzbl %al,%eax
  and    %ebx,%eax
  test   %eax,%eax
  je     L79
  mov    -0x24(%rbp),%eax
  jmp    L89
L79:
  cmpl   $0x0,-0x24(%rbp)
  je     L62
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <rvalue@plt>
L62:
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <match@plt>
  test   %eax,%eax
  je     L98
  mov    $0x0,%eax
  call   <mnem_push@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <heir9>
  test   %eax,%eax
  je     L11
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <rvalue@plt>
L11:
  mov    $0x0,%eax
  call   <mnem_pop@plt>
  mov    $0x0,%eax
  call   <m_mult@plt>
  jmp    L62
L98:
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <match@plt>
  test   %eax,%eax
  je     L108
  mov    $0x0,%eax
  call   <mnem_push@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <heir10@plt>
  test   %eax,%eax
  je     L31
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <rvalue@plt>
L31:
  mov    $0x0,%eax
  call   <mnem_pop@plt>
  mov    $0x0,%eax
  call   <m_div@plt>
  jmp    L62
L108:
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <match@plt>
  test   %eax,%eax
  je     L23
  mov    $0x0,%eax
  call   <mnem_push@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <heir10@plt>
  test   %eax,%eax
  je     L52
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <rvalue@plt>
L52:
  mov    $0x0,%eax
  call   <mnem_pop@plt>
  mov    $0x0,%eax
  call   <mod@plt>
  jmp    L62
L23:
  mov    $0x0,%eax
L89:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L10
  call   <__stack_chk_fail@plt>
L10:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D2
type_guessed: string
name: extract_symbolic_data
arguments: label: D6
type_guessed: string
name: extract_symbolic_data
arguments: label: D11
type_guessed: string

tool: D2: *

tool: D6: /

tool: D11: %

assistant: ```c
heir9(lval) int lval[];
{
  int k, lval2[2];
  k = heir10(lval);
  blanks();
  if ((chr() != '*') & (chr() != '/') & (chr() != '%'))
    return k;
  if (k)
    rvalue(lval);
  while (1) {
    if (match("*")) {
      mnem_push();
      if (heir9(lval2))
        rvalue(lval2);
      mnem_pop();
      m_mult();
    } else if (match("/")) {
      mnem_push();
      if (heir10(lval2))
        rvalue(lval2);
      mnem_pop();
      m_div();
    } else if (match("%")) {
      mnem_push();
      if (heir10(lval2))
        rvalue(lval2);
      mnem_pop();
      mod();
    } else
      return 0;
  }
}
```