user: Translate the below assembly code into C programming language:

```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    L232
L186:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L235
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L232:
  lea    0x20(%rsp),%r12
  mov    $0x14,%edx
  xor    %esi,%esi
  xor    %ebx,%ebx
  mov    %r12,%rdi
  mov    %r12,0x18(%rsp)
  mov    %r12,%r14
  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
  mov    %eax,0x14(%rsp)
  lea    0x2(%rdx),%eax
  mov    %eax,0x8(%rsp)
L204:
  cmp    %ebx,0x8(%rsp)
  jle    L10
  xor    %eax,%eax
  call   <rand@plt>
  test   $0x1,%al
  je     L10
  mov    $0x6,%eax
L15:
  mov    %eax,(%r12)
  add    $0x1,%ebx
  add    $0x4,%r12
  cmp    %ebx,0x14(%rsp)
  jne    L204
  mov    0x8(%rsp),%eax
  mov    0x18(%rsp),%rsi
  xor    %r13d,%r13d
  movl   $0x1,0x14(%rsp)
  lea    D30(%rip),%rbx
  lea    0x4(%rsi,%rax,4),%rax
  mov    %rax,0x8(%rsp)
L29:
  mov    (%r14),%edi
  mov    0x4(%r14),%esi
  cmp    $0x6,%edi
  je     L62
  call   <Create_Campaign_Arrive_Objective@plt>
  mov    %rax,%r12
  test   %r13d,%r13d
  je     L176
L142:
  test   %r12,%r12
  je     L75
  mov    %r15,%rdi
  mov    %r12,%rdx
  mov    %rbx,%rsi
  call   <fprintf@plt>
  mov    %r12,%rdi
  call   <free@plt>
L75:
  add    $0x4,%r14
  mov    $0x1,%r13d
  cmp    %r14,0x8(%rsp)
  jne    L29
  mov    0x18(%rsp),%rsi
  mov    %ebp,%edi
  call   <Place_Campaign_Humans@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L92
  mov    %r15,%rdi
  mov    %rax,%rdx
  lea    D30(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  call   <free@plt>
L92:
  mov    0x14(%rsp),%edi
  call   <Create_Campaign_Aircraft@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L12
  mov    %r15,%rdi
  mov    %rax,%rdx
  lea    D30(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  call   <free@plt>
L12:
  mov    %r15,%rdi
  call   <fclose@plt>
  mov    $0x1,%eax
  jmp    L186
  nopl   0x0(%rax)
L10:
  test   %ebx,%ebx
  sete   %r13b
  cs nopw 0x0(%rax,%rax,1)
L1:
  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    L55
  test   %r13b,%r13b
  jne    L1
L55:
  test   %ebx,%ebx
  je     L15
  cmp    %eax,-0x4(%r12)
  je     L1
  jmp    L15
  nopl   0x0(%rax)
L62:
  mov    %esi,%edi
  call   <Create_Campaign_Pickup_Objective@plt>
  movl   $0x0,0x14(%rsp)
  mov    %rax,%r12
  test   %r13d,%r13d
  jne    L142
L176:
  mov    0x20(%rsp),%edi
  call   <Create_Campaign_Description@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L158
  mov    %r15,%rdi
  mov    %rax,%rdx
  mov    %rbx,%rsi
  call   <fprintf@plt>
  mov    %r13,%rdi
  call   <free@plt>
L158:
  xor    %eax,%eax
  call   <Create_Campaign_Weather@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L162
  mov    %r15,%rdi
  mov    %rax,%rdx
  mov    %rbx,%rsi
  call   <fprintf@plt>
  mov    %r13,%rdi
  call   <free@plt>
L162:
  xor    %eax,%eax
  call   <Create_Campaign_Scenery@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L155
  mov    %r15,%rdi
  mov    %rax,%rdx
  mov    %rbx,%rsi
  call   <fprintf@plt>
  mov    %r13,%rdi
  call   <free@plt>
L155:
  xor    %eax,%eax
  call   <Place_Campaign_Ship@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L11
  mov    %r15,%rdi
  mov    %rax,%rdx
  mov    %rbx,%rsi
  call   <fprintf@plt>
  mov    %r13,%rdi
  call   <free@plt>
L11:
  mov    %ebp,%edi
  call   <Get_Location_Symbol@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L142
  mov    %r15,%rdi
  mov    %rax,%rdx
  lea    D11(%rip),%rsi
  call   <fprintf@plt>
  mov    %r13,%rdi
  call   <free@plt>
  jmp    L142
L235:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D30
data_type: string
name: retrieve_data
arguments: data_tag: D11
data_type: string

tool: D30: %s


tool: D11: 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;
}
```