// File: /workspace/github_c_makefile_star2_O0/wuxb45[P]SLB/lib1.c
// Function: maptest_passes
int
maptest_passes(int argc, char ** argv, char ** const pref0, struct pass_info * const pi)
{
  char * pref[64];
  int np = 0;
  while (pref0[np]) {
    pref[np] = pref0[np];
    np++;
  }
  const int n1 = np;

  const int argc0 = argc;
  do {
    int pi1 = n1;
    struct rgen * gen = NULL;
    if ((argc < 1) || (strcmp(argv[0], "rgen") != 0)) {
      break;
    }
    const int n2 = rgen_helper(argc, argv, &gen);
    if (n2 < 0) {
      return n2;
    }
    for (int i = 0; i < n2; i++) {
      pref[pi1++] = argv[i];
    }
    pref[pi1] = NULL;
    argc -= n2;
    argv += n2;

    while ((argc > 0) && (strcmp(argv[0], "pass") == 0)) {
      debug_perf_switch();
      pi->gen0 = gen;
      const int n3 = maptest_pass(argc, argv, pref, pi);
      if (n3 < 0) {
        return n3;
      }
      argc -= n3;
      argv += n3;
    }

    rgen_destroy(gen);
  } while (argc > 0);
  return argc0 - argc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x250, %rsp            # imm = 0x250
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl $0x0, -0x224(%rbp)
movq -0x18(%rbp), %rax
movslq -0x224(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x172d5
movq -0x18(%rbp), %rax
movslq -0x224(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movslq -0x224(%rbp), %rax
movq %rcx, -0x220(%rbp,%rax,8)
movl -0x224(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x224(%rbp)
jmp 0x17294
movl -0x224(%rbp), %eax
movl %eax, -0x228(%rbp)
movl -0x8(%rbp), %eax
movl %eax, -0x22c(%rbp)
movl -0x228(%rbp), %eax
movl %eax, -0x230(%rbp)
movq $0x0, -0x238(%rbp)
cmpl $0x1, -0x8(%rbp)
jl 0x1731f
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x40e3(%rip), %rsi      # 0x1b3f8
callq 0x62d0
cmpl $0x0, %eax
je 0x17324
jmp 0x1749e
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq -0x238(%rbp), %rdx
callq 0xc4a0
movl %eax, -0x23c(%rbp)
cmpl $0x0, -0x23c(%rbp)
jge 0x17354
movl -0x23c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x174aa
movl $0x0, -0x240(%rbp)
movl -0x240(%rbp), %eax
cmpl -0x23c(%rbp), %eax
jge 0x173a7
movq -0x10(%rbp), %rax
movslq -0x240(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movl -0x230(%rbp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, -0x230(%rbp)
cltq
movq %rcx, -0x220(%rbp,%rax,8)
movl -0x240(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x240(%rbp)
jmp 0x1735e
movslq -0x230(%rbp), %rax
movq $0x0, -0x220(%rbp,%rax,8)
movl -0x23c(%rbp), %ecx
movl -0x8(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x8(%rbp)
movl -0x23c(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x8(%rbp)
movb %al, -0x245(%rbp)
jle 0x1740d
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x41f4(%rip), %rsi      # 0x1b5f0
callq 0x62d0
cmpl $0x0, %eax
sete %al
movb %al, -0x245(%rbp)
movb -0x245(%rbp), %al
testb $0x1, %al
jne 0x17419
jmp 0x17488
callq 0x79a0
movq -0x238(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq -0x220(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x167c0
movl %eax, -0x244(%rbp)
cmpl $0x0, -0x244(%rbp)
jge 0x1745d
movl -0x244(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x174aa
movl -0x244(%rbp), %ecx
movl -0x8(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x8(%rbp)
movl -0x244(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x173e0
movq -0x238(%rbp), %rdi
callq 0xc2a0
cmpl $0x0, -0x8(%rbp)
jg 0x172ea
movl -0x22c(%rbp), %eax
subl -0x8(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x250, %rsp            # imm = 0x250
popq %rbp
retq
nopw %cs:(%rax,%rax)