// File: /workspace/github_c_makefile_star2_O1/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
movl %edx, %ebp
movq %rdi, %rbx
leaq 0x1a61b(%rip), %rax     # 0x1e05c
testq %rbx, %rbx
je 0x41a8
movq 0x20(%rbx), %r14
testq %r14, %r14
jne 0x3adc
movl (%rbx), %r14d
leal -0x10(%r14), %ecx
shrl $0x4, %ecx
cmpl $0x2a, %ecx
ja 0x48d6
movl %esi, %r15d
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x10(%rbx), %rbx
movl %ebp, %esi
movl %r15d, %ebp
jmp 0x3a41
orl %r15d, %ebp
jne 0x48f5
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movl (%rbx), %edi
movq %rax, %rsi
xorl %edx, %edx
jmp 0x3ace
orl %r15d, %ebp
jne 0x4914
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movq %rax, %r14
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movl (%rbx), %edi
movq %r14, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x4daa
movq %rax, %r14
movq %r14, 0x20(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x28(%rbx)
jne 0x4933
leaq 0x25dac(%rip), %rax     # 0x298ac
movl (%rax), %eax
orl %r15d, %eax
orl %ebp, %eax
je 0x4952
movl %r14d, %r12d
andl $-0x10, %r12d
testl %ebp, %ebp
je 0x3b4d
testl %r15d, %r15d
jne 0x4971
leal -0x1e0(%r14), %eax
shrl $0x4, %eax
cmpl $0x5, %eax
ja 0x3b5a
leaq 0x1a5d1(%rip), %rcx     # 0x1e108
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
andl $0xf, %r14d
orl $0x230, %r14d           # imm = 0x230
jmp 0x3b57
testl %r15d, %r15d
cmovel %r12d, %r14d
movl %r15d, %ebp
movl %r14d, %r12d
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movq %rax, %r14
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movq %rax, %r15
movl %ebp, %edi
callq 0x17383
movl %r12d, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0x4e42
movq %rax, %r14
movq 0x8(%rax), %rax
incl 0x1c(%rax)
testq %r14, %r14
je 0x3ad8
cmpq $0x0, 0x30(%r14)
jne 0x3ad8
movq %r14, %rax
addq $0x30, %rax
movq 0x25c22(%rip), %rcx     # 0x297e0
testq %rcx, %rcx
je 0x3bd1
movq 0x30(%rcx), %rdx
addq $0x30, %rcx
movq %rdx, (%rax)
movq %rcx, %rax
movq %r14, (%rax)
movq %r14, 0x25c05(%rip)     # 0x297e0
jmp 0x3ad8
orl %r15d, %ebp
jne 0x4990
movq 0x28(%rbx), %rax
cmpw $0x2, 0x18(%rax)
jne 0x3bf7
incl 0x1c(%rax)
movq 0x28(%rbx), %rcx
movl %r14d, %edi
jmp 0x40a6
movq 0x10(%rbx), %r14
testl %r15d, %r15d
je 0x4661
movq %r14, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x3a2a
movq 0x18(%rbx), %rdi
movl %r15d, %esi
xorl %edx, %edx
jmp 0x3e7f
orl %r15d, %ebp
jne 0x49ce
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x3c42
callq 0x343c
cmpl $0x0, 0x25c27(%rip)     # 0x29870
jle 0x3c90
xorps %xmm0, %xmm0
movaps %xmm0, 0x25c0b(%rip)    # 0x29860
movaps %xmm0, 0x25bf4(%rip)    # 0x29850
movaps %xmm0, 0x25bdd(%rip)    # 0x29840
movaps %xmm0, 0x25bc6(%rip)    # 0x29830
movaps %xmm0, 0x25baf(%rip)    # 0x29820
movaps %xmm0, 0x25b98(%rip)    # 0x29810
movaps %xmm0, 0x25b81(%rip)    # 0x29800
movaps %xmm0, 0x25b6a(%rip)    # 0x297f0
movl $0x0, 0x25be0(%rip)     # 0x29870
movq 0x10(%rbx), %r15
movl $0x2, %edi
callq 0x1769a
movl %eax, %r14d
movq %r15, %rdi
xorl %esi, %esi
movl %eax, %edx
callq 0x3a2a
cmpl $0x0, 0x25bbc(%rip)     # 0x29870
jle 0x3cfb
xorps %xmm0, %xmm0
movaps %xmm0, 0x25ba0(%rip)    # 0x29860
movaps %xmm0, 0x25b89(%rip)    # 0x29850
movaps %xmm0, 0x25b72(%rip)    # 0x29840
movaps %xmm0, 0x25b5b(%rip)    # 0x29830
movaps %xmm0, 0x25b44(%rip)    # 0x29820
movaps %xmm0, 0x25b2d(%rip)    # 0x29810
movaps %xmm0, 0x25b16(%rip)    # 0x29800
movaps %xmm0, 0x25aff(%rip)    # 0x297f0
movl $0x0, 0x25b75(%rip)     # 0x29870
movq 0x18(%rbx), %r12
testq %r12, %r12
je 0x444b
cmpl $0x2a0, (%r12)          # imm = 0x2A0
jne 0x4b42
movq 0x10(%r12), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movq 0x25ab5(%rip), %rax     # 0x297e0
testq %rax, %rax
je 0x3d61
cmpl $0x258, (%rax)          # imm = 0x258
jne 0x3d61
movq 0x8(%rax), %r15
testq %r15, %r15
je 0x3d61
leal 0x1(%r14), %edi
callq 0x17383
movq %r15, %rdi
movq %rax, %rsi
callq 0x15109
movq 0x25a84(%rip), %rdi     # 0x297e0
callq 0x4d23
cmpl $0x0, 0x25b08(%rip)     # 0x29870
jle 0x3daf
xorps %xmm0, %xmm0
movaps %xmm0, 0x25aec(%rip)    # 0x29860
movaps %xmm0, 0x25ad5(%rip)    # 0x29850
movaps %xmm0, 0x25abe(%rip)    # 0x29840
movaps %xmm0, 0x25aa7(%rip)    # 0x29830
movaps %xmm0, 0x25a90(%rip)    # 0x29820
movaps %xmm0, 0x25a79(%rip)    # 0x29810
movaps %xmm0, 0x25a62(%rip)    # 0x29800
movaps %xmm0, 0x25a4b(%rip)    # 0x297f0
movl $0x0, 0x25ac1(%rip)     # 0x29870
cmpq $0x0, 0x18(%r12)
je 0x444b
leal 0x1(%r14), %ebp
movl %ebp, %edi
callq 0x4d7e
testq %rax, %rax
je 0x3dfd
cmpq $0x0, 0x30(%rax)
jne 0x3dfd
movq %rax, %rcx
addq $0x30, %rcx
movq 0x25a00(%rip), %rdx     # 0x297e0
testq %rdx, %rdx
je 0x3df3
movq 0x30(%rdx), %rsi
addq $0x30, %rdx
movq %rsi, (%rcx)
movq %rdx, %rcx
movq %rax, (%rcx)
movq %rax, 0x259e3(%rip)     # 0x297e0
movl %r14d, %edi
callq 0x4b9f
movq 0x18(%r12), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movq 0x259c6(%rip), %rax     # 0x297e0
testq %rax, %rax
je 0x4453
cmpl $0x258, (%rax)          # imm = 0x258
jne 0x4453
movq 0x8(%rax), %r15
testq %r15, %r15
je 0x4453
movl %ebp, %edi
callq 0x17383
movq %r15, %rdi
movq %rax, %rsi
callq 0x15109
movq 0x2598b(%rip), %rdi     # 0x297e0
callq 0x4d23
jmp 0x4453
movq 0x10(%rbx), %r14
testl %ebp, %ebp
je 0x468c
movq %r14, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x3a2a
movq 0x18(%rbx), %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x3a2a
jmp 0x46b9
orl %r15d, %ebp
je 0x3aa9
leaq 0x1a2ed(%rip), %rdi     # 0x1e186
leaq 0x1a2b8(%rip), %rsi     # 0x1e158
leaq 0x1a2f6(%rip), %rcx     # 0x1e19d
movl $0x1d2, %edx            # imm = 0x1D2
callq 0x30d0
orl %r15d, %ebp
jne 0x49ed
cmpq $0x0, 0x28(%rbx)
jne 0x4b04
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x4b23
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movl $0x248, %edi            # imm = 0x248
movq %rax, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4e42
movq %rax, %r14
cmpl $0x0, 0x2597a(%rip)     # 0x29870
jle 0x3b9c
xorps %xmm0, %xmm0
movaps %xmm0, 0x2595a(%rip)    # 0x29860
movaps %xmm0, 0x25943(%rip)    # 0x29850
movaps %xmm0, 0x2592c(%rip)    # 0x29840
movaps %xmm0, 0x25915(%rip)    # 0x29830
movaps %xmm0, 0x258fe(%rip)    # 0x29820
movaps %xmm0, 0x258e7(%rip)    # 0x29810
movaps %xmm0, 0x258d0(%rip)    # 0x29800
movaps %xmm0, 0x258b9(%rip)    # 0x297f0
movl $0x0, 0x2592f(%rip)     # 0x29870
jmp 0x3b9c
orl %r15d, %ebp
jne 0x4a0c
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movl (%rbx), %edi
movq %rax, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4e42
movq %rax, %r14
testq %rax, %rax
jne 0x3ba5
jmp 0x3ad8
movq 0x10(%rbx), %rdi
movq 0x8(%rdi), %r14
movl (%r14), %eax
movq %r14, %rcx
cmpl $0xf, %eax
jb 0x3f92
movq 0x10(%r14), %rcx
cmpl $0x7, (%rcx)
jne 0x3fa4
cmpl $0xf, %eax
jb 0x3fa0
movq 0x10(%r14), %r14
movq 0x10(%r14), %r14
orl %r15d, %ebp
jne 0x4a2b
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movl (%r14), %ecx
cmpl $0x10, %ecx
je 0x4000
cmpl $0x1f, %ecx
je 0x4000
movq %r14, %rdx
cmpl $0xf, %ecx
jb 0x3fcf
movq 0x10(%r14), %rdx
cmpl $0x9, (%rdx)
je 0x3fe9
movq %r14, %rdx
cmpl $0xf, %ecx
jb 0x3fe0
movq 0x10(%r14), %rdx
cmpl $0xa, (%rdx)
jne 0x3a97
cmpl $0xf, %ecx
jb 0x3ff2
movq 0x10(%r14), %r14
movq 0x18(%r14), %rcx
testb $0x2, 0x48(%rcx)
je 0x3a97
movl (%rbx), %edi
movq %rax, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4e42
jmp 0x3ad5
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x4047
movl (%rdi), %eax
andl $-0x10, %eax
cmpl $0x40, %eax
jne 0x4047
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x4047
movl (%rax), %ecx
andl $-0x10, %ecx
cmpl $0x30, %ecx
jne 0x4047
movq 0x10(%rdi), %rcx
cmpq 0x10(%rax), %rcx
je 0x484d
cmpq $0x0, 0x18(%rbx)
je 0x4642
testq %rdi, %rdi
je 0x4069
movl (%rdi), %eax
andl $-0x10, %eax
cmpl $0x10, %eax
jne 0x4069
movq $0x0, 0x10(%rbx)
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movq 0x18(%rbx), %rdi
jmp 0x4642
orl %r15d, %ebp
jne 0x4a4a
movq 0x28(%rbx), %rdi
testb $0x2, 0x1b(%rdi)
je 0x40a0
callq 0x343c
movq 0x28(%rbx), %rdi
callq 0x178a9
movl (%rbx), %edi
movq 0x28(%rbx), %rcx
xorl %esi, %esi
xorl %edx, %edx
jmp 0x3ad0
orl %r15d, %ebp
jne 0x4a69
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movq %rax, %r14
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movl (%rbx), %edi
movq %r14, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x4e42
movq %rax, %r14
leaq 0x2568a(%rip), %rax     # 0x29778
movq (%rax), %rcx
movl $0x88, (%rcx)
movq 0x8(%rcx), %rax
leaq 0x88(%rax), %rdx
cmpq 0x10(%rcx), %rdx
jae 0x4527
movq %rdx, 0x8(%rcx)
jmp 0x4538
orl %r15d, %ebp
jne 0x4a88
movq 0x18(%rbx), %rdi
xorl %r14d, %r14d
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movq 0x10(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movl (%rbx), %edi
movq %rax, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4e42
movq %rax, %r15
movq 0x8(%rbx), %rax
movl 0x8(%rax), %edi
callq 0x1774b
movq %rax, 0x8(%r15)
movq 0x8(%rbx), %rax
movswl 0x4(%rax), %edi
callq 0x1774b
movq %rax, 0x10(%r15)
testq %r15, %r15
je 0x3adc
cmpq $0x0, 0x30(%r15)
jne 0x41a8
movq %r15, %rax
addq $0x30, %rax
movq 0x25655(%rip), %rcx     # 0x297e0
testq %rcx, %rcx
je 0x419e
movq 0x30(%rcx), %rdx
addq $0x30, %rcx
movq %rdx, (%rax)
movq %rcx, %rax
movq %r15, (%rax)
movq %r15, 0x25638(%rip)     # 0x297e0
xorl %r14d, %r14d
jmp 0x3adc
movq 0x8(%rbx), %rdi
cmpl $0xf, (%rdi)
jb 0x41bd
movq 0x10(%rdi), %rdi
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x4aa7
testb $0x10, 0x1b(%rax)
jne 0x4637
movl %ebp, %eax
orl %r15d, %eax
je 0x4729
leaq 0x2ddb2(%rip), %rax     # 0x31f98
cmpq (%rax), %rdi
jne 0x4b80
testl %r15d, %r15d
je 0x4713
cmpl $0x0, 0x28(%rbx)
je 0x4713
movl %r15d, %edi
jmp 0x4843
orl %r15d, %ebp
je 0x3aa9
leaq 0x19f6c(%rip), %rdi     # 0x1e186
leaq 0x19f37(%rip), %rsi     # 0x1e158
leaq 0x19f75(%rip), %rcx     # 0x1e19d
movl $0x1de, %edx            # imm = 0x1DE
callq 0x30d0
orl %r15d, %ebp
jne 0x4ac6
movq 0x10(%rbx), %rdi
cmpl $0x2b0, (%rdi)          # imm = 0x2B0
jne 0x464c
movq 0x10(%rdi), %r15
movl (%r15), %eax
andl $-0x10, %eax
cmpl $0x40, %eax
jne 0x4b61
movq 0x28(%rdi), %r13
cmpl $0x0, 0x25607(%rip)     # 0x29870
jle 0x42b0
xorps %xmm0, %xmm0
movaps %xmm0, 0x255eb(%rip)    # 0x29860
movaps %xmm0, 0x255d4(%rip)    # 0x29850
movaps %xmm0, 0x255bd(%rip)    # 0x29840
movaps %xmm0, 0x255a6(%rip)    # 0x29830
movaps %xmm0, 0x2558f(%rip)    # 0x29820
movaps %xmm0, 0x25578(%rip)    # 0x29810
movaps %xmm0, 0x25561(%rip)    # 0x29800
movaps %xmm0, 0x2554a(%rip)    # 0x297f0
movl $0x0, 0x255c0(%rip)     # 0x29870
movq %r15, %rdi
callq 0xb339
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
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 0x4658
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 $0x15, %eax
jne 0x430d
cmpl $0x0, 0x28(%r12)
je 0x4741
cmpl $0x16, %eax
jne 0x431e
cmpl $0x0, 0x28(%r12)
je 0x4741
cmpl $0x15, %eax
jne 0x4333
movl 0x28(%r12), %ecx
orl %edx, %ecx
cmpl $-0x1, %ecx
je 0x475b
cmpl $0x16, %eax
jne 0x4346
orl 0x28(%r12), %edx
cmpl $-0x1, %edx
je 0x475b
movl %ebp, %edi
notl %edi
leaq 0x2dc87(%rip), %rax     # 0x31fd8
movq (%rax), %rsi
callq 0x9044
movl $0x180, %edi            # imm = 0x180
movq %r15, %rsi
movq %rax, %rdx
callq 0x8378
movq %rax, (%rsp)
leaq 0x2dc64(%rip), %r15     # 0x31fd8
movq (%r15), %rsi
movq %r12, %rdi
callq 0xa341
movq %rax, %r12
movswl 0x14(%r13), %edi
leaq 0x2dc0a(%rip), %rax     # 0x31f98
movq (%rax), %rsi
callq 0x9044
movl $0x150, %edi            # imm = 0x150
movq %r12, %rsi
movq %rax, %rdx
callq 0x8bd9
movq %rax, %r12
movq (%r15), %rsi
movl %ebp, %edi
callq 0x9044
movl $0x180, %edi            # imm = 0x180
movq %r12, %rsi
movq %rax, %rdx
callq 0x8378
movl $0x1a0, %edi            # imm = 0x1A0
movq (%rsp), %rsi
jmp 0x4774
orl %r15d, %ebp
jne 0x4ae5
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 0x2db9f(%rip), %r15     # 0x31f98
movq (%r15), %rsi
callq 0x9044
movl $0x150, %edi            # imm = 0x150
movq %r14, %rsi
movq %rax, %rdx
callq 0x8bd9
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 0x9044
movl $0x170, %edi            # imm = 0x170
movq %r14, %rsi
movq %rax, %rdx
callq 0x8bd9
jmp 0x44cc
movl %r14d, %edi
callq 0x4b9f
incl %r14d
movl %r14d, %edi
callq 0x4b9f
movq %rax, %r14
cmpl $0x0, 0x25408(%rip)     # 0x29870
jle 0x44af
xorps %xmm0, %xmm0
movaps %xmm0, 0x253ec(%rip)    # 0x29860
movaps %xmm0, 0x253d5(%rip)    # 0x29850
movaps %xmm0, 0x253be(%rip)    # 0x29840
movaps %xmm0, 0x253a7(%rip)    # 0x29830
movaps %xmm0, 0x25390(%rip)    # 0x29820
movaps %xmm0, 0x25379(%rip)    # 0x29810
movaps %xmm0, 0x25362(%rip)    # 0x29800
movaps %xmm0, 0x2534b(%rip)    # 0x297f0
movl $0x0, 0x253c1(%rip)     # 0x29870
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x3ad8
callq 0x9d77
movq 0x28(%rbx), %rcx
movl $0x0, 0x1c(%rcx)
movq %rax, %rdi
jmp 0x4833
orl $0x1f0, %r14d           # imm = 0x1F0
andl $0x1ff, %r14d           # imm = 0x1FF
jmp 0x3b57
andl $0xf, %r14d
orl $0x210, %r14d           # imm = 0x210
jmp 0x3b57
andl $0xf, %r14d
orl $0x200, %r14d           # imm = 0x200
jmp 0x3b57
andl $0xf, %r14d
orl $0x220, %r14d           # imm = 0x220
jmp 0x3b57
andl $0xf, %r14d
orl $0x1e0, %r14d           # imm = 0x1E0
jmp 0x3b57
leaq 0x2524a(%rip), %rsi     # 0x29778
movl $0x88, %edi
callq 0x17978
movq %rax, 0x8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x70(%rax)
movups %xmm0, 0x60(%rax)
movups %xmm0, 0x50(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq $0x0, 0x80(%rax)
movq 0x10(%rbx), %rcx
movq 0x8(%rcx), %rcx
cmpl $0xf, (%rcx)
movq %rcx, %rdx
jb 0x457d
movq 0x10(%rcx), %rdx
cmpl $0x7, (%rdx)
jne 0x49af
movq 0x10(%rcx), %rcx
cmpl $0xf, (%rcx)
movq %rcx, %rdx
jb 0x4596
movq 0x10(%rcx), %rdx
cmpl $0xb, (%rdx)
jne 0x49af
movq %rcx, 0x20(%rax)
cmpl $0x0, 0x252c6(%rip)     # 0x29870
jle 0x45ee
movaps %xmm0, 0x252ad(%rip)    # 0x29860
movaps %xmm0, 0x25296(%rip)    # 0x29850
movaps %xmm0, 0x2527f(%rip)    # 0x29840
movaps %xmm0, 0x25268(%rip)    # 0x29830
movaps %xmm0, 0x25251(%rip)    # 0x29820
movaps %xmm0, 0x2523a(%rip)    # 0x29810
movaps %xmm0, 0x25223(%rip)    # 0x29800
movaps %xmm0, 0x2520c(%rip)    # 0x297f0
movl $0x0, 0x25282(%rip)     # 0x29870
testq %r14, %r14
je 0x4625
cmpq $0x0, 0x30(%r14)
jne 0x4625
movq %r14, %rax
addq $0x30, %rax
movq 0x251d8(%rip), %rcx     # 0x297e0
testq %rcx, %rcx
je 0x461b
movq 0x30(%rcx), %rdx
addq $0x30, %rcx
movq %rdx, (%rax)
movq %rcx, %rax
movq %r14, (%rax)
movq %r14, 0x251bb(%rip)     # 0x297e0
leaq 0x2524c(%rip), %rax     # 0x29878
movq (%rax), %rax
incl 0x7c(%rax)
jmp 0x3ad8
movq %rbx, %rdi
callq 0x17ae1
movq %rax, %rdi
movl %r15d, %esi
movl %ebp, %edx
jmp 0x4837
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movq %rax, %r14
movq 0x18(%rbx), %rdi
jmp 0x477f
movl $0x1, %edi
callq 0x1769a
movl %eax, %r15d
movq %r14, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0x3a2a
movq 0x18(%rbx), %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x3a2a
movl %r15d, %edi
jmp 0x46b4
movl $0x1, %edi
callq 0x1769a
movl %eax, %ebp
movq %r14, %rdi
xorl %esi, %esi
movl %eax, %edx
callq 0x3a2a
movq 0x18(%rbx), %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x3a2a
movl %ebp, %edi
callq 0x4b9f
movq %rax, %r14
cmpl $0x0, 0x251ad(%rip)     # 0x29870
jle 0x3adc
xorps %xmm0, %xmm0
movaps %xmm0, 0x2518d(%rip)    # 0x29860
movaps %xmm0, 0x25176(%rip)    # 0x29850
movaps %xmm0, 0x2515f(%rip)    # 0x29840
movaps %xmm0, 0x25148(%rip)    # 0x29830
movaps %xmm0, 0x25131(%rip)    # 0x29820
movaps %xmm0, 0x2511a(%rip)    # 0x29810
movaps %xmm0, 0x25103(%rip)    # 0x29800
movaps %xmm0, 0x250ec(%rip)    # 0x297f0
movl $0x0, 0x25162(%rip)     # 0x29870
jmp 0x3adc
testl %ebp, %ebp
je 0x4721
cmpl $0x0, 0x28(%rbx)
je 0x4841
xorl %r14d, %r14d
jmp 0x3ad8
movq 0x28(%rbx), %rsi
callq 0x16eac
movl %r14d, %edi
xorl %esi, %esi
xorl %edx, %edx
movq %rax, %rcx
jmp 0x3ad0
notl %ebp
leaq 0x2d88e(%rip), %rax     # 0x31fd8
movq (%rax), %rsi
movl %ebp, %edi
callq 0x9044
movl $0x180, %edi            # imm = 0x180
jmp 0x4771
leaq 0x2d876(%rip), %rax     # 0x31fd8
movq (%rax), %rsi
movl %ebp, %edi
callq 0x9044
movl $0x1a0, %edi            # imm = 0x1A0
movq %r15, %rsi
movq %rax, %rdx
callq 0x8378
movq %rax, %rdi
xorl %r12d, %r12d
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movq %rax, %r15
movq 0x10(%rbx), %rax
movl $0xfffffef9, %ecx       # imm = 0xFFFFFEF9
addl (%rax), %ecx
cmpl $0x20, %ecx
ja 0x47bd
movabsq $0x100010001, %rdx      # imm = 0x100010001
btq %rcx, %rdx
jae 0x47bd
movq 0x28(%rax), %rax
xorl %r12d, %r12d
testb $0x8, 0x1b(%rax)
cmoveq %r14, %r12
movq %r12, %rdi
callq 0x4c52
movl (%rbx), %edi
movq %r14, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x4e42
movq %rax, %r14
movq 0x8(%rbx), %rax
movl 0x8(%rax), %edi
callq 0x1774b
movq %rax, 0x8(%r14)
movq 0x8(%rbx), %rax
movswl 0x4(%rax), %edi
callq 0x1774b
movq %rax, 0x10(%r14)
testq %r14, %r14
je 0x482f
cmpq $0x0, 0x30(%r14)
jne 0x482f
movq %r14, %rax
addq $0x30, %rax
movq 0x24fce(%rip), %rcx     # 0x297e0
testq %rcx, %rcx
je 0x4825
movq 0x30(%rcx), %rdx
addq $0x30, %rcx
movq %rdx, (%rax)
movq %rcx, %rax
movq %r14, (%rax)
movq %r14, 0x24fb1(%rip)     # 0x297e0
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
jmp 0x3ad5
movl %ebp, %edi
callq 0x4d7e
jmp 0x3f6a
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
movq %rax, %r14
movq 0x24f80(%rip), %r12     # 0x297e0
testq %r12, %r12
je 0x489f
movq %r12, %r13
movq 0x30(%r13), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x4e08
testl %eax, %eax
jne 0x48b8
movq %r15, %r13
cmpq %r12, %r15
jne 0x4868
testq %r14, %r14
je 0x48c4
cmpq $0x0, 0x30(%r14)
jne 0x48c4
movq 0x30(%r12), %rax
movq %rax, 0x30(%r14)
movq %r14, 0x30(%r12)
jmp 0x48af
testq %r14, %r14
je 0x48c4
cmpq $0x0, 0x30(%r14)
jne 0x48c4
movq %r14, 0x30(%r14)
leaq 0x24f2a(%rip), %r13     # 0x297e0
jmp 0x48c0
addq $0x30, %r13
movq %r15, 0x30(%r14)
movq %r14, (%r13)
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a2a
jmp 0x3ad8
leaq 0x198be(%rip), %rdi     # 0x1e19b
leaq 0x19874(%rip), %rsi     # 0x1e158
leaq 0x198b2(%rip), %rcx     # 0x1e19d
movl $0x224, %edx            # imm = 0x224
callq 0x30d0
leaq 0x1988a(%rip), %rdi     # 0x1e186
leaq 0x19855(%rip), %rsi     # 0x1e158
leaq 0x19893(%rip), %rcx     # 0x1e19d
movl $0x1fc, %edx            # imm = 0x1FC
callq 0x30d0
leaq 0x1986b(%rip), %rdi     # 0x1e186
leaq 0x19836(%rip), %rsi     # 0x1e158
leaq 0x19874(%rip), %rcx     # 0x1e19d
movl $0x1ea, %edx            # imm = 0x1EA
callq 0x30d0
leaq 0x198aa(%rip), %rdi     # 0x1e1e4
leaq 0x19817(%rip), %rsi     # 0x1e158
leaq 0x19855(%rip), %rcx     # 0x1e19d
movl $0x196, %edx            # imm = 0x196
callq 0x30d0
leaq 0x198e2(%rip), %rdi     # 0x1e23b
leaq 0x197f8(%rip), %rsi     # 0x1e158
leaq 0x19836(%rip), %rcx     # 0x1e19d
movl $0x197, %edx            # imm = 0x197
callq 0x30d0
leaq 0x198da(%rip), %rdi     # 0x1e252
leaq 0x197d9(%rip), %rsi     # 0x1e158
leaq 0x19817(%rip), %rcx     # 0x1e19d
movl $0x199, %edx            # imm = 0x199
callq 0x30d0
leaq 0x197ef(%rip), %rdi     # 0x1e186
leaq 0x197ba(%rip), %rsi     # 0x1e158
leaq 0x197f8(%rip), %rcx     # 0x1e19d
movl $0x21f, %edx            # imm = 0x21F
callq 0x30d0
leaq 0x19849(%rip), %rdi     # 0x1e1ff
leaq 0x1979b(%rip), %rsi     # 0x1e158
leaq 0x197d9(%rip), %rcx     # 0x1e19d
movl $0x180, %edx            # imm = 0x180
callq 0x30d0
leaq 0x197b1(%rip), %rdi     # 0x1e186
leaq 0x1977c(%rip), %rsi     # 0x1e158
leaq 0x197ba(%rip), %rcx     # 0x1e19d
movl $0x120, %edx            # imm = 0x120
callq 0x30d0
leaq 0x19792(%rip), %rdi     # 0x1e186
leaq 0x1975d(%rip), %rsi     # 0x1e158
leaq 0x1979b(%rip), %rcx     # 0x1e19d
movl $0x171, %edx            # imm = 0x171
callq 0x30d0
leaq 0x19773(%rip), %rdi     # 0x1e186
leaq 0x1973e(%rip), %rsi     # 0x1e158
leaq 0x1977c(%rip), %rcx     # 0x1e19d
movl $0x1f5, %edx            # imm = 0x1F5
callq 0x30d0
leaq 0x19754(%rip), %rdi     # 0x1e186
leaq 0x1971f(%rip), %rsi     # 0x1e158
leaq 0x1975d(%rip), %rcx     # 0x1e19d
movl $0x204, %edx            # imm = 0x204
callq 0x30d0
leaq 0x19735(%rip), %rdi     # 0x1e186
leaq 0x19700(%rip), %rsi     # 0x1e158
leaq 0x1973e(%rip), %rcx     # 0x1e19d
movl $0x217, %edx            # imm = 0x217
callq 0x30d0
leaq 0x19716(%rip), %rdi     # 0x1e186
leaq 0x196e1(%rip), %rsi     # 0x1e158
leaq 0x1971f(%rip), %rcx     # 0x1e19d
movl $0x17a, %edx            # imm = 0x17A
callq 0x30d0
leaq 0x196f7(%rip), %rdi     # 0x1e186
leaq 0x196c2(%rip), %rsi     # 0x1e158
leaq 0x19700(%rip), %rcx     # 0x1e19d
movl $0x187, %edx            # imm = 0x187
callq 0x30d0
leaq 0x1970e(%rip), %rdi     # 0x1e1bc
leaq 0x196a3(%rip), %rsi     # 0x1e158
leaq 0x196e1(%rip), %rcx     # 0x1e19d
movl $0x145, %edx            # imm = 0x145
callq 0x30d0
leaq 0x196b9(%rip), %rdi     # 0x1e186
leaq 0x19684(%rip), %rsi     # 0x1e158
leaq 0x196c2(%rip), %rcx     # 0x1e19d
movl $0x1ac, %edx            # imm = 0x1AC
callq 0x30d0
leaq 0x1969a(%rip), %rdi     # 0x1e186
leaq 0x19665(%rip), %rsi     # 0x1e158
leaq 0x196a3(%rip), %rcx     # 0x1e19d
movl $0x20e, %edx            # imm = 0x20E
callq 0x30d0
leaq 0x196d9(%rip), %rdi     # 0x1e1e4
leaq 0x19646(%rip), %rsi     # 0x1e158
leaq 0x19684(%rip), %rcx     # 0x1e19d
movl $0x172, %edx            # imm = 0x172
callq 0x30d0
leaq 0x196c9(%rip), %rdi     # 0x1e1f3
leaq 0x19627(%rip), %rsi     # 0x1e158
leaq 0x19665(%rip), %rcx     # 0x1e19d
movl $0x173, %edx            # imm = 0x173
callq 0x30d0
leaq 0x1c33b(%rip), %rdi     # 0x20e84
leaq 0x19608(%rip), %rsi     # 0x1e158
leaq 0x19646(%rip), %rcx     # 0x1e19d
movl $0x128, %edx            # imm = 0x128
callq 0x30d0
leaq 0x196f4(%rip), %rdi     # 0x1e25c
leaq 0x195e9(%rip), %rsi     # 0x1e158
leaq 0x19627(%rip), %rcx     # 0x1e19d
movl $0x1b0, %edx            # imm = 0x1B0
callq 0x30d0
leaq 0x1964f(%rip), %rdi     # 0x1e1d6
leaq 0x195ca(%rip), %rsi     # 0x1e158
leaq 0x19608(%rip), %rcx     # 0x1e19d
movl $0x14b, %edx            # imm = 0x14B
callq 0x30d0