user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  movl   $0xf0,-0x20(%rbp)
  movl   $0x2e,-0x1c(%rbp)
  movl   $0x1,-0x3c(%rbp)
  movl   $0x0,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  movl   $0x1,-0x30(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <gcd@plt>
  mov    %eax,%ecx
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x24(%rbp)
L3:
  mov    -0x2c(%rbp),%eax
  cltd
  idivl  -0x28(%rbp)
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  imul   -0x28(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  imul   -0x38(%rbp),%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x18(%rbp),%eax
  imul   -0x30(%rbp),%eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,-0xc(%rbp)
  addl   $0x1,-0x24(%rbp)
  mov    -0xc(%rbp),%edi
  mov    -0x10(%rbp),%esi
  mov    -0x14(%rbp),%ecx
  mov    -0x18(%rbp),%edx
  mov    -0x24(%rbp),%eax
  mov    %edi,%r9d
  mov    %esi,%r8d
  mov    %eax,%esi
  lea    D70(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x28(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x38(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  mov    -0x30(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x30(%rbp)
  cmpl   $0x0,-0x28(%rbp)
  jne    L3
  mov    -0x2c(%rbp),%edi
  mov    -0x34(%rbp),%esi
  mov    -0x1c(%rbp),%ecx
  mov    -0x3c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  mov    %edi,%r9d
  mov    %esi,%r8d
  mov    %eax,%esi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  nop
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x38(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x30(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  jne    L15
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L52
L15:
  cmpl   $0x1,-0x8(%rbp)
  jne    L69
  mov    -0x4(%rbp),%eax
  neg    %eax
  mov    %eax,%esi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L52
L69:
  cmpl   $0x0,-0x8(%rbp)
  jle    L0
  mov    -0x4(%rbp),%eax
  neg    %eax
  mov    %eax,%ecx
  mov    -0x8(%rbp),%eax
  mov    %eax,%edx
  mov    %ecx,%esi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L52
L0:
  mov    -0x8(%rbp),%eax
  neg    %eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L52:
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D19
type: string
name: unpack_data
arguments: label: D70
type: string
name: unpack_data
arguments: label: D21
type: string
name: unpack_data
arguments: label: D32
type: string
name: unpack_data
arguments: label: D48
type: string
name: unpack_data
arguments: label: D28
type: string
name: unpack_data
arguments: label: D23
type: string

tool: D19: %dx+%dy=%d


tool: D70: %d: %d,%d,%d,%d


tool: D21: %d*%d+%d*%d=%d


tool: D32: %d/%d=

tool: D48: Division by zero

tool: D28: %d


tool: D23: %d/%d


assistant: ```c
int main() {
  int a = 240, b = 46;
  int s0 = 1, s1 = 0;
  int t0 = 0, t1 = 1;
  int r0 = a, r1 = b;
  printf("%dx+%dy=%d\n", a, b, gcd(a, b));
  int i = 0;
  while (1) {
    int q1 = r0 / r1;
    int r2 = r0 - q1 * r1;
    int s2 = s0 - q1 * s1;
    int t2 = t0 - q1 * t1;
    i++;
    printf("%d: %d,%d,%d,%d\n", i, q1, r2, s2, t2);
    r0 = r1, r1 = r2;
    s0 = s1, s1 = s2;
    t0 = t1, t1 = t2;
    if (r1 == 0) {
      printf("%d*%d+%d*%d=%d\n", a, s0, b, t0, r0);
      break;
    }
  }
  printf("%d/%d=", a, b);
  int s = s1;
  int t = t1;
  if (s == 0)
    printf("Division by zero\n");
  else if (s == 1)
    printf("%d\n", -t);
  else if (s > 0)
    printf("%d/%d\n", -t, s);
  else
    printf("%d/%d\n", t, -s);
  return 0;
}
```