// File: /workspace/github_c_makefile_star2_O3/Oric4ever[P]lcc65/6502/build/../src/dag.c
// Function: listnodes
Node listnodes(Tree tp, int tlab, int flab) {
	Opcode op;
	Node p, l, r;

	if (tp == 0)
		return 0;
	if (tp->node)
		return tp->node;
	op = generic(tp->op);
	switch (op) {
	case AND:
		if (flab) {
			listnodes(tp->kids[0], 0, flab);
			r = listnodes(tp->kids[1], 0, flab);
		} else {
			listnodes(tp->kids[0], 0, flab = genlabel(1));
			listnodes(tp->kids[1], tlab, 0);
			r = labelnode(flab);
		}
		trash(0);
		return r;
	case NOT:
		return listnodes(tp->kids[0], flab, tlab);
	case OR:
		if (tlab) {
			listnodes(tp->kids[0], tlab, 0);
			r = listnodes(tp->kids[1], tlab, 0);
		} else {
			listnodes(tp->kids[0], tlab = genlabel(1), 0);
			listnodes(tp->kids[1], 0, flab);
			r = labelnode(tlab);
		}
		trash(0);
		return r;
	case COND: {
		Tree q;
		assert(tlab == 0 && flab == 0);
		if (tp->u.sym)
			addlocal(tp->u.sym);
		trash(0);
		listnodes(tp->kids[0], 0, flab = genlabel(2));
		trash(0);
		q = tp->kids[1];
		if (q) {
			assert(q->op == RIGHT);
			listnodes(q->kids[0], 0, 0);
			if (islabel(nodelist)) {
				equatelab(nodelist->syms[0], findlabel(flab + 1));
				remove(nodelist);
			}
			trash(0);
		}
		if (q && q->kids[1]) {
			list(jump(flab + 1));
			labelnode(flab);
			listnodes(q->kids[1], 0, 0);
			if (islabel(nodelist)) {
				equatelab(nodelist->syms[0], findlabel(flab + 1));
				remove(nodelist);
			}
		} else
			labelnode(flab);
		p = labelnode(flab + 1);
		trash(0);
		if (tp->u.sym) {
			Tree t = idnode(tp->u.sym);
			tp->u.sym->ref = 0;	/* undo idnode's setting ref */
			p = listnodes(t, 0, 0);
		}
		break;
		}
	case CNST: {
		Type ty = unqual(tp->type);
		assert(op == CNST+S || ty->u.sym);
		if (op == CNST+S || ty->u.sym->addressed)
			p = listnodes(cvtconst(tp), tlab, flab);
		else if (tlab == 0 && flab == 0)
			p = node(tp->op, 0, 0, constant(ty, tp->u.v));
		else {
			assert(ty == inttype);
			if (tlab && tp->u.v.i != 0)
				p = list(jump(tlab));
			else if (flab && tp->u.v.i == 0)
				p = list(jump(flab));
			else
				p = 0;
		}
		break;
		}
	case RIGHT:
		if (tp->kids[0] && generic(tp->kids[0]->op) == INDIR
		&&  tp->kids[1] && generic(tp->kids[1]->op) == ASGN
		&&  tp->kids[0]->kids[0] == tp->kids[1]->kids[0]) {	/* e++ */
			p = listnodes(tp->kids[0], 0, 0);
			if (nodelist) {
				Node t;
				for (t = nodelist; ; t = t->link)
					if (haskid(p, t->link)) {
						p->link = t->link;
						t->link = p;
						break;
					} else if (t->link == nodelist) {
						list(p);
						break;
					}
			} else
				list(p);
			listnodes(tp->kids[1], 0, 0);
		} else if (tp->kids[1]) {
			if (tp->kids[0] && generic(tp->kids[0]->op) == CNST)
				tp->kids[0] = 0;
			listnodes(tp->kids[0], 0, 0);
			p = listnodes(tp->kids[1], tlab, flab);
		} else
			p = listnodes(tp->kids[0], tlab, flab);
		break;
	case JUMP:
		assert(tlab == 0 && flab == 0);
		assert(tp->u.sym == 0);
		assert(tp->kids[0]);
		l = listnodes(tp->kids[0], 0, 0);
		p = newnode(JUMP+V, l, 0, 0);
		trash(0);
		list(p);
		break;
	case CALL:
		assert(tlab == 0 && flab == 0);
		l = listnodes(tp->kids[0], 0, 0);	/* arguments, function name */
		r = listnodes(tp->kids[1], 0, 0);
		p = newnode(tp->op, l, r, 0);
		p->syms[0] = (Symbol)talloc(sizeof *p->syms[0]);
		BZERO(p->syms[0], struct symbol);
		assert(isptr(tp->kids[0]->type) && isfunc(tp->kids[0]->type->type));
		p->syms[0]->type = tp->kids[0]->type->type;
		trash(0);
		list(p);
		cfunc->u.f.ncalls++;
		break;
	case ARG:
		assert(tlab == 0 && flab == 0);
#ifdef LEFT_TO_RIGHT
		listnodes(tp->kids[1], 0, 0);
#endif
		l = listnodes(tp->kids[0], 0, 0);
		p = newnode(tp->op, l, 0, 0);
		p->syms[0] = intconst(tp->type->size);
		p->syms[1] = intconst(tp->type->align);
		list(p);
#ifndef LEFT_TO_RIGHT
		listnodes(tp->kids[1], 0, 0);
#endif
		return 0;
	case EQ: case NE: case GT: case GE: case LE: case LT: {
		int lab;
		assert(tp->u.sym == 0);
		assert(errcnt || tlab || flab);
		if (lab = flab) {
			assert(tlab == 0);
			switch (op) {
			case EQ: op = NE + optype(tp->op); break;
			case NE: op = EQ + optype(tp->op); break;
			case GT: op = LE + optype(tp->op); break;
			case LT: op = GE + optype(tp->op); break;
			case GE: op = LT + optype(tp->op); break;
			case LE: op = GT + optype(tp->op); break;
			}
		} else if (lab = tlab)
			op = tp->op;
		l = listnodes(tp->kids[0], 0, 0);
		r = listnodes(tp->kids[1], 0, 0);
		p = newnode(op, l, r, findlabel(lab));
		p->syms[0]->ref++;
		list(p);
		break;
		}
	case ASGN:
		assert(tlab == 0 && flab == 0);
		if (tp->kids[0]->op == FIELD) {
			Tree x = tp->kids[0]->kids[0];
			Field p = tp->kids[0]->u.field;
			assert(generic(x->op) == INDIR);
			trash(0);
			l = listnodes(lvalue(x), 0, 0);
			if (fieldsize(p) < 8*p->type->size) {
				unsigned int fmask = fieldmask(p);
				unsigned int mask = fmask<<fieldright(p);
				Tree q = tp->kids[1];
				if ((q->op == CNST+I && q->u.v.i == 0)
				||  (q->op == CNST+U && q->u.v.u == 0))
					q = bitnode(BAND, x, constnode(~mask, unsignedtype));
				else if ((q->op == CNST+I && (q->u.v.i&fmask) == fmask)
				||       (q->op == CNST+U && (q->u.v.u&fmask) == fmask))
					q = bitnode(BOR, x, constnode(mask, unsignedtype));
				else
					q = bitnode(BOR,
						bitnode(BAND, x, constnode(~mask, unsignedtype)),
						bitnode(BAND, shnode(LSH, cast(q, unsignedtype),
							constnode(fieldright(p), inttype)),
							constnode(mask, unsignedtype)));
				r = listnodes(q, 0, 0);
			} else
				r = listnodes(tp->kids[1], 0, 0);
		} else {
			l = listnodes(tp->kids[0], 0, 0);
			r = listnodes(tp->kids[1], 0, 0);
		}
		trash(isaddrop(tp->kids[0]->op) && !tp->kids[0]->u.sym->computed ? l : 0);
		p = newnode(tp->op, l, r, 0);
		p->syms[0] = intconst(tp->type->size);
		p->syms[1] = intconst(tp->type->align);
		list(p);
		p = listnodes(tp->kids[1], 0, 0);
		break;
	case BAND:
		assert(tlab == 0 && flab == 0);
		l = listnodes(tp->kids[0], 0, 0);
#ifdef VAX
		r = listnodes(cast(
			simplify(BCOM+U, unsignedtype, cast(tp->kids[1], unsignedtype), 0),
			tp->kids[1]->type), 0, 0);
#else
		r = listnodes(tp->kids[1], 0, 0);
#endif
		p = node(tp->op, l, r, 0);
		break;
	case RSH:
		assert(tlab == 0 && flab == 0);
		l = listnodes(tp->kids[0], 0, 0);
#ifdef VAX
		if (tp->op == RSH+I)
			r = listnodes(simplify(NEG+I, inttype, tp->kids[1], 0), 0, 0);
		else
#endif
			r = listnodes(tp->kids[1], 0, 0);
		p = node(tp->op, l, r, 0);
		break;
	case ADD: case SUB:  case DIV: case MUL: case MOD:
	case BOR: case BXOR: case LSH:
		assert(tlab == 0 && flab == 0);
		l = listnodes(tp->kids[0], 0, 0);
		r = listnodes(tp->kids[1], 0, 0);
		p = node(tp->op, l, r, 0);
#ifdef SPARC
		if(p->op == DIV+I || p->op == MOD+I || p->op == MUL+I
		|| p->op == DIV+U || p->op == MOD+U || p->op == MUL+U)
			list(p);
#endif
		break;
	case RET:
		assert(tlab == 0 && flab == 0);
		l = listnodes(tp->kids[0], 0, 0);
		p = newnode(tp->op, l, 0, 0);
		list(p);
		break;
	case CVC: case CVD: case CVF: case CVI:
	case CVP: case CVS: case CVU: case NEG: case BCOM:
		assert(tlab == 0 && flab == 0);
		l = listnodes(tp->kids[0], 0, 0);
		p = node(tp->op, l, 0, 0);
		break;
	case INDIR: {
		Type ty = tp->kids[0]->type;
		if (isptr(ty))
			ty = unqual(ty)->type;
		assert(tlab == 0 && flab == 0);
		l = listnodes(tp->kids[0], 0, 0);
		if (isvolatile(ty) || (isstruct(ty) && unqual(ty)->u.sym->u.s.vfields))
			p = newnode(tp->op, l, 0, 0);
		else
			p = node(tp->op, l, 0, 0);
		break;
		}
	case FIELD: {
		Tree q;
		assert(tlab == 0 && flab == 0);
		q = shnode(RSH,
			shnode(LSH, tp->kids[0],
				constnode(fieldleft(tp->u.field), inttype)),
			constnode(8*tp->type->size - fieldsize(tp->u.field), inttype));
		p = listnodes(q, 0, 0);
		break;
		}
	case ADDRL:
		assert(tlab == 0 && flab == 0);
		if (tp->u.sym->temporary) {
			addlocal(tp->u.sym);
			release(tp->u.sym);
		}
		p = node(tp->op, 0, 0, tp->u.sym);
		break;
	case ADDRG: case ADDRF:
		assert(tlab == 0 && flab == 0);
		if (tp->u.sym->scope == LABELS)
			tp->u.sym->ref++;
		p = node(tp->op, 0, 0, tp->u.sym);
		break;
	default:assert(0);
	}
	return tp->node = p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x3ea5
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x1a608(%rip), %rax     # 0x1e05c
movq 0x20(%rbx), %r14
testq %r14, %r14
jne 0x3ea8
movl (%rbx), %r14d
leal -0x10(%r14), %ecx
shrl $0x4, %ecx
cmpl $0x2a, %ecx
ja 0x48fb
movl %edx, %ebp
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x10(%rbx), %rbx
movl %r15d, %edx
movl %ebp, %r15d
testq %rbx, %rbx
jne 0x3a54
jmp 0x3ea5
orl %r15d, %ebp
jne 0x491a
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movl (%rbx), %edi
movq %rax, %rsi
xorl %edx, %edx
jmp 0x3ae0
orl %r15d, %ebp
jne 0x4939
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movq %rax, %r14
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movl (%rbx), %edi
movq %r14, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x4dd8
movq %rax, %r14
movq %r14, 0x20(%rbx)
jmp 0x3ea8
cmpq $0x0, 0x28(%rbx)
jne 0x4958
leaq 0x26da7(%rip), %rax     # 0x2a8ac
movl (%rax), %eax
orl %r15d, %eax
orl %ebp, %eax
je 0x4977
movl %r14d, %r12d
andl $-0x10, %r12d
testl %ebp, %ebp
je 0x3b52
testl %r15d, %r15d
jne 0x4996
leal -0x1e0(%r14), %eax
shrl $0x4, %eax
cmpl $0x5, %eax
ja 0x3b5f
leaq 0x1a5cc(%rip), %rcx     # 0x1e108
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
andl $0xf, %r14d
orl $0x230, %r14d           # imm = 0x230
jmp 0x3b5c
testl %r15d, %r15d
cmovel %r12d, %r14d
movl %r15d, %ebp
movl %r14d, %r12d
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movq %rax, %r14
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movq %rax, %r15
movl %ebp, %edi
callq 0x17238
movl %r12d, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0x4e73
movq %rax, %r14
movq 0x8(%rax), %rax
incl 0x1c(%rax)
cmpq $0x0, 0x30(%r14)
jne 0x3aea
movq %r14, %rax
addq $0x30, %rax
movq 0x26c26(%rip), %rcx     # 0x2a7e0
testq %rcx, %rcx
je 0x3bcd
movq 0x30(%rcx), %rdx
addq $0x30, %rcx
movq %rdx, (%rax)
movq %rcx, %rax
movq %r14, (%rax)
movq %r14, 0x26c09(%rip)     # 0x2a7e0
jmp 0x3aea
orl %r15d, %ebp
jne 0x49b5
movq 0x28(%rbx), %rcx
cmpw $0x2, 0x18(%rcx)
jne 0x3da4
incl 0x1c(%rcx)
jmp 0x3da0
movq 0x10(%rbx), %r14
testl %ebp, %ebp
je 0x460b
movq %r14, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x3a33
movq 0x18(%rbx), %rdi
xorl %esi, %esi
movl %ebp, %edx
jmp 0x3ce1
orl %r15d, %ebp
jne 0x49f3
cmpq $0x0, 0x28(%rbx)
jne 0x4b29
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x4b48
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movl $0x248, %edi            # imm = 0x248
movq %rax, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4e73
movq %rax, %r14
cmpl $0x0, 0x26c0a(%rip)     # 0x2a870
jle 0x3cad
xorps %xmm0, %xmm0
movaps %xmm0, 0x26bee(%rip)    # 0x2a860
movaps %xmm0, 0x26bd7(%rip)    # 0x2a850
movaps %xmm0, 0x26bc0(%rip)    # 0x2a840
movaps %xmm0, 0x26ba9(%rip)    # 0x2a830
movaps %xmm0, 0x26b92(%rip)    # 0x2a820
movaps %xmm0, 0x26b7b(%rip)    # 0x2a810
movaps %xmm0, 0x26b64(%rip)    # 0x2a800
movaps %xmm0, 0x26b4d(%rip)    # 0x2a7f0
movl $0x0, 0x26bc3(%rip)     # 0x2a870
testq %r14, %r14
jne 0x3ba1
xorl %r14d, %r14d
jmp 0x3aea
movq 0x10(%rbx), %r14
testl %r15d, %r15d
je 0x4635
movq %r14, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x3a33
movq 0x18(%rbx), %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x3a33
jmp 0x4663
orl %r15d, %ebp
je 0x3abb
leaq 0x1a48b(%rip), %rdi     # 0x1e186
leaq 0x1a456(%rip), %rsi     # 0x1e158
leaq 0x1a494(%rip), %rcx     # 0x1e19d
movl $0x1de, %edx            # imm = 0x1DE
callq 0x30d0
orl %r15d, %ebp
jne 0x4a12
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movq %rax, %r14
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movl (%rbx), %edi
movq %r14, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x4e73
movq %rax, %r14
leaq 0x26a26(%rip), %rax     # 0x2a778
movq (%rax), %rax
movl $0x88, (%rax)
movq 0x8(%rax), %r15
leaq 0x88(%r15), %rcx
cmpq 0x10(%rax), %rcx
jae 0x44f1
movq %rcx, 0x8(%rax)
jmp 0x4505
orl %r15d, %ebp
jne 0x4a31
movq 0x28(%rbx), %rcx
testb $0x2, 0x1b(%rcx)
je 0x3da4
movq %rcx, %rdi
callq 0x343c
movq 0x28(%rbx), %rdi
callq 0x17731
movl (%rbx), %r14d
movq 0x28(%rbx), %rcx
movl %r14d, %edi
xorl %esi, %esi
xorl %edx, %edx
jmp 0x3ae2
orl %r15d, %ebp
jne 0x4a50
movq 0x10(%rbx), %rdi
xorl %r14d, %r14d
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movl (%rbx), %edi
movq %rax, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4e73
testq %rax, %rax
je 0x3aea
cmpq $0x0, 0x30(%rax)
jne 0x3ae7
movq %rax, %rcx
addq $0x30, %rcx
movq 0x269e7(%rip), %rdx     # 0x2a7e0
testq %rdx, %rdx
je 0x3e0c
movq 0x30(%rdx), %rsi
addq $0x30, %rdx
movq %rsi, (%rcx)
movq %rdx, %rcx
movq %rax, (%rcx)
movq %rax, 0x269ca(%rip)     # 0x2a7e0
jmp 0x3ae7
orl %r15d, %ebp
jne 0x4a6f
movq 0x18(%rbx), %rdi
xorl %r14d, %r14d
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movl (%rbx), %edi
movq %rax, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4e73
movq %rax, %r15
movq 0x8(%rbx), %rax
movl 0x8(%rax), %edi
callq 0x175d3
movq %rax, 0x8(%r15)
movq 0x8(%rbx), %rax
movswl 0x4(%rax), %edi
callq 0x175d3
movq %rax, 0x10(%r15)
cmpq $0x0, 0x30(%r15)
jne 0x3ea8
movq %r15, %rax
addq $0x30, %rax
movq 0x26958(%rip), %rcx     # 0x2a7e0
testq %rcx, %rcx
je 0x3e9b
movq 0x30(%rcx), %rdx
addq $0x30, %rcx
movq %rdx, (%rax)
movq %rcx, %rax
movq %r15, (%rax)
movq %r15, 0x2693b(%rip)     # 0x2a7e0
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rbx), %rdi
movq 0x8(%rdi), %r14
movl (%r14), %ecx
cmpl $0xf, %ecx
jb 0x44af
movq 0x10(%r14), %rax
cmpl $0x7, (%rax)
je 0x44b7
jmp 0x44bb
movq 0x8(%rbx), %rdi
cmpl $0xf, (%rdi)
jb 0x3eed
movq 0x10(%rdi), %rdi
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x4a8e
testb $0x10, 0x1b(%rax)
jne 0x45e6
movl %ebp, %eax
orl %r15d, %eax
je 0x4740
leaq 0x2f082(%rip), %rax     # 0x32f98
cmpq (%rax), %rdi
jne 0x4ba5
testl %r15d, %r15d
je 0x4716
cmpl $0x0, 0x28(%rbx)
je 0x4716
movl %r15d, %edi
jmp 0x472a
orl %r15d, %ebp
jne 0x4aad
movq 0x10(%rbx), %rdi
cmpl $0x2b0, (%rdi)          # imm = 0x2B0
jne 0x45f6
movq 0x10(%rdi), %r15
movl (%r15), %eax
andl $-0x10, %eax
cmpl $0x40, %eax
jne 0x4b86
movq 0x28(%rdi), %r13
cmpl $0x0, 0x268ff(%rip)     # 0x2a870
jle 0x3fb8
xorps %xmm0, %xmm0
movaps %xmm0, 0x268e3(%rip)    # 0x2a860
movaps %xmm0, 0x268cc(%rip)    # 0x2a850
movaps %xmm0, 0x268b5(%rip)    # 0x2a840
movaps %xmm0, 0x2689e(%rip)    # 0x2a830
movaps %xmm0, 0x26887(%rip)    # 0x2a820
movaps %xmm0, 0x26870(%rip)    # 0x2a810
movaps %xmm0, 0x26859(%rip)    # 0x2a800
movaps %xmm0, 0x26842(%rip)    # 0x2a7f0
movl $0x0, 0x268b8(%rip)     # 0x2a870
movq %r15, %rdi
callq 0xb318
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movq %rax, %r14
movswl 0x16(%r13), %ecx
movswl 0x14(%r13), %eax
subl %eax, %ecx
movq 0x8(%r13), %rdx
movl 0x8(%rdx), %edx
shll $0x3, %edx
cmpl %edx, %ecx
jge 0x4602
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
shll %cl, %edx
movl %edx, %ebp
notl %ebp
movl %eax, %ecx
shll %cl, %ebp
movq 0x18(%rbx), %r12
movl (%r12), %eax
cmpl $0x16, %eax
je 0x400e
cmpl $0x15, %eax
jne 0x4026
movl 0x28(%r12), %eax
testl %eax, %eax
je 0x4777
orl %edx, %eax
cmpl $-0x1, %eax
je 0x4791
movl %ebp, %edi
notl %edi
leaq 0x2efa7(%rip), %rax     # 0x32fd8
movq (%rax), %rsi
callq 0x908f
movl $0x180, %edi            # imm = 0x180
movq %r15, %rsi
movq %rax, %rdx
callq 0x83cc
movq %rax, (%rsp)
leaq 0x2ef84(%rip), %r15     # 0x32fd8
movq (%r15), %rsi
movq %r12, %rdi
callq 0xa2f7
movq %rax, %r12
movswl 0x14(%r13), %edi
leaq 0x2ef2a(%rip), %rax     # 0x32f98
movq (%rax), %rsi
callq 0x908f
movl $0x150, %edi            # imm = 0x150
movq %r12, %rsi
movq %rax, %rdx
callq 0x8c43
movq %rax, %r12
movq (%r15), %rsi
movl %ebp, %edi
callq 0x908f
movl $0x180, %edi            # imm = 0x180
movq %r12, %rsi
movq %rax, %rdx
callq 0x83cc
movl $0x1a0, %edi            # imm = 0x1A0
movq (%rsp), %rsi
jmp 0x47aa
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x46bd
movl (%rdi), %ecx
andl $-0x10, %ecx
movq 0x18(%rbx), %rax
cmpl $0x40, %ecx
jne 0x46e8
testq %rax, %rax
je 0x470c
movl (%rax), %ecx
andl $-0x10, %ecx
cmpl $0x30, %ecx
jne 0x40f1
movq 0x10(%rdi), %rcx
cmpq 0x10(%rax), %rcx
je 0x4872
leaq 0x18(%rbx), %r14
jmp 0x4700
orl %r15d, %ebp
jne 0x4aeb
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x4111
callq 0x343c
cmpl $0x0, 0x26758(%rip)     # 0x2a870
jle 0x415f
xorps %xmm0, %xmm0
movaps %xmm0, 0x2673c(%rip)    # 0x2a860
movaps %xmm0, 0x26725(%rip)    # 0x2a850
movaps %xmm0, 0x2670e(%rip)    # 0x2a840
movaps %xmm0, 0x266f7(%rip)    # 0x2a830
movaps %xmm0, 0x266e0(%rip)    # 0x2a820
movaps %xmm0, 0x266c9(%rip)    # 0x2a810
movaps %xmm0, 0x266b2(%rip)    # 0x2a800
movaps %xmm0, 0x2669b(%rip)    # 0x2a7f0
movl $0x0, 0x26711(%rip)     # 0x2a870
movq 0x10(%rbx), %r15
movl $0x2, %edi
callq 0x17522
movl %eax, %r14d
movq %r15, %rdi
xorl %esi, %esi
movl %eax, %edx
callq 0x3a33
cmpl $0x0, 0x266ed(%rip)     # 0x2a870
jle 0x41ca
xorps %xmm0, %xmm0
movaps %xmm0, 0x266d1(%rip)    # 0x2a860
movaps %xmm0, 0x266ba(%rip)    # 0x2a850
movaps %xmm0, 0x266a3(%rip)    # 0x2a840
movaps %xmm0, 0x2668c(%rip)    # 0x2a830
movaps %xmm0, 0x26675(%rip)    # 0x2a820
movaps %xmm0, 0x2665e(%rip)    # 0x2a810
movaps %xmm0, 0x26647(%rip)    # 0x2a800
movaps %xmm0, 0x26630(%rip)    # 0x2a7f0
movl $0x0, 0x266a6(%rip)     # 0x2a870
movq 0x18(%rbx), %r12
testq %r12, %r12
je 0x43d1
cmpl $0x2a0, (%r12)          # imm = 0x2A0
jne 0x4b67
movq 0x10(%r12), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movq 0x265e6(%rip), %rax     # 0x2a7e0
testq %rax, %rax
je 0x4230
cmpl $0x258, (%rax)          # imm = 0x258
jne 0x4230
movq 0x8(%rax), %r15
testq %r15, %r15
je 0x4230
leal 0x1(%r14), %edi
callq 0x17238
movq %r15, %rdi
movq %rax, %rsi
callq 0x14fc3
movq 0x265b5(%rip), %rdi     # 0x2a7e0
callq 0x4d51
cmpl $0x0, 0x26639(%rip)     # 0x2a870
jle 0x427e
xorps %xmm0, %xmm0
movaps %xmm0, 0x2661d(%rip)    # 0x2a860
movaps %xmm0, 0x26606(%rip)    # 0x2a850
movaps %xmm0, 0x265ef(%rip)    # 0x2a840
movaps %xmm0, 0x265d8(%rip)    # 0x2a830
movaps %xmm0, 0x265c1(%rip)    # 0x2a820
movaps %xmm0, 0x265aa(%rip)    # 0x2a810
movaps %xmm0, 0x26593(%rip)    # 0x2a800
movaps %xmm0, 0x2657c(%rip)    # 0x2a7f0
movl $0x0, 0x265f2(%rip)     # 0x2a870
cmpq $0x0, 0x18(%r12)
je 0x43d1
movl %r14d, %ebp
incl %ebp
movl %ebp, %edi
callq 0x4dac
testq %rax, %rax
je 0x42cd
cmpq $0x0, 0x30(%rax)
jne 0x42cd
movq %rax, %rcx
addq $0x30, %rcx
movq 0x26530(%rip), %rdx     # 0x2a7e0
testq %rdx, %rdx
je 0x42c3
movq 0x30(%rdx), %rsi
addq $0x30, %rdx
movq %rsi, (%rcx)
movq %rdx, %rcx
movq %rax, (%rcx)
movq %rax, 0x26513(%rip)     # 0x2a7e0
movl %r14d, %edi
callq 0x4bc4
movq 0x18(%r12), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movq 0x264f6(%rip), %rax     # 0x2a7e0
testq %rax, %rax
je 0x43df
cmpl $0x258, (%rax)          # imm = 0x258
jne 0x43df
movq 0x8(%rax), %r14
testq %r14, %r14
je 0x43df
movl %ebp, %edi
callq 0x17238
movq %r14, %rdi
movq %rax, %rsi
callq 0x14fc3
movq 0x264bb(%rip), %rdi     # 0x2a7e0
callq 0x4d51
jmp 0x43df
orl %r15d, %ebp
je 0x3abb
leaq 0x19e47(%rip), %rdi     # 0x1e186
leaq 0x19e12(%rip), %rsi     # 0x1e158
leaq 0x19e50(%rip), %rcx     # 0x1e19d
movl $0x1d2, %edx            # imm = 0x1D2
callq 0x30d0
orl %r15d, %ebp
jne 0x4b0a
movq 0x10(%rbx), %r14
movq 0x28(%rbx), %rax
movq 0x8(%rax), %rcx
movl 0x8(%rcx), %edi
shll $0x3, %edi
movswl 0x16(%rax), %eax
subl %eax, %edi
leaq 0x2ec19(%rip), %r15     # 0x32f98
movq (%r15), %rsi
callq 0x908f
movl $0x150, %edi            # imm = 0x150
movq %r14, %rsi
movq %rax, %rdx
callq 0x8c43
movq %rax, %r14
movq 0x8(%rbx), %rax
movq 0x28(%rbx), %rcx
movl 0x8(%rax), %eax
shll $0x3, %eax
movswl 0x16(%rcx), %edx
subl %edx, %eax
movswl 0x14(%rcx), %edi
addl %eax, %edi
movq (%r15), %rsi
callq 0x908f
movl $0x170, %edi            # imm = 0x170
movq %r14, %rsi
movq %rax, %rdx
callq 0x8c43
jmp 0x4454
movl %r14d, %edi
callq 0x4bc4
incl %r14d
movl %r14d, %ebp
movl %ebp, %edi
callq 0x4bc4
movq %rax, %r14
cmpl $0x0, 0x26480(%rip)     # 0x2a870
jle 0x4437
xorps %xmm0, %xmm0
movaps %xmm0, 0x26464(%rip)    # 0x2a860
movaps %xmm0, 0x2644d(%rip)    # 0x2a850
movaps %xmm0, 0x26436(%rip)    # 0x2a840
movaps %xmm0, 0x2641f(%rip)    # 0x2a830
movaps %xmm0, 0x26408(%rip)    # 0x2a820
movaps %xmm0, 0x263f1(%rip)    # 0x2a810
movaps %xmm0, 0x263da(%rip)    # 0x2a800
movaps %xmm0, 0x263c3(%rip)    # 0x2a7f0
movl $0x0, 0x26439(%rip)     # 0x2a870
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x3aea
callq 0x9d8b
movq 0x28(%rbx), %rcx
movl $0x0, 0x1c(%rcx)
movq %rax, %rdi
jmp 0x4864
orl $0x1f0, %r14d           # imm = 0x1F0
andl $0x1ff, %r14d           # imm = 0x1FF
jmp 0x3b5c
andl $0xf, %r14d
orl $0x210, %r14d           # imm = 0x210
jmp 0x3b5c
andl $0xf, %r14d
orl $0x200, %r14d           # imm = 0x200
jmp 0x3b5c
andl $0xf, %r14d
orl $0x220, %r14d           # imm = 0x220
jmp 0x3b5c
andl $0xf, %r14d
orl $0x1e0, %r14d           # imm = 0x1E0
jmp 0x3b5c
movq %r14, %rax
cmpl $0x7, %ecx
jne 0x44bb
movq 0x10(%rax), %r14
orl %r15d, %ebp
jne 0x4acc
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movl (%r14), %ecx
cmpl $0x10, %ecx
je 0x44de
cmpl $0x1f, %ecx
jne 0x46ca
movl (%rbx), %edi
movq %rax, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4e73
jmp 0x3ae7
leaq 0x26280(%rip), %rsi     # 0x2a778
movl $0x88, %edi
callq 0x17800
movq %rax, %r15
movq %r15, 0x8(%r14)
movl $0x88, %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x30e0
movq 0x10(%rbx), %rax
movq 0x8(%rax), %rax
movl (%rax), %ecx
cmpl $0xf, %ecx
jb 0x452d
movq 0x10(%rax), %rcx
movl (%rcx), %ecx
cmpl $0x7, %ecx
jne 0x49d4
movq 0x10(%rax), %rax
movl (%rax), %ecx
cmpl $0xf, %ecx
jb 0x4547
movq 0x10(%rax), %rcx
movl (%rcx), %ecx
cmpl $0xb, %ecx
jne 0x49d4
movq %rax, 0x20(%r15)
cmpl $0x0, 0x26315(%rip)     # 0x2a870
jle 0x45a2
xorps %xmm0, %xmm0
movaps %xmm0, 0x262f9(%rip)    # 0x2a860
movaps %xmm0, 0x262e2(%rip)    # 0x2a850
movaps %xmm0, 0x262cb(%rip)    # 0x2a840
movaps %xmm0, 0x262b4(%rip)    # 0x2a830
movaps %xmm0, 0x2629d(%rip)    # 0x2a820
movaps %xmm0, 0x26286(%rip)    # 0x2a810
movaps %xmm0, 0x2626f(%rip)    # 0x2a800
movaps %xmm0, 0x26258(%rip)    # 0x2a7f0
movl $0x0, 0x262ce(%rip)     # 0x2a870
cmpq $0x0, 0x30(%r14)
jne 0x45d4
movq %r14, %rax
addq $0x30, %rax
movq 0x26229(%rip), %rcx     # 0x2a7e0
testq %rcx, %rcx
je 0x45ca
movq 0x30(%rcx), %rdx
addq $0x30, %rcx
movq %rdx, (%rax)
movq %rcx, %rax
movq %r14, (%rax)
movq %r14, 0x2620c(%rip)     # 0x2a7e0
leaq 0x2629d(%rip), %rax     # 0x2a878
movq (%rax), %rax
incl 0x7c(%rax)
jmp 0x3aea
movq %rbx, %rdi
callq 0x17960
movq %rax, %rdi
jmp 0x470c
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movq %rax, %r14
movq 0x18(%rbx), %rdi
jmp 0x47b5
movl $0x1, %edi
callq 0x17522
movl %eax, %ebp
movq %r14, %rdi
xorl %esi, %esi
movl %eax, %edx
callq 0x3a33
movq 0x18(%rbx), %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x3a33
movl %ebp, %edi
jmp 0x465e
movl $0x1, %edi
callq 0x17522
movl %eax, %r15d
movq %r14, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0x3a33
movq 0x18(%rbx), %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x3a33
movl %r15d, %edi
callq 0x4bc4
movq %rax, %r14
cmpl $0x0, 0x26203(%rip)     # 0x2a870
jle 0x3ea8
xorps %xmm0, %xmm0
movaps %xmm0, 0x261e3(%rip)    # 0x2a860
movaps %xmm0, 0x261cc(%rip)    # 0x2a850
movaps %xmm0, 0x261b5(%rip)    # 0x2a840
movaps %xmm0, 0x2619e(%rip)    # 0x2a830
movaps %xmm0, 0x26187(%rip)    # 0x2a820
movaps %xmm0, 0x26170(%rip)    # 0x2a810
movaps %xmm0, 0x26159(%rip)    # 0x2a800
movaps %xmm0, 0x26142(%rip)    # 0x2a7f0
movl $0x0, 0x261b8(%rip)     # 0x2a870
jmp 0x3ea8
cmpq $0x0, 0x18(%rbx)
je 0x470c
leaq 0x18(%rbx), %r14
jmp 0x46fe
cmpl $0xf, %ecx
jb 0x4758
movq 0x10(%r14), %r14
movl (%r14), %ecx
addl $-0x9, %ecx
cmpl $0x2, %ecx
jae 0x3aa9
jmp 0x4764
testq %rax, %rax
je 0x470c
leaq 0x18(%rbx), %r14
cmpl $0x10, %ecx
jne 0x4700
movq $0x0, 0x10(%rbx)
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movq (%r14), %rdi
movl %r15d, %esi
movl %ebp, %edx
jmp 0x4868
testl %ebp, %ebp
je 0x3cb6
cmpl $0x0, 0x28(%rbx)
jne 0x3cb6
movl %ebp, %edi
callq 0x4dac
testq %rax, %rax
je 0x3cb6
movq %rax, %r14
jmp 0x3ba1
movq 0x28(%rbx), %rsi
callq 0x16dcc
movl %r14d, %edi
xorl %esi, %esi
xorl %edx, %edx
movq %rax, %rcx
jmp 0x3ae2
addl $-0x9, %ecx
cmpl $0x1, %ecx
ja 0x3aa9
movq 0x18(%r14), %rcx
testb $0x2, 0x48(%rcx)
je 0x3aa9
jmp 0x44de
notl %ebp
leaq 0x2e858(%rip), %rax     # 0x32fd8
movq (%rax), %rsi
movl %ebp, %edi
callq 0x908f
movl $0x180, %edi            # imm = 0x180
jmp 0x47a7
leaq 0x2e840(%rip), %rax     # 0x32fd8
movq (%rax), %rsi
movl %ebp, %edi
callq 0x908f
movl $0x1a0, %edi            # imm = 0x1A0
movq %r15, %rsi
movq %rax, %rdx
callq 0x83cc
movq %rax, %rdi
xorl %r12d, %r12d
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movq %rax, %r15
movq 0x10(%rbx), %rax
movl $0xfffffef9, %ecx       # imm = 0xFFFFFEF9
addl (%rax), %ecx
cmpl $0x20, %ecx
ja 0x47f3
movabsq $0x100010001, %rdx      # imm = 0x100010001
btq %rcx, %rdx
jae 0x47f3
movq 0x28(%rax), %rax
xorl %r12d, %r12d
testb $0x8, 0x1b(%rax)
cmoveq %r14, %r12
movq %r12, %rdi
callq 0x4c7f
movl (%rbx), %edi
movq %r14, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x4e73
movq %rax, %r14
movq 0x8(%rbx), %rax
movl 0x8(%rax), %edi
callq 0x175d3
movq %rax, 0x8(%r14)
movq 0x8(%rbx), %rax
movswl 0x4(%rax), %edi
callq 0x175d3
movq %rax, 0x10(%r14)
cmpq $0x0, 0x30(%r14)
jne 0x4860
movq %r14, %rax
addq $0x30, %rax
movq 0x25f9d(%rip), %rcx     # 0x2a7e0
testq %rcx, %rcx
je 0x4856
movq 0x30(%rcx), %rdx
addq $0x30, %rcx
movq %rdx, (%rax)
movq %rcx, %rax
movq %r14, (%rax)
movq %r14, 0x25f80(%rip)     # 0x2a7e0
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
jmp 0x3ae7
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
movq %rax, %r14
movq 0x25f5b(%rip), %r12     # 0x2a7e0
testq %r12, %r12
je 0x48c4
movq %r12, %r13
movq 0x30(%r13), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x4e36
testl %eax, %eax
jne 0x48dd
movq %r15, %r13
cmpq %r12, %r15
jne 0x488d
testq %r14, %r14
je 0x48e9
cmpq $0x0, 0x30(%r14)
jne 0x48e9
movq 0x30(%r12), %rax
movq %rax, 0x30(%r14)
movq %r14, 0x30(%r12)
jmp 0x48d4
testq %r14, %r14
je 0x48e9
cmpq $0x0, 0x30(%r14)
jne 0x48e9
movq %r14, 0x30(%r14)
leaq 0x25f05(%rip), %r13     # 0x2a7e0
jmp 0x48e5
addq $0x30, %r13
movq %r15, 0x30(%r14)
movq %r14, (%r13)
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a33
jmp 0x3aea
leaq 0x19899(%rip), %rdi     # 0x1e19b
leaq 0x1984f(%rip), %rsi     # 0x1e158
leaq 0x1988d(%rip), %rcx     # 0x1e19d
movl $0x224, %edx            # imm = 0x224
callq 0x30d0
leaq 0x19865(%rip), %rdi     # 0x1e186
leaq 0x19830(%rip), %rsi     # 0x1e158
leaq 0x1986e(%rip), %rcx     # 0x1e19d
movl $0x1fc, %edx            # imm = 0x1FC
callq 0x30d0
leaq 0x19846(%rip), %rdi     # 0x1e186
leaq 0x19811(%rip), %rsi     # 0x1e158
leaq 0x1984f(%rip), %rcx     # 0x1e19d
movl $0x1ea, %edx            # imm = 0x1EA
callq 0x30d0
leaq 0x19885(%rip), %rdi     # 0x1e1e4
leaq 0x197f2(%rip), %rsi     # 0x1e158
leaq 0x19830(%rip), %rcx     # 0x1e19d
movl $0x196, %edx            # imm = 0x196
callq 0x30d0
leaq 0x198bd(%rip), %rdi     # 0x1e23b
leaq 0x197d3(%rip), %rsi     # 0x1e158
leaq 0x19811(%rip), %rcx     # 0x1e19d
movl $0x197, %edx            # imm = 0x197
callq 0x30d0
leaq 0x198b5(%rip), %rdi     # 0x1e252
leaq 0x197b4(%rip), %rsi     # 0x1e158
leaq 0x197f2(%rip), %rcx     # 0x1e19d
movl $0x199, %edx            # imm = 0x199
callq 0x30d0
leaq 0x197ca(%rip), %rdi     # 0x1e186
leaq 0x19795(%rip), %rsi     # 0x1e158
leaq 0x197d3(%rip), %rcx     # 0x1e19d
movl $0x21f, %edx            # imm = 0x21F
callq 0x30d0
leaq 0x19824(%rip), %rdi     # 0x1e1ff
leaq 0x19776(%rip), %rsi     # 0x1e158
leaq 0x197b4(%rip), %rcx     # 0x1e19d
movl $0x180, %edx            # imm = 0x180
callq 0x30d0
leaq 0x1978c(%rip), %rdi     # 0x1e186
leaq 0x19757(%rip), %rsi     # 0x1e158
leaq 0x19795(%rip), %rcx     # 0x1e19d
movl $0x171, %edx            # imm = 0x171
callq 0x30d0
leaq 0x1976d(%rip), %rdi     # 0x1e186
leaq 0x19738(%rip), %rsi     # 0x1e158
leaq 0x19776(%rip), %rcx     # 0x1e19d
movl $0x17a, %edx            # imm = 0x17A
callq 0x30d0
leaq 0x1974e(%rip), %rdi     # 0x1e186
leaq 0x19719(%rip), %rsi     # 0x1e158
leaq 0x19757(%rip), %rcx     # 0x1e19d
movl $0x217, %edx            # imm = 0x217
callq 0x30d0
leaq 0x1972f(%rip), %rdi     # 0x1e186
leaq 0x196fa(%rip), %rsi     # 0x1e158
leaq 0x19738(%rip), %rcx     # 0x1e19d
movl $0x1f5, %edx            # imm = 0x1F5
callq 0x30d0
leaq 0x19710(%rip), %rdi     # 0x1e186
leaq 0x196db(%rip), %rsi     # 0x1e158
leaq 0x19719(%rip), %rcx     # 0x1e19d
movl $0x187, %edx            # imm = 0x187
callq 0x30d0
leaq 0x19727(%rip), %rdi     # 0x1e1bc
leaq 0x196bc(%rip), %rsi     # 0x1e158
leaq 0x196fa(%rip), %rcx     # 0x1e19d
movl $0x145, %edx            # imm = 0x145
callq 0x30d0
leaq 0x196d2(%rip), %rdi     # 0x1e186
leaq 0x1969d(%rip), %rsi     # 0x1e158
leaq 0x196db(%rip), %rcx     # 0x1e19d
movl $0x1ac, %edx            # imm = 0x1AC
callq 0x30d0
leaq 0x196b3(%rip), %rdi     # 0x1e186
leaq 0x1967e(%rip), %rsi     # 0x1e158
leaq 0x196bc(%rip), %rcx     # 0x1e19d
movl $0x204, %edx            # imm = 0x204
callq 0x30d0
leaq 0x19694(%rip), %rdi     # 0x1e186
leaq 0x1965f(%rip), %rsi     # 0x1e158
leaq 0x1969d(%rip), %rcx     # 0x1e19d
movl $0x120, %edx            # imm = 0x120
callq 0x30d0
leaq 0x19675(%rip), %rdi     # 0x1e186
leaq 0x19640(%rip), %rsi     # 0x1e158
leaq 0x1967e(%rip), %rcx     # 0x1e19d
movl $0x20e, %edx            # imm = 0x20E
callq 0x30d0
leaq 0x196b4(%rip), %rdi     # 0x1e1e4
leaq 0x19621(%rip), %rsi     # 0x1e158
leaq 0x1965f(%rip), %rcx     # 0x1e19d
movl $0x172, %edx            # imm = 0x172
callq 0x30d0
leaq 0x196a4(%rip), %rdi     # 0x1e1f3
leaq 0x19602(%rip), %rsi     # 0x1e158
leaq 0x19640(%rip), %rcx     # 0x1e19d
movl $0x173, %edx            # imm = 0x173
callq 0x30d0
leaq 0x1c396(%rip), %rdi     # 0x20f04
leaq 0x195e3(%rip), %rsi     # 0x1e158
leaq 0x19621(%rip), %rcx     # 0x1e19d
movl $0x128, %edx            # imm = 0x128
callq 0x30d0
leaq 0x196cf(%rip), %rdi     # 0x1e25c
leaq 0x195c4(%rip), %rsi     # 0x1e158
leaq 0x19602(%rip), %rcx     # 0x1e19d
movl $0x1b0, %edx            # imm = 0x1B0
callq 0x30d0
leaq 0x1962a(%rip), %rdi     # 0x1e1d6
leaq 0x195a5(%rip), %rsi     # 0x1e158
leaq 0x195e3(%rip), %rcx     # 0x1e19d
movl $0x14b, %edx            # imm = 0x14B
callq 0x30d0