// File: /workspace/github_c_makefile_star2_O3/voithos[P]awl/src/mpc.c
// Function: mpc_parse_input
int mpc_parse_input(mpc_input_t *i, mpc_parser_t *init, mpc_result_t *final) {
  
  /* Stack */
  int st = 0;
  mpc_parser_t *p = NULL;
  mpc_stack_t *stk = mpc_stack_new(i->filename);
  
  /* Variables */
  char *s;
  mpc_result_t r;

  /* Go! */
  mpc_stack_pushp(stk, init);
  
  while (!mpc_stack_empty(stk)) {
    
    mpc_stack_peepp(stk, &p, &st);
    
    switch (p->type) {
      
      /* Basic Parsers */

      case MPC_TYPE_SOI:       MPC_PRIMATIVE(NULL, mpc_input_soi(i));
      case MPC_TYPE_EOI:       MPC_PRIMATIVE(NULL, mpc_input_eoi(i));
      case MPC_TYPE_ANY:       MPC_PRIMATIVE(s, mpc_input_any(i, &s));
      case MPC_TYPE_SINGLE:    MPC_PRIMATIVE(s, mpc_input_char(i, p->data.single.x, &s));
      case MPC_TYPE_RANGE:     MPC_PRIMATIVE(s, mpc_input_range(i, p->data.range.x, p->data.range.y, &s));
      case MPC_TYPE_ONEOF:     MPC_PRIMATIVE(s, mpc_input_oneof(i, p->data.string.x, &s));
      case MPC_TYPE_NONEOF:    MPC_PRIMATIVE(s, mpc_input_noneof(i, p->data.string.x, &s));
      case MPC_TYPE_SATISFY:   MPC_PRIMATIVE(s, mpc_input_satisfy(i, p->data.satisfy.f, &s));
      case MPC_TYPE_STRING:    MPC_PRIMATIVE(s, mpc_input_string(i, p->data.string.x, &s));
      
      /* Other parsers */
      
      case MPC_TYPE_UNDEFINED: MPC_FAILURE(mpc_err_fail(i->filename, i->state, "Parser Undefined!"));      
      case MPC_TYPE_PASS:      MPC_SUCCESS(NULL);
      case MPC_TYPE_FAIL:      MPC_FAILURE(mpc_err_fail(i->filename, i->state, 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_state_copy(i->state));
      
      case MPC_TYPE_BOUNDARY:
	if (mpc_input_boundary(i)) {
	  MPC_SUCCESS(NULL);
        } else {
	  MPC_FAILURE(mpc_err_new(i->filename, i->state, "boundary", mpc_input_peekc(i)));
	}
      
      /* Application Parsers */
      
      case MPC_TYPE_EXPECT:
        if (st == 0) { MPC_CONTINUE(1, p->data.expect.x); }
        if (st == 1) {
          if (mpc_stack_popr(stk, &r)) {
            MPC_SUCCESS(r.output);
          } else {
            mpc_err_delete(r.error); 
            MPC_FAILURE(mpc_err_new(i->filename, i->state, p->data.expect.m, mpc_input_peekc(i)));
          }
        }
      
      case MPC_TYPE_APPLY:
        if (st == 0) { MPC_CONTINUE(1, p->data.apply.x); }
        if (st == 1) {
          if (mpc_stack_popr(stk, &r)) {
            MPC_SUCCESS(p->data.apply.f(r.output));
          } else {
            MPC_FAILURE(r.error);
          }
        }
      
      case MPC_TYPE_APPLY_TO:
        if (st == 0) { MPC_CONTINUE(1, p->data.apply_to.x); }
        if (st == 1) {
          if (mpc_stack_popr(stk, &r)) {
            MPC_SUCCESS(p->data.apply_to.f(r.output, p->data.apply_to.d));
          } else {
            MPC_FAILURE(r.error);
          }
        }
      
      case MPC_TYPE_PREDICT:
        if (st == 0) { mpc_input_backtrack_disable(i); MPC_CONTINUE(1, p->data.predict.x); }
        if (st == 1) {
          mpc_input_backtrack_enable(i);
          mpc_stack_popp(stk, &p, &st);
          continue;
        }
      
      /* Optional Parsers */
      
      /* TODO: Update Not Error Message */
      
      case MPC_TYPE_NOT:
        if (st == 0) { mpc_input_mark(i); MPC_CONTINUE(1, p->data.not.x); }
        if (st == 1) {
          if (mpc_stack_popr(stk, &r)) {
            mpc_input_rewind(i);
            p->data.not.dx(r.output);
            MPC_FAILURE(mpc_err_new(i->filename, i->state, "opposite", mpc_input_peekc(i)));
          } else {
            mpc_input_unmark(i);
            mpc_stack_err(stk, r.error);
            MPC_SUCCESS(p->data.not.lf());
          }
        }
      
      case MPC_TYPE_MAYBE:
        if (st == 0) { MPC_CONTINUE(1, p->data.not.x); }
        if (st == 1) {
          if (mpc_stack_popr(stk, &r)) {
            MPC_SUCCESS(r.output);
          } else {
            mpc_stack_err(stk, r.error);
            MPC_SUCCESS(p->data.not.lf());
          }
        }
      
      /* Repeat Parsers */
      
      case MPC_TYPE_MANY:
        if (st == 0) { MPC_CONTINUE(st+1, p->data.repeat.x); }
        if (st >  0) {
          if (mpc_stack_peekr(stk, &r)) {
            MPC_CONTINUE(st+1, p->data.repeat.x);
          } else {
            mpc_stack_popr(stk, &r);
            mpc_stack_err(stk, r.error);
            MPC_SUCCESS(mpc_stack_merger_out(stk, st-1, p->data.repeat.f));
          }
        }
      
      case MPC_TYPE_MANY1:
        if (st == 0) { MPC_CONTINUE(st+1, p->data.repeat.x); }
        if (st >  0) {
          if (mpc_stack_peekr(stk, &r)) {
            MPC_CONTINUE(st+1, p->data.repeat.x);
          } else {
            if (st == 1) {
              mpc_stack_popr(stk, &r);
              MPC_FAILURE(mpc_err_many1(r.error));
            } else {
              mpc_stack_popr(stk, &r);
              mpc_stack_err(stk, r.error);
              MPC_SUCCESS(mpc_stack_merger_out(stk, st-1, p->data.repeat.f));
            }
          }
        }
      
      case MPC_TYPE_COUNT:
        if (st == 0) { mpc_input_mark(i); MPC_CONTINUE(st+1, p->data.repeat.x); }
        if (st >  0) {
          if (mpc_stack_peekr(stk, &r)) {
            MPC_CONTINUE(st+1, p->data.repeat.x);
          } else {
            if (st != (p->data.repeat.n+1)) {
              mpc_stack_popr(stk, &r);
              mpc_stack_popr_out_single(stk, st-1, p->data.repeat.dx);
              mpc_input_rewind(i);
              MPC_FAILURE(mpc_err_count(r.error, p->data.repeat.n));
            } else {
              mpc_stack_popr(stk, &r);
              mpc_stack_err(stk, r.error);
              mpc_input_unmark(i);
              MPC_SUCCESS(mpc_stack_merger_out(stk, st-1, p->data.repeat.f));
            }
          }
        }
        
      /* Combinatory Parsers */
      
      case MPC_TYPE_OR:
        
        if (p->data.or.n == 0) { MPC_SUCCESS(NULL); }
        
        if (st == 0) { MPC_CONTINUE(st+1, p->data.or.xs[st]); }
        if (st <= p->data.or.n) {
          if (mpc_stack_peekr(stk, &r)) {
            mpc_stack_popr(stk, &r);
            mpc_stack_popr_err(stk, st-1);
            MPC_SUCCESS(r.output);
          }
          if (st <  p->data.or.n) { MPC_CONTINUE(st+1, p->data.or.xs[st]); }
          if (st == p->data.or.n) { MPC_FAILURE(mpc_stack_merger_err(stk, p->data.or.n)); }
        }
      
      case MPC_TYPE_AND:
        
        if (p->data.or.n == 0) { MPC_SUCCESS(p->data.and.f(0, NULL)); }
        
        if (st == 0) { mpc_input_mark(i); MPC_CONTINUE(st+1, p->data.and.xs[st]); }
        if (st <= p->data.and.n) {
          if (!mpc_stack_peekr(stk, &r)) {
            mpc_input_rewind(i);
            mpc_stack_popr(stk, &r);
            mpc_stack_popr_out(stk, st-1, p->data.and.dxs);
            MPC_FAILURE(r.error);
          }
          if (st <  p->data.and.n) { MPC_CONTINUE(st+1, p->data.and.xs[st]); }
          if (st == p->data.and.n) { mpc_input_unmark(i); MPC_SUCCESS(mpc_stack_merger_out(stk, p->data.and.n, p->data.and.f)); }
        }
      
      /* End */
      
      default:
        
        MPC_FAILURE(mpc_err_fail(i->filename, i->state, "Unknown Parser Type Id!"));
    }
  }
  
  return mpc_stack_terminate(stk, final);
  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, 0x40(%rsp)
movq %rsi, %r12
movq %rdi, %r15
movq 0x8(%rdi), %r13
movl $0x38, %edi
callq 0x2290
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
leaq 0xb0ca(%rip), %rcx      # 0x12e63
movq %r13, %rdi
movq $-0x1, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x8cc9
movq %rax, 0x30(%rbx)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8b27
movl (%rbx), %eax
testl %eax, %eax
je 0x8aa0
leaq 0x28(%rsp), %r13
leaq 0xab1a(%rip), %r12      # 0x128ec
movq 0x8(%rbx), %rcx
cltq
movq -0x8(%rcx,%rax,8), %r14
movq %r14, 0x10(%rsp)
movq 0x10(%rbx), %rcx
movslq -0x4(%rcx,%rax,4), %rbp
movl %ebp, 0xc(%rsp)
movzbl 0x10(%r14), %edx
cmpq $0x1a, %rdx
ja 0x8504
movslq (%r12,%rdx,4), %rdx
addq %r12, %rdx
jmpq *%rdx
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
movq 0x8(%r15), %rdi
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
leaq 0xacf5(%rip), %rcx      # 0x12b21
jmp 0x8879
movq 0x18(%r14), %r14
movq %r15, %rdi
callq 0xe47d
movl %eax, %ebp
movq %r15, %rdi
callq 0xe4e9
testl %eax, %eax
jne 0x8854
movsbl %bpl, %ebp
movl %ebp, %edi
callq *%r14
testl %eax, %eax
je 0x884a
leaq 0x38(%rsp), %r13
movq %r15, %rdi
movl %ebp, %esi
jmp 0x7ed1
movq 0x18(%r14), %r13
movq %r15, %rdi
callq 0xe47d
movl %eax, %ebp
movq %r15, %rdi
callq 0xe4e9
testl %eax, %eax
jne 0x8721
movsbl %bpl, %ebp
movq %r13, %rdi
movl %ebp, %esi
callq 0x2120
testq %rax, %rax
je 0x828c
movq %r15, %rdi
movl %ebp, %esi
jmp 0x871c
movq %r15, %rdi
callq 0xe47d
movl %eax, %ebp
movq %r15, %rdi
callq 0xe4e9
testl %eax, %eax
jne 0x8854
movsbl %bpl, %esi
leaq 0x38(%rsp), %r13
movq %r15, %rdi
movq %r13, %rdx
callq 0xe5b5
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
movq (%r13), %rsi
leaq 0x28(%rsp), %r13
jmp 0x83f8
leaq 0x10(%rsp), %r13
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8ba4
movq (%r13), %rax
leaq 0x28(%rsp), %r13
movq 0x20(%rax), %rsi
jmp 0x83f8
movsbl 0x18(%r14), %esi
leaq 0x38(%rsp), %rdx
movq %r15, %rdi
callq 0x8d51
movl %eax, %ebp
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
testl %ebp, %ebp
jne 0x820e
jmp 0x8866
movl 0x10(%r15), %ebp
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
testl %ebp, %ebp
jne 0x8866
jmp 0x84de
testl %ebp, %ebp
je 0x85e1
testl %ebp, %ebp
jle 0x8457
movq 0x20(%rbx), %rdx
movslq 0x18(%rbx), %rsi
movq -0x8(%rdx,%rsi,8), %rdx
movq %rdx, 0x18(%rsp)
movq 0x28(%rbx), %rdx
cmpl $0x0, -0x4(%rdx,%rsi,4)
jne 0x844b
movl 0x18(%r14), %r13d
incl %r13d
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f08
cmpl %r13d, %ebp
jne 0x8995
movq 0x18(%rsp), %rax
movq 0x30(%rbx), %rcx
leaq 0x20(%rsp), %rdi
movq %rcx, (%rdi)
movq %rax, 0x8(%rdi)
movl $0x2, %esi
callq 0xe65e
movq %rax, 0x30(%rbx)
movq %r15, %rdi
callq 0x908a
leaq 0x10(%rsp), %r14
leaq 0xc(%rsp), %r13
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x8ba4
movl (%r13), %esi
decl %esi
movq (%r14), %rax
jmp 0x8a7a
testl %ebp, %ebp
je 0x85f0
testl %ebp, %ebp
jle 0x8457
movq 0x20(%rbx), %rdx
movslq 0x18(%rbx), %rsi
movq -0x8(%rdx,%rsi,8), %rdx
movq %rdx, 0x18(%rsp)
movq 0x28(%rbx), %rdx
cmpl $0x0, -0x4(%rdx,%rsi,4)
je 0x87d9
incl %ebp
movl %ebp, -0x4(%rcx,%rax,4)
jmp 0x85f8
leaq 0x10(%rsp), %r13
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8ba4
movq (%r13), %rax
leaq 0x28(%rsp), %r13
movq 0x18(%rax), %rcx
movq 0x8(%r15), %rdi
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
jmp 0x8879
movb 0x18(%r14), %r13b
movb 0x19(%r14), %r14b
movq %r15, %rdi
callq 0xe47d
movl %eax, %ebp
movq %r15, %rdi
callq 0xe4e9
testl %eax, %eax
jne 0x8721
movsbl %bpl, %esi
cmpb %r13b, %bpl
jl 0x8719
cmpb %r14b, %bpl
jg 0x8719
leaq 0x38(%rsp), %r13
movq %r15, %rdi
jmp 0x8296
leaq 0x10(%rsp), %r13
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8ba4
movq (%r13), %rax
leaq 0x28(%rsp), %r13
callq *0x18(%rax)
jmp 0x8918
movq %r15, %rdi
callq 0x8e4e
movl %eax, %ebp
movsbl 0x50(%r15), %esi
leaq 0xad6c(%rip), %rdi      # 0x12e71
movl $0x40, %edx
callq 0x21c0
testq %rax, %rax
setne %cl
testb %bpl, %bpl
sete %dl
testb %dl, %cl
jne 0x84cc
testq %rax, %rax
setne %r14b
movsbl %bpl, %esi
leaq 0xad3c(%rip), %rdi      # 0x12e71
movl $0x40, %edx
callq 0x21c0
testq %rax, %rax
setne %al
cmpb %al, %r14b
jne 0x84cc
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
movq 0x8(%r15), %r13
movq %r15, %rdi
callq 0x8e4e
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
movsbl %al, %r8d
leaq 0xa9b4(%rip), %rcx      # 0x12b33
movq %r13, %rdi
jmp 0x831f
movq 0x18(%r14), %rbp
movq $0x0, 0x20(%rsp)
movq %r15, %rdi
callq 0x8fab
movb (%rbp), %al
testb %al, %al
je 0x81d3
leaq 0x1(%rbp), %r14
movsbl %al, %esi
leaq 0x20(%rsp), %rdx
movq %r15, %rdi
callq 0x8d51
testl %eax, %eax
je 0x86df
movq 0x20(%rsp), %rdi
callq 0x23f0
movb (%r14), %al
incq %r14
testb %al, %al
jne 0x81a7
movq %r15, %rdi
callq 0x908a
movq %rbp, %rdi
callq 0x2110
leaq 0x1(%rax), %rdi
callq 0x2290
movq %rax, 0x38(%rsp)
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2080
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
movq 0x38(%rsp), %rsi
jmp 0x83f8
cmpl $0x1, %ebp
je 0x8625
testl %ebp, %ebp
jne 0x8426
decl 0x38(%r15)
jmp 0x840d
cmpl $0x1, %ebp
je 0x8640
testl %ebp, %ebp
jne 0x8426
movq %r15, %rdi
callq 0x8fab
movslq (%rbx), %rax
movq 0x10(%rbx), %rcx
jmp 0x840d
movq 0x18(%r14), %r13
movq %r15, %rdi
callq 0xe47d
movl %eax, %ebp
movq %r15, %rdi
callq 0xe4e9
testl %eax, %eax
jne 0x8721
movsbl %bpl, %ebp
movq %r13, %rdi
movl %ebp, %esi
callq 0x2120
testq %rax, %rax
je 0x7ea1
leaq 0x38(%rsp), %r13
movq %r15, %rdi
movl %ebp, %esi
movq %r13, %rdx
callq 0xe5b5
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
movq (%r13), %rsi
movq %rbx, %rdi
jmp 0x8a8c
cmpl $0x1, %ebp
jne 0x8409
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f08
testl %eax, %eax
jne 0x83e1
movq 0x18(%rsp), %rdi
callq 0x79f4
leaq 0x10(%rsp), %r13
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8ba4
movq 0x8(%r15), %rbp
movq (%r13), %rax
movq 0x20(%rax), %r13
movq %r15, %rdi
callq 0x8e4e
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
movsbl %al, %r8d
movq %rbp, %rdi
movq %r13, %rcx
leaq 0x28(%rsp), %r13
callq 0x8daa
jmp 0x887e
cmpl $0x1, %ebp
jne 0x8409
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f08
movl %eax, %ebp
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
testl %ebp, %ebp
je 0x86ec
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdi
callq *0x20(%rax)
jmp 0x8918
movq %r15, %rdi
callq 0xe47d
movl %eax, %ebp
movq %r15, %rdi
callq 0xe4e9
testl %eax, %eax
jne 0x84cc
movsbl %bpl, %esi
movq %r15, %rdi
jmp 0x884f
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
movq 0x10(%r15), %r14
movl 0x18(%r15), %ebp
movl $0xc, %edi
callq 0x2290
movq %r14, (%rax)
movl %ebp, 0x8(%rax)
jmp 0x8918
cmpl $0x1, %ebp
jne 0x8409
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f08
testl %eax, %eax
je 0x88d4
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
movq 0x18(%rsp), %rsi
movq %rbx, %rdi
jmp 0x891e
cmpl $0x1, %ebp
je 0x86a4
testl %ebp, %ebp
jne 0x8426
movl $0x1, -0x4(%rcx,%rax,4)
movq 0x18(%r14), %rsi
jmp 0x8770
testl %ebp, %ebp
je 0x85f0
testl %ebp, %ebp
jle 0x8457
movq 0x20(%rbx), %rdx
movslq 0x18(%rbx), %rsi
movq -0x8(%rdx,%rsi,8), %rdx
movq %rdx, 0x18(%rsp)
movq 0x28(%rbx), %rdx
cmpl $0x0, -0x4(%rdx,%rsi,4)
je 0x852e
leal 0x1(%rbp), %edx
movl %edx, -0x4(%rcx,%rax,4)
jmp 0x85f8
movl 0x18(%r14), %edx
testl %edx, %edx
je 0x84cc
testl %ebp, %ebp
je 0x8597
cmpl %edx, %ebp
jg 0x84fc
movq 0x20(%rbx), %rsi
movslq 0x18(%rbx), %rdi
movq -0x8(%rsi,%rdi,8), %rsi
movq %rsi, 0x18(%rsp)
movq 0x28(%rbx), %rsi
cmpl $0x0, -0x4(%rsi,%rdi,4)
je 0x8758
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f08
decl %ebp
je 0x83e1
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8f08
movq 0x30(%rbx), %rax
leaq 0x20(%rsp), %rdi
movq %rax, (%rdi)
movl $0x2, %esi
callq 0xe65e
movq %rax, 0x30(%rbx)
jmp 0x849d
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
movq %rbx, %rdi
xorl %esi, %esi
jmp 0x891e
movl 0x18(%r14), %edx
testl %edx, %edx
je 0x8601
testl %ebp, %ebp
je 0x86f9
cmpl %edx, %ebp
jle 0x85a8
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
callq 0x8ba4
movq 0x8(%r15), %rdi
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
leaq 0xa61c(%rip), %rcx      # 0x12b45
jmp 0x8879
leaq 0x18(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8f08
movq (%r13), %rax
movq 0x30(%rbx), %rcx
leaq 0x20(%rsp), %rdi
movq %rcx, (%rdi)
movq %rax, 0x8(%rdi)
movl $0x2, %esi
callq 0xe65e
movq %rax, 0x30(%rbx)
leaq 0x10(%rsp), %r13
leaq 0xc(%rsp), %rbp
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x8ba4
movl (%rbp), %esi
decl %esi
movq (%r13), %rax
leaq 0x28(%rsp), %r13
movq 0x20(%rax), %rdx
movq %rbx, %rdi
callq 0x90eb
jmp 0x8918
movl $0x1, -0x4(%rcx,%rax,4)
movq 0x20(%r14), %rax
jmp 0x8714
movq 0x20(%rbx), %rsi
movslq 0x18(%rbx), %rdi
movq -0x8(%rsi,%rdi,8), %rsi
movq %rsi, 0x18(%rsp)
movq 0x28(%rbx), %rsi
cmpl $0x0, -0x4(%rsi,%rdi,4)
je 0x877d
cmpl %edx, %ebp
jge 0x881a
leal 0x1(%rbp), %edx
movl %edx, -0x4(%rcx,%rax,4)
movq 0x28(%r14), %rax
jmp 0x876c
movq %r15, %rdi
callq 0x8fab
movslq (%rbx), %rax
movq 0x10(%rbx), %rcx
movl $0x1, -0x4(%rcx,%rax,4)
movq 0x28(%r14), %rsi
jmp 0x8770
leaq 0x10(%rsp), %r14
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8ba4
movq (%r14), %rax
xorl %edi, %edi
xorl %esi, %esi
callq *0x20(%rax)
jmp 0x8918
incl 0x38(%r15)
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
jmp 0x8928
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f08
movq %r15, %rdi
testl %eax, %eax
je 0x888b
callq 0x903e
movq 0x18(%rsp), %rdi
callq *0x20(%r14)
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
movq 0x8(%r15), %r13
movq %r15, %rdi
callq 0x8e4e
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
movsbl %al, %r8d
leaq 0xa4a5(%rip), %rcx      # 0x12b3c
movq %r13, %rdi
callq 0x8daa
jmp 0x874b
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f08
movl %eax, %ebp
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
testl %ebp, %ebp
je 0x86ec
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdi
movq 0x28(%rax), %rsi
callq *0x20(%rax)
jmp 0x8918
movq %r15, %rdi
callq 0x903e
jmp 0x8854
movq 0x18(%rsp), %rsi
movq %rbx, %rdi
jmp 0x8884
movq %r15, %rdi
callq 0x8fab
movslq (%rbx), %rax
movq 0x10(%rbx), %rcx
movl $0x1, -0x4(%rcx,%rax,4)
movq 0x28(%r14), %rax
movq (%rax), %rsi
jmp 0x8770
movq %r15, %rdi
callq 0xe550
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
movq 0x8(%r15), %rdi
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
leaq 0xa3cb(%rip), %rcx      # 0x12b11
callq 0x8cc9
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
jmp 0x8a91
cmpl %edx, %ebp
jge 0x8937
movl %ebp, %edx
incl %edx
movl %edx, -0x4(%rcx,%rax,4)
movq 0x20(%r14), %rax
movq (%rax,%rbp,8), %rsi
movq %rbx, %rdi
callq 0x8b27
jmp 0x8928
movq %r15, %rdi
callq 0x903e
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f08
decq %rbp
testl %ebp, %ebp
je 0x87ba
movq 0x30(%r14), %r13
leaq 0x20(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8f08
movq (%r14), %rdi
callq *-0x8(%r13,%rbp,8)
decq %rbp
jne 0x879d
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
movq 0x18(%rsp), %rsi
movq %rbx, %rdi
jmp 0x8751
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f08
cmpl $0x1, %ebp
jne 0x8a36
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
movq 0x18(%rsp), %r13
leaq 0xa6a4(%rip), %rsi      # 0x12eb1
movq %r13, %rdi
callq 0xe883
jmp 0x898a
cmpl %edx, %ebp
jne 0x8504
movq %r15, %rdi
callq 0x908a
leaq 0x10(%rsp), %r14
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8ba4
movq (%r14), %rax
movl 0x18(%rax), %esi
jmp 0x8586
movq %r15, %rdi
movl %ebp, %esi
callq 0xe550
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x8ba4
movq 0x8(%r15), %rdi
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
leaq 0xa298(%rip), %rcx      # 0x12b11
callq 0x8cc9
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
jmp 0x8923
callq 0x908a
movq 0x18(%rsp), %rax
movq 0x30(%rbx), %rcx
leaq 0x20(%rsp), %rdi
movq %rcx, (%rdi)
movq %rax, 0x8(%rdi)
movl $0x2, %esi
callq 0xe65e
movq %rax, 0x30(%rbx)
leaq 0x10(%rsp), %r13
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8ba4
movq (%r13), %rax
callq *0x28(%rax)
jmp 0x8a86
movq 0x18(%rsp), %rax
movq 0x30(%rbx), %rcx
leaq 0x20(%rsp), %rdi
movq %rcx, (%rdi)
movq %rax, 0x8(%rdi)
movl $0x2, %esi
callq 0xe65e
movq %rax, 0x30(%rbx)
leaq 0x10(%rsp), %r13
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8ba4
movq (%r13), %rax
leaq 0x28(%rsp), %r13
callq *0x28(%rax)
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x8c46
movl (%rbx), %eax
testl %eax, %eax
jne 0x7dd2
jmp 0x8aa0
cmpl %edx, %ebp
jne 0x84fc
leaq 0x10(%rsp), %r14
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8ba4
movq (%r14), %rax
movslq 0x18(%rax), %rbp
movslq 0x18(%rbx), %rdi
subq %rbp, %rdi
shlq $0x3, %rdi
addq 0x20(%rbx), %rdi
movl %ebp, %esi
callq 0xe65e
movq %rax, %r13
testq %rbp, %rbp
je 0x898a
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f08
decl %ebp
jne 0x8979
movq %rbx, %rdi
movq %r13, %rsi
jmp 0x8751
decl %ebp
je 0x89b8
movq 0x30(%r14), %r14
leaq 0x20(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8f08
movq (%r13), %rdi
callq *%r14
decl %ebp
jne 0x899d
movq %r15, %rdi
callq 0x903e
leaq 0x10(%rsp), %r13
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8ba4
movq 0x18(%rsp), %rbp
movq (%r13), %rax
movslq 0x18(%rax), %r13
imulq $0x66666667, %r13, %rax # imm = 0x66666667
movq %rax, %rcx
sarq $0x22, %rcx
shrq $0x3f, %rax
addl %ecx, %eax
addl $0x6, %eax
movslq %eax, %rdi
callq 0x2290
movq %rax, %r14
leaq 0xa4bb(%rip), %rsi      # 0x12ec6
movq %rax, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0x2370
movq %rbp, %rdi
movq %r14, %rsi
callq 0xe883
movq %r14, %rdi
callq 0x23f0
movq %rbx, %rdi
movq %rbp, %rsi
jmp 0x8751
movq 0x18(%rsp), %rax
movq 0x30(%rbx), %rcx
leaq 0x20(%rsp), %rdi
movq %rcx, (%rdi)
movq %rax, 0x8(%rdi)
movl $0x2, %esi
callq 0xe65e
movq %rax, 0x30(%rbx)
leaq 0x10(%rsp), %r13
leaq 0xc(%rsp), %rbp
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x8ba4
movl (%rbp), %esi
decl %esi
movq (%r13), %rax
movq 0x20(%rax), %rdx
movq %rbx, %rdi
callq 0x90eb
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x8c46
leaq 0x28(%rsp), %r13
jmp 0x8928
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rcx
movl (%rcx), %ebp
movq (%rax), %rax
testl %ebp, %ebp
je 0x8ac4
movq 0x40(%rsp), %rcx
movq %rax, (%rcx)
movq 0x30(%rbx), %rdi
callq 0x79f4
jmp 0x8aea
movq 0x30(%rbx), %rcx
leaq 0x20(%rsp), %rdi
movq %rcx, (%rdi)
movq %rax, 0x8(%rdi)
movl $0x2, %esi
callq 0xe65e
movq %rax, 0x30(%rbx)
movq 0x40(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%rbx), %rdi
callq 0x23f0
movq 0x10(%rbx), %rdi
callq 0x23f0
movq 0x20(%rbx), %rdi
callq 0x23f0
movq 0x28(%rbx), %rdi
callq 0x23f0
movq %rbx, %rdi
callq 0x23f0
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq