// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x200, %rsp            # imm = 0x200
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpl $0x8, 0x8(%rax)
jne 0x2b83e
jmp 0x2b85d
leaq 0x22f02(%rip), %rdi     # 0x4e747
leaq 0x269e4(%rip), %rsi     # 0x52230
movl $0x681, %edx            # imm = 0x681
leaq 0x26cf2(%rip), %rcx     # 0x5254a
callq 0x6160
movq -0x40(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x40(%rbp), %rdi
addq $0x48, %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x260b0
movq -0x40(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x2cf40
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x2f210
movl %eax, %ecx
movq %rcx, -0x88(%rbp)
subl $0x60, %eax
ja 0x2c772
movq -0x88(%rbp), %rax
leaq 0x26215(%rip), %rcx     # 0x51ad8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq 0x52410(%rip), %rax     # 0x7dd10
movq (%rax), %rax
movq 0x38(%rax), %rdx
callq 0x2b720
movl -0x54(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq 0x523b4(%rip), %rax     # 0x7dd10
movq (%rax), %rax
movq (%rax), %rdx
callq 0x2b720
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl 0x30(%rax), %eax
movl %eax, -0x54(%rbp)
movq $0x1, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x2ba11
xorl %eax, %eax
cmpl $0x0, -0x54(%rbp)
movb %al, -0x89(%rbp)
je 0x2b9b1
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x30(%rax)
setne %al
movb %al, -0x89(%rbp)
movb -0x89(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x54(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x2a8f0
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
movq %rax, %rdx
callq 0x28c00
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x2b97c
movl -0x54(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq 0x522af(%rip), %rax     # 0x7dd10
movq (%rax), %rax
movq (%rax), %rdx
callq 0x2b720
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq 0x52295(%rip), %rax     # 0x7dd10
movq (%rax), %rax
movq 0x8(%rax), %rdx
callq 0x2b720
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl 0x30(%rax), %eax
movl %eax, -0x54(%rbp)
movq $0x1, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x2bb31
xorl %eax, %eax
cmpl $0x0, -0x54(%rbp)
movb %al, -0xa1(%rbp)
je 0x2bad1
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x30(%rax)
setne %al
movb %al, -0xa1(%rbp)
movb -0xa1(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x54(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x2a8f0
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movq %rax, %rdx
callq 0x28c00
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x2ba9c
movl -0x54(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq %rax, -0x48(%rbp)
movq $0x1, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x2bbd3
movq -0x40(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x2a8f0
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movq %rax, %rdx
callq 0x28c00
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x2bb7a
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x2ce80
movq -0x20(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x30(%rax)
je 0x2bc1c
movq -0x40(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x27be0
movq -0xd0(%rbp), %rdi
movq %rax, %rdx
leaq 0x2695c(%rip), %rsi     # 0x52571
movb $0x0, %al
callq 0x1dfe0
jmp 0x2c772
movq -0x40(%rbp), %rax
cmpl $0x0, 0x34(%rax)
je 0x2bcd1
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq %rax, -0x48(%rbp)
movq $0x1, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x2bcb5
movq -0x40(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x2a8f0
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
movq %rax, %rdx
callq 0x28c00
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x2bc5c
movl -0x54(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x2ce80
jmp 0x2c772
jmp 0x2bcd3
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq %rax, -0x48(%rbp)
movq $0x1, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x2bd55
movq -0x40(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x2a8f0
movq -0xf0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
movq %rax, %rdx
callq 0x28c00
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x2bd00
movq -0x40(%rbp), %rax
movq %rax, -0xf8(%rbp)
movl $0xffffffff, -0x68(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0x64(%rbp)
movq -0x68(%rbp), %rdi
movl $0x2, %esi
callq 0x36c10
movq -0xf8(%rbp), %rdi
movq %rax, %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x40(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq %rax, -0x100(%rbp)
movl $0xffffffff, -0x70(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0x6c(%rbp)
movq -0x70(%rbp), %rdi
movl $0x2, %esi
callq 0x36c10
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rsi
movq %rax, %rdx
callq 0x28c00
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x40(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq %rax, %rsi
movq -0x118(%rbp), %rax
movq (%rax), %rdi
callq 0x37430
movq -0x110(%rbp), %rdi
movq %rax, %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x40(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq %rax, -0x120(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rdi
callq 0x370c0
movq %rax, %rsi
movq -0x130(%rbp), %rax
movq (%rax), %rdi
callq 0x37430
movq -0x128(%rbp), %rdi
movq -0x120(%rbp), %rsi
movq %rax, %rdx
callq 0x28c00
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x68(%rax), %rax
movq (%rax), %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x40(%rbp), %rax
movq (%rax), %rdi
callq 0x370c0
movq %rax, -0x50(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rdi
callq 0x370c0
movq %rax, -0x48(%rbp)
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq -0x148(%rbp), %rdi
movq %rax, %rsi
movq -0x48(%rbp), %rdx
callq 0x28c00
movq -0x40(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq -0x140(%rbp), %rdi
movq %rax, %rsi
leaq 0x51d86(%rip), %rax     # 0x7dd10
movq (%rax), %rax
movq 0x18(%rax), %rdx
callq 0x2b720
movq -0x40(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2a8f0
movq -0x138(%rbp), %rdi
movq %rax, %rsi
leaq 0x51d51(%rip), %rax     # 0x7dd10
movq (%rax), %rax
movq 0x8(%rax), %rdx
callq 0x2b720
movq -0x40(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x40(%rbp), %rax
movq (%rax), %rdi
callq 0x370c0
movq %rax, -0x50(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rdi
callq 0x370c0
movq %rax, -0x48(%rbp)
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq -0x178(%rbp), %rdi
movq %rax, %rsi
movq -0x48(%rbp), %rdx
callq 0x28c00
movq -0x40(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2a8f0
movq -0x170(%rbp), %rdi
movq %rax, %rsi
leaq 0x51c9f(%rip), %rax     # 0x7dd10
movq (%rax), %rax
movq 0x8(%rax), %rdx
callq 0x2b720
movq -0x40(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2a8f0
movq -0x168(%rbp), %rdi
movq %rax, %rsi
leaq 0x51c6a(%rip), %rax     # 0x7dd10
movq (%rax), %rax
movq (%rax), %rdx
callq 0x2b720
movq -0x40(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x2a8f0
movq -0x160(%rbp), %rdi
movq %rax, %rsi
leaq 0x51c36(%rip), %rax     # 0x7dd10
movq (%rax), %rax
movq 0x8(%rax), %rdx
callq 0x2b720
movq -0x40(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x2a8f0
movq -0x158(%rbp), %rdi
movq %rax, %rsi
leaq 0x51c01(%rip), %rax     # 0x7dd10
movq (%rax), %rax
movq (%rax), %rdx
callq 0x2b720
movq -0x40(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x40(%rbp), %rax
movq -0x50(%rbp), %rsi
movq (%rax), %rdi
callq 0x373d0
movq -0x150(%rbp), %rdi
movq %rax, %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x40(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rdi
callq 0x370c0
movq -0x180(%rbp), %rdi
movq %rax, %rsi
callq 0x2ce80
movq -0x40(%rbp), %rdi
callq 0x2b7a0
jmp 0x2c772
movq -0x40(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rdi
movl $0xc, %esi
callq 0x2ab00
movq -0x188(%rbp), %rdi
movq %rax, %rsi
callq 0x2ce80
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2b200
movq -0x40(%rbp), %rax
movl $0x1, 0x30(%rax)
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x40(%rbp), %rdi
callq 0x2d7a0
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x40(%rbp), %rdi
callq 0x2b7a0
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
cmpq $0x0, -0x10(%rbp)
jne 0x2c267
movq -0x40(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x40(%rbp), %rdi
callq 0x27be0
movq -0x190(%rbp), %rdi
movq %rax, %rdx
leaq 0x26334(%rip), %rsi     # 0x52594
movb $0x0, %al
callq 0x1dfe0
cmpq $0x0, -0x18(%rbp)
je 0x2c278
movq -0x18(%rbp), %rax
movl $0x1, (%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq -0x1a0(%rbp), %rdi
movq -0x198(%rbp), %rsi
movq %rax, %rdx
callq 0x28c00
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movl $0xffffffff, -0x78(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0x74(%rbp)
movq -0x78(%rbp), %rdi
movl $0x1, %esi
callq 0x36c10
movq -0x1a8(%rbp), %rdi
movq %rax, %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x20(%rbp), %rax
movq (%rax), %rax
cmpl $0x9, 0x8(%rax)
jne 0x2c347
movq -0x20(%rbp), %rax
movq (%rax), %rax
cmpl $0x6, 0x18(%rax)
jne 0x2c347
callq 0x32d60
movq %rax, %rdi
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movq 0x38(%rcx), %rdx
movq (%rax), %rsi
callq 0x33670
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x40(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movl $0xffffffff, -0x80(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0x7c(%rbp)
movq -0x80(%rbp), %rdi
movl $0x1, %esi
callq 0x36c10
movq -0x1b0(%rbp), %rdi
movq %rax, %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x40(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x2c3bc
jmp 0x2c772
callq 0x32d60
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
cmpq $0x0, 0x18(%rax)
je 0x2c3e7
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rdi
callq 0x330b0
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
movq -0x20(%rbp), %rax
movq (%rax), %rsi
callq 0x334b0
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x2c431
movq -0x40(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x27be0
movq -0x1b8(%rbp), %rdi
movq %rax, %rdx
leaq 0x26188(%rip), %rsi     # 0x525b2
movb $0x0, %al
callq 0x1dfe0
movq -0x40(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x2c476
movq -0x38(%rbp), %rax
cmpq $0x0, 0x40(%rax)
jne 0x2c476
movq -0x40(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x27be0
movq -0x1c0(%rbp), %rdi
movq %rax, %rdx
leaq 0x26155(%rip), %rsi     # 0x525c4
movb $0x0, %al
callq 0x1dfe0
movq -0x38(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x32f70
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x2d210
movq -0x38(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x32fe0
jmp 0x2c772
movq -0x40(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x2c4b2
jmp 0x2c772
movq -0x40(%rbp), %rax
movq (%rax), %rdi
callq 0x370c0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x20(%rax)
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x40(%rbp), %rsi
addq $0x18, %rsi
addq $0x18, %rsi
callq 0x2d0c0
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x40(%rbp), %rsi
addq $0x18, %rsi
addq $0x18, %rsi
callq 0x2d9e0
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x40(%rbp), %rsi
addq $0x18, %rsi
addq $0x18, %rsi
callq 0x2db00
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x40(%rbp), %rsi
addq $0x18, %rsi
addq $0x18, %rsi
callq 0x2dbb0
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl 0x18(%rax), %eax
movl %eax, -0x1c4(%rbp)
subl $0x5, %eax
je 0x2c56f
jmp 0x2c562
movl -0x1c4(%rbp), %eax
subl $0x6, %eax
je 0x2c597
jmp 0x2c5ee
movq -0x20(%rbp), %rax
movq (%rax), %rdi
addq $0x18, %rdi
addq $0x18, %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x260b0
movq -0x40(%rbp), %rax
movl $0x1, 0x30(%rax)
jmp 0x2c5f9
callq 0x32d60
movq %rax, %rdi
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movq 0x38(%rcx), %rdx
movq (%rax), %rsi
callq 0x33670
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x2c5e1
movq -0x40(%rbp), %rdi
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x2600c(%rip), %rsi     # 0x525e6
movb $0x0, %al
callq 0x1dfe0
movq -0x38(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
jmp 0x2c5f9
movq -0x40(%rbp), %rax
movl $0x1, 0x30(%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq -0x1d0(%rbp), %rdi
movq %rax, %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rdx
xorl %eax, %eax
movl %eax, %esi
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x40(%rbp), %rax
movq %rax, -0x1f8(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2a8f0
movq %rax, -0x1f0(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rdi
movl $0x2, %esi
callq 0x36c10
movq -0x1f8(%rbp), %rdi
movq -0x1f0(%rbp), %rsi
movq %rax, %rdx
callq 0x28c00
movq -0x40(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2a8f0
movq %rax, -0x1e0(%rbp)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x2a8f0
movq -0x1e8(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
movq %rax, %rdx
callq 0x28c00
movq -0x40(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2a8f0
movq -0x1d8(%rbp), %rdi
movq %rax, %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x54(%rbp), %rcx
callq 0x2d670
movq -0x40(%rbp), %rax
movq %rax, -0x200(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rdi
movl $0x1, %esi
callq 0x36c10
movq -0x200(%rbp), %rdi
movq %rax, %rsi
callq 0x2ce80
jmp 0x2c772
movq -0x40(%rbp), %rax
movq (%rax), %rdi
movl $0x1, %esi
callq 0x36c10
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x20(%rax)
jmp 0x2c772
movq -0x40(%rbp), %rdi
callq 0x2f210
movl %eax, %eax
movl %eax, %ecx
leaq 0x4f760(%rip), %rax     # 0x7bec0
movq (%rax,%rcx,8), %rsi
leaq 0x25ea6(%rip), %rdi     # 0x52611
movb $0x0, %al
callq 0x1df20
addq $0x200, %rsp            # imm = 0x200
popq %rbp
retq
nopl (%rax,%rax)