// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
movq %rdx, 0x30(%rsp)
movq %rsi, %r12
movq %rdi, %r15
movq 0x8(%rdi), %r13
pushq $0x38
popq %rdi
callq 0x2290
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
leaq 0x9d07(%rip), %rcx      # 0x10e5b
pushq $-0x1
popq %rsi
pushq $-0x1
popq %rdx
movq %r13, %rdi
callq 0x7f03
movq %rax, 0x30(%rbx)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7d6a
leaq 0x97a4(%rip), %r14      # 0x1091c
movslq (%rbx), %rax
testq %rax, %rax
je 0x7cf5
movq 0x8(%rbx), %rcx
movq -0x8(%rcx,%rax,8), %r12
movq %r12, 0x10(%rsp)
movq 0x10(%rbx), %rcx
movslq -0x4(%rcx,%rax,4), %r13
movl %r13d, 0xc(%rsp)
movzbl 0x10(%r12), %edx
cmpq $0x1a, %rdx
ja 0x783e
movslq (%r14,%rdx,4), %rdx
addq %r14, %rdx
jmpq *%rdx
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
movq 0x8(%r15), %rdi
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
leaq 0x993b(%rip), %rcx      # 0x10b19
jmp 0x7953
movq 0x18(%r12), %r13
movq %r15, %rdi
callq 0xc200
movl %eax, %r12d
movq %r15, %rdi
callq 0xc269
testl %eax, %eax
jne 0x792e
movsbl %r12b, %r12d
movl %r12d, %edi
callq *%r13
testl %eax, %eax
je 0x7273
leaq 0x20(%rsp), %r13
movq %r15, %rdi
movl %r12d, %esi
movq %r13, %rdx
callq 0xc343
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
movq (%r13), %rsi
jmp 0x7916
movq 0x18(%r12), %r13
movq %r15, %rdi
callq 0xc200
movl %eax, %r12d
movq %r15, %rdi
callq 0xc269
testl %eax, %eax
jne 0x792e
movsbl %r12b, %r12d
movq %r13, %rdi
movl %r12d, %esi
callq 0x2120
testq %rax, %rax
je 0x7211
movq %r15, %rdi
movl %r12d, %esi
jmp 0x76bc
movq %r15, %rdi
callq 0xc200
movl %eax, %r12d
movq %r15, %rdi
callq 0xc269
testl %eax, %eax
jne 0x792e
movsbl %r12b, %esi
jmp 0x743b
leaq 0x10(%rsp), %r12
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7de4
movq (%r12), %rax
movq 0x20(%rax), %rsi
jmp 0x7916
movsbl 0x18(%r12), %esi
leaq 0x20(%rsp), %rdx
movq %r15, %rdi
callq 0x7f83
movl %eax, %r12d
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
testl %r12d, %r12d
jne 0x7911
jmp 0x7940
movl 0x10(%r15), %ebp
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
testl %ebp, %ebp
jne 0x7940
jmp 0x780d
testl %r13d, %r13d
je 0x79a6
testl %r13d, %r13d
jle 0x7787
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 0x7b52
incl %r13d
movl %r13d, -0x4(%rcx,%rax,4)
jmp 0x79bd
testl %r13d, %r13d
je 0x7868
testl %r13d, %r13d
jle 0x7787
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 0x777a
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x811e
cmpl $0x1, %r13d
jne 0x7ceb
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
movq 0x18(%rsp), %r12
leaq 0x9ae4(%rip), %rsi      # 0x10ea9
movq %r12, %rdi
callq 0xc614
jmp 0x7ce0
leaq 0x10(%rsp), %r12
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7de4
movq (%r12), %rax
movq 0x18(%rax), %rcx
movq 0x8(%r15), %rdi
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
jmp 0x7953
movb 0x18(%r12), %r13b
movb 0x19(%r12), %bpl
movq %r15, %rdi
callq 0xc200
movl %eax, %r12d
movq %r15, %rdi
callq 0xc269
testl %eax, %eax
jne 0x792e
movsbl %r12b, %esi
cmpb %r13b, %r12b
jl 0x76b9
cmpb %bpl, %r12b
jg 0x76b9
leaq 0x20(%rsp), %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0xc343
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
movq (%r12), %rsi
jmp 0x7916
leaq 0x10(%rsp), %r12
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7de4
movq (%r12), %rax
callq *0x18(%rax)
jmp 0x7be9
movq %r15, %rdi
callq 0x8077
movl %eax, %r12d
movsbl 0x50(%r15), %esi
leaq 0x99cb(%rip), %rdi      # 0x10e69
pushq $0x40
popq %rdx
callq 0x21c0
testq %rax, %rax
setne %cl
testb %r12b, %r12b
sete %dl
testb %dl, %cl
jne 0x77fb
testq %rax, %rax
setne %bpl
movsbl %r12b, %esi
leaq 0x999d(%rip), %rdi      # 0x10e69
pushq $0x40
popq %rdx
callq 0x21c0
testq %rax, %rax
setne %al
cmpb %al, %bpl
jne 0x77fb
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
movq 0x8(%r15), %r12
movq %r15, %rdi
callq 0x8077
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
movsbl %al, %r8d
leaq 0x9617(%rip), %rcx      # 0x10b2b
jmp 0x7a5f
movq 0x18(%r12), %r12
andq $0x0, 0x28(%rsp)
movq %r15, %rdi
callq 0x81bb
movq %r12, %r13
movb (%r13), %al
testb %al, %al
je 0x78d6
movsbl %al, %esi
leaq 0x28(%rsp), %rdx
movq %r15, %rdi
callq 0x7f83
testl %eax, %eax
je 0x7926
movq 0x28(%rsp), %rdi
callq 0x23f0
incq %r13
jmp 0x752f
cmpl $0x1, %r13d
je 0x79ec
testl %r13d, %r13d
jne 0x7754
decl 0x38(%r15)
jmp 0x7739
cmpl $0x1, %r13d
je 0x7a07
testl %r13d, %r13d
jne 0x7754
movq %r15, %rdi
callq 0x81bb
movq 0x10(%rbx), %rax
movslq (%rbx), %rcx
movl $0x1, -0x4(%rax,%rcx,4)
jmp 0x7741
movq 0x18(%r12), %r13
movq %r15, %rdi
callq 0xc200
movl %eax, %r12d
movq %r15, %rdi
callq 0xc269
testl %eax, %eax
jne 0x792e
movsbl %r12b, %r12d
movq %r13, %rdi
movl %r12d, %esi
callq 0x2120
testq %rax, %rax
jne 0x7211
jmp 0x7273
cmpl $0x1, %r13d
jne 0x7734
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x811e
testl %eax, %eax
jne 0x770e
movq 0x18(%rsp), %rdi
callq 0x6dec
leaq 0x10(%rsp), %r12
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7de4
movq 0x8(%r15), %r13
movq (%r12), %rax
movq 0x20(%rax), %r12
movq %r15, %rdi
callq 0x8077
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
movsbl %al, %r8d
movq %r13, %rdi
movq %r12, %rcx
jmp 0x7a62
cmpl $0x1, %r13d
jne 0x7734
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x811e
movl %eax, %r12d
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
testl %r12d, %r12d
je 0x7b45
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdi
callq *0x20(%rax)
jmp 0x7be9
movq %r15, %rdi
callq 0xc200
movl %eax, %r12d
movq %r15, %rdi
callq 0xc269
testl %eax, %eax
jne 0x77fb
movsbl %r12b, %esi
movq %r15, %rdi
callq 0xc2bf
jmp 0x792e
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
movq 0x10(%r15), %r12
movl 0x18(%r15), %ebp
pushq $0xc
popq %rdi
callq 0x2290
movq %r12, (%rax)
movl %ebp, 0x8(%rax)
jmp 0x7be9
cmpl $0x1, %r13d
jne 0x7734
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x811e
testl %eax, %eax
je 0x7bc0
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
movq 0x18(%rsp), %rsi
jmp 0x7916
cmpl $0x1, %r13d
je 0x7a6c
testl %r13d, %r13d
jne 0x7754
movl $0x1, -0x4(%rcx,%rax,4)
movq 0x18(%r12), %rsi
jmp 0x7ae8
testl %r13d, %r13d
je 0x7868
testl %r13d, %r13d
jle 0x7787
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 0x7875
leal 0x1(%r13), %edx
movl %edx, -0x4(%rcx,%rax,4)
jmp 0x79bd
movl 0x18(%r12), %edx
testl %edx, %edx
je 0x77fb
testl %r13d, %r13d
je 0x78c4
cmpl %edx, %r13d
jg 0x7835
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 0x7ace
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x811e
leal -0x1(%r13), %ebp
subl $0x1, %ebp
jb 0x770e
leaq 0x28(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x811e
movq (%r12), %rsi
movq %rbx, %rdi
callq 0x82de
jmp 0x77d4
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
pushq $0x1
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7e80
jmp 0x7178
movl 0x18(%r12), %edx
testl %edx, %edx
je 0x79c7
testl %r13d, %r13d
je 0x7aad
cmpl %edx, %r13d
jle 0x796a
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
callq 0x7de4
movq 0x8(%r15), %rdi
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
leaq 0x92da(%rip), %rcx      # 0x10b3d
jmp 0x7953
movl $0x1, -0x4(%rcx,%rax,4)
jmp 0x79bd
leaq 0x18(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x811e
movq (%r12), %rsi
movq %rbx, %rdi
callq 0x82de
leaq 0x10(%rsp), %r12
leaq 0xc(%rsp), %r13
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x7de4
movl (%r13), %esi
decl %esi
movq (%r12), %rax
movq 0x20(%rax), %rdx
movq %rbx, %rdi
callq 0x8306
jmp 0x7be9
movl $0x1, -0x4(%rcx,%rax,4)
movq 0x20(%r12), %rax
jmp 0x7ac9
movq %r15, %rdi
callq 0x8289
movq %r12, %rdi
callq 0x2110
leaq 0x1(%rax), %rdi
callq 0x2290
movq %rax, 0x20(%rsp)
movq %rax, %rdi
movq %r12, %rsi
callq 0x2080
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
movq 0x20(%rsp), %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x7e80
jmp 0x7178
movq %r15, %rdi
callq 0x823d
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
movq 0x8(%r15), %rdi
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
leaq 0x91b6(%rip), %rcx      # 0x10b09
callq 0x7f03
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x7e80
jmp 0x7178
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 0x7af5
cmpl %edx, %r13d
jge 0x7b89
leal 0x1(%r13), %edx
movl %edx, -0x4(%rcx,%rax,4)
movq 0x28(%r12), %rax
jmp 0x7ae4
movq %r15, %rdi
callq 0x81bb
movq 0x10(%rbx), %rax
movslq (%rbx), %rcx
movl $0x1, -0x4(%rax,%rcx,4)
movq 0x28(%r12), %rsi
jmp 0x7ae8
leaq 0x10(%rsp), %r12
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7de4
movq (%r12), %rax
xorl %edi, %edi
xorl %esi, %esi
callq *0x20(%rax)
jmp 0x7be9
incl 0x38(%r15)
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
jmp 0x7178
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x811e
movq %r15, %rdi
testl %eax, %eax
je 0x7bbb
callq 0x823d
movq 0x18(%rsp), %rdi
callq *0x20(%r12)
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
movq 0x8(%r15), %r12
movq %r15, %rdi
callq 0x8077
movq 0x10(%r15), %rsi
movl 0x18(%r15), %edx
movsbl %al, %r8d
leaq 0x90d5(%rip), %rcx      # 0x10b34
movq %r12, %rdi
callq 0x7fda
jmp 0x7958
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x811e
movl %eax, %r12d
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
testl %r12d, %r12d
je 0x7b45
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdi
movq 0x28(%rax), %rsi
callq *0x20(%rax)
jmp 0x7be9
movq %r15, %rdi
callq 0x81bb
movq 0x10(%rbx), %rax
movslq (%rbx), %rcx
movl $0x1, -0x4(%rax,%rcx,4)
movq 0x28(%r12), %rax
movq (%rax), %rsi
jmp 0x7ae8
cmpl %edx, %r13d
jge 0x7bfc
leal 0x1(%r13), %edx
movl %edx, -0x4(%rcx,%rax,4)
movq 0x20(%r12), %rax
movq (%rax,%r13,8), %rsi
movq %rbx, %rdi
callq 0x7d6a
jmp 0x7178
movq %r15, %rdi
callq 0x823d
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x811e
decq %r13
movq 0x30(%r12), %rbp
subq $0x1, %r13
jb 0x7b33
leaq 0x28(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x811e
movq (%r12), %rdi
callq *(%rbp,%r13,8)
jmp 0x7b12
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x7de4
movq 0x18(%rsp), %rsi
movq %rbx, %rdi
jmp 0x795e
movl 0x18(%r12), %ebp
incl %ebp
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x811e
cmpl %ebp, %r13d
jne 0x7c52
movq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x82de
movq %r15, %rdi
callq 0x8289
jmp 0x7891
cmpl %edx, %r13d
jne 0x783e
movq %r15, %rdi
callq 0x8289
leaq 0x10(%rsp), %r12
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7de4
movq (%r12), %rax
movl 0x18(%rax), %esi
jmp 0x78b3
callq 0x8289
movq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x82de
leaq 0x10(%rsp), %r12
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7de4
movq (%r12), %rax
callq *0x28(%rax)
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7e80
jmp 0x7178
cmpl %edx, %r13d
jne 0x7835
leaq 0x10(%rsp), %r12
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7de4
movq (%r12), %rax
movslq 0x18(%rax), %r12
movslq 0x18(%rbx), %rdi
subq %r12, %rdi
shlq $0x3, %rdi
addq 0x20(%rbx), %rdi
movl %r12d, %esi
callq 0xc3de
movq %rax, %r13
movq %rbx, %rdi
movl %r12d, %esi
callq 0xc5e5
movq %rbx, %rdi
movq %r13, %rsi
jmp 0x795e
movq 0x30(%r12), %rbp
decl %r13d
subl $0x1, %r13d
jb 0x7c78
leaq 0x28(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x811e
movq (%r12), %rdi
callq *%rbp
jmp 0x7c5a
movq %r15, %rdi
callq 0x823d
leaq 0x10(%rsp), %r13
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x7de4
movq 0x18(%rsp), %r12
movq (%r13), %rax
movl 0x18(%rax), %r13d
pushq $0xa
popq %rcx
movl %r13d, %eax
cltd
idivl %ecx
addl $0x6, %eax
movslq %eax, %rdi
callq 0x2290
movq %rax, %rbp
leaq 0x91fe(%rip), %rsi      # 0x10ebe
movq %rax, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0x2370
movq %r12, %rdi
movq %rbp, %rsi
callq 0xc614
movq %rbp, %rdi
callq 0x23f0
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x795e
movq 0x18(%rsp), %rsi
jmp 0x7889
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rcx
movl (%rcx), %ebp
movq (%rax), %rsi
testl %ebp, %ebp
je 0x7d19
movq 0x30(%rsp), %rax
movq %rsi, (%rax)
movq 0x30(%rbx), %rdi
callq 0x6dec
jmp 0x7d2d
movq %rbx, %rdi
callq 0x82de
movq 0x30(%rbx), %rax
movq 0x30(%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 $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq