// File: /workspace/github_c_makefile_star2_O3/oridb[P]mc/parse/infer.c
// Function: inferexpr
static void
inferexpr(Node **np, Type *ret, int *sawret)
{
	Node **args;
	size_t i, nargs;
	Node *s, *n;
	Type *t, *b;
	int isconst;
	Stab *ns;

	n = *np;
	assert(n->type == Nexpr);
	args = n->expr.args;
	nargs = n->expr.nargs;
	infernode(&n->expr.idx, NULL, NULL);
	n = checkns(n, np);
	switch (exprop(n)) {
	case Oauto:	/* @a -> @a */
		infersub(n, ret, sawret, &isconst);
		t = type(args[0]);
		constrain(n, t, traittab[Tcdisp]);
		n->expr.isconst = isconst;
		settype(n, t);
		break;
		/* all operands are same type */
	case Oadd:	/* @a + @a -> @a */
	case Osub:	/* @a - @a -> @a */
	case Omul:	/* @a * @a -> @a */
	case Odiv:	/* @a / @a -> @a */
	case Oneg:	/* -@a -> @a */
	case Oaddeq:	/* @a += @a -> @a */
	case Osubeq:	/* @a -= @a -> @a */
	case Omuleq:	/* @a *= @a -> @a */
	case Odiveq:	/* @a /= @a -> @a */
		infersub(n, ret, sawret, &isconst);
		t = type(args[0]);
		constrain(n, t, traittab[Tcnum]);
		isconst = args[0]->expr.isconst;
		for (i = 1; i < nargs; i++) {
			isconst = isconst && args[i]->expr.isconst;
			t = unify(n, t, type(args[i]));
		}
		n->expr.isconst = isconst;
		settype(n, t);
		break;
	case Omod:	/* @a % @a -> @a */
	case Obor:	/* @a | @a -> @a */
	case Oband:	/* @a & @a -> @a */
	case Obxor:	/* @a ^ @a -> @a */
	case Obsl:	/* @a << @a -> @a */
	case Obsr:	/* @a >> @a -> @a */
	case Obnot:	/* ~@a -> @a */
	case Opreinc:	/* ++@a -> @a */
	case Opredec:	/* --@a -> @a */
	case Opostinc:	/* @a++ -> @a */
	case Opostdec:	/* @a-- -> @a */
	case Omodeq:	/* @a %= @a -> @a */
	case Oboreq:	/* @a |= @a -> @a */
	case Obandeq:	/* @a &= @a -> @a */
	case Obxoreq:	/* @a ^= @a -> @a */
	case Obsleq:	/* @a <<= @a -> @a */
	case Obsreq:	/* @a >>= @a -> @a */
		infersub(n, ret, sawret, &isconst);
		t = type(args[0]);
		constrain(n, t, traittab[Tcnum]);
		constrain(n, t, traittab[Tcint]);
		isconst = args[0]->expr.isconst;
		for (i = 1; i < nargs; i++) {
			isconst = isconst && args[i]->expr.isconst;
			t = unify(n, t, type(args[i]));
		}
		n->expr.isconst = isconst;
		settype(n, t);
		break;
	case Oasn:	/* @a = @a -> @a */
		infersub(n, ret, sawret, &isconst);
		t = type(args[0]);
		for (i = 1; i < nargs; i++)
			t = unify(n, t, type(args[i]));
		settype(n, t);
		if (args[0]->expr.isconst)
			fatal(n, "attempting to assign constant \"%s\"", ctxstr(args[0]));
		break;

		/* operands same type, returning bool */
	case Olor:	/* @a || @b -> bool */
		if (n->expr.ispat) {
			infersub(n, ret, sawret, &isconst);
			t = type(args[0]);
			for (i = 1; i < nargs; i++)
				t = unify(n, t, type(args[i]));
			n->expr.isconst = isconst;
			settype(n, t);
			break;
		}
	case Oland:	/* @a && @b -> bool */
	case Oeq:	/* @a == @a -> bool */
	case One:	/* @a != @a -> bool */
	case Ogt:	/* @a > @a -> bool */
	case Oge:	/* @a >= @a -> bool */
	case Olt:	/* @a < @a -> bool */
	case Ole:	/* @a <= @b -> bool */
		infersub(n, ret, sawret, &isconst);
		t = type(args[0]);
		for (i = 1; i < nargs; i++)
			unify(n, t, type(args[i]));
		settype(n, mktype(Zloc, Tybool));
		break;

	case Olnot:	/* !bool -> bool */
		infersub(n, ret, sawret, &isconst);
		t = unify(n, type(args[0]), mktype(Zloc, Tybool));
		settype(n, t);
		break;

		/* reach into a type and pull out subtypes */
	case Oaddr:	/* &@a -> @a* */
		infersub(n, ret, sawret, &isconst);
		settype(n, mktyptr(n->loc, type(args[0])));
		break;
	case Oderef:	/* @a# ->  @a */
		infersub(n, ret, sawret, &isconst);
		t = unify(n, type(args[0]), mktyptr(n->loc, mktyvar(n->loc)));
		settype(n, t->sub[0]);
		break;
	case Oidx:	/* @a[@b::tcint] -> @a */
		infersub(n, ret, sawret, &isconst);
		b = mktyvar(n->loc);
		t = mktyvar(n->loc);
		t->seqaux = b;
		unify(n, type(args[0]), t);
		constrain(n, type(args[0]), traittab[Tcidx]);
		constrain(n, type(args[1]), traittab[Tcint]);
		settype(n, b);
		break;
	case Oslice:	/* @a[@b::tcint,@b::tcint] -> @a[,] */
		infersub(n, ret, sawret, &isconst);
		b = mktyvar(n->loc);
		t = mktyvar(n->loc);
		t->seqaux = b;
		unify(n, type(args[0]), t);
		constrain(n, type(args[1]), traittab[Tcint]);
		constrain(n, type(args[1]), traittab[Tcnum]);
		constrain(n, type(args[2]), traittab[Tcint]);
		constrain(n, type(args[2]), traittab[Tcnum]);
		settype(n, mktyslice(n->loc, b));
		break;

		/* special cases */
	case Otupmemb:	/* @a.N -> @b, verify type(@a.N)==@b later */
	case Omemb:	/* @a.Ident -> @b, verify type(@a.Ident)==@b later */
		infersub(n, ret, sawret, &isconst);
		settype(n, mktyvar(n->loc));
		delayedcheck(n);
		break;
	case Osize:	/* sizeof(@a) -> size */
		settype(n, mktylike(n->loc, Tyuint));
		inferdecl(args[0]);
		n->expr.isconst = 1;
		break;
	case Ocall:	/* (@a, @b, @c, ... -> @r)(@a, @b, @c, ...) -> @r */
		infersub(n, ret, sawret, &isconst);
		unifycall(n);
		break;
	case Ocast:	/* (@a : @b) -> @b */
		infersub(n, ret, sawret, &isconst);
		delayedcheck(n);
		break;
	case Oret:	/* -> @a -> void */
		infersub(n, ret, sawret, &isconst);
		if (!ret)
			fatal(n, "returns are not valid near %s", ctxstr(n));
		if (sawret)
			*sawret = 1;
		t = unify(n, ret, type(args[0]));
		settype(n, t);
		break;
	case Obreak:
	case Ocontinue:
		/* nullary: nothing to infer. */
		settype(n, mktype(Zloc, Tyvoid));
		break;
	case Ojmp:	/* goto void* -> void */
		if (args[0]->type == Nlit && args[0]->lit.littype == Llbl)
			args[0] = getlbl(curstab(), args[0]->loc, args[0]->lit.lblname);
		infersub(n, ret, sawret, &isconst);
		settype(n, mktype(Zloc, Tyvoid));
		break;
	case Ovar:	/* a:@a -> @a */
		infersub(n, ret, sawret, &isconst);
		/* if we created this from a namespaced var, the type should be
		 * set, and the normal lookup is expected to fail. Since we're
		 * already done with this node, we can just return. */
		if (n->expr.type)
			return;
		ns = curstab();
		if (args[0]->name.ns)
			ns = getns(args[0]->name.ns);
		s = getdcl(ns, args[0]);
		if (!s)
			fatal(n, "undeclared var %s", ctxstr(args[0]));
		if (n->expr.param && !s->decl.trait)
			fatal(n, "var %s must refer to a trait decl", ctxstr(args[0]));
		pushenv(s->decl.env);
		initvar(n, s);
		popenv(s->decl.env);
		break;
	case Ogap:	/* _ -> @a */
		if (n->expr.type)
			return;
		n->expr.type = mktyvar(n->loc);
		break;
	case Oucon:	inferucon(n, &n->expr.isconst);	break;
	case Otup:	infertuple(n, &n->expr.isconst);	break;
	case Ostruct:	inferstruct(n, &n->expr.isconst);	break;
	case Oarr:	inferarray(n, &n->expr.isconst);	break;
	case Olit:	/* <lit>:@a::tyclass -> @a */
		infersub(n, ret, sawret, &isconst);
		switch (args[0]->lit.littype) {
		case Lfunc:
			infernode(&args[0]->lit.fnval, NULL, NULL);
			/* FIXME: env capture means this is non-const */
			n->expr.isconst = 1;
			break;
		case Llbl:
			s = getlbl(curstab(), args[0]->loc, args[0]->lit.lblname);
			if (!s)
				fatal(n, "unable to find label %s in function scope\n", args[0]->lit.lblname);
			*np = s;
			break;
		default:
			n->expr.isconst = 1;
			break;
		}
		settype(n, type(args[0]));
		break;
	case Otern:
		infersub(n, NULL, sawret, &isconst);
		unify(n, type(args[0]), mktype(n->loc, Tybool));
		unify(n, type(args[1]), type(args[2]));
		settype(n, type(args[1]));
		break;
	case Oundef:
		infersub(n, ret, sawret, &isconst);
		settype(n, mktype(n->loc, Tyvoid));
		break;
	case Odef:
	case Odead:
		   n->expr.type = mktype(n->loc, Tyvoid);
		   break;
	/* unexpected in frontend */
	case Obad: case Ocjmp: case Ovjmp: case Oset: case Oslbase: case Osllen:
	case Outag: case Ocallind: case Oblit: case Oclear: case Oudata: case Otrunc:
	case Oswiden: case Ozwiden: case Oint2flt: case Oflt2int: case Oflt2flt:
	case Ofadd: case Ofsub: case Ofmul: case Ofdiv: case Ofneg: case Ofeq:
	case Ofne: case Ofgt: case Ofge: case Oflt: case Ofle: case Oueq: case Oune:
	case Ougt: case Ouge: case Oult: case Oule: case Otupget: case Numops:
		die("Should not see %s in fe", opstr[exprop(n)]);
		break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %rbx
cmpl $0x8, 0x8(%rbx)
jne 0x1c5f0
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x40(%rbx), %rbp
movq 0x50(%rbx), %r13
leaq 0x48(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x187ee
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1c6e4
movq %rax, %rbx
movq %rax, %rdi
callq 0x1d422
cmpl $0x60, %eax
ja 0x1c531
movl %eax, %eax
leaq 0x19dcf(%rip), %rcx     # 0x35b88
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq (%r13), %rdi
callq 0x1b51f
movq %rax, %r14
leaq 0x46410(%rip), %r15     # 0x621f8
movq (%r15), %rax
movq (%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1bcb4
movq (%r15), %rax
movq 0x8(%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1bcb4
movq (%r13), %rax
movl 0x30(%rax), %r15d
cmpq $0x2, %rbp
jb 0x1bee3
movl $0x1, %r12d
movq (%r13,%r12,8), %rdi
testl %r15d, %r15d
je 0x1be3a
xorl %r15d, %r15d
cmpl $0x0, 0x30(%rdi)
setne %r15b
jmp 0x1be3d
xorl %r15d, %r15d
callq 0x1b51f
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a38c
movq %rax, %r14
incq %r12
cmpq %r12, %rbp
jne 0x1be23
jmp 0x1bee3
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq (%r13), %rdi
callq 0x1b51f
movq %rax, %r14
leaq 0x46372(%rip), %rax     # 0x621f8
movq (%rax), %rax
movq (%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1bcb4
movq (%r13), %rax
movl 0x30(%rax), %r15d
cmpq $0x2, %rbp
jb 0x1bee3
movl $0x1, %r12d
movq (%r13,%r12,8), %rdi
testl %r15d, %r15d
je 0x1bec2
xorl %r15d, %r15d
cmpl $0x0, 0x30(%rdi)
setne %r15b
jmp 0x1bec5
xorl %r15d, %r15d
callq 0x1b51f
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a38c
movq %rax, %r14
incq %r12
cmpq %r12, %rbp
jne 0x1beab
movl %r15d, 0x30(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x1c594
movq (%rbx), %rdi
movl $0x1, %esi
callq 0x2289d
movq %rax, 0x20(%rbx)
jmp 0x1c531
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq (%rbx), %rdi
callq 0x22b29
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1c686
jmp 0x1c3c4
cmpl $0x0, 0x34(%rbx)
je 0x1bf90
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq (%r13), %rdi
callq 0x1b51f
movq %rax, %r14
cmpq $0x2, %rbp
jb 0x1bf87
movl $0x1, %r15d
movq (%r13,%r15,8), %rdi
callq 0x1b51f
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a38c
movq %rax, %r14
incq %r15
cmpq %r15, %rbp
jne 0x1bf64
movl 0x4(%rsp), %eax
jmp 0x1c27f
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq (%r13), %rdi
callq 0x1b51f
cmpq $0x2, %rbp
jb 0x1bfdb
movq %rax, %r14
movl $0x1, %r15d
movq (%r13,%r15,8), %rdi
callq 0x1b51f
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a38c
incq %r15
cmpq %r15, %rbp
jne 0x1bfbb
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl $0x2, %esi
jmp 0x1c589
movq %rbx, %rsi
addq $0x30, %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1ce95
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq (%r13), %rdi
callq 0x1b51f
movq %rax, %r14
cmpq $0x2, %rbp
jb 0x1c055
movl $0x1, %r15d
movq (%r13,%r15,8), %rdi
callq 0x1b51f
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a38c
movq %rax, %r14
incq %r15
cmpq %r15, %rbp
jne 0x1c032
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1c686
movq (%r13), %rdi
cmpl $0x0, 0x30(%rdi)
je 0x1c531
callq 0x19858
leaq 0x1a568(%rip), %rsi     # 0x365e2
jmp 0x1c679
movq %rbx, %rsi
addq $0x30, %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1cdf1
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq (%rbx), %rdi
callq 0x22b29
movq %rax, %r14
movq (%rbx), %rdi
callq 0x22b29
movq %rax, %r15
movq %r14, 0x28(%rax)
movq (%r13), %rdi
callq 0x1b51f
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1a38c
movq 0x8(%r13), %rdi
callq 0x1b51f
leaq 0x46108(%rip), %r15     # 0x621f8
movq (%r15), %rcx
movq 0x8(%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1bcb4
movq 0x8(%r13), %rdi
callq 0x1b51f
movq (%r15), %rcx
movq (%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1bcb4
movq 0x10(%r13), %rdi
callq 0x1b51f
movq (%r15), %rcx
movq 0x8(%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1bcb4
movq 0x10(%r13), %rdi
callq 0x1b51f
movq (%r15), %rcx
movq (%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1bcb4
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x22cd6
jmp 0x1c58e
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq (%rbx), %rdi
callq 0x22b29
movq %rax, %r14
movq (%rbx), %rdi
callq 0x22b29
movq %rax, %r15
movq %r14, 0x28(%rax)
movq (%r13), %rdi
callq 0x1b51f
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1a38c
movq (%r13), %rdi
callq 0x1b51f
leaq 0x46043(%rip), %r15     # 0x621f8
movq (%r15), %rcx
movq 0x18(%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1bcb4
movq 0x8(%r13), %rdi
callq 0x1b51f
movq (%r15), %rcx
movq 0x8(%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1bcb4
jmp 0x1bee7
movq %rbx, %rsi
addq $0x30, %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1cf0b
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
testq %r15, %r15
je 0x1c632
testq %r14, %r14
je 0x1c22c
movl $0x1, (%r14)
movq (%r13), %rdi
callq 0x1b51f
movq %rbx, %rdi
movq %r15, %rsi
jmp 0x1c4c2
leaq 0x4(%rsp), %r12
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x1cbe0
movq (%r13), %rdi
callq 0x1b51f
movq %rax, %r14
leaq 0x45f8f(%rip), %rax     # 0x621f8
movq (%rax), %rax
movq 0x38(%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1bcb4
movl (%r12), %eax
movl %eax, 0x30(%rbx)
jmp 0x1bee7
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq (%r13), %rdi
movl 0x18(%rdi), %eax
cmpl $0x6, %eax
je 0x1c5c4
cmpl $0x5, %eax
jne 0x1c2bc
addq $0x30, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x187ee
movl $0x1, 0x30(%rbx)
jmp 0x1c5e5
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
cmpq $0x0, 0x20(%rbx)
jne 0x1c531
callq 0x1fdf7
movq (%r13), %rsi
movq 0x18(%rsi), %rdi
testq %rdi, %rdi
je 0x1c301
callq 0x1ffef
movq (%r13), %rsi
movq %rax, %rdi
callq 0x20250
testq %rax, %rax
je 0x1c643
movq %rax, %r14
cmpq $0x0, 0x28(%rbx)
je 0x1c327
cmpq $0x0, 0x40(%r14)
je 0x1c669
movq 0x38(%r14), %rdi
callq 0x1ff19
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1c9d3
movq 0x38(%r14), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1ff64
cmpq $0x0, 0x20(%rbx)
jne 0x1c531
movq (%rbx), %rdi
callq 0x22b29
jmp 0x1beff
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq (%rbx), %rdi
jmp 0x1c584
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq (%r13), %rdi
callq 0x1b51f
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x22d0e
jmp 0x1c58e
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1bd15
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x1cbe0
movq (%r13), %rdi
callq 0x1b51f
movq %rax, %r14
movq (%rbx), %rdi
movl $0x2, %esi
callq 0x2289d
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a38c
movq 0x8(%r13), %rdi
callq 0x1b51f
movq %rax, %r14
movq 0x10(%r13), %rdi
callq 0x1b51f
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a38c
movq 0x8(%r13), %rdi
jmp 0x1c5e9
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq (%r13), %rdi
callq 0x1b51f
movq %rax, %r14
movq (%rbx), %rdi
callq 0x22b29
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x22d0e
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a38c
movq 0x68(%rax), %rax
movq (%rax), %rsi
movq %rbx, %rdi
jmp 0x1c594
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq (%r13), %rdi
callq 0x1b51f
movq %rax, %r14
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl $0x2, %esi
callq 0x2289d
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a38c
jmp 0x1c58e
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1cc97
movq (%rbx), %rdi
callq 0x22b29
movq %rax, %r14
movq 0x45316(%rip), %rdi     # 0x61820
callq 0x2d180
movq %rax, 0x80(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1c686
movq (%r13), %rdi
callq 0x1b915
movl $0x1, 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r13), %rax
cmpl $0x9, 0x8(%rax)
jne 0x1c56c
cmpl $0x6, 0x18(%rax)
jne 0x1c56c
callq 0x1fdf7
movq (%r13), %rcx
movq (%rcx), %rsi
movq 0x38(%rcx), %rdx
movq %rax, %rdi
callq 0x20330
movq %rax, (%r13)
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cbe0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl $0x1, %esi
callq 0x2289d
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1c686
movq %rbx, %rsi
addq $0x30, %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1c7f2
callq 0x1fdf7
movq (%r13), %rcx
movq (%rcx), %rsi
movq 0x38(%rcx), %rdx
movq %rax, %rdi
callq 0x20330
testq %rax, %rax
je 0x1c655
movq %rax, (%r12)
movq (%r13), %rdi
callq 0x1b51f
jmp 0x1c58e
leaq 0x16354(%rip), %rdi     # 0x3294b
leaq 0x19cba(%rip), %rsi     # 0x362b8
leaq 0x19fb6(%rip), %rcx     # 0x365bb
movl $0x681, %edx            # imm = 0x681
callq 0x4180
movq %rbx, %rdi
callq 0x1d422
movl %eax, %eax
leaq 0x43d80(%rip), %rcx     # 0x603a0
movq (%rcx,%rax,8), %rsi
leaq 0x1a057(%rip), %rdi     # 0x36682
xorl %eax, %eax
callq 0x13844
movq %rbx, %rdi
callq 0x19858
leaq 0x19fc4(%rip), %rsi     # 0x36605
jmp 0x1c679
movq (%r13), %rdi
callq 0x19858
leaq 0x19fd0(%rip), %rsi     # 0x36623
jmp 0x1c679
movq (%r13), %rax
movq 0x38(%rax), %rdx
leaq 0x19ff3(%rip), %rsi     # 0x36657
movq %rbx, %rdi
jmp 0x1c67f
movq (%r13), %rdi
callq 0x19858
leaq 0x19fbc(%rip), %rsi     # 0x36635
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x138e7