// File: /workspace/github_c_makefile_star2_O1/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, %r13
movq %rdi, %r14
cmpl $0x3e8, %r8d            # imm = 0x3E8
jne 0x4d40
leaq 0x9940(%rip), %rsi      # 0xe661
movq %r14, %rdi
callq 0x4c66
movq %rax, (%r13)
xorl %ebp, %ebp
movl %ebp, %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 0x51a0
movl %r8d, %ebp
movq %rcx, %r12
leaq 0x92da(%rip), %rcx      # 0xe038
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x9915(%rip), %rsi      # 0xe683
jmp 0x4d21
xorl %eax, %eax
movq %rax, (%r13)
xorl %ebp, %ebp
cmpb $0x0, 0x68(%r14)
sete %bpl
jmp 0x520f
movq 0x8(%r15), %rsi
incl %ebp
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x4cfd
testl %eax, %eax
je 0x4d2d
movq %r14, %rbp
movq 0x10(%r15), %r14
movq 0x18(%r15), %rbx
movq (%r13), %r15
leaq 0x278(%rbp), %r12
cmpq %r15, %r12
seta %al
leaq 0x8278(%rbp), %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(%rbp,%r15)
movq %rax, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq *%r14
jmp 0x551e
movq 0x8(%r15), %rsi
movq %r14, %rdi
movq %r13, %rdx
callq 0xc939
jmp 0x5186
movq 0x8(%r15), %rsi
movq %r14, %rdi
movq %r13, %rdx
callq 0xc88b
jmp 0x5186
movq 0x10(%r15), %rax
jmp 0x551e
movsbl 0x8(%r15), %esi
movsbl 0x9(%r15), %edx
movq %r14, %rdi
movq %r13, %rcx
callq 0xc7d6
jmp 0x5186
movsbl 0x8(%r15), %esi
movq %r14, %rdi
movq %r13, %rdx
callq 0xc788
jmp 0x5186
movq 0x8(%r15), %rsi
incl %ebp
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x4cfd
xorl %ebp, %ebp
testl %eax, %eax
je 0x4d2f
movq %r13, %rdi
callq *0x18(%r15)
movl $0x1, %ebp
testl %eax, %eax
jne 0x4d2f
movq 0x10(%r15), %rsi
movq (%r13), %rdx
movq %r14, %rdi
callq 0xcae2
movq 0x20(%r15), %rsi
jmp 0x4d21
movl 0x8(%r15), %esi
testq %rsi, %rsi
je 0x5243
cmpl $0x5, %esi
jl 0x5538
shlq $0x3, %rsi
movq %r14, %rdi
callq 0xc6fc
jmp 0x553d
movq 0x8(%r15), %rsi
jmp 0x4d21
movq 0x8(%r15), %rsi
incl %ebp
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x4cfd
testl %eax, %eax
je 0x4d2d
movq 0x10(%r15), %rsi
movq (%r13), %rdx
movq %r14, %rdi
callq 0xc9bc
jmp 0x551e
callq *0x8(%r15)
jmp 0x551e
movl $0x20, %esi
movq %r14, %rdi
callq 0xc6fc
movups 0x10(%r14), %xmm0
movups 0x20(%r14), %xmm1
movups %xmm0, (%rax)
movups %xmm1, 0x10(%rax)
jmp 0x551e
decl 0x4c(%r14)
movq 0x8(%r15), %rsi
incl %ebp
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x4cfd
incl 0x4c(%r14)
jmp 0x4d31
movq %r13, 0x10(%rsp)
incl %ebp
movq 0x18(%r15), %rsi
leaq 0x20(%rsp), %rdx
movq %r14, %rdi
movq %rdx, %rbx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x4cfd
testl %eax, %eax
je 0x549e
leaq 0x20(%rsp), %rbx
movq %r15, 0x8(%rsp)
movq %r12, %r15
movq %r14, %r12
xorl %r14d, %r14d
xorl %r13d, %r13d
incl %r13d
movq %r12, %rdi
movl %r13d, %esi
leaq 0x20(%rsp), %rdx
movq %rbx, %rcx
callq 0xcdf6
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 %ebp, %r8d
callq 0x4cfd
addq $0x8, %r14
testl %eax, %eax
jne 0x4fb9
movq %rbx, %rax
addq %r14, %rax
movq %r12, %r14
movq %r15, %r12
movq 0x8(%rsp), %r15
jmp 0x54b1
incl 0x48(%r14)
movq 0x8(%r15), %rsi
incl %ebp
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x4cfd
decl 0x48(%r14)
movl $0x1, %ebp
testl %eax, %eax
jne 0x4d2f
movq 0x10(%r15), %rsi
jmp 0x515d
movq %r13, 0x10(%rsp)
incl %ebp
movq 0x18(%r15), %rsi
leaq 0x20(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x4cfd
testl %eax, %eax
je 0x54a6
leaq 0x20(%rsp), %rbx
movq %r15, 0x8(%rsp)
movq %r12, %r15
movq %r14, %r12
xorl %r14d, %r14d
xorl %r13d, %r13d
incl %r13d
movq %r12, %rdi
movl %r13d, %esi
leaq 0x20(%rsp), %rdx
movq %rbx, %rcx
callq 0xcdf6
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 %ebp, %r8d
callq 0x4cfd
addq $0x8, %r14
testl %eax, %eax
jne 0x5083
movq %rbx, %rax
addq %r14, %rax
movq %r12, %r14
movq %r15, %r12
movq 0x8(%rsp), %r15
jmp 0x54ac
movq 0x8(%r15), %rsi
movq %r14, %rdi
movq %r13, %rdx
callq 0xc8e5
jmp 0x5186
movq %r14, %rdi
movq 0x8(%r15), %r14
movq $0x0, (%r13)
movsbl 0x68(%rdi), %ebx
callq 0xd1c0
movsbl %al, %esi
movl %ebx, %edi
callq *%r14
jmp 0x5186
movq %r14, %rdi
callq 0xcc55
incl 0x48(%r14)
movq 0x8(%r15), %rsi
incl %ebp
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x4cfd
movq %r14, %rdi
testl %eax, %eax
je 0x5511
callq 0xccf1
decl 0x48(%r14)
movq 0x10(%r15), %rsi
movq (%r13), %rdx
movq %r14, %rdi
callq 0xcae2
leaq 0x9538(%rip), %rsi      # 0xe695
movq %r14, %rdi
callq 0xcb97
jmp 0x4d29
movq 0x8(%r15), %rsi
movq %r14, %rdi
movq %r13, %rdx
callq 0xc831
jmp 0x5186
movq %r14, %rdi
movq %r13, %rsi
callq 0xc74e
movl $0x1, %ebp
testl %eax, %eax
jne 0x4d2f
movq $0x0, (%r13)
jmp 0x4d2d
leaq 0x94f7(%rip), %rsi      # 0xe69e
jmp 0x4d21
movslq 0x8(%r15), %rsi
cmpq $0x5, %rsi
movq %r13, 0x10(%rsp)
jl 0x53a6
shlq $0x3, %rsi
movq %r14, %rdi
callq 0xc6fc
movq %rax, %r13
jmp 0x53ab
movq 0x8(%r15), %rsi
incl %ebp
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x4cfd
movl $0x1, %ebp
testl %eax, %eax
jne 0x4d2f
movq (%r12), %rsi
movq (%r13), %rdx
movq %r14, %rdi
callq 0x5948
movq %rax, (%r12)
callq *0x18(%r15)
movq %rax, (%r13)
jmp 0x4d2f
movl 0x8(%r15), %esi
testq %rsi, %rsi
je 0x5243
cmpl $0x5, %esi
movq %r13, 0x10(%rsp)
jl 0x559b
shlq $0x3, %rsi
movq %r14, %rbx
movq %r14, %rdi
callq 0xc6fc
jmp 0x55a3
movq $0x0, (%r13)
jmp 0x5522
movq $0x0, (%r13)
cmpl $0x0, 0x28(%r14)
jne 0x5193
movq %r14, %rdi
callq 0xd1c0
testb %al, %al
jne 0x5193
movl $0x1, 0x28(%r14)
jmp 0x5522
movq 0x18(%r15), %rsi
incl %ebp
movq %r12, %rbx
leaq 0x20(%rsp), %r12
movq %r14, %rdi
movq %r12, %rdx
movq %rbx, %rcx
movl %ebp, %r8d
callq 0x4cfd
testl %eax, %eax
movq %rbx, 0x18(%rsp)
je 0x552c
movq %r13, 0x10(%rsp)
movq 0x20(%r15), %rsi
leaq 0x28(%rsp), %r13
movq %r14, %rdi
movq %r13, %rdx
movq %rbx, %rcx
movl %ebp, %r8d
callq 0x4cfd
testl %eax, %eax
je 0x5685
leaq 0x20(%rsp), %rax
movl $0x1, %ebx
movq %r14, %r12
movl $0x10, %r14d
movq %rax, 0x8(%rsp)
movq 0x18(%r15), %rsi
movq %r12, %rdi
movq %r13, %rdx
movq 0x18(%rsp), %rcx
movl %ebp, %r8d
callq 0x4cfd
testl %eax, %eax
je 0x5347
incq %rbx
movq %r12, %rdi
movl %ebx, %esi
leaq 0x20(%rsp), %rdx
movq 0x8(%rsp), %rcx
callq 0xcdf6
movq %rax, %r13
movq 0x20(%r15), %rsi
movq %rax, 0x8(%rsp)
addq %r14, %r13
movq %r12, %rdi
movq %r13, %rdx
movq 0x18(%rsp), %rcx
movl %ebp, %r8d
callq 0x4cfd
addq $0x8, %r14
testl %eax, %eax
jne 0x52eb
movq 0x10(%rsp), %r13
movq %r12, %r14
jmp 0x5694
movq 0x8(%r15), %rsi
incl %ebp
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x4cfd
xorl %ebp, %ebp
testl %eax, %eax
je 0x4d2f
movq 0x20(%r15), %rsi
movq %r13, %rdi
callq *0x18(%r15)
movl $0x1, %ebp
testl %eax, %eax
jne 0x4d2f
movq 0x10(%r15), %rsi
movq (%r13), %rdx
movq %r14, %rdi
callq 0xcae2
movq 0x28(%r15), %rsi
jmp 0x4d21
leaq 0x20(%rsp), %r13
incl %ebp
xorl %ebx, %ebx
movq %r13, 0x8(%rsp)
movq 0x18(%r15), %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x4cfd
testl %eax, %eax
je 0x53dd
incq %rbx
movl 0x8(%r15), %eax
addq $0x8, %r13
cmpq %rax, %rbx
jne 0x53b4
cmpl %ebx, 0x8(%r15)
jne 0x5406
movq 0x10(%r15), %rsi
movq %r14, %rdi
movl %ebx, %edx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0xce31
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
jmp 0x5635
testl %ebx, %ebx
movq %r14, %r13
movq 0x8(%rsp), %rbp
jle 0x5438
movl %ebx, %r14d
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
xorl %r12d, %r12d
movq 0x20(%r15), %rsi
movq (%rbp,%r12,8), %rdx
movq %r13, %rdi
callq 0xcae2
incq %r12
cmpq %r12, %r14
jne 0x541f
movslq %ebx, %rax
movq (%rbp,%rax,8), %rsi
movl 0x8(%r15), %edx
movq %rbp, %rbx
movq %r13, %rdi
callq 0xcff9
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
xorl %ebp, %ebp
cmpl $0x5, 0x8(%r15)
jl 0x4d2f
leaq 0x278(%r13), %rax
cmpq %rbx, %rax
seta %cl
leaq 0x8278(%r13), %rdx
cmpq %rbx, %rdx
setbe %dl
orb %cl, %dl
cmpb $0x1, %dl
movq %rbx, %rdi
je 0x5669
subq %rax, %rdi
shrq $0x6, %rdi
movb $0x0, 0x78(%r13,%rdi)
jmp 0x4d2f
xorl %r13d, %r13d
movq %rbx, %rax
jmp 0x54b1
xorl %r13d, %r13d
movq %rbx, %rax
testl %r13d, %r13d
je 0x54f2
movq (%r12), %rsi
movq (%rax), %rdx
movq %r14, %rdi
callq 0x5948
movq %rax, (%r12)
movq 0x10(%r15), %rsi
movq %r14, %rdi
movl %r13d, %edx
movq %rbx, %rcx
callq 0xce31
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movl $0x1, %ebp
cmpl $0x4, %r13d
jb 0x4d2f
jmp 0x5645
movq (%rax), %rsi
leaq 0x91ba(%rip), %rdx      # 0xe6b6
movq %r14, %rdi
callq 0xd534
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
jmp 0x4d2d
callq 0xcd42
decl 0x48(%r14)
callq *0x18(%r15)
movq %rax, (%r13)
movl $0x1, %ebp
jmp 0x4d2f
movq %r12, 0x8(%rsp)
xorl %ebx, %ebx
jmp 0x5694
leaq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r14, %rdi
callq 0xcc55
cmpl $0x0, 0x8(%r15)
jle 0x5611
movq %r13, 0x10(%rsp)
incl %ebp
xorl %ebx, %ebx
movq 0x18(%r15), %rax
movq (%rax,%rbx,8), %rsi
movq 0x8(%rsp), %rax
leaq (%rax,%rbx,8), %r13
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x4cfd
testl %eax, %eax
je 0x5731
incq %rbx
movslq 0x8(%r15), %rax
cmpq %rax, %rbx
jl 0x555e
movq 0x10(%rsp), %r13
jmp 0x5613
movq %r14, %rbx
leaq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpl $0x0, 0x8(%r15)
jle 0x55fe
incl %ebp
xorl %r14d, %r14d
movq 0x8(%rsp), %r13
movq 0x10(%r15), %rax
movq (%rax,%r14,8), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x4cfd
testl %eax, %eax
jne 0x57bd
movq (%r12), %rsi
movq (%r13), %rdx
movq %rbx, %rdi
callq 0x5948
movq %rax, (%r12)
incq %r14
movslq 0x8(%r15), %rax
addq $0x8, %r13
cmpq %rax, %r14
jl 0x55b9
movq 0x10(%rsp), %rax
movq $0x0, (%rax)
xorl %ebp, %ebp
jmp 0x57ce
xorl %ebx, %ebx
movq %r14, %rdi
callq 0xcd42
movq 0x10(%r15), %rsi
movq %r14, %rdi
movl %ebx, %edx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0xce31
movq %rax, (%r13)
movl $0x1, %ebp
cmpl $0x5, 0x8(%r15)
jl 0x4d2f
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 0x5673
movq %rbx, %rdi
callq 0x4580
jmp 0x4d2f
subq %rax, %rbx
shrq $0x6, %rbx
movb $0x0, 0x78(%r14,%rbx)
jmp 0x4d2f
movq %r12, 0x8(%rsp)
movl $0x1, %ebx
movq 0x10(%rsp), %r13
testl %ebx, %ebx
je 0x5715
movq 0x18(%rsp), %rbp
movq (%rbp), %rsi
movl %ebx, %eax
movq 0x8(%rsp), %r12
movq (%r12,%rax,8), %rdx
movq %r14, %rdi
callq 0x5948
movq %rax, (%rbp)
movq 0x10(%r15), %rsi
movq %r14, %rdi
movl %ebx, %edx
movq %r12, %rcx
callq 0xce31
movq %rax, (%r13)
movl $0x1, %ebp
cmpl $0x4, %ebx
jb 0x4d2f
leaq 0x278(%r14), %rax
cmpq %r12, %rax
seta %cl
leaq 0x8278(%r14), %rdx
cmpq %r12, %rdx
setbe %dl
orb %cl, %dl
cmpb $0x1, %dl
movq %r12, %rdi
je 0x5669
subq %rax, %rdi
shrq $0x6, %rdi
movb $0x0, 0x78(%r14,%rdi)
jmp 0x4d2f
movq 0x8(%rsp), %rax
movq (%rax), %rsi
leaq 0x8f92(%rip), %rdx      # 0xe6b6
movq %r14, %rdi
callq 0xd534
jmp 0x4d29
movq %r14, %rdi
callq 0xccf1
testq %rbx, %rbx
movq %r14, %r12
movq 0x8(%rsp), %rbp
je 0x5766
xorl %r14d, %r14d
movq 0x20(%r15), %rax
movq (%rax,%r14,8), %rsi
movq (%rbp,%r14,8), %rdx
movq %r12, %rdi
callq 0xcae2
incq %r14
cmpq %r14, %rbx
jne 0x5749
movq (%r13), %rax
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
xorl %ebp, %ebp
cmpl $0x5, 0x8(%r15)
jl 0x4d2f
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
je 0x5669
subq %rax, %rdi
shrq $0x6, %rdi
movb $0x0, 0x78(%r12,%rdi)
jmp 0x4d2f
movq (%r13), %rax
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movl $0x1, %ebp
cmpl $0x5, 0x8(%r15)
jl 0x4d2f
leaq 0x278(%rbx), %rax
movq 0x8(%rsp), %rdi
cmpq %rdi, %rax
seta %cl
leaq 0x8278(%rbx), %rdx
cmpq %rdi, %rdx
setbe %dl
orb %cl, %dl
cmpb $0x1, %dl
je 0x5669
subq %rax, %rdi
shrq $0x6, %rdi
movb $0x0, 0x78(%rbx,%rdi)
jmp 0x4d2f