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

```asm
<main>:
  endbr64
  push   %r12
  lea    D43(%rip),%rdi
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  call   <scanf@plt>
  mov    0x4(%rsp),%eax
  cmp    $0x3,%eax
  jle    L82
  lea    D84(%rip),%rdi
  test   $0x1,%al
  jne    L23
  call   <puts@plt>
  lea    D91(%rip),%rdi
  call   <puts@plt>
  lea    D72(%rip),%rdi
  call   <puts@plt>
  lea    D42(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x4,0x4(%rsp)
  jle    L41
  mov    $0x5,%ebx
  lea    D136(%rip),%r12
  lea    D109(%rip),%rbp
  nopl   0x0(%rax)
L25:
  lea    0x1(%rbx),%esi
  mov    %ebx,%edx
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  add    $0x2,%ebx
  call   <puts@plt>
  cmp    %ebx,0x4(%rsp)
  jge    L25
L41:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L17
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L23:
  call   <puts@plt>
  lea    D91(%rip),%rdi
  call   <puts@plt>
  lea    D35(%rip),%rdi
  call   <puts@plt>
  lea    D16(%rip),%rdi
  call   <puts@plt>
  lea    D114(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x5,0x4(%rsp)
  jle    L41
  mov    $0x6,%ebx
  lea    D136(%rip),%r12
  lea    D109(%rip),%rbp
  xchg   %ax,%ax
L44:
  lea    0x1(%rbx),%esi
  mov    %ebx,%edx
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  add    $0x2,%ebx
  call   <puts@plt>
  cmp    %ebx,0x4(%rsp)
  jge    L44
  jmp    L41
L82:
  lea    D80(%rip),%rdi
  call   <puts@plt>
  jmp    L41
L17:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D43
data_type: string
name: unpack_data
arguments: data_tag: D84
data_type: string
name: unpack_data
arguments: data_tag: D91
data_type: string
name: unpack_data
arguments: data_tag: D72
data_type: string
name: unpack_data
arguments: data_tag: D42
data_type: string
name: unpack_data
arguments: data_tag: D136
data_type: string
name: unpack_data
arguments: data_tag: D109
data_type: string
name: unpack_data
arguments: data_tag: D35
data_type: string
name: unpack_data
arguments: data_tag: D16
data_type: string
name: unpack_data
arguments: data_tag: D114
data_type: string
name: unpack_data
arguments: data_tag: D80
data_type: string

tool: D43: %d

tool: D84: YES

tool: D91: 1 * 2 = 2

tool: D72: 2 * 3 = 6

tool: D42: 6 * 4 = 24

tool: D136: %d - %d = 1


tool: D109: 24 * 1 = 24

tool: D35: 3 + 4 = 7

tool: D16: 7 + 5 = 12

tool: D114: 12 * 2 = 24

tool: D80: NO

assistant: ```c
int main() {
  int n, i;
  scanf("%d", &n);
  if (n < 4) {
    printf("NO\n");
  } else {
    if (n % 2 == 0) {
      printf("YES\n");
      printf("1 * 2 = 2\n");
      printf("2 * 3 = 6\n");
      printf("6 * 4 = 24\n");
      for (i = 5; i <= n; i += 2) {
        printf("%d - %d = 1\n", i + 1, i);
        printf("24 * 1 = 24\n");
      }
    } else {
      printf("YES\n");
      printf("1 * 2 = 2\n");
      printf("3 + 4 = 7\n");
      printf("7 + 5 = 12\n");
      printf("12 * 2 = 24\n");
      for (i = 6; i <= n; i += 2) {
        printf("%d - %d = 1\n", i + 1, i);
        printf("24 * 1 = 24\n");
      }
    }
  }
  return 0;
}
```