// File: /workspace/github_c_makefile_star2_O3/oridb[P]mc/6/simp.c
// Function: rval
static Node *
rval(Simp *s, Node *n, Node *dst)
{
	Node *t, *u, *v; /* temporary nodes */
	Node *r; /* expression result */
	Node **args;
	vlong idx, nelt;
	size_t i;
	Type *ty;

	r = NULL;
	args = n->expr.args;
	switch (exprop(n)) {
	case Osize:
		r = mkintlit(n->loc, size(args[0]));
		r->expr.type = exprtype(n);
		break;
	case Oslice:
		r = simpslice(s, n, dst);
		break;
	case Oidx:
		t = rval(s, n->expr.args[0], NULL);
		u = idxaddr(s, t, n->expr.args[1]);
		r = load(u);
		break;
	case Otupmemb:
	case Omemb:
		t = membaddr(s, n);
		r = load(t);
		break;
	case Osllen:
		r = seqlen(s, args[0], exprtype(n));
		break;
	case Oucon:
		r = simpucon(s, n, dst);
		break;
	case Outag:
		r = uconid(s, args[0]);
		break;
	case Oudata:
		r = simpuget(s, n, dst);
		break;
	case Otup:
		r = simptup(s, n, dst);
		break;
	case Oarr:
		if (!dst)
			dst = temp(s, n);
		ty = exprtype(dst);
		t = addr(s, dst, exprtype(dst));
		if (!getintlit(ty->asize, &nelt))
			die("array missing size");
		/* we only need to clear if we don't have things fully initialized */
		idx = 0;
		if (nelt != n->expr.nargs)
			append(s, mkexpr(n->loc, Oclear, t, mkintlit(n->loc, size(n)), NULL));
		for (i = 0; i < n->expr.nargs; i++) {
			if (!args[i]->expr.idx)
				idx++;
			else if (!getintlit(args[i]->expr.idx, &idx))
				die("non-numeric array size");
			assert(idx < nelt);
			assignat(s, t, size(args[i])*idx, rval(s, args[i], NULL));
		}
		r = dst;
		break;
	case Ostruct:
		if (!dst)
		dst = temp(s, n);
		u = mkexpr(dst->loc, Odef, dst, NULL);
		u->expr.type = mktype(u->loc, Tyvoid);
		append(s, u);
		t = addr(s, dst, exprtype(dst));
		ty = exprtype(n);
		/* we only need to clear if we don't have things fully initialized */
		if (tybase(ty)->nmemb != n->expr.nargs)
			append(s, mkexpr(n->loc, Oclear, t, mkintlit(n->loc, size(n)), NULL));
		for (i = 0; i < n->expr.nargs; i++)
			assignat(s, t, offset(n, args[i]->expr.idx), rval(s, args[i], NULL));
		r = dst;
		break;
	case Ocast:
		r = simpcast(s, args[0], exprtype(n));
		break;

	/* ++expr(x)
	 *  => args[0] = args[0] + 1
	 *     expr(x) */
	case Olit:
		switch (args[0]->lit.littype) {
		case Lvoid:
		case Lchr:
		case Lbool:
		case Llbl:
			r = n;
			break;
		case Lint:
			/* we can only have up to 4 byte immediates, but they
			 * can be moved into 64 bit regs */
			if ((uint64_t)args[0]->lit.intval < 0x7fffffffULL)
				r = n;
			else
				r = simpblob(s, n);
			break;
		case Lstr: case Lflt:
			r = simpblob(s, n);
			break;
		case Lfunc:
			r = capture(s, n, dst);
			break;
		}
		break;
	case Ovar:
		r = loadvar(s, n, dst);
		break;;
	case Ogap:
		fatal(n, "'_' may not be an rvalue");
		break;
	case Oret:
		/*
		 * Compute and put the correct value into s->ret. In the case of ArgBig
		 * and ArgReg, exfiltrate the value from the function. In the case of
		 * ArgAggr_XYZ, put a pointer to the value where the function
		 * epilogue can access it.
		 */
		switch (s->rettype) {
		case ArgAggrI:
		case ArgAggrF:
		case ArgAggrII:
		case ArgAggrIF:
		case ArgAggrFI:
		case ArgAggrFF:
			t = s->ret;
			u = rval(s, args[0], NULL);
			u = addr(s, u, exprtype(args[0]));
			v = set(t, u);
			append(s, v);
		case ArgBig:
			t = rval(s, args[0], NULL);
			t = addr(s, t, exprtype(args[0]));
			u = disp(n->loc, size(args[0]));
			v = mkexpr(n->loc, Oblit, s->ret, t, u, NULL);
			append(s, v);
			break;
		case ArgVoid:
			rval(s, args[0], NULL);
			break;
		case ArgReg:
			t = s->ret;
			u = rval(s, args[0], NULL);
			t = set(t, u);
			append(s, t);
			break;
		}
		append(s, mkexpr(n->loc, Oret, NULL));
		break;
	case Oasn:
		r = assign(s, args[0], args[1]);
		break;
	case Ocall:
		r = simpcall(s, n, dst);
		break;
	case Oaddr:
		t = lval(s, args[0]);
		if (exprop(t) == Ovar) /* Ovar is the only one that doesn't return Oderef(Oaddr(...)) */
			r = addr(s, t, exprtype(t));
		else
			r = t->expr.args[0];
		break;
	case Oneg:
		if (istyfloat(exprtype(n))) {
			t = mkfloat(n->loc, -1.0);
			u = mkexpr(n->loc, Olit, t, NULL);
			t->lit.type = n->expr.type;
			u->expr.type = n->expr.type;
			v = simpblob(s, u);
			r = mkexpr(n->loc, Ofmul, v, rval(s, args[0], NULL), NULL);
			r->expr.type = n->expr.type;
		} else {
			r = visit(s, n);
		}
		break;
	case Otupget:
		assert(exprop(args[1]) == Olit);
		i = args[1]->expr.args[0]->lit.intval;
		t = rval(s, args[0], NULL);
		r = tupget(s, t, i, dst);
		break;
	case Olor: case Oland:
	case Oaddeq: case Osubeq: case Omuleq: case Odiveq: case Omodeq:
	case Oboreq: case Obandeq: case Obxoreq: case Obsleq: case Obsreq:
	case Opreinc: case Opredec:
	case Opostinc: case Opostdec:
                die("invalid operator: should have been removed");
	case Obad:
		die("bad operator");
		break;
	default:
		if (istyfloat(exprtype(n))) {
			switch (exprop(n)) {
			case Oadd:	n->expr.op = Ofadd;	break;
			case Osub:	n->expr.op = Ofsub;	break;
			case Omul:	n->expr.op = Ofmul;	break;
			case Odiv:	n->expr.op = Ofdiv;	break;
			default:	break;
			}
		}
		r = visit(s, n);
		break;
	}
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rsi, %rbp
movq %rdi, %rbx
movq 0x50(%rsi), %r14
movq %rsi, %rdi
callq 0x1d422
cmpl $0x45, %eax
ja 0xffd2
movl %eax, %eax
leaq 0x227c8(%rip), %rcx     # 0x32120
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movq %rbp, 0x8(%rsp)
jmpq *%rax
movq %rbx, %r15
movq 0x50(%rbp), %rbx
movq (%rbx), %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x227ac
movq %rbp, %r12
movl (%rax), %ebp
movq (%rbx), %rsi
movq %r15, %rdi
callq 0x11288
movq %rax, %r14
cmpl $0x12, %ebp
je 0xf9ae
movq %r12, %rdi
callq 0x1e384
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xee74
movq %rax, %r14
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
callq 0x12950
movq (%r12), %rdi
movl %eax, %esi
callq 0x1d57a
movq 0x5195c(%rip), %rcx     # 0x61328
movq %rcx, 0x20(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0xf71b
movq %rax, %rbx
movq (%r12), %rdi
movq 0x20(%r12), %rsi
callq 0x22d0e
movq %rax, 0x20(%rbx)
movq %rbx, %rdi
jmp 0x1013e
movq %rbp, %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x227ac
movq %rax, %r13
movq 0x50(%rbp), %rax
movq (%rax), %rsi
movq %r13, %rdi
callq 0x22f1e
testq %rax, %rax
je 0x1099c
movq %rax, %r12
testq %r15, %r15
jne 0xfa39
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xed1a
movq %rax, %r15
movq %r13, %rdi
callq 0x227e7
testl %eax, %eax
je 0x10661
movq %r15, %rdi
movq %rbp, %rsi
callq 0xf780
jmp 0x10368
movq (%r14), %r14
movq %rbp, %rdi
callq 0x1e384
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10bf0
movq %r15, 0x18(%rsp)
movq 0x8(%r14), %rdi
callq 0x1d422
cmpl $0x35, %eax
jne 0x109a5
movq (%r14), %rsi
movq 0x8(%r14), %rax
movq 0x50(%rax), %rax
movq (%rax), %rax
movq 0x30(%rax), %r15
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
movq %rax, 0x8(%rsp)
movq %rax, %rdi
callq 0x1e384
movq %rax, %r12
cmpq $0x0, 0x70(%rax)
movl $0x0, %r13d
je 0x1077d
xorl %r14d, %r14d
xorl %r13d, %r13d
movq 0x68(%r12), %rax
movq (%rax,%r14,8), %rdi
callq 0x12677
movq %r13, %rdi
movq %rax, %rsi
callq 0x2e217
movq %rax, %rbp
cmpq %r14, %r15
je 0x10774
movq 0x68(%r12), %rax
movq (%rax,%r14,8), %rdi
callq 0x12421
movq %rax, %r13
addq %rbp, %r13
incq %r14
cmpq 0x70(%r12), %r14
jb 0xfadd
jmp 0x1077a
movq (%r14), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
movq %rax, %r15
movq %rax, %rdi
callq 0x1d422
movl %eax, %ebp
movq %r15, %rdi
callq 0x1e384
cmpl $0x36, %ebp
jne 0x10373
movq 0x50(%r15), %rcx
movq (%rcx), %rsi
movq %rax, %rdi
callq 0x22f1e
movl 0x8(%rax), %esi
movq (%rax), %rdi
callq 0x1d57a
movq %rax, %r15
movq 0x517bc(%rip), %rax     # 0x61330
jmp 0x100b2
movl 0x28(%rbx), %eax
cmpq $0x8, %rax
ja 0xfc45
leaq 0x226ab(%rip), %rcx     # 0x32238
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x20(%rbx), %r13
movq (%r14), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
movq %rax, %r12
movq (%r14), %rdi
callq 0x1e384
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0xee74
movq %r13, %rdi
movq %rax, %rsi
callq 0xf780
movq %rbx, %rdi
movq %rax, %rsi
callq 0xf8bb
movq (%r14), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
movq %rax, %r12
movq (%r14), %rdi
callq 0x1e384
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0xee74
movq %rax, %r12
movq (%r14), %rdi
callq 0x12664
movq (%rbp), %rdi
movl %eax, %esi
callq 0x1d57a
movq 0x5170f(%rip), %rcx     # 0x61328
movq %rcx, 0x20(%rax)
movq 0x20(%rbx), %rdx
movq (%rbp), %rdi
movl $0x46, %esi
movq %r12, %rcx
movq %rax, %r8
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x1d5e2
movq %rbx, %rdi
movq %rax, %rsi
callq 0xf8bb
movq (%rbp), %rdi
xorl %r15d, %r15d
movl $0x2f, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x1d5e2
jmp 0x10368
testq %r15, %r15
jne 0xfc72
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xed1a
movq %rax, %r15
movq %r15, 0x18(%rsp)
movq 0x50(%rbp), %rax
movq (%rax), %r13
movq %r13, %rdi
callq 0x1d422
cmpl $0x39, %eax
jne 0xfc96
cmpq $0x0, 0x40(%r13)
je 0x108b5
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xf923
movq %rax, %r13
movq 0x50(%rbp), %rax
movq 0x8(%rax), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11411
movq %rax, 0x8(%rsp)
movq 0x50(%rbp), %rax
movq 0x8(%rax), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
movq %rax, %rdi
callq 0x1156c
movq %rax, %r12
movq 0x50(%rbp), %rax
movq 0x10(%rax), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
movq %rax, %rdi
callq 0x1156c
movq %rax, %rbp
movq (%rax), %rdi
movl $0x3, %esi
movq %rax, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x1d5e2
movq %rax, %r15
movq 0x20(%rbp), %rax
movq %rax, 0x20(%r15)
movq 0x5160e(%rip), %rdx     # 0x61330
movq %rbx, %rdi
movq %r13, %rsi
callq 0x10bf0
testq %rax, %rax
je 0xfd45
movq %rbx, %rdi
movl $0x1c, %esi
movq %rax, %rdx
movq %rbp, %rcx
callq 0x115c3
movq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x227ac
cmpl $0x12, (%rax)
movq 0x515c4(%rip), %rdx     # 0x61328
jne 0x103ab
movq (%r14), %rdi
movq %rdx, %rsi
callq 0x22d0e
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x10c54
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0xf780
movq %rax, %r12
movq 0x5158e(%rip), %rsi     # 0x61328
movq (%r14), %rdi
callq 0x22d0e
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x10c54
jmp 0x103e2
movq (%r14), %rax
movl 0x18(%rax), %ecx
cmpq $0x7, %rcx
ja 0x10918
leaq 0x22490(%rip), %rdx     # 0x3225c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq %rbp, %r15
jmp 0x10892
testq %r15, %r15
jne 0xfdf0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xed1a
movq %rax, %r15
movq (%r15), %rdi
movl $0x3d, %esi
movq %r15, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x1d5e2
movq %rax, %r12
movq (%rax), %rdi
movl $0x1, %esi
callq 0x2289d
movq %rax, 0x20(%r12)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xf8bb
movq %r15, %rdi
callq 0x1e384
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xee74
movq %rax, %r12
movq %rbp, %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x227ac
movq 0x78(%rax), %rax
cmpq 0x40(%rbp), %rax
je 0xfe93
movq %rbp, %rdi
callq 0x12664
movq (%rbp), %rdi
movq %rax, %rsi
callq 0x1d57a
movq (%rbp), %rdi
movl $0x47, %esi
movq %r12, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x1d5e2
movq %rbx, %rdi
movq %rax, %rsi
callq 0xf8bb
movq 0x40(%rbp), %rax
testq %rax, %rax
je 0x10892
movq %r15, 0x18(%rsp)
movq %rbx, %r15
xorl %ebx, %ebx
movq (%r14,%rbx,8), %rax
movq 0x48(%rax), %rsi
movq %rbp, %rdi
callq 0x12950
movq %rax, %r13
movq (%r14,%rbx,8), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0xf923
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rax, %rcx
callq 0xef42
incq %rbx
cmpq 0x40(%rbp), %rbx
jb 0xfea6
jmp 0x1041d
movq 0x50(%rbp), %r14
testq %r15, %r15
jne 0xfefd
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xed1a
movq %rax, %r15
movq %r15, %rdi
callq 0x1e384
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xee74
cmpq $0x0, 0x40(%rbp)
je 0x10892
movq %rax, %r12
movq %r15, 0x18(%rsp)
xorl %r13d, %r13d
movq %rbx, %r15
xorl %ebx, %ebx
movq (%r14,%rbx,8), %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x12677
movq %r13, %rdi
movq %rax, %rsi
callq 0x2e217
movq %rax, %rbp
movq (%r14,%rbx,8), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0xf923
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %rax, %rcx
callq 0xef42
movq (%r14,%rbx,8), %rdi
callq 0x12664
movq %rax, %r13
addq %rbp, %r13
incq %rbx
movq 0x8(%rsp), %rax
cmpq 0x40(%rax), %rbx
jb 0xff2e
jmp 0x1041d
movq (%r14), %r14
movq %rbp, %rdi
callq 0x1e384
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10c54
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1115c
movq %rbp, %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x23002
testl %eax, %eax
je 0x100bb
movq %rbp, %rdi
callq 0x1d422
leal -0x2(%rax), %ecx
cmpl $0x3, %ecx
ja 0x100bb
addl $0x4d, %eax
movl %eax, 0x18(%rbp)
jmp 0x100bb
movq (%r14), %rdi
callq 0x12664
movq (%rbp), %rdi
movq %rax, %rsi
callq 0x1d57a
movq %rax, %r15
movq %rbp, %rdi
callq 0x1e384
jmp 0x100b2
movq %rbp, %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x23002
testl %eax, %eax
je 0x100bb
movq (%rbp), %rdi
movsd 0x220cb(%rip), %xmm0    # 0x32118
callq 0x1df70
movq %rax, %r12
movq (%rbp), %rdi
movl $0x35, %esi
movq %rax, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x1d5e2
movq 0x20(%rbp), %rcx
movq %rcx, 0x20(%r12)
movq %rcx, 0x20(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10e21
movq %rax, %r12
movq (%r14), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
movq (%rbp), %rdi
movl $0x51, %esi
movq %r12, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x1d5e2
movq %rax, %r15
movq 0x20(%rbp), %rax
movq %rax, 0x20(%r15)
jmp 0x10892
movq %rbx, %rdi
movq %rbp, %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11376
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x11288
movq %rax, %r14
movq %rax, %rdi
callq 0x1d422
cmpl $0x33, %eax
jne 0x10427
movq %r14, %rdi
callq 0x1e384
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xee74
movq 0x50(%rbp), %rax
movq (%rax), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
movq 0x50(%rbp), %rcx
movq 0x8(%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10a8e
movq %rax, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x109e7
movq 0x50(%rbp), %rax
movq (%rax), %r13
movq %r13, %rdi
callq 0x28999
testl %eax, %eax
jne 0x10174
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xf923
movq %rax, %r13
movq %r13, %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x227ac
movq %rax, %r12
movq %rbp, %rdi
callq 0x1e384
cmpl $0x1, (%rax)
jne 0x10433
xorl %r15d, %r15d
jmp 0x1045a
testq %r15, %r15
jne 0x101b3
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xed1a
movq %rax, %r15
movq %r15, %rdi
callq 0x1e384
movq %rax, %r13
movq %r15, %rdi
callq 0x1e384
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xee74
movq %rax, %r12
movq 0x88(%r13), %rdi
leaq 0x20(%rsp), %rsi
callq 0x14410
testl %eax, %eax
je 0x109c4
movq $0x0, 0x10(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x40(%rbp), %rax
je 0x10240
movq %rbp, %rdi
callq 0x12664
movq (%rbp), %rdi
movq %rax, %rsi
callq 0x1d57a
movq (%rbp), %rdi
movl $0x47, %esi
movq %r12, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x1d5e2
movq %rbx, %rdi
movq %rax, %rsi
callq 0xf8bb
movq 0x40(%rbp), %rax
testq %rax, %rax
je 0x10892
xorl %r13d, %r13d
movq (%r14,%r13,8), %rax
movq 0x48(%rax), %rdi
testq %rdi, %rdi
je 0x10272
leaq 0x10(%rsp), %rsi
callq 0x14410
testl %eax, %eax
je 0x1098e
movq 0x10(%rsp), %rax
jmp 0x1027f
movq 0x10(%rsp), %rax
incq %rax
movq %rax, 0x10(%rsp)
cmpq 0x20(%rsp), %rax
jge 0x10966
movq (%r14,%r13,8), %rdi
callq 0x12664
movq %rax, %rbp
imulq 0x10(%rsp), %rbp
movq (%r14,%r13,8), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %rax, %rcx
callq 0xef42
incq %r13
movq 0x8(%rsp), %rax
cmpq 0x40(%rax), %r13
jb 0x1024c
jmp 0x10892
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xec7a
testq %r15, %r15
jne 0x102fd
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xed1a
movq %rax, %r15
movq 0x50(%rbp), %rax
movq (%rax), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
movq %rax, %r12
movq %rbp, %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x12677
movl $0x4, %edi
movq %rax, %rsi
callq 0x2e217
movq %rax, %r13
movq %rbp, %rdi
callq 0x1e384
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0xee74
movq %rax, %rdi
movq %r13, %rsi
callq 0x10a5e
movq %rax, %rdi
callq 0x109e7
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1115c
movq %rbx, %rdi
movq %rax, %rsi
jmp 0x1088d
movq %rax, %rdi
callq 0x227ac
movq %rax, %rdi
callq 0x227e7
testl %eax, %eax
jne 0x10892
movq (%r15), %rdi
movl $0xc, %esi
callq 0x2289d
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xee74
jmp 0x1013b
movq %rbx, %rdi
movq %r14, %rsi
callq 0xee74
movq %rax, %rdi
xorl %esi, %esi
callq 0xf833
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0xf780
movq %rax, %r12
movq 0x50f51(%rip), %rdx     # 0x61328
movq %rbx, %rdi
movq %r14, %rsi
callq 0xee74
movl $0x8, %esi
movq %rax, %rdi
callq 0x10a5e
movq %rax, %rdi
xorl %esi, %esi
callq 0xf833
movq %rax, %rdi
movq %r15, %rsi
callq 0xf780
movq %rax, %r15
movq %rbx, %rdi
movq %r12, %rsi
callq 0xf8bb
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf8bb
movq 0x18(%rsp), %r15
jmp 0x10892
movq 0x50(%r14), %rax
movq (%rax), %r15
jmp 0x10892
movq %rbp, %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x22784
testq %r15, %r15
je 0x1044c
testl %eax, %eax
jne 0x1045a
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xed1a
movq %rax, %r15
xorl %eax, %eax
leaq 0x20(%rsp), %r14
movq %rax, (%r14)
leaq 0x10(%rsp), %rbp
movq %rax, (%rbp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xed94
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x2ceff
movq %r13, %rdi
callq 0x28999
movl $0x2d, %ecx
testl %eax, %eax
jne 0x104b9
movq %rbx, %rdi
movq %r13, %rsi
callq 0x118d5
leaq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0x2ceff
movl $0x48, %ecx
movl %ecx, 0x18(%rsp)
movq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x129b4
leal -0x2(%rax), %ecx
cmpl $0x7, %ecx
jae 0x108a4
movq %r13, %rdi
callq 0x1e384
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xee74
movq %rax, %rdx
leaq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x2ceff
movl $0x1, %r14d
cmpq $0x2, 0x40(%r13)
jb 0x105e3
leaq 0x10(%rsp), %rbp
movq 0x8(%rsp), %r13
cmpq 0x70(%r12), %r14
jae 0x10558
movq 0x68(%r12), %rax
movq (%rax,%r14,8), %rdi
callq 0x227ac
cmpl $0x11, (%rax)
jne 0x10558
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x11934
leaq 0x20(%rsp), %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x2ceff
movq 0x50(%r13), %rax
movq (%rax,%r14,8), %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x227ac
cmpl $0x1, (%rax)
je 0x105d6
movq 0x50(%r13), %rax
movq (%rax,%r14,8), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
leaq 0x20(%rsp), %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x2ceff
movq 0x50(%r13), %rax
movq (%rax,%r14,8), %rdi
callq 0x1d422
cmpl $0x12, %eax
jne 0x105d6
movq 0x50(%r13), %rax
movq (%rax,%r14,8), %rax
movq 0x50(%rax), %rax
movq (%rax), %rdi
callq 0x1d422
cmpl $0x33, %eax
jne 0x105d6
movq 0x50(%r13), %rax
movq (%rax,%r14,8), %rax
movq 0x50(%rax), %rax
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x11892
incq %r14
cmpq 0x40(%r13), %r14
jb 0x10521
cmpq 0x70(%r12), %r14
movq 0x8(%rsp), %r13
jae 0x1061f
movq 0x68(%r12), %rax
movq (%rax,%r14,8), %rdi
callq 0x227ac
cmpl $0x11, (%rax)
jne 0x1061f
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11934
leaq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0x2ceff
testq %r15, %r15
je 0x1062f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11892
movq 0x20(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq (%r13), %rdi
movl 0x18(%rsp), %esi
callq 0x1d74d
movq %rax, %r12
movq %r13, %rdi
callq 0x1e384
movq %rax, 0x20(%r12)
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x1088d
movq (%rbp), %rdi
movl $0xc, %esi
callq 0x2289d
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xee74
movq %rax, %r13
movq 0x8(%r12), %rsi
movq (%rbp), %rdi
callq 0x1d57a
movq %rbp, %r14
movq %rax, %rbp
movq (%r14), %rdi
movl $0xc, %esi
callq 0x2289d
movq %rax, 0x20(%rbp)
movq 0x50c84(%rip), %rsi     # 0x61330
movq %r13, %rdi
callq 0xf833
movq %rax, %rdi
movq %rbp, %rsi
callq 0xf780
movq %rbx, %rdi
movq %rax, %rsi
callq 0xf8bb
cmpq $0x0, 0x28(%r12)
je 0x10892
movq 0x50(%r14), %rax
movq 0x8(%rax), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
movq %rax, %rbp
movq 0x28(%r12), %rdi
callq 0x12677
movl $0x4, %edi
movq %rax, %rsi
callq 0x2e217
movq %r13, %rdi
movq %rax, %rsi
callq 0x10a5e
movq %rax, %r13
movq 0x28(%r12), %rdi
callq 0x22784
movq 0x28(%r12), %rdx
testl %eax, %eax
je 0x10953
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xee74
movq %rax, %rbp
movq 0x28(%r12), %rdi
callq 0x12421
movq (%r14), %rdi
movl %eax, %esi
callq 0x1d57a
movq 0x50bd8(%rip), %rcx     # 0x61328
movq %rcx, 0x20(%rax)
movq (%r14), %rdi
movl $0x46, %esi
movq %r13, %rdx
movq %rbp, %rcx
movq %rax, %r8
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x1d5e2
jmp 0x10368
movq %r15, %r14
movq %rbp, %r13
movl %r13d, %r13d
movq 0x18(%rsp), %rbp
testq %rbp, %rbp
jne 0x107c4
movq 0x68(%r12), %rax
movq (%rax,%r15,8), %rsi
movq 0x8(%rsp), %rax
movq (%rax), %rdi
leaq 0x10(%rsp), %rdx
callq 0x1e0f5
movq %rax, %rbp
movq 0x68(%r12), %rax
movq (%rax,%r15,8), %rdi
callq 0x22784
testl %eax, %eax
je 0x107c4
movq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0xf5c4
movq 0x68(%r12), %rax
movq (%rax,%r14,8), %rdx
movq %rbx, %rdi
movq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0xee74
movq %rax, %r12
movq (%r14), %rdi
movq %r13, %rsi
callq 0x1d57a
movq 0x50b36(%rip), %rcx     # 0x61328
movq %rcx, 0x20(%rax)
movq %r12, %rdi
movq %rax, %rsi
callq 0xf71b
movq %rax, %r15
xorl %eax, %eax
cmpl $0x8, 0x8(%rbp)
setne %al
movq 0x20(%rbp,%rax,8), %rdi
callq 0x22784
testl %eax, %eax
je 0x10871
movq %rbp, %rdi
callq 0x12664
movq (%rbp), %rdi
movl %eax, %esi
callq 0x1d57a
movq %rax, %r12
movq 0x50af0(%rip), %rax     # 0x61328
movq %rax, 0x20(%r12)
movq %rbp, %rdi
callq 0x1e384
movq %rbx, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0xee74
movq (%rbp), %rdi
movl $0x46, %esi
movq %rax, %rdx
movq %r15, %rcx
movq %r12, %r8
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x1d5e2
jmp 0x10884
movq %r15, %rdi
callq 0x109e7
movq %rbp, %rdi
movq %rax, %rsi
callq 0xf780
movq %rax, %rsi
movq %rbp, %r15
movq %rbx, %rdi
callq 0xf8bb
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdx
cmpl $0x1, %eax
je 0x104f7
jmp 0x10506
movq (%rbp), %rdi
xorl %esi, %esi
callq 0x1d57a
movq 0x50a61(%rip), %rcx     # 0x61328
movq %rax, 0x8(%rsp)
movq %rcx, 0x20(%rax)
jmp 0xfcbe
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10e93
cmpq $0x7fffffff, 0x30(%rax) # imm = 0x7FFFFFFF
jb 0xfdd5
movq %rbx, %rdi
movq %rbp, %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10e21
xorl %r15d, %r15d
jmp 0x10892
movq (%r14), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
jmp 0xfc45
movq 0x20(%rbx), %r12
movq (%r14), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf923
movq %r12, %rdi
movq %rax, %rsi
callq 0xf780
jmp 0xfc3a
movq %r13, %rdi
movq %rdx, %rsi
callq 0xf833
movq %rax, %rdi
jmp 0xfa4c
leaq 0x21b4f(%rip), %rdi     # 0x324bc
leaq 0x21970(%rip), %rsi     # 0x322e4
leaq 0x21b4c(%rip), %rcx     # 0x324c7
movl $0x4aa, %edx            # imm = 0x4AA
callq 0x4180
leaq 0x21b8f(%rip), %rdi     # 0x3251b
jmp 0x10995
leaq 0x1e6e2(%rip), %rdi     # 0x2f077
xorl %eax, %eax
callq 0x13844
leaq 0x21c18(%rip), %rdi     # 0x325bb
jmp 0x10995
leaq 0x21b57(%rip), %rdi     # 0x32503
leaq 0x21931(%rip), %rsi     # 0x322e4
leaq 0x21b0d(%rip), %rcx     # 0x324c7
movl $0x524, %edx            # imm = 0x524
callq 0x4180
leaq 0x1e699(%rip), %rdi     # 0x2f064
jmp 0x10995
leaq 0x21b72(%rip), %rdi     # 0x32546
jmp 0x10995
leaq 0x21b0d(%rip), %rsi     # 0x324ea
movq %rbp, %rdi
xorl %eax, %eax
callq 0x138e7