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

```asm
<gcd>:
  endbr64
  push   %rbp
  lea    D26(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <print@plt>
  xor    %eax,%eax
  call   <readStr@plt>
  mov    %eax,%edi
  call   <str_to_int@plt>
  lea    D9(%rip),%rdi
  movslq %eax,%r12
  call   <print@plt>
  lea    0x0(,%r12,4),%rax
  mov    %rsp,%rcx
  mov    %r12,%rbx
  mov    %rax,-0x48(%rbp)
  add    $0xf,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L56
L106:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L106
L56:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L25
L107:
  mov    %r12,%rax
  mov    %rsp,%rcx
  mov    %rsp,%r13
  imul   %r12,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L139
L96:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L96
L139:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L21
L110:
  mov    %rsp,%r14
  mov    %ebx,%esi
  mov    %r13,%rdi
  mov    %r14,-0x70(%rbp)
  call   <fill_array@plt>
  mov    -0x48(%rbp),%rax
  shr    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  test   %ebx,%ebx
  jle    L78
  lea    0x0(,%r12,4),%rdx
  mov    %r13,%rsi
  mov    %r14,%rdi
  call   <memcpy@plt>
  lea    -0x1(%rbx),%eax
  mov    %eax,-0x64(%rbp)
  cmp    $0x1,%ebx
  je     L98
  lea    -0x2(%rbx),%eax
  mov    -0x70(%rbp),%rdx
  mov    $0x1,%r14d
  xor    %r13d,%r13d
  mov    %rax,-0x58(%rbp)
  shl    $0x2,%rax
  lea    0x4(%rdx,%rax,1),%rbx
  mov    $0xfffffffffffffffc,%rdx
  sub    %rax,%rdx
  mov    %rdx,-0x60(%rbp)
  nopw   0x0(%rax,%rax,1)
L35:
  mov    %r14,%r12
  mov    -0x60(%rbp),%rax
  sub    %r13,%r12
  imul   -0x50(%rbp),%r12
  lea    (%rax,%rbx,1),%r15
  nopl   0x0(%rax,%rax,1)
L18:
  mov    0x4(%r15),%esi
  mov    (%r15),%edi
  call   <gcd_couple@plt>
  mov    %eax,(%r15,%r12,4)
  add    $0x4,%r15
  cmp    %rbx,%r15
  jne    L18
  lea    0x1(%r13),%rax
  add    $0x1,%r14
  add    -0x48(%rbp),%rbx
  cmp    -0x58(%rbp),%r13
  je     L98
  mov    %rax,%r13
  jmp    L35
L25:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L107
L78:
  lea    -0x1(%rbx),%eax
  mov    %eax,-0x64(%rbp)
  nopl   0x0(%rax)
L98:
  lea    D24(%rip),%rdi
  call   <print@plt>
  movslq -0x64(%rbp),%rax
  imul   -0x50(%rbp),%rax
  mov    -0x70(%rbp),%rdx
  mov    (%rdx,%rax,4),%edi
  call   <int_to_string@plt>
  mov    %rax,%rdi
  call   <print@plt>
  lea    D9(%rip),%rdi
  call   <print@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L36
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L21:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L110
L36:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D26
data_type: string
name: parse_data
arguments: data_tag: D9
data_type: string
name: parse_data
arguments: data_tag: D24
data_type: string

tool: D26: 
How many numbers: 

tool: D9: 


tool: D24: Result: 

assistant: ```c
void gcd() {
  print("\nHow many numbers: ");
  int n = str_to_int(readStr());
  int i = 0;
  print("\n");
  int arr[n];
  int matrix[n][n];
  fill_array(arr, n);
  for (i = 0; i < n; i++) {
    matrix[0][i] = arr[i];
  }
  int j = 0;
  for (i = 1; i < n; i++) {
    for (j = 0; j < n - 1; j++) {
      matrix[i][j] = gcd_couple(matrix[i - 1][j], matrix[i - 1][j + 1]);
    }
  }
  print("Result: ");
  print(int_to_string(matrix[n - 1][0]));
  print("\n");
}
```