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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x10(%rbp),%rcx
  lea    -0x14(%rbp),%rdx
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x18(%rbp),%edx
  mov    -0x14(%rbp),%eax
  cmp    %eax,%edx
  jg     L125
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%eax
  cmp    %eax,%edx
  jl     L115
  mov    -0x14(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L1
L115:
  mov    -0x10(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L1
L125:
  mov    -0x18(%rbp),%edx
  mov    -0x10(%rbp),%eax
  cmp    %eax,%edx
  jg     L43
  mov    -0x18(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L1
L43:
  mov    -0x10(%rbp),%eax
  mov    %eax,-0xc(%rbp)
L1:
  mov    -0x18(%rbp),%edx
  mov    -0x14(%rbp),%eax
  add    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0xc(%rbp),%eax
  lea    (%rax,%rax,1),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  test   %eax,%eax
  jg     L135
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L140
L135:
  mov    -0x18(%rbp),%edx
  mov    -0x14(%rbp),%eax
  add    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0xc(%rbp),%eax
  lea    (%rax,%rax,1),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  test   %eax,%eax
  js     L140
  mov    -0x18(%rbp),%edx
  mov    -0x18(%rbp),%eax
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x14(%rbp),%edx
  mov    -0x14(%rbp),%eax
  imul   %edx,%eax
  add    %eax,%ecx
  mov    -0x10(%rbp),%edx
  mov    -0x10(%rbp),%eax
  imul   %edx,%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0xc(%rbp),%eax
  imul   %eax,%eax
  add    %eax,%eax
  cmp    %eax,%edx
  jne    L91
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L140
L91:
  mov    -0x18(%rbp),%edx
  mov    -0x18(%rbp),%eax
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x14(%rbp),%edx
  mov    -0x14(%rbp),%eax
  imul   %edx,%eax
  add    %eax,%ecx
  mov    -0x10(%rbp),%edx
  mov    -0x10(%rbp),%eax
  imul   %edx,%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0xc(%rbp),%eax
  imul   %eax,%eax
  add    %eax,%eax
  cmp    %eax,%edx
  jl     L26
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L140
L26:
  mov    -0x18(%rbp),%edx
  mov    -0x18(%rbp),%eax
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x14(%rbp),%edx
  mov    -0x14(%rbp),%eax
  imul   %edx,%eax
  add    %eax,%ecx
  mov    -0x10(%rbp),%edx
  mov    -0x10(%rbp),%eax
  imul   %edx,%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0xc(%rbp),%eax
  imul   %eax,%eax
  add    %eax,%eax
  cmp    %eax,%edx
  jg     L140
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L140:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L116
  call   <__stack_chk_fail@plt>
L116:
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D48
datatype: string
name: parse_data
arguments: tag: D18
datatype: string
name: parse_data
arguments: tag: D30
datatype: string
name: parse_data
arguments: tag: D33
datatype: string
name: parse_data
arguments: tag: D21
datatype: string

tool: D48: %d%d%d

tool: D18: Invalid Triangle

tool: D30: Right Triangle

tool: D33: Acute Triangle

tool: D21: Obtuse Triangle

assistant: ```c
int main() {
  int a;
  int b;
  int c;
  int max;
  scanf("%d%d%d", &a, &b, &c);
  if (a <= b) {
    if (b >= c) {
      max = b;
    } else {
      max = c;
    }
  } else {
    if (a <= c) {
      max = a;
    } else {
      max = c;
    }
  }
  if ((a + b + c - (2 * max)) <= 0) {
    printf("Invalid Triangle");
  } else if ((a + b + c - (2 * max)) >= 0) {
    if ((a * a) + (b * b) + (c * c) == (2 * max * max)) {
      printf("Right Triangle");
    } else if ((a * a) + (b * b) + (c * c) >= (2 * max * max)) {
      printf("Acute Triangle");
    } else if ((a * a) + (b * b) + (c * c) <= (2 * max * max)) {
      printf("Obtuse Triangle");
    }
  }
  return 0;
}
```