// File: /workspace/github_c_makefile_star2_O1/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 0x1c7c5
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 0x188e1
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1c8b9
movq %rax, %rbx
movq %rax, %rdi
callq 0x1d672
cmpl $0x60, %eax
ja 0x1c706
movl %eax, %eax
leaq 0x19c07(%rip), %rcx     # 0x35b78
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x4(%rsp), %r12
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x1cd9b
movq (%r13), %rdi
callq 0x1b6e6
movq %rax, %r14
leaq 0x46255(%rip), %r15     # 0x621f8
movq (%r15), %rax
movq (%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1be6c
movq (%r15), %rax
movq 0x8(%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1be6c
movq (%r13), %rax
movl 0x30(%rax), %r15d
movl %r15d, (%r12)
cmpq $0x2, %rbp
jb 0x1c0b3
movl $0x1, %r12d
testl %r15d, %r15d
je 0x1bff9
movq (%r13,%r12,8), %rax
xorl %r15d, %r15d
cmpl $0x0, 0x30(%rax)
setne %r15b
jmp 0x1bffc
xorl %r15d, %r15d
movq (%r13,%r12,8), %rdi
callq 0x1b6e6
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a59b
movq %rax, %r14
incq %r12
cmpq %r12, %rbp
jne 0x1bfe2
jmp 0x1c0b3
leaq 0x4(%rsp), %r12
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x1cd9b
movq (%r13), %rdi
callq 0x1b6e6
movq %rax, %r14
leaq 0x461ab(%rip), %rax     # 0x621f8
movq (%rax), %rax
movq (%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1be6c
movq (%r13), %rax
movl 0x30(%rax), %r15d
movl %r15d, (%r12)
cmpq $0x2, %rbp
jb 0x1c0b3
movl $0x1, %r12d
testl %r15d, %r15d
je 0x1c08d
movq (%r13,%r12,8), %rax
xorl %r15d, %r15d
cmpl $0x0, 0x30(%rax)
setne %r15b
jmp 0x1c090
xorl %r15d, %r15d
movq (%r13,%r12,8), %rdi
callq 0x1b6e6
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a59b
movq %rax, %r14
incq %r12
cmpq %r12, %rbp
jne 0x1c076
movl %r15d, 0x4(%rsp)
movl %r15d, 0x30(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x1c769
movq (%rbx), %rdi
movl $0x1, %esi
callq 0x22d38
movq %rax, 0x20(%rbx)
jmp 0x1c706
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movq (%rbx), %rdi
callq 0x22fd7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1c85b
jmp 0x1c599
cmpl $0x0, 0x34(%rbx)
je 0x1c165
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movq (%r13), %rdi
callq 0x1b6e6
movq %rax, %r14
cmpq $0x2, %rbp
jb 0x1c15c
movl $0x1, %r15d
movq (%r13,%r15,8), %rdi
callq 0x1b6e6
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a59b
movq %rax, %r14
incq %r15
cmpq %r15, %rbp
jne 0x1c139
movl 0x4(%rsp), %eax
jmp 0x1c454
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movq (%r13), %rdi
callq 0x1b6e6
cmpq $0x2, %rbp
jb 0x1c1b0
movq %rax, %r14
movl $0x1, %r15d
movq (%r13,%r15,8), %rdi
callq 0x1b6e6
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a59b
incq %r15
cmpq %r15, %rbp
jne 0x1c190
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl $0x2, %esi
jmp 0x1c75e
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 0x1d056
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movq (%r13), %rdi
callq 0x1b6e6
movq %rax, %r14
cmpq $0x2, %rbp
jb 0x1c22a
movl $0x1, %r15d
movq (%r13,%r15,8), %rdi
callq 0x1b6e6
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a59b
movq %rax, %r14
incq %r15
cmpq %r15, %rbp
jne 0x1c207
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1c85b
movq (%r13), %rdi
cmpl $0x0, 0x30(%rdi)
je 0x1c706
callq 0x19a6f
leaq 0x1a383(%rip), %rsi     # 0x365d2
jmp 0x1c84e
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 0x1cfae
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movq (%rbx), %rdi
callq 0x22fd7
movq %rax, %r14
movq (%rbx), %rdi
callq 0x22fd7
movq %rax, %r15
movq %r14, 0x28(%rax)
movq (%r13), %rdi
callq 0x1b6e6
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1a59b
movq 0x8(%r13), %rdi
callq 0x1b6e6
leaq 0x45f33(%rip), %r15     # 0x621f8
movq (%r15), %rcx
movq 0x8(%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1be6c
movq 0x8(%r13), %rdi
callq 0x1b6e6
movq (%r15), %rcx
movq (%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1be6c
movq 0x10(%r13), %rdi
callq 0x1b6e6
movq (%r15), %rcx
movq 0x8(%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1be6c
movq 0x10(%r13), %rdi
callq 0x1b6e6
movq (%r15), %rcx
movq (%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1be6c
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x23184
jmp 0x1c763
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movq (%rbx), %rdi
callq 0x22fd7
movq %rax, %r14
movq (%rbx), %rdi
callq 0x22fd7
movq %rax, %r15
movq %r14, 0x28(%rax)
movq (%r13), %rdi
callq 0x1b6e6
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1a59b
movq (%r13), %rdi
callq 0x1b6e6
leaq 0x45e6e(%rip), %r15     # 0x621f8
movq (%r15), %rcx
movq 0x18(%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1be6c
movq 0x8(%r13), %rdi
callq 0x1b6e6
movq (%r15), %rcx
movq 0x8(%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1be6c
jmp 0x1c0bc
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 0x1d0cc
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
testq %r15, %r15
je 0x1c807
testq %r14, %r14
je 0x1c401
movl $0x1, (%r14)
movq (%r13), %rdi
callq 0x1b6e6
movq %rbx, %rdi
movq %r15, %rsi
jmp 0x1c697
leaq 0x4(%rsp), %r12
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x1cd9b
movq (%r13), %rdi
callq 0x1b6e6
movq %rax, %r14
leaq 0x45dba(%rip), %rax     # 0x621f8
movq (%rax), %rax
movq 0x38(%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1be6c
movl (%r12), %eax
movl %eax, 0x30(%rbx)
jmp 0x1c0bc
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movq (%r13), %rdi
movl 0x18(%rdi), %eax
cmpl $0x6, %eax
je 0x1c799
cmpl $0x5, %eax
jne 0x1c491
addq $0x30, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x188e1
movl $0x1, 0x30(%rbx)
jmp 0x1c7ba
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
cmpq $0x0, 0x20(%rbx)
jne 0x1c706
callq 0x20037
movq (%r13), %rcx
movq 0x18(%rcx), %rdi
testq %rdi, %rdi
je 0x1c4d2
callq 0x2022f
movq (%r13), %rsi
movq %rax, %rdi
callq 0x2048b
testq %rax, %rax
je 0x1c818
movq %rax, %r14
cmpq $0x0, 0x28(%rbx)
je 0x1c4fc
cmpq $0x0, 0x40(%r14)
je 0x1c83e
movq 0x38(%r14), %rdi
callq 0x20159
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1cbae
movq 0x38(%r14), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x201a4
cmpq $0x0, 0x20(%rbx)
jne 0x1c706
movq (%rbx), %rdi
callq 0x22fd7
jmp 0x1c0d4
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movq (%rbx), %rdi
jmp 0x1c759
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movq (%r13), %rdi
callq 0x1b6e6
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x231bc
jmp 0x1c763
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1becd
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x1cd9b
movq (%r13), %rdi
callq 0x1b6e6
movq %rax, %r14
movq (%rbx), %rdi
movl $0x2, %esi
callq 0x22d38
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a59b
movq 0x8(%r13), %rdi
callq 0x1b6e6
movq %rax, %r14
movq 0x10(%r13), %rdi
callq 0x1b6e6
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a59b
movq 0x8(%r13), %rdi
jmp 0x1c7be
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movq (%r13), %rdi
callq 0x1b6e6
movq %rax, %r14
movq (%rbx), %rdi
callq 0x22fd7
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x231bc
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a59b
movq 0x68(%rax), %rax
movq (%rax), %rsi
movq %rbx, %rdi
jmp 0x1c769
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movq (%r13), %rdi
callq 0x1b6e6
movq %rax, %r14
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl $0x2, %esi
callq 0x22d38
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1a59b
jmp 0x1c763
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1ce50
movq (%rbx), %rdi
callq 0x22fd7
movq %rax, %r14
movq 0x45141(%rip), %rdi     # 0x61820
callq 0x2d680
movq %rax, 0x80(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1c85b
movq (%r13), %rdi
callq 0x1bac7
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 0x1c741
cmpl $0x6, 0x18(%rax)
jne 0x1c741
callq 0x20037
movq (%r13), %rcx
movq (%rcx), %rsi
movq 0x38(%rcx), %rdx
movq %rax, %rdi
callq 0x2056e
movq %rax, (%r13)
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1cd9b
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl $0x1, %esi
callq 0x22d38
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1c85b
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 0x1c9c7
callq 0x20037
movq (%r13), %rcx
movq (%rcx), %rsi
movq 0x38(%rcx), %rdx
movq %rax, %rdi
callq 0x2056e
testq %rax, %rax
je 0x1c82a
movq %rax, (%r12)
movq (%r13), %rdi
callq 0x1b6e6
jmp 0x1c763
leaq 0x1616f(%rip), %rdi     # 0x3293b
leaq 0x19ad5(%rip), %rsi     # 0x362a8
leaq 0x19dd1(%rip), %rcx     # 0x365ab
movl $0x681, %edx            # imm = 0x681
callq 0x4180
movq %rbx, %rdi
callq 0x1d672
movl %eax, %eax
leaq 0x43bab(%rip), %rcx     # 0x603a0
movq (%rcx,%rax,8), %rsi
leaq 0x19e72(%rip), %rdi     # 0x36672
xorl %eax, %eax
callq 0x13a00
movq %rbx, %rdi
callq 0x19a6f
leaq 0x19ddf(%rip), %rsi     # 0x365f5
jmp 0x1c84e
movq (%r13), %rdi
callq 0x19a6f
leaq 0x19deb(%rip), %rsi     # 0x36613
jmp 0x1c84e
movq (%r13), %rax
movq 0x38(%rax), %rdx
leaq 0x19e0e(%rip), %rsi     # 0x36647
movq %rbx, %rdi
jmp 0x1c854
movq (%r13), %rdi
callq 0x19a6f
leaq 0x19dd7(%rip), %rsi     # 0x36625
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x13aa3