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

```asm
<main>:
  endbr64
  push   %r15
  lea    D6(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    0x1c(%rsp),%rsi
  call   <scanf@plt>
  mov    0x1c(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x1c(%rsp)
  test   %eax,%eax
  je     L88
  lea    0x60(%rsp),%r12
  lea    0x40(%rsp),%rbp
  lea    0x20(%rsp),%rbx
  lea    D25(%rip),%r13
  lea    D14(%rip),%r14
  jmp    L140
  nopl   0x0(%rax,%rax,1)
L142:
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %rbp,%rdi
  mov    %rax,%r15
  call   <atoi@plt>
  mov    %eax,%edi
  call   <len@plt>
  cmp    %rax,%r15
  je     L124
  mov    %r12,%rdi
  call   <atoi@plt>
  xor    %esi,%esi
  mov    %eax,%ecx
  mov    %eax,%r8d
L91:
  mov    %esi,%edx
  mov    %r14,%rdi
  mov    %r8d,%esi
  call   <printf@plt>
L29:
  mov    0x1c(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x1c(%rsp)
  test   %eax,%eax
  je     L88
L140:
  mov    %r12,%rcx
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %rbx,%rdi
  mov    %rax,%r15
  call   <atoi@plt>
  mov    %eax,%edi
  call   <len@plt>
  cmp    %rax,%r15
  jne    L142
  mov    %rbx,%rdi
  call   <atoi@plt>
  mov    %rbp,%rdi
  mov    %eax,0xc(%rsp)
  call   <strlen@plt>
  mov    %rbp,%rdi
  mov    %rax,%r15
  call   <atoi@plt>
  mov    %eax,%edi
  call   <len@plt>
  mov    0xc(%rsp),%esi
  cmp    %rax,%r15
  jne    L49
  mov    %rbp,%rdi
  mov    %esi,0xc(%rsp)
  call   <atoi@plt>
  mov    %r12,%rdi
  mov    %eax,%r15d
  call   <atoi@plt>
  mov    0xc(%rsp),%esi
  mov    %eax,%ecx
  test   %esi,%esi
  je     L137
  test   %r15d,%r15d
  je     L74
  mov    %r15d,%edx
  lea    (%rsi,%r15,1),%ecx
  mov    %r14,%rdi
  call   <printf@plt>
  mov    0x1c(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x1c(%rsp)
  test   %eax,%eax
  jne    L140
L88:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L81
  add    $0x88,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L49:
  mov    %r12,%rdi
  call   <atoi@plt>
  mov    0xc(%rsp),%esi
  mov    %eax,%ecx
  test   %esi,%esi
  je     L121
L74:
  mov    %ecx,%edx
  mov    %r14,%rdi
  sub    %esi,%edx
  call   <printf@plt>
  jmp    L29
L124:
  mov    %rbp,%rdi
  call   <atoi@plt>
  mov    %r12,%rdi
  mov    %eax,0xc(%rsp)
  call   <atoi@plt>
  mov    0xc(%rsp),%esi
  mov    %eax,%r8d
  mov    %eax,%ecx
  sub    %esi,%r8d
  jmp    L91
L121:
  mov    %eax,%r8d
  jmp    L91
L137:
  mov    %eax,%r8d
  mov    %r15d,%esi
  sub    %r15d,%r8d
  jmp    L91
L81:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D6
type_infered: string
name: disassemble_data
arguments: label: D25
type_infered: string
name: disassemble_data
arguments: label: D14
type_infered: string

tool: D6: %d

tool: D25: %s %*c %s %*c %s

tool: D14: %d + %d = %d


assistant: ```c
int main() {
  char sa[18], sb[18], sc[18];
  int T, a, b, c;
  scanf("%d", &T);
  while (T--) {
    scanf("%s %*c %s %*c %s", sa, sb, sc);
    a = strlen(sa) == len(atoi(sa)) ? atoi(sa) : 0;
    b = strlen(sb) == len(atoi(sb)) ? atoi(sb) : 0;
    c = atoi(sc);
    if (!a) {
      printf("%d + %d = %d\n", c - b, b, c);
    } else if (!b) {
      printf("%d + %d = %d\n", a, c - a, c);
    } else {
      printf("%d + %d = %d\n", a, b, a + b);
    }
  }
  return 0;
}
```