user: Please show me the C implementation that matches the assembly code listed below:

```asm
<handle_subtraction>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x140,%rsp
  mov    %rdi,-0x128(%rbp)
  mov    %rsi,-0x130(%rbp)
  mov    %rdx,-0x138(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x138(%rbp),%rdx
  mov    -0x130(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L70
  mov    -0x128(%rbp),%rax
  mov    %rax,%rdi
  call   <lookup_set@plt>
  mov    %eax,-0x11c(%rbp)
  cmpl   $0x0,-0x11c(%rbp)
  jne    L129
  mov    -0x128(%rbp),%rax
  mov    $0x6,%esi
  mov    %rax,%rdi
  call   <named_set@plt>
  mov    %eax,-0x11c(%rbp)
  cmpl   $0x0,-0x11c(%rbp)
  je     L3
  mov    $0x0,%eax
  call   <error@plt>
  test   %rax,%rax
  je     L129
L3:
  lea    -0x110(%rbp),%rax
  lea    D18(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x110(%rbp),%rax
  mov    %rax,%rdi
  call   <set_error1@plt>
  jmp    L56
L129:
  mov    -0x138(%rbp),%rdx
  mov    -0x130(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L122
  mov    -0x11c(%rbp),%eax
  mov    %eax,%edi
  call   <clear_set@plt>
  jmp    L56
L122:
  mov    -0x130(%rbp),%rax
  mov    %rax,%rdi
  call   <lookup_set@plt>
  mov    %eax,-0x118(%rbp)
  cmpl   $0x0,-0x118(%rbp)
  je     L20
  mov    $0x0,%eax
  call   <error@plt>
  test   %rax,%rax
  je     L64
L20:
  mov    -0x130(%rbp),%rdx
  lea    -0x110(%rbp),%rax
  lea    D28(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x110(%rbp),%rax
  mov    %rax,%rdi
  call   <set_error2@plt>
  jmp    L56
L64:
  mov    -0x138(%rbp),%rax
  mov    %rax,%rdi
  call   <lookup_set@plt>
  mov    %eax,-0x114(%rbp)
  cmpl   $0x0,-0x114(%rbp)
  je     L74
  mov    $0x0,%eax
  call   <error@plt>
  test   %rax,%rax
  je     L109
L74:
  mov    -0x138(%rbp),%rdx
  lea    -0x110(%rbp),%rax
  lea    D28(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x110(%rbp),%rax
  mov    %rax,%rdi
  call   <set_error2@plt>
  jmp    L56
L109:
  mov    $0x0,%eax
  call   <error@plt>
  test   %rax,%rax
  jne    L137
  mov    -0x11c(%rbp),%edx
  mov    -0x114(%rbp),%ecx
  mov    -0x118(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <set_subtraction@plt>
  mov    $0x0,%eax
  call   <error@plt>
  test   %rax,%rax
  je     L56
  lea    -0x110(%rbp),%rax
  lea    D23(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x110(%rbp),%rax
  mov    %rax,%rdi
  call   <set_error2@plt>
  jmp    L56
L70:
  nop
  jmp    L56
L137:
  nop
L56:
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L63
  call   <__stack_chk_fail@plt>
L63:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D18
type: string
name: parse_data
arguments: data_tag: D28
type: string
name: parse_data
arguments: data_tag: D23
type: string

tool: D18: problem with set definition

tool: D28: invalid setname(%s) in -

tool: D23: problem with set subtraction

assistant: ```c
void handle_subtraction(char *setname1, char *setname2, char *setname3) {
  int set1, set2, set3;
  char message[255];
  if (strcmp(setname2, setname3) == 0)
    return;
  set1 = lookup_set(setname1);
  if (set1 == 0) {
    set1 = named_set(setname1, 6);
    if (set1 == 0 || error()) {
      sprintf(message, "problem with set definition");
      set_error1(message);
      return;
    }
  }
  if (strcmp(setname2, setname3) == 0) {
    clear_set(set1);
    return;
  }
  set2 = lookup_set(setname2);
  if (set2 == 0 || error()) {
    sprintf(message, "invalid setname(%s) in -", setname2);
    set_error2(message);
    return;
  }
  set3 = lookup_set(setname3);
  if (set3 == 0 || error()) {
    sprintf(message, "invalid setname(%s) in -", setname3);
    set_error2(message);
    return;
  }
  if (error()) {
    return;
  }
  set_subtraction(set2, set3, set1);
  if (error()) {
    sprintf(message, "problem with set subtraction");
    set_error2(message);
    return;
  }
}
```