// File: /workspace/github_c_makefile_star2_O0/oridb[P]mc/6/isel.c
// Function: selexpr
Loc *
selexpr(Isel *s, Node *n)
{
	Loc *a, *b, *c, *d, *r;
	Loc *edx, *cl; /* x86 wants some hard-coded regs */
	Node **args;
	size_t al;
	Op op;

	args = n->expr.args;
	edx = locphysreg(Redx);
	cl = locphysreg(Rcl);
	r = NULL;
	switch (exprop(n)) {
	case Oadd:	r = binop(s, Iadd, args[0], args[1]);	break;
	case Osub:	r = binop(s, Isub, args[0], args[1]);	break;
	case Oband:	r = binop(s, Iand, args[0], args[1]);	break;
	case Obxor:	r = binop(s, Ixor, args[0], args[1]);	break;
	case Obor:
		r = rolop(s, n, args[0], args[1]);
		if (!r)
			r = binop(s, Ior,  args[0], args[1]);
		break;
	case Omul:
		if (size(args[0]) == 1) {
			a = selexpr(s, args[0]);
			b = inr(s, selexpr(s, args[1]));

			c = locphysreg(Ral);
			r = locreg(a->mode);
			g(s, Imov, a, c, NULL);
			g(s, Iimul_r, b, NULL);
			g(s, Imov, c, r, NULL);
		} else {
			r = binop(s, Iimul, args[0], args[1]);
		}
		break;
	case Odiv:
	case Omod:
		/* these get clobbered by the div insn */
		a = selexpr(s, args[0]);
		b = selexpr(s, args[1]);
		b = newr(s, b);
		c = coreg(Reax, mode(n));
		r = locreg(a->mode);
		g(s, Imov, a, c, NULL);
		if (istysigned(exprtype(args[0]))) {
			switch (r->mode) {
			case ModeB:	g(s, Imovsx, c, coreg(Rrax, ModeW), NULL);	break;
			case ModeW:	g(s, Icwd, NULL);	break;
			case ModeL:	g(s, Icdq, NULL);	break;
			case ModeQ:	g(s, Icqo, NULL);	break;
			default:	die("invalid mode in division"); break;
			}
			g(s, Iidiv, b, NULL);
		} else {
			if (r->mode == ModeB)
				g(s, Ixor, locphysreg(Rah), locphysreg(Rah), NULL);
			else
				g(s, Ixor, edx, edx, NULL);
			g(s, Idiv, b, NULL);
		}
		if (exprop(n) == Odiv)
			d = coreg(Reax, mode(n));
		else if (r->mode != ModeB)
			d = coreg(Redx, mode(n));
		else
			d = locphysreg(Rah);
		g(s, Imov, d, r, NULL);
		break;
	case Oneg:
		r = selexpr(s, args[0]);
		r = newr(s, r);
		g(s, Ineg, r, NULL);
		break;

		/* fp expressions */
	case Ofadd:	r = binop(s, Iadds, args[0], args[1]);	break;
	case Ofsub:	r = binop(s, Isubs, args[0], args[1]);	break;
	case Ofmul:	r = binop(s, Imuls, args[0], args[1]);	break;
	case Ofdiv:	r = binop(s, Idivs, args[0], args[1]);	break;
	case Ofneg:
		r = selexpr(s, args[0]);
		r = newr(s, r);
		a = NULL;
		b = NULL;
		if (mode(args[0]) == ModeF) {
			a = locreg(ModeF);
			b = loclit(1LL << (31), ModeF);
			g(s, Imovs, r, a, NULL);
		} else if (mode(args[0]) == ModeD) {
			a = locreg(ModeQ);
			b = loclit(1LL << 63, ModeQ);
			g(s, Imov, r, a, NULL);
		}
		g(s, Ixor, b, a, NULL);
		g(s, Imov, a, r, NULL);
		break;
	case Obsl:
	case Obsr:
		a = newr(s, selexpr(s, args[0]));
		b = selexpr(s, args[1]);
		if (b->type == Loclit) {
			d = b;
		} else {
			c = coreg(Rcl, b->mode);
			g(s, Imov, b, c, NULL);
			d = cl;
		}
		if (exprop(n) == Obsr) {
			if (istysigned(n->expr.type))
				g(s, Isar, d, a, NULL);
			else
				g(s, Ishr, d, a, NULL);
		} else {
			g(s, Ishl, d, a, NULL);
		}
		r = a;
		break;
	case Obnot:
		r = selexpr(s, args[0]);
		r = newr(s, r);
		g(s, Inot, r, NULL);
		break;

	case Oderef:
		r = memloc(s, args[0], mode(n));
		break;

	case Oaddr:
		a = selexpr(s, args[0]);
		if (a->type == Loclbl || (a->type == Locmeml && !a->mem.base)) {
			r = loclitl(a->lbl);
		} else {
			r = locreg(ModeQ);
			g(s, Ilea, a, r, NULL);
		}
		break;

	case Olnot:
		a = newr(s, selexpr(s, args[0]));
		b = locreg(ModeB);
		r = locreg(mode(n));
		/* lnot only valid for integer-like values */
		g(s, reloptab[exprop(n)].test, a, a, NULL);
		g(s, reloptab[exprop(n)].getflag, b, NULL);
		movz(s, b, r);
		break;

	case Oeq: case One: case Ogt: case Oge: case Olt: case Ole:
	case Ofeq: case Ofne: case Ofgt: case Ofge: case Oflt: case Ofle:
	case Oueq: case Oune: case Ougt: case Ouge: case Oult: case Oule:
		a = selexpr(s, args[0]);
		b = selexpr(s, args[1]);
		a = newr(s, a);
		c = locreg(ModeB);
		r = locreg(mode(n));
		g(s, reloptab[exprop(n)].test, b, a, NULL);
		g(s, reloptab[exprop(n)].getflag, c, NULL);
		movz(s, c, r);
		return r;

	case Oasn:  /* relabel */
		die("Unimplemented op %s", opstr[exprop(n)]);
		break;
	case Oset:
		op = exprop(args[0]);
		assert(op == Ovar || op == Oderef || op == Ogap);
		assert(!stacknode(args[0]));

		if (op == Ogap)
			break;

		b = selexpr(s, args[1]);
		if (exprop(args[0]) == Oderef)
			a = memloc(s, args[0]->expr.args[0], mode(n));
		else
			a = selexpr(s, args[0]);
		b = inri(s, b);
		if (isfloatmode(b->mode))
			g(s, Imovs, b, a, NULL);
		else
			g(s, Imov, b, a, NULL);
		r = b;
		break;
	case Ocall:
	case Ocallind:
		gencall(s, n);
		break;
	case Oret:
		a = locstrlbl(s->cfg->end->lbls[0]);
		g(s, Ijmp, a, NULL);
		break;
	case Ojmp:
		g(s, Ijmp, loclbl(args[0]), NULL);
		break;
	case Ocjmp:
		selcjmp(s, n, args);
		break;
	case Ovjmp:
		selvjmp(s, n, args);
		break;
	case Oucon:
		assert(isenum(tybase(exprtype(n))));
		/* fallthrough */
	case Olit:
		r = loc(s, n);
		break;
	case Ovar:
		if (isconstfn(n)) {
			r = locreg(ModeQ);
			a = loc(s, n);
			g(s, Ilea, a, r, NULL);
		} else {
			r = loc(s, n);
		}
		break;
	case Ogap:
		break;
	case Oblit:
		a = selexpr(s, args[0]);
		r = selexpr(s, args[1]);
		al = alignto(1, args[0]->expr.type->sub[0]);
		blit(s, a, r, 0, 0, args[2]->expr.args[0]->lit.intval, al);
		break;

	case Oclear:
		a = selexpr(s, args[0]);
		clear(s, a, args[1]->expr.args[0]->lit.intval, 0);
		break;

		/* cast operators that actually modify the values */
	case Otrunc:
		a = selexpr(s, args[0]);
		a = inr(s, a);
		r = locreg(mode(n));
		g(s, Imov, a, r, NULL);
		break;
	case Ozwiden:
		a = selexpr(s, args[0]);
		a = inr(s, a);
		r = locreg(mode(n));
		movz(s, a, r);
		break;
	case Oswiden:
		a = selexpr(s, args[0]);
		a = inr(s, a);
		r = locreg(mode(n));
		g(s, Imovsx, a, r, NULL);
		break;
	case Oint2flt:
		a = selexpr(s, args[0]);
		a = inr(s ,a);
		r = locreg(mode(n));
		g(s, Icvttsi2sd, a, r, NULL);
		break;
	case Oflt2int:
		a = selexpr(s, args[0]);
		a = inr(s ,a);
		r = locreg(mode(n));
		g(s, Icvttsd2si, a, r, NULL);
		break;

	case Oflt2flt:
		a = selexpr(s, args[0]);
		r = locreg(mode(n));
		if (a->mode == ModeD)
			g(s, Icvttsd2ss, a, r, NULL);
		else
			g(s, Icvttss2sd, a, r, NULL);
		break;
	case Odead:
	case Oundef:
	case Odef:
		/* nothing */
		break;

		/* These operators should never show up in the reduced trees,
		 * since they should have been replaced with more primitive
		 * expressions by now */
	case Obad: case Oauto: case Opreinc: case Opostinc: case Opredec:
	case Otern: case Opostdec: 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 Omemb:
	case Oslbase: case Osllen: case Ocast: case Outag: case Oudata:
	case Otup: case Oarr: case Ostruct:
	case Oslice: case Oidx: case Osize: case Otupget: case Otupmemb:
	case Obreak: case Ocontinue:
	case Numops:
		dumpn(n, stdout);
		die("Should not see %s in isel", opstr[exprop(n)]);
		break;
	}
	return r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x58(%rbp)
movl $0x27, %edi
callq 0xffc0
movq %rax, -0x48(%rbp)
movl $0x2, %edi
callq 0xffc0
movq %rax, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2f210
movl %eax, %ecx
movq %rcx, -0x70(%rbp)
subl $0x60, %eax
ja 0xbbbc
movq -0x70(%rbp), %rax
leaq 0x417da(%rip), %rcx     # 0x4c330
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rdx
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rcx
movl $0x6, %esi
callq 0xbbe0
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rdx
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rcx
movl $0x7, %esi
callq 0xbbe0
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rdx
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rcx
movl $0x11, %esi
callq 0xbbe0
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rdx
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rcx
movl $0x13, %esi
callq 0xbbe0
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x58(%rbp), %rax
movq (%rax), %rdx
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rcx
callq 0xbc50
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0xac3f
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rdx
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rcx
movl $0x12, %esi
callq 0xbbe0
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x58(%rbp), %rax
movq (%rax), %rdi
callq 0x1c480
cmpq $0x1, %rax
jne 0xad09
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0xaaf0
movq -0x78(%rbp), %rdi
movq %rax, %rsi
callq 0xbf40
movq %rax, -0x28(%rbp)
movl $0x1, %edi
callq 0xffc0
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movl 0x4(%rax), %edi
callq 0xff10
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rdx
movl $0x9, %esi
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0xbf80
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq -0x40(%rbp), %rcx
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xad2a
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rdx
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rcx
movl $0x8, %esi
callq 0xbbe0
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0xaaf0
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xc070
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
callq 0xc110
movl %eax, %esi
movl $0x25, %edi
callq 0x10240
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movl 0x4(%rax), %edi
callq 0xff10
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
movq -0x58(%rbp), %rax
movq (%rax), %rdi
callq 0x30340
movq %rax, %rdi
callq 0x378a0
cmpl $0x0, %eax
je 0xaeae
movq -0x40(%rbp), %rax
movl 0x4(%rax), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x80(%rbp)
subl $0x3, %eax
ja 0xae83
movq -0x80(%rbp), %rax
leaq 0x416c5(%rip), %rcx     # 0x4c4b4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x88(%rbp)
movl $0x35, %edi
movl $0x2, %esi
callq 0x10240
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rdx
movq %rax, %rcx
movl $0x4, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xae91
movq -0x10(%rbp), %rdi
movl $0xd, %esi
xorl %eax, %eax
movl %eax, %edx
movb $0x0, %al
callq 0xbf80
jmp 0xae91
movq -0x10(%rbp), %rdi
movl $0xe, %esi
xorl %eax, %eax
movl %eax, %edx
movb $0x0, %al
callq 0xbf80
jmp 0xae91
movq -0x10(%rbp), %rdi
movl $0xf, %esi
xorl %eax, %eax
movl %eax, %edx
movb $0x0, %al
callq 0xbf80
jmp 0xae91
leaq 0x417b6(%rip), %rdi     # 0x4c640
movb $0x0, %al
callq 0x1df20
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rdx
movl $0xc, %esi
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0xbf80
jmp 0xaf37
movq -0x40(%rbp), %rax
cmpl $0x1, 0x4(%rax)
jne 0xaf02
movq -0x10(%rbp), %rax
movq %rax, -0xa0(%rbp)
movl $0x11, %edi
callq 0xffc0
movq %rax, -0x98(%rbp)
movl $0x11, %edi
callq 0xffc0
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rdx
movq %rax, %rcx
movl $0x13, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xaf1f
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rdx
movq -0x48(%rbp), %rcx
movl $0x13, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rdx
movl $0xb, %esi
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0xbf80
movq -0x18(%rbp), %rdi
callq 0x2f210
cmpl $0x5, %eax
jne 0xaf60
movq -0x18(%rbp), %rdi
callq 0xc110
movl %eax, %esi
movl $0x25, %edi
callq 0x10240
movq %rax, -0x38(%rbp)
jmp 0xaf95
movq -0x40(%rbp), %rax
cmpl $0x1, 0x4(%rax)
je 0xaf85
movq -0x18(%rbp), %rdi
callq 0xc110
movl %eax, %esi
movl $0x27, %edi
callq 0x10240
movq %rax, -0x38(%rbp)
jmp 0xaf93
movl $0x11, %edi
callq 0xffc0
movq %rax, -0x38(%rbp)
jmp 0xaf95
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %rcx
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0xc070
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rdx
movl $0x10, %esi
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0xbf80
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rdx
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rcx
movl $0x2c, %esi
callq 0xbbe0
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rdx
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rcx
movl $0x2d, %esi
callq 0xbbe0
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rdx
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rcx
movl $0x2e, %esi
callq 0xbbe0
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rdx
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rcx
movl $0x2f, %esi
callq 0xbbe0
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0xc070
movq %rax, -0x40(%rbp)
movq $0x0, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x58(%rbp), %rax
movq (%rax), %rdi
callq 0xc110
cmpl $0x5, %eax
jne 0xb117
movl $0x5, %edi
callq 0xff10
movq %rax, -0x20(%rbp)
movl $0x80000000, %edi       # imm = 0x80000000
movl $0x5, %esi
callq 0x101f0
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl $0x27, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xb16d
movq -0x58(%rbp), %rax
movq (%rax), %rdi
callq 0xc110
cmpl $0x6, %eax
jne 0xb16b
movl $0x4, %edi
callq 0xff10
movq %rax, -0x20(%rbp)
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
movl $0x4, %esi
callq 0x101f0
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xb16d
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl $0x13, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x40(%rbp), %rcx
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xbbbc
movq -0x10(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq -0xa8(%rbp), %rdi
movq %rax, %rsi
callq 0xc070
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0xaaf0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpl $0x5, (%rax)
jne 0xb202
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0xb23c
movq -0x28(%rbp), %rax
movl 0x4(%rax), %esi
movl $0x2, %edi
callq 0x10240
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2f210
cmpl $0xc, %eax
jne 0xb29a
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x378a0
cmpl $0x0, %eax
je 0xb27b
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl $0x16, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xb298
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl $0x17, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xb2b7
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl $0x15, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0xc070
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rdx
movl $0x14, %esi
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0xbf80
jmp 0xbbbc
movq -0x10(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x58(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rdi
callq 0xc110
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movl %eax, %edx
callq 0xc170
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x1, (%rax)
je 0xb377
movq -0x20(%rbp), %rax
cmpl $0x4, (%rax)
jne 0xb38a
movq -0x20(%rbp), %rax
cmpq $0x0, 0x28(%rax)
jne 0xb38a
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xfdf0
movq %rax, -0x40(%rbp)
jmp 0xb3b5
movl $0x4, %edi
callq 0xff10
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x40(%rbp), %rcx
movl $0x5, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xbbbc
movq -0x10(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq -0xd0(%rbp), %rdi
movq %rax, %rsi
callq 0xc070
movq %rax, -0x20(%rbp)
movl $0x1, %edi
callq 0xff10
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
callq 0xc110
movl %eax, %edi
callq 0xff10
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2f210
movq -0xc8(%rbp), %rdi
movl %eax, %eax
movl %eax, %ecx
leaq 0x54950(%rip), %rax     # 0x5fd80
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %esi
movq -0x20(%rbp), %rdx
movq -0x20(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
movq -0x10(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2f210
movq -0xc0(%rbp), %rdi
movl %eax, %eax
movl %eax, %ecx
leaq 0x5490d(%rip), %rax     # 0x5fd80
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
movq -0x28(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0xbf80
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0xc300
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0xaaf0
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0xc070
movq %rax, -0x20(%rbp)
movl $0x1, %edi
callq 0xff10
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
callq 0xc110
movl %eax, %edi
callq 0xff10
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2f210
movq -0xe0(%rbp), %rdi
movl %eax, %eax
movl %eax, %ecx
leaq 0x5485c(%rip), %rax     # 0x5fd80
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %esi
movq -0x28(%rbp), %rdx
movq -0x20(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
movq -0x10(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2f210
movq -0xd8(%rbp), %rdi
movl %eax, %eax
movl %eax, %ecx
leaq 0x54819(%rip), %rax     # 0x5fd80
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
movq -0x30(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0xbf80
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0xc300
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xbbc4
movq -0x18(%rbp), %rdi
callq 0x2f210
movl %eax, %eax
movl %eax, %ecx
leaq 0x7090e(%rip), %rax     # 0x7bec0
movq (%rax,%rcx,8), %rsi
leaq 0x4109c(%rip), %rdi     # 0x4c659
movb $0x0, %al
callq 0x1df20
movq -0x58(%rbp), %rax
movq (%rax), %rdi
callq 0x2f210
movl %eax, -0x64(%rbp)
cmpl $0x33, -0x64(%rbp)
je 0xb5e5
cmpl $0x13, -0x64(%rbp)
je 0xb5e5
cmpl $0x34, -0x64(%rbp)
jne 0xb5e7
jmp 0xb606
leaq 0x4107f(%rip), %rdi     # 0x4c66d
leaq 0x410a1(%rip), %rsi     # 0x4c696
movl $0x41f, %edx            # imm = 0x41F
leaq 0x4109c(%rip), %rcx     # 0x4c69d
callq 0x6160
movq -0x58(%rbp), %rax
movq (%rax), %rdi
callq 0x167b0
cmpl $0x0, %eax
jne 0xb619
jmp 0xb638
leaq 0x4109a(%rip), %rdi     # 0x4c6ba
leaq 0x4106f(%rip), %rsi     # 0x4c696
movl $0x420, %edx            # imm = 0x420
leaq 0x4106a(%rip), %rcx     # 0x4c69d
callq 0x6160
cmpl $0x34, -0x64(%rbp)
jne 0xb643
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0xaaf0
movq %rax, -0x28(%rbp)
movq -0x58(%rbp), %rax
movq (%rax), %rdi
callq 0x2f210
cmpl $0x13, %eax
jne 0xb6ad
movq -0x10(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x58(%rbp), %rax
movq (%rax), %rax
movq 0x50(%rax), %rax
movq (%rax), %rax
movq %rax, -0xe8(%rbp)
movq -0x18(%rbp), %rdi
callq 0xc110
movq -0xf0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
movl %eax, %edx
callq 0xc170
movq %rax, -0x20(%rbp)
jmp 0xb6c1
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xc370
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl 0x4(%rax), %edi
callq 0xfd70
cmpl $0x0, %eax
je 0xb702
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl $0x27, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xb71f
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xc3c0
jmp 0xbbbc
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
callq 0xfda0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movl $0x34, %esi
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0xbf80
jmp 0xbbbc
movq -0x10(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x58(%rbp), %rax
movq (%rax), %rdi
callq 0xfe40
movq -0xf8(%rbp), %rdi
movq %rax, %rdx
movl $0x34, %esi
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0xbf80
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x58(%rbp), %rdx
callq 0xd3d0
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x58(%rbp), %rdx
callq 0xd550
jmp 0xbbbc
movq -0x18(%rbp), %rdi
callq 0x30340
movq %rax, %rdi
callq 0x36a30
movq %rax, %rdi
callq 0x36ab0
cmpl $0x0, %eax
je 0xb7f9
jmp 0xb818
leaq 0x40ece(%rip), %rdi     # 0x4c6ce
leaq 0x40e8f(%rip), %rsi     # 0x4c696
movl $0x443, %edx            # imm = 0x443
leaq 0x40e8a(%rip), %rcx     # 0x4c69d
callq 0x6160
jmp 0xb81a
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xd570
movq %rax, -0x40(%rbp)
jmp 0xbbbc
movq -0x18(%rbp), %rdi
callq 0x41010
cmpl $0x0, %eax
je 0xb87c
movl $0x4, %edi
callq 0xff10
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xd570
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x40(%rbp), %rcx
movl $0x5, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xb88d
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xd570
movq %rax, -0x40(%rbp)
jmp 0xbbbc
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0xaaf0
movq %rax, -0x40(%rbp)
movq -0x58(%rbp), %rax
movq (%rax), %rax
movq 0x20(%rax), %rax
movq 0x68(%rax), %rax
movq (%rax), %rsi
movl $0x1, %edi
callq 0x16770
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x58(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x50(%rax), %rax
movq (%rax), %rax
movq 0x30(%rax), %r9
movq -0x60(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %r8d
movq %r8, %rcx
movq %rax, (%rsp)
callq 0xd740
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x50(%rax), %rax
movq (%rax), %rax
movq 0x30(%rax), %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0xd8e0
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0xbf40
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0xc110
movl %eax, %edi
callq 0xff10
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x40(%rbp), %rcx
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0xbf40
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0xc110
movl %eax, %edi
callq 0xff10
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0xc300
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0xbf40
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0xc110
movl %eax, %edi
callq 0xff10
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x40(%rbp), %rcx
movl $0x4, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0xbf40
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0xc110
movl %eax, %edi
callq 0xff10
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x40(%rbp), %rcx
movl $0x29, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0xbf40
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0xc110
movl %eax, %edi
callq 0xff10
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x40(%rbp), %rcx
movl $0x28, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xbbbc
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rax
movq (%rax), %rsi
callq 0xaaf0
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0xc110
movl %eax, %edi
callq 0xff10
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x6, 0x4(%rax)
jne 0xbb62
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x40(%rbp), %rcx
movl $0x2a, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xbb7f
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x40(%rbp), %rcx
movl $0x2b, %esi
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xbf80
jmp 0xbbbc
jmp 0xbbbc
movq -0x18(%rbp), %rdi
movq 0x53442(%rip), %rax     # 0x5efd0
movq (%rax), %rsi
callq 0x1de90
movq -0x18(%rbp), %rdi
callq 0x2f210
movl %eax, %eax
movl %eax, %ecx
leaq 0x70316(%rip), %rax     # 0x7bec0
movq (%rax,%rcx,8), %rsi
leaq 0x40b35(%rip), %rdi     # 0x4c6ea
movb $0x0, %al
callq 0x1df20
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopw %cs:(%rax,%rax)