user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<frd_to_hfocus>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0xc,%eax
  je     L28
  mov    $0xffffffff,%eax
  jmp    L24
L28:
  movl   $0x0,-0x4(%rbp)
  jmp    L11
L40:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  je     L49
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  je     L49
  mov    $0xffffffff,%eax
  jmp    L24
L49:
  addl   $0x1,-0x4(%rbp)
L11:
  cmpl   $0xb,-0x4(%rbp)
  jle    L40
  movl   $0x0,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  sete   %al
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  lea    D69(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mk2r_set_hfocus_value@plt>
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  sete   %al
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  lea    D47(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mk2r_set_hfocus_value@plt>
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  sete   %al
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  lea    D89(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mk2r_set_hfocus_value@plt>
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  sete   %al
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  lea    D20(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mk2r_set_hfocus_value@plt>
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  sete   %al
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  lea    D56(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mk2r_set_hfocus_value@plt>
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  sete   %al
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  lea    D17(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mk2r_set_hfocus_value@plt>
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  sete   %al
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  lea    D34(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mk2r_set_hfocus_value@plt>
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  sete   %al
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  lea    D99(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mk2r_set_hfocus_value@plt>
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  sete   %al
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  lea    D105(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mk2r_set_hfocus_value@plt>
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  sete   %al
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  lea    D60(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mk2r_set_hfocus_value@plt>
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  sete   %al
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  lea    D21(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mk2r_set_hfocus_value@plt>
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  sete   %al
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  lea    D18(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mk2r_set_hfocus_value@plt>
  mov    -0x18(%rbp),%rax
  mov    $0x1,%edx
  lea    D124(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mk2r_set_hfocus_value@plt>
  mov    $0x0,%eax
L24:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D69
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D47
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D89
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D20
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D56
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D17
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D34
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D99
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D105
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D60
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D21
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D18
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D124
type_guessed: string

tool: D69: ears.left.r1Main

tool: D47: ears.left.r1Sub

tool: D89: ears.left.scLeft

tool: D20: ears.left.scRight

tool: D56: ears.left.r2Main

tool: D17: ears.left.r2Sub

tool: D34: ears.right.r1Main

tool: D99: ears.right.r1Sub

tool: D105: ears.right.scLeft

tool: D60: ears.right.scRight

tool: D21: ears.right.r2Main

tool: D18: ears.right.r2Sub

tool: D124: directControl

assistant: ```c
int frd_to_hfocus(uint8_t hfocus[8], const char *frd_arg) {
  int i;
  if (strlen(frd_arg) != 12)
    return -1;
  for (i = 0; i < 12; i++)
    if (frd_arg[i] != '0' && frd_arg[i] != '1')
      return -1;
  i = 0;
  mk2r_set_hfocus_value(hfocus, "ears.left.r1Main", frd_arg[i++] == '1');
  mk2r_set_hfocus_value(hfocus, "ears.left.r1Sub", frd_arg[i++] == '1');
  mk2r_set_hfocus_value(hfocus, "ears.left.scLeft", frd_arg[i++] == '1');
  mk2r_set_hfocus_value(hfocus, "ears.left.scRight", frd_arg[i++] == '1');
  mk2r_set_hfocus_value(hfocus, "ears.left.r2Main", frd_arg[i++] == '1');
  mk2r_set_hfocus_value(hfocus, "ears.left.r2Sub", frd_arg[i++] == '1');
  mk2r_set_hfocus_value(hfocus, "ears.right.r1Main", frd_arg[i++] == '1');
  mk2r_set_hfocus_value(hfocus, "ears.right.r1Sub", frd_arg[i++] == '1');
  mk2r_set_hfocus_value(hfocus, "ears.right.scLeft", frd_arg[i++] == '1');
  mk2r_set_hfocus_value(hfocus, "ears.right.scRight", frd_arg[i++] == '1');
  mk2r_set_hfocus_value(hfocus, "ears.right.r2Main", frd_arg[i++] == '1');
  mk2r_set_hfocus_value(hfocus, "ears.right.r2Sub", frd_arg[i++] == '1');
  mk2r_set_hfocus_value(hfocus, "directControl", 1);
  return 0;
}
```