// File: /workspace/github_c_makefile_star2_O2/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lvm.c
// Function: luaV_execute
void luaV_execute (lua_State *L) {
  CallInfo *ci = L->ci;
  LClosure *cl;
  TValue *k;
  StkId base;
 newframe:  /* reentry point when frame changes (call/return) */
  lua_assert(ci == L->ci);
  cl = clLvalue(ci->func);
  k = cl->p->k;
  base = ci->u.l.base;
  /* main loop of interpreter */
  for (;;) {
    Instruction i = *(ci->u.l.savedpc++);
    StkId ra;
    if ((L->hookmask & (LUA_MASKLINE | LUA_MASKCOUNT)) &&
        (--L->hookcount == 0 || L->hookmask & LUA_MASKLINE)) {
      Protect(traceexec(L));
    }
    /* WARNING: several calls may realloc the stack and invalidate `ra' */
    ra = RA(i);
    lua_assert(base == ci->u.l.base);
    lua_assert(base <= L->top && L->top < L->stack + L->stacksize);
    vmdispatch (GET_OPCODE(i)) {
      vmcase(OP_MOVE,
        setobjs2s(L, ra, RB(i));
      )
      vmcase(OP_LOADK,
        TValue *rb = k + GETARG_Bx(i);
        setobj2s(L, ra, rb);
      )
      vmcase(OP_LOADKX,
        TValue *rb;
        lua_assert(GET_OPCODE(*ci->u.l.savedpc) == OP_EXTRAARG);
        rb = k + GETARG_Ax(*ci->u.l.savedpc++);
        setobj2s(L, ra, rb);
      )
      vmcase(OP_LOADBOOL,
        setbvalue(ra, GETARG_B(i));
        if (GETARG_C(i)) ci->u.l.savedpc++;  /* skip next instruction (if C) */
      )
      vmcase(OP_LOADNIL,
        int b = GETARG_B(i);
        do {
          setnilvalue(ra++);
        } while (b--);
      )
      vmcase(OP_GETUPVAL,
        int b = GETARG_B(i);
        setobj2s(L, ra, cl->upvals[b]->v);
      )
      vmcase(OP_GETTABUP,
        int b = GETARG_B(i);
        Protect(luaV_gettable(L, cl->upvals[b]->v, RKC(i), ra));
      )
      vmcase(OP_GETTABLE,
        Protect(luaV_gettable(L, RB(i), RKC(i), ra));
      )
      vmcase(OP_SETTABUP,
        int a = GETARG_A(i);
        Protect(luaV_settable(L, cl->upvals[a]->v, RKB(i), RKC(i)));
      )
      vmcase(OP_SETUPVAL,
        UpVal *uv = cl->upvals[GETARG_B(i)];
        setobj(L, uv->v, ra);
        luaC_barrier(L, uv, ra);
      )
      vmcase(OP_SETTABLE,
        Protect(luaV_settable(L, ra, RKB(i), RKC(i)));
      )
      vmcase(OP_NEWTABLE,
        int b = GETARG_B(i);
        int c = GETARG_C(i);
        Table *t = luaH_new(L);
        sethvalue(L, ra, t);
        if (b != 0 || c != 0)
          luaH_resize(L, t, luaO_fb2int(b), luaO_fb2int(c));
        checkGC(L, ra + 1);
      )
      vmcase(OP_SELF,
        StkId rb = RB(i);
        setobjs2s(L, ra+1, rb);
        Protect(luaV_gettable(L, rb, RKC(i), ra));
      )
      vmcase(OP_ADD,
        arith_op(luai_numadd, TM_ADD);
      )
      vmcase(OP_SUB,
        arith_op(luai_numsub, TM_SUB);
      )
      vmcase(OP_MUL,
        arith_op(luai_nummul, TM_MUL);
      )
      vmcase(OP_DIV,
        arith_op(luai_numdiv, TM_DIV);
      )
      vmcase(OP_MOD,
        arith_op(luai_nummod, TM_MOD);
      )
      vmcase(OP_POW,
        arith_op(luai_numpow, TM_POW);
      )
      vmcase(OP_UNM,
        TValue *rb = RB(i);
        if (ttisnumber(rb)) {
          lua_Number nb = nvalue(rb);
          setnvalue(ra, luai_numunm(L, nb));
        }
        else {
          Protect(luaV_arith(L, ra, rb, rb, TM_UNM));
        }
      )
      vmcase(OP_NOT,
        TValue *rb = RB(i);
        int res = l_isfalse(rb);  /* next assignment may change this value */
        setbvalue(ra, res);
      )
      vmcase(OP_LEN,
        Protect(luaV_objlen(L, ra, RB(i)));
      )
      vmcase(OP_CONCAT,
        int b = GETARG_B(i);
        int c = GETARG_C(i);
        StkId rb;
        L->top = base + c + 1;  /* mark the end of concat operands */
        Protect(luaV_concat(L, c - b + 1));
        ra = RA(i);  /* 'luav_concat' may invoke TMs and move the stack */
        rb = b + base;
        setobjs2s(L, ra, rb);
        checkGC(L, (ra >= rb ? ra + 1 : rb));
        L->top = ci->top;  /* restore top */
      )
      vmcase(OP_JMP,
        dojump(ci, i, 0);
      )
      vmcase(OP_EQ,
        TValue *rb = RKB(i);
        TValue *rc = RKC(i);
        Protect(
          if (cast_int(equalobj(L, rb, rc)) != GETARG_A(i))
            ci->u.l.savedpc++;
          else
            donextjump(ci);
        )
      )
      vmcase(OP_LT,
        Protect(
          if (luaV_lessthan(L, RKB(i), RKC(i)) != GETARG_A(i))
            ci->u.l.savedpc++;
          else
            donextjump(ci);
        )
      )
      vmcase(OP_LE,
        Protect(
          if (luaV_lessequal(L, RKB(i), RKC(i)) != GETARG_A(i))
            ci->u.l.savedpc++;
          else
            donextjump(ci);
        )
      )
      vmcase(OP_TEST,
        if (GETARG_C(i) ? l_isfalse(ra) : !l_isfalse(ra))
            ci->u.l.savedpc++;
          else
          donextjump(ci);
      )
      vmcase(OP_TESTSET,
        TValue *rb = RB(i);
        if (GETARG_C(i) ? l_isfalse(rb) : !l_isfalse(rb))
          ci->u.l.savedpc++;
        else {
          setobjs2s(L, ra, rb);
          donextjump(ci);
        }
      )
      vmcase(OP_CALL,
        int b = GETARG_B(i);
        int nresults = GETARG_C(i) - 1;
        if (b != 0) L->top = ra+b;  /* else previous instruction set top */
        if (luaD_precall(L, ra, nresults)) {  /* C function? */
          if (nresults >= 0) L->top = ci->top;  /* adjust results */
          base = ci->u.l.base;
        }
        else {  /* Lua function */
          ci = L->ci;
          ci->callstatus |= CIST_REENTRY;
          goto newframe;  /* restart luaV_execute over new Lua function */
        }
      )
      vmcase(OP_TAILCALL,
        int b = GETARG_B(i);
        if (b != 0) L->top = ra+b;  /* else previous instruction set top */
        lua_assert(GETARG_C(i) - 1 == LUA_MULTRET);
        if (luaD_precall(L, ra, LUA_MULTRET))  /* C function? */
          base = ci->u.l.base;
        else {
          /* tail call: put called frame (n) in place of caller one (o) */
          CallInfo *nci = L->ci;  /* called frame */
          CallInfo *oci = nci->previous;  /* caller frame */
          StkId nfunc = nci->func;  /* called function */
          StkId ofunc = oci->func;  /* caller function */
          /* last stack slot filled by 'precall' */
          StkId lim = nci->u.l.base + getproto(nfunc)->numparams;
          int aux;
          /* close all upvalues from previous call */
          if (cl->p->sizep > 0) luaF_close(L, oci->u.l.base);
          /* move new frame into old one */
          for (aux = 0; nfunc + aux < lim; aux++)
            setobjs2s(L, ofunc + aux, nfunc + aux);
          oci->u.l.base = ofunc + (nci->u.l.base - nfunc);  /* correct base */
          oci->top = L->top = ofunc + (L->top - nfunc);  /* correct top */
          oci->u.l.savedpc = nci->u.l.savedpc;
          oci->callstatus |= CIST_TAIL;  /* function was tail called */
          ci = L->ci = oci;  /* remove new frame */
          lua_assert(L->top == oci->u.l.base + getproto(ofunc)->maxstacksize);
          goto newframe;  /* restart luaV_execute over new Lua function */
        }
      )
      vmcasenb(OP_RETURN,
        int b = GETARG_B(i);
        if (b != 0) L->top = ra+b-1;
        if (cl->p->sizep > 0) luaF_close(L, base);
        b = luaD_poscall(L, ra);
        if (!(ci->callstatus & CIST_REENTRY))  /* 'ci' still the called one */
          return;  /* external invocation: return */
        else {  /* invocation via reentry: continue execution */
          ci = L->ci;
          if (b) L->top = ci->top;
          lua_assert(isLua(ci));
          lua_assert(GET_OPCODE(*((ci)->u.l.savedpc - 1)) == OP_CALL);
          goto newframe;  /* restart luaV_execute over new Lua function */
        }
      )
      vmcase(OP_FORLOOP,
        lua_Number step = nvalue(ra+2);
        lua_Number idx = luai_numadd(L, nvalue(ra), step); /* increment index */
        lua_Number limit = nvalue(ra+1);
        if (luai_numlt(L, 0, step) ? luai_numle(L, idx, limit)
                                   : luai_numle(L, limit, idx)) {
          ci->u.l.savedpc += GETARG_sBx(i);  /* jump back */
          setnvalue(ra, idx);  /* update internal index... */
          setnvalue(ra+3, idx);  /* ...and external index */
        }
      )
      vmcase(OP_FORPREP,
        const TValue *init = ra;
        const TValue *plimit = ra+1;
        const TValue *pstep = ra+2;
        if (!tonumber(init, ra))
          luaG_runerror(L, LUA_QL("for") " initial value must be a number");
        else if (!tonumber(plimit, ra+1))
          luaG_runerror(L, LUA_QL("for") " limit must be a number");
        else if (!tonumber(pstep, ra+2))
          luaG_runerror(L, LUA_QL("for") " step must be a number");
        setnvalue(ra, luai_numsub(L, nvalue(ra), nvalue(pstep)));
        ci->u.l.savedpc += GETARG_sBx(i);
      )
      vmcasenb(OP_TFORCALL,
        StkId cb = ra + 3;  /* call base */
        setobjs2s(L, cb+2, ra+2);
        setobjs2s(L, cb+1, ra+1);
        setobjs2s(L, cb, ra);
        L->top = cb + 3;  /* func. + 2 args (state and index) */
        Protect(luaD_call(L, cb, GETARG_C(i), 1));
        L->top = ci->top;
        i = *(ci->u.l.savedpc++);  /* go to next instruction */
        ra = RA(i);
        lua_assert(GET_OPCODE(i) == OP_TFORLOOP);
        goto l_tforloop;
      )
      vmcase(OP_TFORLOOP,
        l_tforloop:
        if (!ttisnil(ra + 1)) {  /* continue loop? */
          setobjs2s(L, ra, ra + 1);  /* save control variable */
           ci->u.l.savedpc += GETARG_sBx(i);  /* jump back */
        }
      )
      vmcase(OP_SETLIST,
        int n = GETARG_B(i);
        int c = GETARG_C(i);
        int last;
        Table *h;
        if (n == 0) n = cast_int(L->top - ra) - 1;
        if (c == 0) {
          lua_assert(GET_OPCODE(*ci->u.l.savedpc) == OP_EXTRAARG);
          c = GETARG_Ax(*ci->u.l.savedpc++);
        }
        luai_runtimecheck(L, ttistable(ra));
        h = hvalue(ra);
        last = ((c-1)*LFIELDS_PER_FLUSH) + n;
        if (last > h->sizearray)  /* needs more space? */
          luaH_resizearray(L, h, last);  /* pre-allocate it at once */
        for (; n > 0; n--) {
          TValue *val = ra+n;
          luaH_setint(L, h, last--, val);
          luaC_barrierback(L, obj2gco(h), val);
        }
        L->top = ci->top;  /* correct top (in case of previous open call) */
      )
      vmcase(OP_CLOSURE,
        Proto *p = cl->p->p[GETARG_Bx(i)];
        Closure *ncl = getcached(p, cl->upvals, base);  /* cached closure */
        if (ncl == NULL)  /* no match? */
          pushclosure(L, p, cl->upvals, base, ra);  /* create a new one */
        else
          setclLvalue(L, ra, ncl);  /* push cashed closure */
        checkGC(L, ra + 1);
      )
      vmcase(OP_VARARG,
        int b = GETARG_B(i) - 1;
        int j;
        int n = cast_int(base - ci->func) - cl->p->numparams - 1;
        if (b < 0) {  /* B == 0? */
          b = n;  /* get all var. arguments */
          Protect(luaD_checkstack(L, n));
          ra = RA(i);  /* previous call may change the stack */
          L->top = ra + n;
        }
        for (j = 0; j < b; j++) {
          if (j < n) {
            setobjs2s(L, ra + j, base - n + j);
          }
          else {
            setnilvalue(ra + j);
          }
        }
      )
      vmcase(OP_EXTRAARG,
        lua_assert(0);
      )
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x20(%rdi), %rbp
movq %rdi, 0x8(%rsp)
movq (%rbp), %rax
movq 0x30(%rbp), %r12
movq (%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
movq %rbp, 0x20(%rsp)
movq 0x38(%rbp), %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0x38(%rbp)
movl (%rax), %r15d
movzbl 0x48(%rdi), %ebx
testb $0xc, %bl
je 0x17cdf
decl 0x50(%rdi)
je 0x17c03
testb $0x4, %bl
je 0x17cdf
movq 0x20(%rdi), %r14
testb $0x8, %bl
jmp 0x17c0c
movq 0x20(%rdi), %r14
testb $0x8, %bl
jne 0x17c1c
leaq 0x22(%r14), %r12
movb 0x22(%r14), %al
testb %al, %al
js 0x17c76
xorl %ebp, %ebp
jmp 0x17c41
movl 0x4c(%rdi), %eax
movl %eax, 0x50(%rdi)
leaq 0x22(%r14), %r12
movb 0x22(%r14), %al
testb %al, %al
js 0x17c76
pushq $0x3
popq %rsi
pushq $-0x1
popq %rdx
callq 0xafb4
movq 0x8(%rsp), %rdi
movb $0x1, %bpl
testb $0x4, %bl
je 0x17cc4
movq (%r14), %rax
movq 0x38(%r14), %rsi
movq (%rax), %rax
movq 0x18(%rax), %rax
movq 0x18(%rax), %rcx
movq 0x28(%rax), %rax
movq %rsi, %r8
subq %rcx, %r8
shrq $0x2, %r8
decl %r8d
testq %rax, %rax
je 0x17c7e
movslq %r8d, %rdx
movl (%rax,%rdx,4), %edx
jmp 0x17c80
andb $0x7f, %al
movb %al, (%r12)
jmp 0x17cd6
xorl %edx, %edx
testl %r8d, %r8d
je 0x17cb7
movq 0x28(%rdi), %r8
cmpq %r8, %rsi
jbe 0x17cb7
testq %rax, %rax
je 0x17cb1
subq %rcx, %r8
shlq $0x1e, %r8
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
addq %rcx, %r8
sarq $0x20, %r8
movl (%rax,%r8,4), %eax
jmp 0x17cb3
xorl %eax, %eax
cmpl %eax, %edx
je 0x17cc4
pushq $0x2
popq %rsi
callq 0xafb4
movq 0x8(%rsp), %rdi
movq 0x38(%r14), %rax
movq %rax, 0x28(%rdi)
cmpb $0x1, 0xa(%rdi)
je 0x18d65
movq 0x20(%rsp), %rbp
movq 0x30(%rbp), %r12
movl %r15d, %eax
andl $0x3f, %eax
cmpl $0x26, %eax
ja 0x17bd0
movl %r15d, %ecx
shrl $0x6, %ecx
movzbl %cl, %r13d
movl %r13d, %r14d
shll $0x4, %r14d
addq %r12, %r14
leaq 0x80e7(%rip), %rcx      # 0x1fdf0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
shrl $0x13, %r15d
andl $-0x10, %r15d
movq (%r12,%r15), %rax
movq %rax, (%r14)
movl 0x8(%r12,%r15), %eax
movl %eax, 0x8(%r14)
jmp 0x17bd0
cmpl $0x7fffff, %r15d        # imm = 0x7FFFFF
ja 0x1895f
movq 0x10(%rdi), %rbp
subq %r14, %rbp
shrq $0x4, %rbp
decl %ebp
jmp 0x18965
movl 0x8(%r14), %eax
testl $0x7fc000, %r15d        # imm = 0x7FC000
je 0x18ac3
testl %eax, %eax
je 0x182c2
cmpl $0x1, %eax
jne 0x18ba4
cmpl $0x0, (%r14)
jne 0x18ba4
jmp 0x182c2
movl %r15d, %edx
shrl $0x13, %edx
movl $0xff0, %eax            # imm = 0xFF0
movl %edx, %ecx
andl %eax, %ecx
movq 0x10(%rsp), %rsi
addq %rsi, %rcx
andl $-0x10, %edx
addq %r12, %rdx
testl %r15d, %r15d
cmovsq %rcx, %rdx
btl $0x16, %r15d
movq %rsi, %rcx
cmovaeq %r12, %rcx
shrl $0xa, %r15d
andl %eax, %r15d
addq %rcx, %r15
cmpl $0x3, 0x8(%rdx)
jne 0x1892e
cmpl $0x3, 0x8(%r15)
jne 0x1892e
movsd (%rdx), %xmm0
divsd (%r15), %xmm0
jmp 0x18608
movl %r15d, %edx
shrl $0x13, %edx
movl $0xff0, %eax            # imm = 0xFF0
movl %edx, %ecx
andl %eax, %ecx
movq 0x10(%rsp), %rsi
addq %rsi, %rcx
andl $-0x10, %edx
addq %r12, %rdx
testl %r15d, %r15d
cmovsq %rcx, %rdx
btl $0x16, %r15d
movq %rsi, %rcx
cmovaeq %r12, %rcx
shrl $0xa, %r15d
andl %eax, %r15d
addq %rcx, %r15
cmpl $0x3, 0x8(%rdx)
jne 0x18932
cmpl $0x3, 0x8(%r15)
jne 0x18932
movsd (%rdx), %xmm0
subsd (%r15), %xmm0
jmp 0x18608
movq %r12, %rax
subq (%rbp), %rax
shrq $0x4, %rax
movq 0x18(%rsp), %rcx
movq 0x18(%rcx), %rcx
movzbl 0x78(%rcx), %ebp
notl %ebp
addl %eax, %ebp
cmpl $0x800000, %r15d        # imm = 0x800000
jae 0x18a13
movq 0x30(%rdi), %rax
subq 0x10(%rdi), %rax
sarq $0x4, %rax
movslq %ebp, %rbx
cmpq %rbx, %rax
jg 0x17e82
movl %ebp, %esi
callq 0xaef2
movq 0x8(%rsp), %rdi
movq 0x20(%rsp), %rax
movq 0x30(%rax), %r12
shll $0x4, %r13d
addq %r12, %r13
movq %rbx, %rax
shlq $0x4, %rax
addq %r13, %rax
movq %rax, 0x10(%rdi)
movq %r13, %r14
jmp 0x18a20
leaq 0x30(%r14), %rsi
movq 0x20(%r14), %rax
movq %rax, 0x50(%r14)
movl 0x28(%r14), %eax
movl %eax, 0x58(%r14)
movq 0x10(%r14), %rax
movq %rax, 0x40(%r14)
movl 0x18(%r14), %eax
movl %eax, 0x48(%r14)
movq (%r14), %rax
movq %rax, 0x30(%r14)
movl 0x8(%r14), %eax
movl %eax, 0x38(%r14)
addq $0x60, %r14
movq %r14, 0x10(%rdi)
shrl $0xe, %r15d
andl $0x1ff, %r15d           # imm = 0x1FF
pushq $0x1
popq %rcx
movl %r15d, %edx
callq 0xb418
movq 0x8(%rsp), %rdi
movq 0x8(%rbp), %rax
movq 0x30(%rbp), %r12
movq %rax, 0x10(%rdi)
movq 0x38(%rbp), %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0x38(%rbp)
movl (%rax), %r15d
movl %r15d, %r14d
shrl $0x2, %r14d
andl $0xff0, %r14d           # imm = 0xFF0
addq %r12, %r14
movl 0x18(%r14), %eax
testl %eax, %eax
je 0x17bd0
movq 0x10(%r14), %rcx
movq %rcx, (%r14)
movl %eax, 0x8(%r14)
jmp 0x187f7
movl %r15d, %ebp
shrl $0xe, %ebp
movq %rdi, %rbx
callq 0x15a42
movq %rax, %r12
cmpl $0x800000, %r15d        # imm = 0x800000
setae %al
andl $0x1ff, %ebp            # imm = 0x1FF
movq %r12, (%r14)
movl $0x45, 0x8(%r14)
setne %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x17fa2
shrl $0x17, %r15d
movl %r15d, %edi
callq 0xfa12
movl %eax, %r15d
movl %ebp, %edi
callq 0xfa12
movq %rbx, %rdi
movq %r12, %rsi
movl %r15d, %edx
movl %eax, %ecx
callq 0x15728
movq 0x18(%rbx), %rax
cmpq $0x0, 0x18(%rax)
movq %rbx, %rdi
movq 0x20(%rsp), %rbp
jg 0x18c1f
jmp 0x18956
shrl $0x17, %r15d
leal 0x4(%r15), %eax
andl $-0x4, %eax
movd %r15d, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
shll $0x4, %r13d
leaq (%r12,%r13), %rcx
addq $0x38, %rcx
xorl %edx, %edx
movq %rdx, %xmm1
pshufd $0x44, %xmm1, %xmm1     # xmm1 = xmm1[0,1,0,1]
movdqa 0x7ead(%rip), %xmm4     # 0x1fea0
por %xmm1, %xmm4
movdqa 0x7eb1(%rip), %xmm3     # 0x1feb0
movdqa %xmm0, %xmm2
por %xmm3, %xmm2
pxor %xmm3, %xmm4
movdqa %xmm4, %xmm5
pcmpgtd %xmm2, %xmm5
pcmpeqd %xmm2, %xmm4
pshufd $0xf5, %xmm4, %xmm4     # xmm4 = xmm4[1,1,3,3]
pand %xmm5, %xmm4
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
por %xmm4, %xmm5
movd %xmm5, %esi
notl %esi
testb $0x1, %sil
je 0x18039
andl $0x0, -0x30(%rcx)
pcmpeqd %xmm4, %xmm4
pxor %xmm4, %xmm5
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x18050
andl $0x0, -0x20(%rcx)
por 0x7e38(%rip), %xmm1     # 0x1fe90
pxor %xmm3, %xmm1
movdqa %xmm1, %xmm3
pcmpgtd %xmm2, %xmm3
pcmpeqd %xmm2, %xmm1
pshufd $0xf5, %xmm1, %xmm2     # xmm2 = xmm1[1,1,3,3]
pand %xmm3, %xmm2
pshufd $0xf5, %xmm3, %xmm1     # xmm1 = xmm3[1,1,3,3]
por %xmm2, %xmm1
pxor %xmm1, %xmm4
pextrw $0x0, %xmm4, %esi
testb $0x1, %sil
je 0x1808d
andl $0x0, -0x10(%rcx)
pcmpeqd %xmm2, %xmm2
pxor %xmm2, %xmm1
pextrw $0x4, %xmm1, %esi
testb $0x1, %sil
je 0x180a3
andl $0x0, (%rcx)
addq $0x4, %rdx
addq $0x40, %rcx
cmpq %rdx, %rax
jne 0x17fe1
jmp 0x17bd0
movl %r15d, %eax
shrl $0x13, %eax
andl $-0x10, %eax
leaq (%r12,%rax), %rsi
movq (%r12,%rax), %rcx
movq %rcx, 0x10(%r14)
movl 0x8(%r12,%rax), %eax
btl $0x16, %r15d
cmovbq 0x10(%rsp), %r12
movl %eax, 0x18(%r14)
jmp 0x18588
shrl $0x17, %r15d
movq 0x18(%rsp), %rax
movq 0x20(%rax,%r15,8), %rsi
movq 0x10(%rsi), %rax
movq (%r14), %rcx
movq %rcx, (%rax)
movl 0x8(%r14), %ecx
movl %ecx, 0x8(%rax)
testb $0x40, %cl
je 0x17bd0
movq (%r14), %rdx
testb $0x3, 0x9(%rdx)
je 0x17bd0
testb $0x4, 0x9(%rsi)
je 0x17bd0
callq 0xc0bc
movq 0x8(%rsp), %rdi
jmp 0x17bd0
movl %r15d, %esi
shrl $0x13, %esi
movl $0xff0, %eax            # imm = 0xFF0
movl %esi, %ecx
andl %eax, %ecx
movq 0x10(%rsp), %rdx
addq %rdx, %rcx
andl $-0x10, %esi
addq %r12, %rsi
testl %r15d, %r15d
cmovsq %rcx, %rsi
btl $0x16, %r15d
cmovbq %rdx, %r12
shrl $0xa, %r15d
andl %eax, %r15d
addq %r12, %r15
movq %r15, %rdx
callq 0x172ff
jmp 0x188db
movl %r15d, %esi
shrl $0x13, %esi
movl $0xff0, %eax            # imm = 0xFF0
movl %esi, %ecx
andl %eax, %ecx
movq 0x10(%rsp), %rdx
addq %rdx, %rcx
andl $-0x10, %esi
addq %r12, %rsi
testl %r15d, %r15d
cmovsq %rcx, %rsi
btl $0x16, %r15d
cmovbq %rdx, %r12
shrl $0xa, %r15d
andl %eax, %r15d
movl 0x8(%rsi), %eax
xorl %ecx, %ecx
cmpl 0x8(%r12,%r15), %eax
jne 0x181d0
addq %r15, %r12
movq %r12, %rdx
callq 0x174ba
movq 0x8(%rsp), %rdi
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
movq 0x38(%rbp), %rax
cmpl %r13d, %ecx
jne 0x18a6c
movl (%rax), %ebx
movl %ebx, %ecx
shrl $0x6, %ecx
movzbl %cl, %ecx
testl %ecx, %ecx
je 0x18208
movq 0x30(%rbp), %rax
shll $0x4, %ecx
leaq (%rax,%rcx), %rsi
addq $-0x10, %rsi
callq 0xbf1d
movq 0x8(%rsp), %rdi
movq 0x38(%rbp), %rax
shrl $0xe, %ebx
leaq (%rax,%rbx,4), %rax
addq $-0x7fff8, %rax         # imm = 0xFFF80008
jmp 0x18a70
movq 0x38(%rbp), %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0x38(%rbp)
movl (%rax), %eax
shrl $0x2, %eax
andl $-0x10, %eax
movq 0x10(%rsp), %rdx
movq (%rdx,%rax), %rcx
movq %rcx, (%r14)
movl 0x8(%rdx,%rax), %eax
movl %eax, 0x8(%r14)
jmp 0x17bd0
movl %r15d, %edx
shrl $0x13, %edx
movl $0xff0, %eax            # imm = 0xFF0
movl %edx, %ecx
andl %eax, %ecx
movq 0x10(%rsp), %rsi
addq %rsi, %rcx
andl $-0x10, %edx
addq %r12, %rdx
testl %r15d, %r15d
cmovsq %rcx, %rdx
btl $0x16, %r15d
movq %rsi, %rcx
cmovaeq %r12, %rcx
shrl $0xa, %r15d
andl %eax, %r15d
addq %rcx, %r15
cmpl $0x3, 0x8(%rdx)
jne 0x18936
cmpl $0x3, 0x8(%r15)
jne 0x18936
movsd (%rdx), %xmm0
mulsd (%r15), %xmm0
jmp 0x18608
movl %r15d, %eax
shrl $0x17, %eax
movl %eax, (%r14)
movl $0x1, 0x8(%r14)
testl $0x7fc000, %r15d        # imm = 0x7FC000
je 0x17bd0
addq $0x4, 0x38(%rbp)
jmp 0x17bd0
movl %r15d, %esi
shrl $0x13, %esi
andl $-0x10, %esi
addq %r12, %rsi
btl $0x16, %r15d
cmovbq 0x10(%rsp), %r12
jmp 0x18588
shrl $0xa, %r15d
andl $-0x10, %r15d
movq 0x10(%rsp), %rcx
movq (%rcx,%r15), %rax
movq %rax, (%r14)
movl 0x8(%rcx,%r15), %eax
movl %eax, 0x8(%r14)
jmp 0x17bd0
movl %r15d, %edx
shrl $0x13, %edx
movl $0xff0, %eax            # imm = 0xFF0
movl %edx, %ecx
andl %eax, %ecx
movq 0x10(%rsp), %rsi
addq %rsi, %rcx
andl $-0x10, %edx
addq %r12, %rdx
testl %r15d, %r15d
cmovsq %rcx, %rdx
btl $0x16, %r15d
movq %rsi, %rcx
cmovaeq %r12, %rcx
shrl $0xa, %r15d
andl %eax, %r15d
addq %rcx, %r15
cmpl $0x3, 0x8(%rdx)
jne 0x1893a
cmpl $0x3, 0x8(%r15)
jne 0x1893a
movsd (%rdx), %xmm0
movsd %xmm0, 0x28(%rsp)
movsd (%r15), %xmm1
movsd %xmm1, 0x30(%rsp)
divsd %xmm1, %xmm0
callq 0x64f0
movq 0x8(%rsp), %rdi
mulsd 0x30(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%r14)
movl $0x3, 0x8(%r14)
jmp 0x17bd0
cmpl $0x3, 0x8(%r14)
je 0x183be
movq %r14, %rdi
movq %r14, %rsi
callq 0x16f50
movq 0x8(%rsp), %rdi
testq %rax, %rax
je 0x18d95
cmpl $0x3, 0x18(%r14)
je 0x183df
leaq 0x10(%r14), %rdi
movq %rdi, %rsi
callq 0x16f50
movq 0x8(%rsp), %rdi
testq %rax, %rax
je 0x18d9e
leaq 0x20(%r14), %rax
cmpl $0x3, 0x28(%r14)
je 0x18403
movq %rax, %rdi
movq %rax, %rsi
callq 0x16f50
movq 0x8(%rsp), %rdi
testq %rax, %rax
je 0x18da7
movsd (%r14), %xmm0
subsd (%rax), %xmm0
movsd %xmm0, (%r14)
movl $0x3, 0x8(%r14)
jmp 0x187f7
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
shrl $0xe, %r15d
movq (%rax,%r15,8), %rbx
movq 0x38(%rbx), %rbp
movq 0x40(%rbx), %rax
movl 0x50(%rbx), %esi
testq %rax, %rax
je 0x18ae3
xorl %ecx, %ecx
testl %esi, %esi
movl $0x0, %r13d
cmovgl %esi, %r13d
leaq (,%r13,8), %rdx
cmpq %rcx, %rdx
je 0x18c00
cmpb $0x0, 0x8(%rbp,%rcx,2)
movzbl 0x9(%rbp,%rcx,2), %r9d
je 0x1847c
shll $0x4, %r9d
addq %r12, %r9
jmp 0x1848a
movq 0x18(%rsp), %r8
movq 0x20(%r8,%r9,8), %r8
movq 0x10(%r8), %r9
movq 0x20(%rax,%rcx), %r8
addq $0x8, %rcx
cmpq %r9, 0x10(%r8)
je 0x1845d
jmp 0x18aec
shrl $0x13, %r15d
andl $-0x10, %r15d
movl 0x8(%r12,%r15), %eax
testl %eax, %eax
je 0x18be9
cmpl $0x1, %eax
jne 0x18bee
addq %r12, %r15
xorl %eax, %eax
cmpl $0x0, (%r15)
sete %al
jmp 0x18bf0
shrl $0x17, %r15d
movq 0x18(%rsp), %rax
movq 0x20(%rax,%r15,8), %rax
movq 0x10(%rax), %rax
movq (%rax), %rcx
movq %rcx, (%r14)
movl 0x8(%rax), %eax
movl %eax, 0x8(%r14)
jmp 0x17bd0
shrl $0x13, %r15d
andl $-0x10, %r15d
addq %r15, %r12
movq %r14, %rsi
movq %r12, %rdx
callq 0x178c1
jmp 0x18951
movl %r15d, %edx
shrl $0x13, %edx
movl $0xff0, %eax            # imm = 0xFF0
movl %edx, %ecx
andl %eax, %ecx
movq 0x10(%rsp), %rsi
addq %rsi, %rcx
andl $-0x10, %edx
addq %r12, %rdx
testl %r15d, %r15d
cmovsq %rcx, %rdx
btl $0x16, %r15d
movq %rsi, %rcx
cmovaeq %r12, %rcx
shrl $0xa, %r15d
andl %eax, %r15d
addq %rcx, %r15
cmpl $0x3, 0x8(%rdx)
jne 0x1893e
cmpl $0x3, 0x8(%r15)
jne 0x1893e
movsd (%rdx), %xmm0
addsd (%r15), %xmm0
jmp 0x18608
movl %r15d, %eax
shrl $0x17, %eax
movq 0x18(%rsp), %rcx
movq 0x20(%rcx,%rax,8), %rax
btl $0x16, %r15d
cmovbq 0x10(%rsp), %r12
movq 0x10(%rax), %rsi
shrl $0xa, %r15d
andl $0xff0, %r15d           # imm = 0xFF0
addq %r12, %r15
movq %r15, %rdx
movq %r14, %rcx
callq 0x16ffb
jmp 0x18951
movl %r15d, %edx
shrl $0x13, %edx
movl $0xff0, %eax            # imm = 0xFF0
movl %edx, %ecx
andl %eax, %ecx
movq 0x10(%rsp), %rsi
addq %rsi, %rcx
andl $-0x10, %edx
addq %r12, %rdx
testl %r15d, %r15d
cmovsq %rcx, %rdx
btl $0x16, %r15d
movq %rsi, %rcx
cmovaeq %r12, %rcx
shrl $0xa, %r15d
andl %eax, %r15d
addq %rcx, %r15
cmpl $0x3, 0x8(%rdx)
jne 0x18942
cmpl $0x3, 0x8(%r15)
jne 0x18942
movsd (%rdx), %xmm0
movsd (%r15), %xmm1
callq 0x6140
movq 0x8(%rsp), %rdi
movsd %xmm0, (%r14)
movl $0x3, 0x8(%r14)
jmp 0x17bd0
movl %r15d, %edx
shrl $0x13, %edx
movl $0xff0, %eax            # imm = 0xFF0
movl %edx, %ecx
andl %eax, %ecx
movq 0x10(%rsp), %rsi
addq %rsi, %rcx
andl $-0x10, %edx
addq %r12, %rdx
testl %r15d, %r15d
cmovsq %rcx, %rdx
btl $0x16, %r15d
cmovbq %rsi, %r12
shrl $0xa, %r15d
andl %eax, %r15d
addq %r12, %r15
movq %r14, %rsi
jmp 0x1869b
movl %r15d, %edx
shrl $0x13, %edx
movl $0xff0, %eax            # imm = 0xFF0
movl %edx, %ecx
andl %eax, %ecx
movq 0x10(%rsp), %rsi
addq %rsi, %rcx
andl $-0x10, %edx
addq %r12, %rdx
testl %r15d, %r15d
cmovsq %rcx, %rdx
movq 0x18(%rsp), %rcx
movq 0x20(%rcx,%r13,8), %rcx
btl $0x16, %r15d
cmovbq %rsi, %r12
movq 0x10(%rcx), %rsi
shrl $0xa, %r15d
andl %eax, %r15d
addq %r12, %r15
movq %r15, %rcx
callq 0x171b2
jmp 0x18951
cmpl $0x800000, %r15d        # imm = 0x800000
jb 0x186c0
shrl $0x13, %r15d
andl $-0x10, %r15d
addq %r14, %r15
movq %r15, 0x10(%rdi)
pushq $-0x1
popq %rdx
movq %r14, %rsi
callq 0xb066
testl %eax, %eax
je 0x18ca8
movq 0x30(%rbp), %r12
movq 0x8(%rsp), %rdi
jmp 0x17bd0
movsd 0x10(%r14), %xmm1
movsd 0x20(%r14), %xmm2
movsd (%r14), %xmm0
addsd %xmm2, %xmm0
xorpd %xmm3, %xmm3
ucomisd %xmm3, %xmm2
jbe 0x18a79
ucomisd %xmm0, %xmm1
jb 0x17bd0
jmp 0x18a83
movl %r15d, %ebx
shrl $0x17, %ebx
shrl $0xe, %r15d
andl $0x1ff, %r15d           # imm = 0x1FF
movl %r15d, %eax
shll $0x4, %eax
addq %r12, %rax
addq $0x10, %rax
movq %rax, 0x10(%rdi)
subl %ebx, %r15d
incl %r15d
movl %r15d, %esi
callq 0x1763b
movq 0x8(%rsp), %rdi
movq 0x30(%rbp), %rcx
movl %r13d, %eax
shll $0x4, %eax
movl %ebx, %edx
shll $0x4, %edx
movq (%rcx,%rdx), %rsi
movq %rsi, (%rcx,%rax)
movl 0x8(%rcx,%rdx), %esi
movl %esi, 0x8(%rcx,%rax)
movq 0x18(%rdi), %rsi
cmpq $0x0, 0x18(%rsi)
jle 0x18b6f
addq %rcx, %rax
addq %rcx, %rdx
addq $0x10, %rax
cmpl %ebx, %r13d
cmovbq %rdx, %rax
movq %rax, 0x10(%rdi)
callq 0xcd44
movq 0x8(%rsp), %rdi
movq 0x8(%rbp), %rax
movq %rax, 0x10(%rdi)
jmp 0x18b73
shrl $0x13, %r15d
andl $-0x10, %r15d
leaq (%r12,%r15), %rcx
cmpl $0x3, 0x8(%r12,%r15)
jne 0x18ab4
movsd (%rcx), %xmm0
xorpd 0x67aa(%rip), %xmm0     # 0x1ef70
movlpd %xmm0, (%r14)
movl $0x3, 0x8(%r14)
jmp 0x17bd0
testl %r13d, %r13d
je 0x187f7
movq 0x30(%rbp), %rax
shll $0x4, %r13d
leaq (%rax,%r13), %rsi
addq $-0x10, %rsi
callq 0xbf1d
movq 0x8(%rsp), %rdi
movq 0x38(%rbp), %rax
shrl $0xe, %r15d
leaq (%rax,%r15,4), %rax
addq $-0x7fffc, %rax         # imm = 0xFFF80004
jmp 0x18be0
pushq $0x1
popq %rcx
movl %r15d, %edx
shrl $0x13, %edx
andl $-0x10, %edx
leaq (%r12,%rdx), %rax
movl 0x8(%r12,%rdx), %edx
testl $0x7fc000, %r15d        # imm = 0x7FC000
je 0x18b80
testl %edx, %edx
je 0x18b90
cmpl $0x1, %edx
jne 0x18b9a
cmpl $0x0, (%rax)
movl %ecx, %edx
jne 0x18b9a
jmp 0x18b90
cmpl $0x800000, %r15d        # imm = 0x800000
jb 0x1886a
movl %r15d, %eax
shrl $0x13, %eax
andl $-0x10, %eax
addq %r14, %rax
movq %rax, 0x10(%rdi)
shrl $0xe, %r15d
andl $0x1ff, %r15d           # imm = 0x1FF
leal -0x1(%r15), %edx
movq %r14, %rsi
callq 0xb066
testl %eax, %eax
je 0x18d44
testl %r15d, %r15d
movq 0x8(%rsp), %rdi
jne 0x18c31
jmp 0x18956
movl %r15d, %esi
shrl $0x13, %esi
movl $0xff0, %eax            # imm = 0xFF0
movl %esi, %ecx
andl %eax, %ecx
movq 0x10(%rsp), %rdx
addq %rdx, %rcx
andl $-0x10, %esi
addq %r12, %rsi
testl %r15d, %r15d
cmovsq %rcx, %rsi
btl $0x16, %r15d
cmovbq %rdx, %r12
shrl $0xa, %r15d
andl %eax, %r15d
addq %r12, %r15
movq %r15, %rdx
callq 0x17421
movq 0x38(%rbp), %rcx
cmpl %r13d, %eax
jne 0x1891f
movl (%rcx), %ebx
movl %ebx, %eax
shrl $0x6, %eax
movzbl %al, %eax
testl %eax, %eax
je 0x1890f
movq 0x30(%rbp), %rcx
shll $0x4, %eax
leaq (%rcx,%rax), %rsi
addq $-0x10, %rsi
movq 0x8(%rsp), %rdi
callq 0xbf1d
movq 0x38(%rbp), %rcx
shrl $0xe, %ebx
leaq (%rcx,%rbx,4), %rcx
addq $-0x7fff8, %rcx         # imm = 0xFFF80008
jmp 0x18923
addq $0x4, %rcx
movq 0x8(%rsp), %rdi
movq %rcx, 0x38(%rbp)
jmp 0x18956
pushq $0x9
jmp 0x18944
pushq $0x7
jmp 0x18944
pushq $0x8
jmp 0x18944
pushq $0xa
jmp 0x18944
pushq $0x6
jmp 0x18944
pushq $0xb
popq %r8
movq %r14, %rsi
movq %r15, %rcx
callq 0x179a2
movq 0x8(%rsp), %rdi
movq 0x30(%rbp), %r12
jmp 0x17bd0
movl %r15d, %ebp
shrl $0x17, %ebp
shrl $0xe, %r15d
andl $0x1ff, %r15d           # imm = 0x1FF
jne 0x1898a
movq 0x20(%rsp), %rdx
movq 0x38(%rdx), %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0x38(%rdx)
movl (%rax), %r15d
shrl $0x6, %r15d
movq (%r14), %r14
imull $0x32, %r15d, %ebx
leal (%rbx,%rbp), %edx
addl $-0x32, %edx
cmpl 0x38(%r14), %edx
jle 0x189aa
movq %r14, %rsi
callq 0x15a22
movq 0x8(%rsp), %rdi
movl %ebp, %eax
shlq $0x4, %rax
shll $0x4, %r13d
addq %rax, %r13
addq %r12, %r13
addl $-0x32, %ebx
testl %ebp, %ebp
jle 0x18a01
leal (%rbx,%rbp), %edx
movq %r14, %rsi
movq %r13, %rcx
callq 0x15983
testb $0x40, 0x8(%r13)
je 0x189f4
movq (%r13), %rax
testb $0x3, 0x9(%rax)
je 0x189f4
testb $0x4, 0x9(%r14)
je 0x189f4
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0xc1db
addq $-0x10, %r13
decl %ebp
movq 0x8(%rsp), %rdi
jmp 0x189bd
movq 0x20(%rsp), %rbp
movq 0x8(%rbp), %rax
movq %rax, 0x10(%rdi)
jmp 0x17bd0
movslq %ebp, %rbx
shrl $0x17, %r15d
decl %r15d
movl %r15d, %ebp
movq %rbx, %rcx
shlq $0x4, %rcx
movq %r12, %rax
subq %rcx, %rax
xorl %ecx, %ecx
testl %ebp, %ebp
cmovlel %ecx, %ebp
pushq $0x8
popq %rdx
cmpq %rcx, %rbp
je 0x18a62
cmpq %rbx, %rcx
jge 0x18a54
movq -0x8(%rax,%rdx), %rsi
movq %rsi, -0x8(%r14,%rdx)
movl (%rax,%rdx), %esi
movl %esi, (%r14,%rdx)
jmp 0x18a59
andl $0x0, (%r14,%rdx)
incq %rcx
addq $0x10, %rdx
jmp 0x18a37
movq 0x20(%rsp), %rbp
jmp 0x17bd0
addq $0x4, %rax
movq %rax, 0x38(%rbp)
jmp 0x18956
ucomisd %xmm1, %xmm0
jb 0x17bd0
movq 0x38(%rbp), %rax
shrl $0xe, %r15d
leaq (%rax,%r15,4), %rax
addq $-0x7fffc, %rax         # imm = 0xFFF80004
movq %rax, 0x38(%rbp)
movsd %xmm0, (%r14)
pushq $0x3
popq %rax
movl %eax, 0x8(%r14)
movsd %xmm0, 0x30(%r14)
movl %eax, 0x38(%r14)
jmp 0x17bd0
pushq $0xc
popq %r8
movq %r14, %rsi
movq %rcx, %rdx
jmp 0x1894c
testl %eax, %eax
je 0x18ba4
cmpl $0x1, %eax
jne 0x182c2
cmpl $0x0, (%r14)
jne 0x182c2
jmp 0x18ba4
xorl %r13d, %r13d
testl %esi, %esi
cmovgl %esi, %r13d
callq 0xbe28
movq %rax, %r15
movq %rbx, 0x28(%rsp)
movq %rbx, 0x18(%rax)
movq %rax, (%r14)
movl $0x46, 0x8(%r14)
shlq $0x3, %r13
xorl %ebx, %ebx
cmpq %rbx, %r13
je 0x18b46
cmpb $0x0, 0x8(%rbp,%rbx,2)
movzbl 0x9(%rbp,%rbx,2), %esi
movq 0x8(%rsp), %rdi
je 0x18b31
shll $0x4, %esi
addq %r12, %rsi
callq 0xbe82
jmp 0x18b3b
movq 0x18(%rsp), %rax
movq 0x20(%rax,%rsi,8), %rax
movq %rax, 0x20(%r15,%rbx)
addq $0x8, %rbx
jmp 0x18b0e
movq 0x28(%rsp), %rbx
testb $0x4, 0x9(%rbx)
movq 0x8(%rsp), %rdi
je 0x18b66
movq %rbx, %rsi
movq %r15, %rdx
callq 0xc1f6
movq 0x8(%rsp), %rdi
movq %r15, 0x40(%rbx)
jmp 0x18c0b
movq 0x8(%rbp), %rax
movq 0x30(%rbp), %r12
movq %rax, 0x10(%rdi)
jmp 0x17bd0
testl %edx, %edx
je 0x18b9a
cmpl $0x1, %edx
jne 0x18b90
cmpl $0x0, (%rax)
movl %ecx, %edx
je 0x18b9a
movq 0x38(%rbp), %rax
addq $0x4, %rax
jmp 0x18be0
movq (%rax), %rax
movq %rax, (%r14)
movl %edx, 0x8(%r14)
movq 0x38(%rbp), %rax
movl (%rax), %ebx
movl %ebx, %ecx
shrl $0x6, %ecx
movzbl %cl, %ecx
testl %ecx, %ecx
je 0x18bd3
movq 0x30(%rbp), %rax
shll $0x4, %ecx
leaq (%rax,%rcx), %rsi
addq $-0x10, %rsi
callq 0xbf1d
movq 0x8(%rsp), %rdi
movq 0x38(%rbp), %rax
shrl $0xe, %ebx
leaq (%rax,%rbx,4), %rax
addq $-0x7fff8, %rax         # imm = 0xFFF80008
movq %rax, 0x38(%rbp)
jmp 0x17bd0
pushq $0x1
popq %rax
jmp 0x18bf0
xorl %eax, %eax
movl %eax, (%r14)
movl $0x1, 0x8(%r14)
jmp 0x17bd0
movq %rax, (%r14)
movl $0x46, 0x8(%r14)
movq 0x20(%rsp), %rbp
movq 0x18(%rdi), %rax
cmpq $0x0, 0x18(%rax)
jle 0x18956
addq $0x10, %r14
movq %r14, 0x10(%rdi)
callq 0xcd44
movq 0x8(%rsp), %rdi
movq 0x8(%rbp), %rax
movq %rax, 0x10(%rdi)
jmp 0x18956
cmpl $0x800000, %r15d        # imm = 0x800000
jb 0x18c5b
shrl $0x13, %r15d
andl $-0x10, %r15d
leaq (%r14,%r15), %rax
addq $-0x10, %rax
movq %rax, 0x10(%rdi)
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rax
cmpl $0x0, 0x60(%rax)
jle 0x18c77
movq %r12, %rsi
callq 0xbf1d
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rdi, %rbx
callq 0xb387
testb $0x4, 0x22(%rbp)
je 0x18d56
movq 0x20(%rbx), %rbp
testl %eax, %eax
movq %rbx, %rdi
je 0x17bae
movq 0x8(%rbp), %rax
movq %rax, 0x10(%rdi)
jmp 0x17bae
movq 0x8(%rsp), %rdi
movq 0x20(%rdi), %rbx
movq (%rbx), %r14
movq 0x10(%rbx), %rbp
movq (%rbp), %r15
movq (%r14), %rax
movq 0x18(%rax), %rax
movzbl 0x78(%rax), %r12d
shll $0x4, %r12d
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rax
addq 0x30(%rbx), %r12
cmpl $0x0, 0x60(%rax)
jle 0x18ced
movq 0x30(%rbp), %rsi
callq 0xbf1d
movq 0x8(%rsp), %rdi
leaq 0x8(%r15), %rax
movq %r14, %rcx
cmpq %r12, %rcx
jae 0x18d0f
movq (%rcx), %rdx
movq %rdx, -0x8(%rax)
movl 0x8(%rcx), %edx
movl %edx, (%rax)
addq $0x10, %rax
addq $0x10, %rcx
jmp 0x18cf4
movq 0x30(%rbx), %rax
subq %r14, %rax
addq %r15, %rax
movq %rax, 0x30(%rbp)
movq 0x10(%rdi), %rax
subq %r14, %rax
addq %r15, %rax
movq %rax, 0x10(%rdi)
movq %rax, 0x8(%rbp)
movq 0x38(%rbx), %rax
movq %rax, 0x38(%rbp)
orb $0x40, 0x22(%rbp)
movq %rbp, 0x20(%rdi)
jmp 0x17bae
movq 0x8(%rsp), %rdi
movq 0x20(%rdi), %rbp
orb $0x4, 0x22(%rbp)
jmp 0x17bae
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb %bpl, %bpl
je 0x18d75
movl $0x1, 0x50(%rdi)
movq 0x38(%r14), %rax
addq $-0x4, %rax
movq %rax, 0x38(%r14)
orb $-0x80, (%r12)
movq 0x10(%rdi), %rax
addq $-0x10, %rax
movq %rax, (%r14)
pushq $0x1
popq %rsi
callq 0xad18
leaq 0x716b(%rip), %rsi      # 0x1ff07
jmp 0x18dae
leaq 0x7187(%rip), %rsi      # 0x1ff2c
jmp 0x18dae
leaq 0x719b(%rip), %rsi      # 0x1ff49
xorl %eax, %eax
callq 0xaa89
nopl (%rax)