user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r12
  lea    D4(%rip),%rdi
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    D74(%rip),%rdi
  lea    0x4(%rsp),%rsi
  call   <scanf@plt>
  mov    0x4(%rsp),%edi
  test   %edi,%edi
  js     L108
  mov    $0x2,%r12d
  cmp    $0x3,%edi
  jg     L80
  jmp    L31
  nopl   0x0(%rax,%rax,1)
L79:
  mov    0x4(%rsp),%edi
  mov    %edi,%eax
  cltd
  idiv   %r12d
  test   %edx,%edx
  je     L95
  add    $0x1,%r12d
L80:
  call   <sqrt@plt>
  cmp    %eax,%r12d
  jle    L79
  mov    0x4(%rsp),%esi
  lea    D13(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L23:
  mov    0x4(%rsp),%edi
  mov    $0x2,%r12d
  jmp    L73
  cs nopw 0x0(%rax,%rax,1)
L169:
  mov    0x4(%rsp),%edi
  mov    %edi,%eax
  cltd
  idiv   %r12d
  test   %edx,%edx
  je     L50
  add    $0x1,%r12d
L73:
  call   <sqrt@plt>
  cmp    %eax,%r12d
  jle    L169
  mov    0x4(%rsp),%esi
  lea    D13(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L91:
  mov    $0x2,%r12d
  jmp    L168
  nopw   0x0(%rax,%rax,1)
L51:
  add    $0x1,%r12d
  call   <sqrt@plt>
  cmp    %eax,%r12d
  jg     L161
L168:
  mov    0x4(%rsp),%edi
  mov    %edi,%eax
  cltd
  idiv   %r12d
  test   %edx,%edx
  jne    L51
  mov    %edi,%esi
  mov    %r12d,%edx
  lea    D12(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L63:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L122
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %r12
  ret
L161:
  mov    0x4(%rsp),%esi
  lea    D13(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L63
L95:
  mov    %edi,%esi
  mov    %r12d,%edx
  lea    D12(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L23
L50:
  mov    %edi,%esi
  mov    %r12d,%edx
  lea    D12(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L91
L31:
  lea    D1(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L63
L108:
  lea    D71(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L63
L122:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D4
datatype: string
name: parse_data
arguments: data_label: D74
datatype: string
name: parse_data
arguments: data_label: D13
datatype: string
name: parse_data
arguments: data_label: D12
datatype: string
name: parse_data
arguments: data_label: D1
datatype: string
name: parse_data
arguments: data_label: D71
datatype: string

tool: D4: Enter the number: 

tool: D74: %d

tool: D13: Number %d is prime



tool: D12: Number %d is not prime, denominator is %d



tool: D1: Number is prime

tool: D71: Number must be positive

assistant: ```c
int main() {
  int number, denominator, is_prime = 1;
  printf("Enter the number: ");
  scanf("%d", &number);
  if (number < 0) {
    printf("Number must be positive");
    return 0;
  }
  if (number <= 3) {
    printf("Number is prime");
    return 0;
  }
  for (denominator = 2; denominator <= (int)sqrt(number); denominator++) {
    if ((number % denominator) == 0) {
      printf("Number %d is not prime, denominator is %d\n\n", number, denominator);
      is_prime = 0;
      break;
    }
  }
  if (is_prime) {
    printf("Number %d is prime\n\n", number);
  }
  is_prime = 1;
  denominator = 2;
  while (denominator <= (int)sqrt(number)) {
    if ((number % denominator) == 0) {
      printf("Number %d is not prime, denominator is %d\n\n", number, denominator);
      is_prime = 0;
      break;
    }
    denominator++;
  }
  if (is_prime) {
    printf("Number %d is prime\n\n", number);
  }
  is_prime = 1;
  denominator = 2;
  do {
    if ((number % denominator) == 0) {
      printf("Number %d is not prime, denominator is %d\n\n", number, denominator);
      is_prime = 0;
      break;
    }
    denominator++;
  } while (denominator <= (int)sqrt(number));
  if (is_prime) {
    printf("Number %d is prime\n\n", number);
  }
  return 0;
}
```