user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %edi,%r14d
  mov    %rsi,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  mov    0x8(%rsi),%rdi
  lea    D63(%rip),%rsi
  call   <strcmp@plt>
  mov    $0x9,%ebp
  mov    $0x0,%r13d
  test   %eax,%eax
  je     L111
L15:
  mov    0x8(%r12),%rdi
  lea    D11(%rip),%rsi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L146
  lea    0x10(%rsp),%rbx
  lea    D52(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    0x10(%r12),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  mov    $0x2,%r13d
L143:
  mov    0x8(%r12),%rdi
  lea    D40(%rip),%rsi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L81
L66:
  test   %ebp,%ebp
  je     L115
  movslq %r13d,%rax
  lea    (%r12,%rax,8),%r15
  mov    $0x0,%ebx
  jmp    L62
L111:
  mov    0x10(%r12),%rdi
  call   <atoi@plt>
  mov    %eax,%ebp
  mov    $0x2,%r13d
  jmp    L15
L146:
  lea    0x10(%rsp),%rdi
  lea    D26(%rip),%rsi
  call   <strcpy@plt>
  jmp    L143
L81:
  lea    D24(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%edi
  call   <exit@plt>
  jmp    L66
L120:
  mov    %r14d,%esi
  sub    %r13d,%esi
  lea    0x10(%rsp),%r8
  mov    %ebp,%ecx
  mov    %r15,%rdx
  mov    %ebx,%edi
  call   <do_child@plt>
L72:
  lea    0x1(%rbx),%eax
  cmp    %eax,%ebp
  je     L13
  mov    %eax,%ebx
L62:
  call   <fork@plt>
  test   %eax,%eax
  je     L120
  jg     L72
  lea    D0(%rip),%rdi
  call   <printf@plt>
  jmp    L72
L13:
  test   %eax,%eax
  je     L115
  mov    $0x0,%ebp
  lea    0xc(%rsp),%r14
L38:
  mov    %r14,%rdi
  call   <wait@plt>
  mov    %ebp,%eax
  add    $0x1,%ebp
  cmp    %eax,%ebx
  jne    L38
L115:
  movslq %r13d,%r13
  lea    (%r12,%r13,8),%rdi
  call   <cleanup@plt>
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L43
  mov    $0x0,%eax
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L43:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D63
type: string
name: disassemble_data
arguments: label: D11
type: string
name: disassemble_data
arguments: label: D52
type: string
name: disassemble_data
arguments: label: D40
type: string
name: disassemble_data
arguments: label: D26
type: string
name: disassemble_data
arguments: label: D24
type: string
name: disassemble_data
arguments: label: D0
type: string

tool: D63: -processes

tool: D11: -script

tool: D52: /home/julia/coccinelle/tools/distributed/

tool: D40: --help

tool: D26: /home/julia/coccinelle/tools/distributed/spatch_linux_script

tool: D24: spatch_linux [-processes n] foo.cocci ...


tool: D0: *** forking error ***


assistant: ```c
int main(unsigned int argc, char **argv) {
  int i, start = 0, max;
  char script[150];
  max = 9;
  if (!strcmp(argv[1], "-processes")) {
    max = atoi(argv[2]);
    start = 2;
  }
  if (!strcmp(argv[1], "-script")) {
    strcpy(script, "/home/julia/coccinelle/tools/distributed/");
    strcat(script, argv[2]);
    start = 2;
  } else
    strcpy(script, "/home/julia/coccinelle/tools/distributed/"
                   "spatch_linux_script");
  if (!strcmp(argv[1], "--help")) {
    printf("spatch_linux [-processes n] foo.cocci ...\n");
    exit(0);
  }
  int pid;
  for (i = 0; i != max; i++) {
    if (!(pid = fork())) {
      do_child(i, argc - start, &argv[start], max, script);
    } else if (pid > 0) {
    } else
      printf("*** forking error ***\n");
  }
  int status;
  for (i = 0; i != max; i++) {
    pid = wait(&status);
  }
  cleanup(&argv[start]);
}
```