// File: /workspace/github_c_makefile_star2_O3/orangeduck[P]mpc/mpc.c
// Function: mpc_parse_run
static int mpc_parse_run(mpc_input_t *i, mpc_parser_t *p, mpc_result_t *r, mpc_err_t **e, int depth) {

  int j = 0, k = 0;
  mpc_result_t results_stk[MPC_PARSE_STACK_MIN];
  mpc_result_t *results;

  if (depth == MPC_MAX_RECURSION_DEPTH)
  {
    MPC_FAILURE(mpc_err_fail(i, "Maximum recursion depth exceeded!"));
  }

  switch (p->type) {

    /* Basic Parsers */

    case MPC_TYPE_ANY:     MPC_PRIMITIVE(mpc_input_any(i, (char**)&r->output));
    case MPC_TYPE_SINGLE:  MPC_PRIMITIVE(mpc_input_char(i, p->data.single.x, (char**)&r->output));
    case MPC_TYPE_RANGE:   MPC_PRIMITIVE(mpc_input_range(i, p->data.range.x, p->data.range.y, (char**)&r->output));
    case MPC_TYPE_ONEOF:   MPC_PRIMITIVE(mpc_input_oneof(i, p->data.string.x, (char**)&r->output));
    case MPC_TYPE_NONEOF:  MPC_PRIMITIVE(mpc_input_noneof(i, p->data.string.x, (char**)&r->output));
    case MPC_TYPE_SATISFY: MPC_PRIMITIVE(mpc_input_satisfy(i, p->data.satisfy.f, (char**)&r->output));
    case MPC_TYPE_STRING:  MPC_PRIMITIVE(mpc_input_string(i, p->data.string.x, (char**)&r->output));
    case MPC_TYPE_ANCHOR:  MPC_PRIMITIVE(mpc_input_anchor(i, p->data.anchor.f, (char**)&r->output));
    case MPC_TYPE_SOI:     MPC_PRIMITIVE(mpc_input_soi(i, (char**)&r->output));
    case MPC_TYPE_EOI:     MPC_PRIMITIVE(mpc_input_eoi(i, (char**)&r->output));

    /* Other parsers */

    case MPC_TYPE_UNDEFINED: MPC_FAILURE(mpc_err_fail(i, "Parser Undefined!"));
    case MPC_TYPE_PASS:      MPC_SUCCESS(NULL);
    case MPC_TYPE_FAIL:      MPC_FAILURE(mpc_err_fail(i, p->data.fail.m));
    case MPC_TYPE_LIFT:      MPC_SUCCESS(p->data.lift.lf());
    case MPC_TYPE_LIFT_VAL:  MPC_SUCCESS(p->data.lift.x);
    case MPC_TYPE_STATE:     MPC_SUCCESS(mpc_input_state_copy(i));

    /* Application Parsers */

    case MPC_TYPE_APPLY:
      if (mpc_parse_run(i, p->data.apply.x, r, e, depth+1)) {
        MPC_SUCCESS(mpc_parse_apply(i, p->data.apply.f, r->output));
      } else {
        MPC_FAILURE(r->output);
      }

    case MPC_TYPE_APPLY_TO:
      if (mpc_parse_run(i, p->data.apply_to.x, r, e, depth+1)) {
        MPC_SUCCESS(mpc_parse_apply_to(i, p->data.apply_to.f, r->output, p->data.apply_to.d));
      } else {
        MPC_FAILURE(r->error);
      }

    case MPC_TYPE_CHECK:
      if (mpc_parse_run(i, p->data.check.x, r, e, depth+1)) {
        if (p->data.check.f(&r->output)) {
          MPC_SUCCESS(r->output);
        } else {
          mpc_parse_dtor(i, p->data.check.dx, r->output);
          MPC_FAILURE(mpc_err_fail(i, p->data.check.e));
        }
      } else {
        MPC_FAILURE(r->error);
      }

    case MPC_TYPE_CHECK_WITH:
      if (mpc_parse_run(i, p->data.check_with.x, r, e, depth+1)) {
        if (p->data.check_with.f(&r->output, p->data.check_with.d)) {
          MPC_SUCCESS(r->output);
        } else {
          mpc_parse_dtor(i, p->data.check.dx, r->output);
          MPC_FAILURE(mpc_err_fail(i, p->data.check_with.e));
        }
      } else {
        MPC_FAILURE(r->error);
      }

    case MPC_TYPE_EXPECT:
      mpc_input_suppress_enable(i);
      if (mpc_parse_run(i, p->data.expect.x, r, e, depth+1)) {
        mpc_input_suppress_disable(i);
        MPC_SUCCESS(r->output);
      } else {
        mpc_input_suppress_disable(i);
        MPC_FAILURE(mpc_err_new(i, p->data.expect.m));
      }

    case MPC_TYPE_PREDICT:
      mpc_input_backtrack_disable(i);
      if (mpc_parse_run(i, p->data.predict.x, r, e, depth+1)) {
        mpc_input_backtrack_enable(i);
        MPC_SUCCESS(r->output);
      } else {
        mpc_input_backtrack_enable(i);
        MPC_FAILURE(r->error);
      }

    /* Optional Parsers */

    /* TODO: Update Not Error Message */

    case MPC_TYPE_NOT:
      mpc_input_mark(i);
      mpc_input_suppress_enable(i);
      if (mpc_parse_run(i, p->data.not.x, r, e, depth+1)) {
        mpc_input_rewind(i);
        mpc_input_suppress_disable(i);
        mpc_parse_dtor(i, p->data.not.dx, r->output);
        MPC_FAILURE(mpc_err_new(i, "opposite"));
      } else {
        mpc_input_unmark(i);
        mpc_input_suppress_disable(i);
        MPC_SUCCESS(p->data.not.lf());
      }

    case MPC_TYPE_MAYBE:
      if (mpc_parse_run(i, p->data.not.x, r, e, depth+1)) {
        MPC_SUCCESS(r->output);
      } else {
        *e = mpc_err_merge(i, *e, r->error);
        MPC_SUCCESS(p->data.not.lf());
      }

    /* Repeat Parsers */

    case MPC_TYPE_MANY:

      results = results_stk;

      while (mpc_parse_run(i, p->data.repeat.x, &results[j], e, depth+1)) {
        j++;
        results = mpc_grow_results(i, j, results_stk, results);
      }

      *e = mpc_err_merge(i, *e, results[j].error);

      MPC_SUCCESS(
        mpc_parse_fold(i, p->data.repeat.f, j, (mpc_val_t**)results);
        if (j >= MPC_PARSE_STACK_MIN) { mpc_free(i, results); });

    case MPC_TYPE_MANY1:

      results = results_stk;

      while (mpc_parse_run(i, p->data.repeat.x, &results[j], e, depth+1)) {
        j++;
        results = mpc_grow_results(i, j, results_stk, results);
      }

      if (j == 0) {
        MPC_FAILURE(
          mpc_err_many1(i, results[j].error);
          if (j >= MPC_PARSE_STACK_MIN) { mpc_free(i, results); });
      } else {

        *e = mpc_err_merge(i, *e, results[j].error);

        MPC_SUCCESS(
          mpc_parse_fold(i, p->data.repeat.f, j, (mpc_val_t**)results);
          if (j >= MPC_PARSE_STACK_MIN) { mpc_free(i, results); });
      }

   case MPC_TYPE_SEPBY1:

      results = results_stk;

      if(mpc_parse_run(i, p->data.sepby1.x, &results[j], e, depth+1)){
        j++;
        results = mpc_grow_results(i, j, results_stk, results);

        while (
          mpc_parse_run(i, p->data.sepby1.sep, &results[j], e, depth+1) &&
          mpc_parse_run(i, p->data.sepby1.x, &results[j], e, depth+1)
        ) {
          j++;
          results = mpc_grow_results(i, j, results_stk, results);
        }
      }

      if (j == 0) {
        MPC_FAILURE(
          mpc_err_many1(i, results[j].error);
          if (j >= MPC_PARSE_STACK_MIN) { mpc_free(i, results); });
      } else {
        *e = mpc_err_merge(i, *e, results[j].error);

        MPC_SUCCESS(
          mpc_parse_fold(i, p->data.repeat.f, j, (mpc_val_t**)results);
          if (j >= MPC_PARSE_STACK_MIN) { mpc_free(i, results); });
      }

    case MPC_TYPE_COUNT:

      results = p->data.repeat.n > MPC_PARSE_STACK_MIN
        ? mpc_malloc(i, sizeof(mpc_result_t) * p->data.repeat.n)
        : results_stk;

      while (mpc_parse_run(i, p->data.repeat.x, &results[j], e, depth+1)) {
        j++;
        if (j == p->data.repeat.n) { break; }
      }

      if (j == p->data.repeat.n) {
        MPC_SUCCESS(
          mpc_parse_fold(i, p->data.repeat.f, j, (mpc_val_t**)results);
          if (p->data.repeat.n > MPC_PARSE_STACK_MIN) { mpc_free(i, results); });
      } else {
        for (k = 0; k < j; k++) {
          mpc_parse_dtor(i, p->data.repeat.dx, results[k].output);
        }
        MPC_FAILURE(
          mpc_err_count(i, results[j].error, p->data.repeat.n);
          if (p->data.repeat.n > MPC_PARSE_STACK_MIN) { mpc_free(i, results); });
      }

    /* Combinatory Parsers */

    case MPC_TYPE_OR:

      if (p->data.or.n == 0) { MPC_SUCCESS(NULL); }

      results = p->data.or.n > MPC_PARSE_STACK_MIN
        ? mpc_malloc(i, sizeof(mpc_result_t) * p->data.or.n)
        : results_stk;

      for (j = 0; j < p->data.or.n; j++) {
        if (mpc_parse_run(i, p->data.or.xs[j], &results[j], e, depth+1)) {
          MPC_SUCCESS(results[j].output;
            if (p->data.or.n > MPC_PARSE_STACK_MIN) { mpc_free(i, results); });
        } else {
          *e = mpc_err_merge(i, *e, results[j].error);
        }
      }

      MPC_FAILURE(NULL;
        if (p->data.or.n > MPC_PARSE_STACK_MIN) { mpc_free(i, results); });

    case MPC_TYPE_AND:
      if (p->data.and.n == 0) { MPC_SUCCESS(NULL); }

      results = p->data.or.n > MPC_PARSE_STACK_MIN
        ? mpc_malloc(i, sizeof(mpc_result_t) * p->data.or.n)
        : results_stk;

      mpc_input_mark(i);
      for (j = 0; j < p->data.and.n; j++) {
        if (!mpc_parse_run(i, p->data.and.xs[j], &results[j], e, depth+1)) {
          mpc_input_rewind(i);
          for (k = 0; k < j; k++) {
            mpc_parse_dtor(i, p->data.and.dxs[k], results[k].output);
          }
          MPC_FAILURE(results[j].error;
            if (p->data.or.n > MPC_PARSE_STACK_MIN) { mpc_free(i, results); });
        }
      }
      mpc_input_unmark(i);
      MPC_SUCCESS(
        mpc_parse_fold(i, p->data.and.f, j, (mpc_val_t**)results);
        if (p->data.or.n > MPC_PARSE_STACK_MIN) { mpc_free(i, results); });

    /* End */

    default:

      MPC_FAILURE(mpc_err_fail(i, "Unknown Parser Type Id!"));
  }

  return 0;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbp
movq %rdi, %r14
cmpl $0x3e8, %r8d            # imm = 0x3E8
jne 0x4d3f
leaq 0x9973(%rip), %rsi      # 0xe691
movq %r14, %rdi
callq 0x4c63
movq %rax, (%rbp)
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %r15
movzbl 0x30(%rsi), %eax
cmpq $0x1d, %rax
ja 0x51fb
movl %r8d, %r13d
movq %rcx, %r12
leaq 0x92db(%rip), %rcx      # 0xe038
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x9946(%rip), %rsi      # 0xe6b3
jmp 0x4d1e
xorl %r13d, %r13d
cmpb $0x0, 0x68(%r14)
sete %r13b
movq $0x0, (%rbp)
jmp 0x4d2d
movq 0x8(%r15), %rsi
incl %r13d
movq %r14, %rdi
movq %rbp, %rdx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
testl %eax, %eax
je 0x4d2a
movq %r14, %r13
movq 0x10(%r15), %r14
movq 0x18(%r15), %rbx
movq (%rbp), %r15
leaq 0x278(%r13), %r12
cmpq %r15, %r12
seta %al
leaq 0x8278(%r13), %rcx
cmpq %r15, %rcx
setbe %cl
orb %al, %cl
jne 0x4e0a
movl $0x40, %edi
callq 0x43a0
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups 0x30(%r15), %xmm3
movups %xmm0, (%rax)
movups %xmm1, 0x10(%rax)
movups %xmm2, 0x20(%rax)
movups %xmm3, 0x30(%rax)
subq %r12, %r15
shrq $0x6, %r15
movb $0x0, 0x78(%r13,%r15)
movq %rax, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq *%r14
jmp 0x55ea
movq 0x8(%r15), %rsi
movq %r14, %rdi
movq %rbp, %rdx
callq 0xc815
jmp 0x51e0
movq 0x8(%r15), %rsi
movq %r14, %rdi
movq %rbp, %rdx
callq 0xc767
jmp 0x51e0
movq 0x10(%r15), %rax
jmp 0x55ea
movsbl 0x8(%r15), %esi
movsbl 0x9(%r15), %edx
movq %r14, %rdi
movq %rbp, %rcx
callq 0xc6b2
jmp 0x51e0
movsbl 0x8(%r15), %esi
movq %r14, %rdi
movq %rbp, %rdx
callq 0xc65d
jmp 0x51e0
movq 0x8(%r15), %rsi
incl %r13d
movq %r14, %rdi
movq %rbp, %rdx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
xorl %r13d, %r13d
testl %eax, %eax
je 0x4d2d
movq %rbp, %rdi
callq *0x18(%r15)
movl $0x1, %r13d
testl %eax, %eax
jne 0x4d2d
movq 0x10(%r15), %rsi
movq (%rbp), %rdx
movq %r14, %rdi
callq 0xc9be
movq 0x20(%r15), %rsi
jmp 0x4d1e
movl 0x8(%r15), %esi
testq %rsi, %rsi
je 0x52ac
cmpl $0x5, %esi
jl 0x55f9
shlq $0x3, %rsi
movq %r14, %rdi
callq 0xc5d1
jmp 0x55fe
movq 0x8(%r15), %rsi
jmp 0x4d1e
movq 0x8(%r15), %rsi
incl %r13d
movq %r14, %rdi
movq %rbp, %rdx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
testl %eax, %eax
je 0x4d2a
movq 0x10(%r15), %rsi
movq (%rbp), %rdx
movq %r14, %rdi
callq 0xc898
jmp 0x55ea
callq *0x8(%r15)
jmp 0x55ea
movl $0x20, %esi
movq %r14, %rdi
callq 0xc5d1
movups 0x10(%r14), %xmm0
movups 0x20(%r14), %xmm1
movups %xmm0, (%rax)
movups %xmm1, 0x10(%rax)
jmp 0x55ea
decl 0x4c(%r14)
movq 0x8(%r15), %rsi
incl %r13d
movq %r14, %rdi
movq %rbp, %rdx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
incl 0x4c(%r14)
jmp 0x4d30
movq %rbp, 0x10(%rsp)
incl %r13d
movq 0x18(%r15), %rsi
leaq 0x20(%rsp), %rdx
movq %r14, %rdi
movq %rdx, %rbx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
testl %eax, %eax
je 0x5598
leaq 0x20(%rsp), %rbx
xorl %ebp, %ebp
movq %r15, 0x8(%rsp)
movq %r12, %r15
movq %r14, %r12
xorl %r14d, %r14d
incl %ebp
movq %r12, %rdi
movl %ebp, %esi
leaq 0x20(%rsp), %rdx
movq %rbx, %rcx
callq 0xccd9
movq %rax, %rbx
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rsi
leaq (%r14,%rbx), %rdx
addq $0x8, %rdx
movq %r12, %rdi
movq %r15, %rcx
movl %r13d, %r8d
callq 0x4cfa
addq $0x8, %r14
testl %eax, %eax
jne 0x4fbe
movq %rbx, %rax
addq %r14, %rax
movq %r12, %r14
movq %r15, %r12
movq 0x8(%rsp), %r15
jmp 0x559d
incl 0x48(%r14)
movq 0x8(%r15), %rsi
incl %r13d
movq %r14, %rdi
movq %rbp, %rdx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
decl 0x48(%r14)
movl $0x1, %r13d
testl %eax, %eax
jne 0x4d2d
movq 0x10(%r15), %rsi
jmp 0x51b7
incl %r13d
movq 0x18(%r15), %rsi
leaq 0x20(%rsp), %rdx
movq %r14, %rdi
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
testl %eax, %eax
je 0x548b
movq %rbp, 0x10(%rsp)
movq %r15, 0x8(%rsp)
movq %r12, %r15
movq %r14, %r12
movl $0x8, %r14d
xorl %ebp, %ebp
leaq 0x20(%rsp), %rbx
incq %rbp
movq %r12, %rdi
movl %ebp, %esi
leaq 0x20(%rsp), %rdx
movq %rbx, %rcx
callq 0xccd9
movq %rax, %rbx
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rsi
leaq (%rbx,%r14), %rdx
movq %r12, %rdi
movq %r15, %rcx
movl %r13d, %r8d
callq 0x4cfa
addq $0x8, %r14
testl %eax, %eax
jne 0x5088
movq (%r15), %rsi
movq (%rbx,%rbp,8), %rdx
movq %r12, %rdi
callq 0x5918
movq %rax, (%r15)
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rsi
movq %r12, %rdi
movl %ebp, %edx
movq %rbx, %rcx
callq 0xcd14
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
decq %rbp
movl $0x1, %r13d
cmpq $0x3, %rbp
jb 0x4d2d
leaq 0x278(%r12), %rax
cmpq %rbx, %rax
seta %cl
leaq 0x8278(%r12), %rdx
cmpq %rbx, %rdx
setbe %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x5424
jmp 0x5723
movq 0x8(%r15), %rsi
movq %r14, %rdi
movq %rbp, %rdx
callq 0xc7c1
jmp 0x51e0
movq %r14, %rdi
movq 0x8(%r15), %r14
movq $0x0, (%rbp)
movsbl 0x68(%rdi), %ebx
callq 0xd0ea
movsbl %al, %esi
movl %ebx, %edi
callq *%r14
jmp 0x51e0
movq %r14, %rdi
callq 0xcb31
incl 0x48(%r14)
movq 0x8(%r15), %rsi
incl %r13d
movq %r14, %rdi
movq %rbp, %rdx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
movq %r14, %rdi
testl %eax, %eax
je 0x55dd
callq 0xcbce
decl 0x48(%r14)
movq 0x10(%r15), %rsi
movq (%rbp), %rdx
movq %r14, %rdi
callq 0xc9be
leaq 0x950e(%rip), %rsi      # 0xe6c5
movq %r14, %rdi
callq 0xca73
jmp 0x4d26
movq 0x8(%r15), %rsi
movq %r14, %rdi
movq %rbp, %rdx
callq 0xc70d
jmp 0x51e0
movq %r14, %rdi
movq %rbp, %rsi
callq 0xc623
movl $0x1, %r13d
testl %eax, %eax
jne 0x4d2d
movq $0x0, (%rbp)
jmp 0x4d2a
leaq 0x94cc(%rip), %rsi      # 0xe6ce
jmp 0x4d1e
movslq 0x8(%r15), %rsi
cmpq $0x5, %rsi
movq %rbp, 0x10(%rsp)
jl 0x54a4
shlq $0x3, %rsi
movq %r14, %rdi
callq 0xc5d1
movq %rax, %rbx
jmp 0x54a9
movq 0x8(%r15), %rsi
incl %r13d
movq %r14, %rdi
movq %rbp, %rdx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
movl $0x1, %r13d
testl %eax, %eax
jne 0x4d2d
movq (%r12), %rsi
movq (%rbp), %rdx
movq %r14, %rdi
callq 0x5918
movq %rax, (%r12)
callq *0x18(%r15)
movq %rax, (%rbp)
jmp 0x4d2d
movl 0x8(%r15), %esi
testq %rsi, %rsi
je 0x52ac
movq %r12, %rbx
cmpl $0x5, %esi
movq %rbp, 0x10(%rsp)
jl 0x565d
shlq $0x3, %rsi
movq %r14, %r12
movq %r14, %rdi
callq 0xc5d1
movq %rax, 0x8(%rsp)
movl 0x8(%r15), %esi
jmp 0x566a
movq $0x0, (%rbp)
jmp 0x55ee
movq $0x0, (%rbp)
cmpl $0x0, 0x28(%r14)
jne 0x51ee
movq %r14, %rdi
callq 0xd0ea
testb %al, %al
jne 0x51ee
movl $0x1, 0x28(%r14)
jmp 0x55ee
movq 0x18(%r15), %rsi
incl %r13d
leaq 0x20(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rdx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
testl %eax, %eax
je 0x548b
movq %rbx, 0x18(%rsp)
movq %rbp, 0x10(%rsp)
movq 0x20(%r15), %rsi
leaq 0x28(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rdx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
movl $0x1, %ebp
testl %eax, %eax
movq %r15, 0x8(%rsp)
movq %r12, %r15
movq %r14, %r12
je 0x53b7
leaq 0x20(%rsp), %rax
movl $0x10, %r14d
movq %rax, 0x18(%rsp)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rsi
movq %r12, %rdi
movq %rbx, %rdx
movq %r15, %rcx
movl %r13d, %r8d
callq 0x4cfa
testl %eax, %eax
je 0x53b7
incl %ebp
movq %r12, %rdi
movl %ebp, %esi
leaq 0x20(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0xccd9
movq %rax, %rbx
movq 0x8(%rsp), %rcx
movq 0x20(%rcx), %rsi
movq %rax, 0x18(%rsp)
addq %r14, %rbx
movq %r12, %rdi
movq %rbx, %rdx
movq %r15, %rcx
movl %r13d, %r8d
callq 0x4cfa
addq $0x8, %r14
testl %eax, %eax
jne 0x5356
movq (%r15), %rsi
movl %ebp, %eax
movq 0x18(%rsp), %rbx
movq (%rbx,%rax,8), %rdx
movq %r12, %rdi
callq 0x5918
movq %rax, (%r15)
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rsi
movq %r12, %rdi
movl %ebp, %edx
movq %rbx, %rcx
callq 0xcd14
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
cmpl $0x4, %ebp
jb 0x55ee
leaq 0x278(%r12), %rax
cmpq %rbx, %rax
seta %cl
leaq 0x8278(%r12), %rdx
cmpq %rbx, %rdx
setbe %dl
orb %cl, %dl
cmpb $0x1, %dl
movl $0x1, %r13d
je 0x5723
subq %rax, %rbx
shrq $0x6, %rbx
movb $0x0, 0x78(%r12,%rbx)
jmp 0x4d2d
movq 0x8(%r15), %rsi
incl %r13d
movq %r14, %rdi
movq %rbp, %rdx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
xorl %r13d, %r13d
testl %eax, %eax
je 0x4d2d
movq 0x20(%r15), %rsi
movq %rbp, %rdi
callq *0x18(%r15)
movl $0x1, %r13d
testl %eax, %eax
jne 0x4d2d
movq 0x10(%r15), %rsi
movq (%rbp), %rdx
movq %r14, %rdi
callq 0xc9be
movq 0x28(%r15), %rsi
jmp 0x4d1e
movq 0x20(%rsp), %rsi
leaq 0x924f(%rip), %rdx      # 0xe6e6
movq %r14, %rdi
callq 0xd3da
jmp 0x4d26
leaq 0x20(%rsp), %rbx
incl %r13d
xorl %ebp, %ebp
movq %rbx, 0x8(%rsp)
movq 0x18(%r15), %rsi
movq %r14, %rdi
movq %rbx, %rdx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
movl 0x8(%r15), %edx
testl %eax, %eax
je 0x54dc
incq %rbp
addq $0x8, %rbx
cmpq %rdx, %rbp
jne 0x54b3
cmpl %ebp, %edx
jne 0x5501
movq 0x10(%r15), %rsi
movq %r14, %rdi
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0xcd14
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
jmp 0x56f1
testl %ebp, %ebp
movq 0x8(%rsp), %r13
jle 0x5538
movl %ebp, %ebx
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
movq %r14, %r12
xorl %r14d, %r14d
movq 0x20(%r15), %rsi
movq (%r13,%r14,8), %rdx
movq %r12, %rdi
callq 0xc9be
incq %r14
cmpq %r14, %rbx
jne 0x5518
movl 0x8(%r15), %edx
movq %r12, %r14
movslq %ebp, %rax
movq (%r13,%rax,8), %rsi
movq %r14, %rdi
callq 0xcf23
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movq %r13, %rdi
xorl %r13d, %r13d
cmpl $0x5, 0x8(%r15)
jl 0x4d2d
leaq 0x278(%r14), %rax
cmpq %rdi, %rax
seta %cl
leaq 0x8278(%r14), %rdx
cmpq %rdi, %rdx
setbe %dl
orb %cl, %dl
cmpb $0x1, %dl
je 0x57c8
subq %rax, %rdi
shrq $0x6, %rdi
movb $0x0, 0x78(%r14,%rdi)
jmp 0x4d2d
xorl %ebp, %ebp
movq %rbx, %rax
movq (%r12), %rsi
movq (%rax), %rdx
movq %r14, %rdi
callq 0x5918
movq %rax, (%r12)
movq 0x10(%r15), %rsi
movq %r14, %rdi
movl %ebp, %edx
movq %rbx, %rcx
callq 0xcd14
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movl $0x1, %r13d
cmpl $0x4, %ebp
jb 0x4d2d
jmp 0x5702
callq 0xcc1f
decl 0x48(%r14)
callq *0x18(%r15)
movq %rax, (%rbp)
movl $0x1, %r13d
jmp 0x4d2d
leaq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r14, %rdi
callq 0xcb31
cmpl $0x0, 0x8(%r15)
jle 0x56cd
movq %rbp, 0x10(%rsp)
incl %r13d
xorl %ebx, %ebx
movq 0x18(%r15), %rax
movq (%rax,%rbx,8), %rsi
movq 0x8(%rsp), %rax
leaq (%rax,%rbx,8), %rbp
movq %r14, %rdi
movq %rbp, %rdx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x4cfa
testl %eax, %eax
je 0x573d
incq %rbx
movslq 0x8(%r15), %rax
cmpq %rax, %rbx
jl 0x5620
movq 0x10(%rsp), %rbp
jmp 0x56cf
movq %r14, %r12
leaq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
testl %esi, %esi
jle 0x56bc
incl %r13d
xorl %r14d, %r14d
movq 0x8(%rsp), %rbp
movq 0x10(%r15), %rax
movq (%rax,%r14,8), %rsi
movq %r12, %rdi
movq %rbp, %rdx
movq %rbx, %rcx
movl %r13d, %r8d
callq 0x4cfa
testl %eax, %eax
jne 0x5783
movq (%rbx), %rsi
movq (%rbp), %rdx
movq %r12, %rdi
callq 0x5918
movq %rax, (%rbx)
incq %r14
movslq 0x8(%r15), %rax
addq $0x8, %rbp
cmpq %rax, %r14
jl 0x5679
movq 0x10(%rsp), %rax
movq $0x0, (%rax)
jmp 0x577e
xorl %ebx, %ebx
movq %r14, %rdi
callq 0xcc1f
movq 0x10(%r15), %rsi
movq %r14, %rdi
movl %ebx, %edx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0xcd14
movq %rax, (%rbp)
movl $0x1, %r13d
cmpl $0x5, 0x8(%r15)
jl 0x4d2d
leaq 0x278(%r14), %rax
cmpq %rbx, %rax
seta %cl
leaq 0x8278(%r14), %rdx
cmpq %rbx, %rdx
setbe %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x572b
movq %rbx, %rdi
jmp 0x57c8
subq %rax, %rbx
shrq $0x6, %rbx
movb $0x0, 0x78(%r14,%rbx)
jmp 0x4d2d
movq %r14, %rdi
callq 0xcbce
testq %rbx, %rbx
movq %r14, %r12
movq 0x8(%rsp), %r13
je 0x5772
xorl %r14d, %r14d
movq 0x20(%r15), %rax
movq (%rax,%r14,8), %rsi
movq (%r13,%r14,8), %rdx
movq %r12, %rdi
callq 0xc9be
incq %r14
cmpq %r14, %rbx
jne 0x5755
movq (%rbp), %rax
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
xorl %r13d, %r13d
jmp 0x5795
movq (%rbp), %rax
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movl $0x1, %r13d
cmpl $0x5, 0x8(%r15)
jl 0x4d2d
leaq 0x278(%r12), %rax
movq 0x8(%rsp), %rdi
cmpq %rdi, %rax
seta %cl
leaq 0x8278(%r12), %rdx
cmpq %rdi, %rdx
setbe %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x57d2
callq 0x4580
jmp 0x4d2d
subq %rax, %rdi
shrq $0x6, %rdi
movb $0x0, 0x78(%r12,%rdi)
jmp 0x4d2d