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

```asm
<Create_Campaign>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <Create_Campaign_File@plt>
  mov    %rax,%r15
  xor    %eax,%eax
  test   %r15,%r15
  jne    L326
L2:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L67
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L326:
  lea    0x20(%rsp),%r12
  mov    $0x14,%edx
  xor    %esi,%esi
  mov    %r12,%rdi
  mov    %r12,0x8(%rsp)
  call   <memset@plt>
  xor    %eax,%eax
  call   <Create_Campaign_Start_Point@plt>
  mov    %eax,%ebp
  xor    %eax,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x55555556,%rdx,%rdx
  sar    $0x1f,%ecx
  shr    $0x20,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,2),%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    0x3(%rax),%eax
  lea    0x2(%rdx),%r14d
  mov    %eax,0x10(%rsp)
  mov    %r14d,0x1c(%rsp)
  mov    %r14d,%ebx
  test   %r14d,%r14d
  je     L187
  cmp    %r14d,%eax
  cmovle %eax,%r14d
  xor    %ebx,%ebx
L285:
  xor    %eax,%eax
  call   <rand@plt>
  mov    %eax,%r8d
  mov    $0x6,%eax
  and    $0x1,%r8d
  je     L50
L189:
  add    $0x1,%ebx
  mov    %eax,(%r12)
  add    $0x4,%r12
  cmp    %r14d,%ebx
  jl     L285
  cmp    %ebx,0x10(%rsp)
  jle    L69
L187:
  movslq %ebx,%r13
  sub    $0x1,%ebx
L151:
  test   %r13d,%r13d
  movslq %ebx,%r14
  sete   %r12b
  je     L16
  nopl   0x0(%rax,%rax,1)
L72:
  xor    %eax,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x21,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%edx
  sub    %edx,%eax
  add    $0x1,%eax
  cmp    %eax,%ebp
  jne    L315
  test   %r12b,%r12b
  jne    L72
L315:
  cmp    %eax,0x20(%rsp,%r14,4)
  je     L72
L230:
  mov    0x8(%rsp),%rsi
  add    $0x1,%ebx
  mov    %eax,(%rsi,%r13,4)
  add    $0x1,%r13
  cmp    %r13d,0x10(%rsp)
  jg     L151
L69:
  mov    0x1c(%rsp),%eax
  mov    0x8(%rsp),%rbx
  movl   $0x1,0x1c(%rsp)
  xor    %r14d,%r14d
  lea    D32(%rip),%r13
  lea    0x24(%rsp,%rax,4),%rax
  mov    %rax,0x10(%rsp)
L14:
  mov    (%rbx),%edi
  mov    0x4(%rbx),%esi
  cmp    $0x6,%edi
  je     L226
  call   <Create_Campaign_Arrive_Objective@plt>
  mov    %rax,%r12
  test   %r14d,%r14d
  je     L51
L34:
  test   %r12,%r12
  je     L160
  mov    %r15,%rdi
  mov    %r12,%rdx
  mov    %r13,%rsi
  call   <fprintf@plt>
  mov    %r12,%rdi
  call   <free@plt>
L160:
  add    $0x4,%rbx
  mov    $0x1,%r14d
  cmp    0x10(%rsp),%rbx
  jne    L14
  mov    0x8(%rsp),%rsi
  mov    %ebp,%edi
  call   <Place_Campaign_Humans@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L190
  mov    %r15,%rdi
  mov    %rax,%rdx
  lea    D32(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  call   <free@plt>
L190:
  mov    0x1c(%rsp),%edi
  call   <Create_Campaign_Aircraft@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L320
  mov    %r15,%rdi
  mov    %rax,%rdx
  lea    D32(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  call   <free@plt>
L320:
  mov    %r15,%rdi
  call   <fclose@plt>
  mov    $0x1,%eax
  jmp    L2
  xchg   %ax,%ax
L16:
  xor    %eax,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x21,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%edx
  sub    %edx,%eax
  add    $0x1,%eax
  cmp    %eax,%ebp
  je     L16
  jmp    L230
  nopl   (%rax)
L50:
  test   %ebx,%ebx
  sete   %r13b
  je     L294
  nopl   0x0(%rax,%rax,1)
L209:
  xor    %eax,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x21,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%edx
  sub    %edx,%eax
  add    $0x1,%eax
  cmp    %eax,%ebp
  jne    L335
  test   %r13b,%r13b
  jne    L209
L335:
  cmp    %eax,-0x4(%r12)
  je     L209
  jmp    L189
  nopl   0x0(%rax)
L294:
  xor    %eax,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x21,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%edx
  sub    %edx,%eax
  add    $0x1,%eax
  cmp    %ebp,%eax
  je     L294
  jmp    L189
  nopl   (%rax)
L226:
  mov    %esi,%edi
  call   <Create_Campaign_Pickup_Objective@plt>
  movl   $0x0,0x1c(%rsp)
  mov    %rax,%r12
  test   %r14d,%r14d
  jne    L34
L51:
  mov    0x20(%rsp),%edi
  call   <Create_Campaign_Description@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L88
  mov    %r15,%rdi
  mov    %rax,%rdx
  mov    %r13,%rsi
  call   <fprintf@plt>
  mov    %r14,%rdi
  call   <free@plt>
L88:
  xor    %eax,%eax
  call   <Create_Campaign_Weather@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L325
  mov    %r15,%rdi
  mov    %rax,%rdx
  mov    %r13,%rsi
  call   <fprintf@plt>
  mov    %r14,%rdi
  call   <free@plt>
L325:
  xor    %eax,%eax
  call   <Create_Campaign_Scenery@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L214
  mov    %r15,%rdi
  mov    %rax,%rdx
  mov    %r13,%rsi
  call   <fprintf@plt>
  mov    %r14,%rdi
  call   <free@plt>
L214:
  xor    %eax,%eax
  call   <Place_Campaign_Ship@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L199
  mov    %r15,%rdi
  mov    %rax,%rdx
  mov    %r13,%rsi
  call   <fprintf@plt>
  mov    %r14,%rdi
  call   <free@plt>
L199:
  mov    %ebp,%edi
  call   <Get_Location_Symbol@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L34
  mov    %r15,%rdi
  mov    %rax,%rdx
  lea    D7(%rip),%rsi
  call   <fprintf@plt>
  mov    %r14,%rdi
  call   <free@plt>
  jmp    L34
L67:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D32
type_infered: string
name: disassemble_data
arguments: data_label: D7
type_infered: string

tool: D32: %s


tool: D7: mission_begin_at %s


assistant: ```c
int Create_Campaign() {
  FILE *camp_file;
  char *objective_string, *temp_string;
  int start_point;
  int objective_type, all_arrivals = 1;
  int number_of_objectives;
  int done_description = 0;
  int destination[5];
  int count;
  camp_file = Create_Campaign_File();
  if (!camp_file)
    return 0;
  memset(destination, 0, 5 * sizeof(int));
  start_point = Create_Campaign_Start_Point();
  number_of_objectives = (rand() % 3) + 3;
  count = 0;
  while (count < number_of_objectives) {
    if (count < (number_of_objectives - 1))
      objective_type = rand() % 2;
    else
      objective_type = 0;
    if (objective_type == 0) {
      int done;
      int temp_place;
      do {
        temp_place = (rand() % 5) + 1;
        if ((count == 0) && (temp_place == start_point))
          done = 0;
        else if ((count > 0) && (temp_place == destination[count - 1]))
          done = 0;
        else
          done = 1;
      } while (!done);
      destination[count] = temp_place;
    } else
      destination[count] = 6;
    count++;
  }
  count = 0;
  while (count < number_of_objectives) {
    if (destination[count] == 6) {
      objective_string = Create_Campaign_Pickup_Objective(destination[count + 1]);
      all_arrivals = 0;
    } else
      objective_string = Create_Campaign_Arrive_Objective(destination[count], destination[count + 1]);
    if (!done_description) {
      temp_string = Create_Campaign_Description(destination[0]);
      if (temp_string) {
        fprintf(camp_file, "%s\n", temp_string);
        free(temp_string);
      }
      temp_string = Create_Campaign_Weather();
      if (temp_string) {
        fprintf(camp_file, "%s\n", temp_string);
        free(temp_string);
      }
      temp_string = Create_Campaign_Scenery();
      if (temp_string) {
        fprintf(camp_file, "%s\n", temp_string);
        free(temp_string);
      }
      temp_string = Place_Campaign_Ship();
      if (temp_string) {
        fprintf(camp_file, "%s\n", temp_string);
        free(temp_string);
      }
      temp_string = Get_Location_Symbol(start_point);
      if (temp_string) {
        fprintf(camp_file, "mission_begin_at %s\n", temp_string);
        free(temp_string);
      }
      done_description = 1;
    }
    if (objective_string) {
      fprintf(camp_file, "%s\n", objective_string);
      free(objective_string);
    }
    count++;
  }
  temp_string = Place_Campaign_Humans(start_point, destination);
  if (temp_string) {
    fprintf(camp_file, "%s\n", temp_string);
    free(temp_string);
  }
  temp_string = Create_Campaign_Aircraft(all_arrivals);
  if (temp_string) {
    fprintf(camp_file, "%s\n", temp_string);
    free(temp_string);
  }
  fclose(camp_file);
  return 1;
}
```