// File: /workspace/github_c_makefile_star2_O0/aap[P]pdp11/kd11b.c
// Function: step
void
step(KD11B *cpu)
{
	uint by;
	uint br;
	uint b;
	uint c;
	uint src, dst, sf, df, dm;
	word mask, sign;
	int inhov;
	byte oldpsw;

//	trace("fetch from %06o\n", cpu->r[7]);
//	printstate(cpu);

#define SR_N	010
#define DR_N	011
#define SP	cpu->r[6]
#define PC	cpu->r[7]
#define SR	cpu->r[SR_N]
#define DR	cpu->r[DR_N]
#define TV	cpu->r[012]
#define BA	cpu->ba
#define PSW	cpu->psw
#define RD_B(p)	if(readop(cpu, SR_N, src, by, 0)) goto be; if(readop(cpu, DR_N, dst, by, p)) goto be
#define RD_U(p)	if(readop(cpu, DR_N, dst, by, p)) goto be; SR = DR
#define WR	if(writedest(cpu, b, by)) goto be
#define NZ	setnz(cpu, b)
#define SVC	goto service
#define TRAP(v)	TV = v; goto trap
#define CLV	cpu->psw &= ~PSW_V
#define CLCV	cpu->psw &= ~(PSW_V|PSW_C)
#define SEV	cpu->psw |= PSW_V
#define SEC	cpu->psw |= PSW_C
#define C	if(b & 0200000) SEC
#define NC	if((b & 0200000) == 0) SEC
#define BXT	if(by) b = sxt(b)
#define BR	PC += br
#define CBR(c)	if(((c)>>(cpu->psw&017)) & 1) BR
#define PUSH	SP -= 2; if(!inhov && (SP&~0377) == 0) cpu->traps |= TRAP_STACK
#define POP	SP += 2
#define OUT(a,d)	cpu->ba = (a); cpu->bus->data = (d); if(dato(cpu, 0)) goto be
#define IN(d)	if(dati(cpu, 0, 0)) goto be; d = cpu->bus->data
#define INA(a,d)	cpu->ba = a; if(dati(cpu, 0, 0)) goto be; d = cpu->bus->data
#define TR(m)	trace("%06o "#m"\n", PC-2)
#define TRB(m)	trace("%06o "#m"%s\n", PC-2, by ? "B" : "")

	oldpsw = PSW;

	cpu->ba = PC;
	PC += 2;	/* increment even on bus error */
	IN(cpu->ir);

	by = !!(cpu->ir&B15);
	br = sxt(cpu->ir)<<1;
	src = cpu->ir>>6 & 077;
	sf = src & 7;
	dst = cpu->ir & 077;
	df = dst & 7;
	dm = dst>>3 & 7;
	if(by || (cpu->ir&0077700) == 0300)
		mask = M8, sign = B7;
	else
		mask = M16, sign = B15;

	inhov = 0;
	/* Binary */
	switch(cpu->ir & 0170000){
	case 0110000: case 0010000:	TRB(MOV);
		if(readop(cpu, SR_N, src, by, 0)) goto be;
		if(addrop(cpu, dst, by)) goto be;
		if(dm && fetchop(cpu, DR_N, dst, by, 1)) goto be;
		CLV;
		b = SR; NZ;
		if(dm==0) cpu->r[df] = SR;
		else writedest(cpu, SR, by);
		SVC;
	case 0120000: case 0020000:	TRB(CMP);
		RD_B(0); CLCV;
		b = SR + W(~DR) + 1; NC; BXT;
		if(sgn((SR ^ DR) & ~(DR ^ b))) SEV;
		NZ; SVC;
	case 0130000: case 0030000:	TRB(BIT);
		RD_B(0); CLV;
		b = DR & SR;
		NZ; SVC;
	case 0140000: case 0040000:	TRB(BIC);
		RD_B(1); CLV;
		b = DR & ~SR;
		NZ; WR; SVC;
	case 0150000: case 0050000:	TRB(BIS);
		RD_B(1); CLV;
		b = DR | SR;
		NZ; WR; SVC;
	case 0060000:			TR(ADD);
		by = 0; RD_B(1); CLCV;
		b = SR + DR; C;
		if(sgn(~(SR ^ DR) & (DR ^ b))) SEV;
		NZ; WR; SVC;
	case 0160000:			TR(SUB);
		by = 0; RD_B(1); CLCV;
		b = DR + W(~SR) + 1; NC;
		if(sgn((SR ^ DR) & (DR ^ b))) SEV;
		NZ; WR; SVC;

	/* Reserved instructions */
	case 0170000: case 0070000: goto ri;
	}

	/* Unary */
	switch(cpu->ir & 0007700){
	case 0005000:	TRB(CLR);
		RD_U(1); CLCV;
		b = 0;
		NZ; WR; SVC;
	case 0005100:	TRB(COM);
		RD_U(1); CLV; SEC;
		b = W(~SR);
		NZ; WR; SVC;
	case 0005200:	TRB(INC);
		RD_U(1); CLV;
		b = W(SR+1); BXT;
		if(sgn(~SR&b)) SEV;
		NZ; WR; SVC;
	case 0005300:	TRB(DEC);
		RD_U(1); CLV;
		b = W(SR+~0); BXT;
		if(sgn(SR&~b)) SEV;
		NZ; WR; SVC;
	case 0005400:	TRB(NEG);
		RD_U(1); CLCV;
		b = W(~SR+1); BXT; if(b) SEC;
		if(sgn(b&SR)) SEV;
		NZ; WR; SVC;
	case 0005500:	TRB(ADC);
		RD_U(1); c = ISSET(PSW_C); CLCV;
		b = SR + c; C; BXT;
		if(sgn(~SR&b)) SEV;
		NZ; WR; SVC;
	case 0005600:	TRB(SBC);
		RD_U(1); c = !ISSET(PSW_C)-1; CLCV;
		b = W(SR+c); if(c && SR == 0) SEC; BXT;
		if(sgn(SR&~b)) SEV;
		NZ; WR; SVC;
	case 0005700:	TRB(TST);
		RD_U(0); CLCV;
		b = SR;
		NZ; SVC;

	case 0006000:	TRB(ROR);
		RD_U(1); c = ISSET(PSW_C); CLCV;
		b = (SR&mask) >> 1; if(c) b |= sign; if(SR & 1) SEC; BXT;
		if((PSW>>3^PSW)&1) SEV;
		NZ; WR; SVC;
	case 0006100:	TRB(ROL);
		RD_U(1); c = ISSET(PSW_C); CLCV;
		b = (SR<<1) & mask; if(c) b |= 1; if(SR & B15) SEC; BXT;
		if((PSW>>3^PSW)&1) SEV;
		NZ; WR; SVC;
	case 0006200:	TRB(ASR);
		RD_U(1); c = ISSET(PSW_C); CLCV;
		b = W(SR>>1) | SR&B15; if(SR & 1) SEC; BXT;
		if((PSW>>3^PSW)&1) SEV;
		NZ; WR; SVC;
	case 0006300:	TRB(ASL);
		RD_U(1); CLCV;
		b = W(SR<<1); if(SR & B15) SEC; BXT;
		if((PSW>>3^PSW)&1) SEV;
		NZ; WR; SVC;

	case 0006400:
	case 0006500:
	case 0006600:
	case 0006700:
		goto ri;

	}

	switch(cpu->ir & 0107400){
	/* Branches */
	case 0000400:	TR(BR); BR; SVC;
	case 0001000:	TR(BNE); CBR(0x0F0F); SVC;
	case 0001400:	TR(BEQ); CBR(0xF0F0); SVC;
	case 0002000:	TR(BGE); CBR(0xCC33); SVC;
	case 0002400:	TR(BLT); CBR(0x33CC); SVC;
	case 0003000:	TR(BGT); CBR(0x0C03); SVC;
	case 0003400:	TR(BLE); CBR(0xF3FC); SVC;
	case 0100000:	TR(BPL); CBR(0x00FF); SVC;
	case 0100400:	TR(BMI); CBR(0xFF00); SVC;
	case 0101000:	TR(BHI); CBR(0x0505); SVC;
	case 0101400:	TR(BLOS); CBR(0xFAFA); SVC;
	case 0102000:	TR(BVC); CBR(0x3333); SVC;
	case 0102400:	TR(BVS); CBR(0xCCCC); SVC;
	case 0103000:	TR(BCC); CBR(0x5555); SVC;
	case 0103400:	TR(BCS); CBR(0xAAAA); SVC;

	case 0004000:
	case 0004400:	TR(JSR);
		if(dm == 0) goto ill;
		if(addrop(cpu, dst, 0)) goto be;
		if(dati(cpu, 0, 0)) goto be;
		DR = cpu->b;
		PUSH; OUT(SP, cpu->r[sf]);
		cpu->r[sf] = PC; PC = DR;
		SVC;
	case 0104000:	TR(EMT); TRAP(030);
	case 0104400:	TR(TRAP); TRAP(034);
	case 0007000:
	case 0007400:
	case 0107000:
	case 0107400:
		goto ri;
	}

	// Hope we caught all instructions we meant to
	assert((cpu->ir & 0177400) == 0);

	/* Misc */
	switch(cpu->ir & 0300){
	case 0100:	TR(JMP);
		if(dm == 0) goto ill;
		if(addrop(cpu, dst, 0)) goto be;
		if(dati(cpu, 0, 0)) goto be;
		PC = cpu->b;
		SVC;
	case 0200:
	switch(cpu->ir&070){
	case 000:	TR(RTS);
		BA = SP; POP;
		PC = cpu->r[df];
		IN(cpu->r[df]);
		SVC;
	case 010: case 020: case 030:
		goto ri;
	case 040: case 050:	TR(CCC); PSW &= ~(cpu->ir&017); SVC;
	case 060: case 070:	TR(SEC); PSW |= cpu->ir&017; SVC;
	}
	case 0300:	TR(SWAB);
		if(readop(cpu, DR_N, dst, by, 1)) goto be;
		CLCV;
		b = WD(DR & 0377, (DR>>8) & 0377);
		NZ; WR; SVC;
	}

	/* Operate */
	switch(cpu->ir & 7){
	case 0:	TR(HALT); cpu->state = STATE_HALTED; return;
	case 1:	TR(WAIT); cpu->state = STATE_WAITING; SVC;
	case 2:	TR(RTI);
		BA = SP; POP; IN(PC);
		BA = SP; POP; IN(PSW);
		SVC;
	case 3:	TR(BPT); TRAP(014);
	case 4:	TR(IOT); TRAP(020);
	case 5:	TR(RESET); reset(cpu); SVC;
	}

	// All other instructions should be reserved now

ri:	TRAP(010);
ill:	TRAP(4);
be:	if(cpu->be > 1){
		printf("double bus error, HALT\n");
		cpu->state = STATE_HALTED;
		return;
	}
printf("bus error\n");
	TRAP(4);

trap:
	trace("TRAP %o\n", TV);
	PUSH; OUT(SP, PSW);
	PUSH; OUT(SP, PC);
	INA(TV, PC);
	INA(TV+2, PSW);
	/* no trace trap after a trap */
	oldpsw = PSW;

	tracestate(cpu);
	SVC;

service:
	c = PSW >> 5;
	if(oldpsw & PSW_T){
		oldpsw &= ~PSW_T;
		TRAP(014);
	}else if(cpu->traps & TRAP_STACK){
		cpu->traps &= ~TRAP_STACK;
		inhov = 1;
		TRAP(4);
	}else if(cpu->traps & TRAP_PWR){
		cpu->traps &= ~TRAP_PWR;
		TRAP(024);
	}else if(c < 7 && cpu->traps & TRAP_BR7){
		cpu->traps &= ~TRAP_BR7;
		TRAP(cpu->br[3].bg(cpu->br[3].dev));
	}else if(c < 6 && cpu->traps & TRAP_BR6){
		cpu->traps &= ~TRAP_BR6;
		TRAP(cpu->br[2].bg(cpu->br[2].dev));
	}else if(c < 6 && cpu->traps & TRAP_CLK){
		cpu->traps &= ~TRAP_CLK;
		cpu->lc_int = 0;
		TRAP(0100);
	}else if(c < 5 && cpu->traps & TRAP_BR5){
		cpu->traps &= ~TRAP_BR5;
		TRAP(cpu->br[1].bg(cpu->br[1].dev));
	}else if(c < 4 && cpu->traps & TRAP_BR4){
		cpu->traps &= ~TRAP_BR4;
		TRAP(cpu->br[0].bg(cpu->br[0].dev));
	}else if(c < 4 && cpu->traps & TRAP_RX){
		cpu->traps &= ~TRAP_RX;
		cpu->rcd_int = 0;
		TRAP(060);
	}else if(c < 4 && cpu->traps & TRAP_TX){
		cpu->traps &= ~TRAP_TX;
		cpu->xmit_int = 0;
		TRAP(064);
	}else
	// TODO? console stop
		/* fetch next instruction */
		return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movb 0x30(%rax), %al
movb %al, -0x35(%rbp)
movq -0x8(%rbp), %rax
movw 0xe(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x22(%rax)
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl $0x2, %ecx
movw %cx, 0xe(%rax)
movq -0x8(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x1eb0
cmpl $0x0, %eax
je 0x267c
jmp 0x40e8
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movw 0xc(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x24(%rax)
movq -0x8(%rbp), %rax
movzwl 0x24(%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movw 0x24(%rax), %ax
movzbl %al, %edi
callq 0x1570
movzwl %ax, %eax
shll %eax
movl %eax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x24(%rax), %eax
sarl $0x6, %eax
andl $0x3f, %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
andl $0x7, %eax
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x24(%rax), %eax
andl $0x3f, %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
andl $0x7, %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %eax
shrl $0x3, %eax
andl $0x7, %eax
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0xc(%rbp)
jne 0x271e
movq -0x8(%rbp), %rax
movzwl 0x24(%rax), %eax
andl $0x7fc0, %eax           # imm = 0x7FC0
cmpl $0xc0, %eax
jne 0x272c
movw $0xff, -0x2e(%rbp)
movw $0x80, -0x30(%rbp)
jmp 0x2738
movw $0xffff, -0x2e(%rbp)    # imm = 0xFFFF
movw $0x8000, -0x30(%rbp)    # imm = 0x8000
movl $0x0, -0x34(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x24(%rax), %eax
andl $0xf000, %eax           # imm = 0xF000
movl %eax, -0x3c(%rbp)
subl $0x1000, %eax           # imm = 0x1000
je 0x282b
jmp 0x275c
movl -0x3c(%rbp), %eax
subl $0x2000, %eax           # imm = 0x2000
je 0x28ee
jmp 0x276c
movl -0x3c(%rbp), %eax
subl $0x3000, %eax           # imm = 0x3000
je 0x29e0
jmp 0x277c
movl -0x3c(%rbp), %eax
subl $0x4000, %eax           # imm = 0x4000
je 0x2a59
jmp 0x278c
movl -0x3c(%rbp), %eax
subl $0x5000, %eax           # imm = 0x5000
je 0x2af4
jmp 0x279c
movl -0x3c(%rbp), %eax
subl $0x6000, %eax           # imm = 0x6000
je 0x2b8c
jmp 0x27ac
movl -0x3c(%rbp), %eax
subl $0x7000, %eax           # imm = 0x7000
je 0x2d82
jmp 0x27bc
movl -0x3c(%rbp), %eax
subl $0x9000, %eax           # imm = 0x9000
je 0x282b
jmp 0x27c8
movl -0x3c(%rbp), %eax
subl $0xa000, %eax           # imm = 0xA000
je 0x28ee
jmp 0x27d8
movl -0x3c(%rbp), %eax
subl $0xb000, %eax           # imm = 0xB000
je 0x29e0
jmp 0x27e8
movl -0x3c(%rbp), %eax
subl $0xc000, %eax           # imm = 0xC000
je 0x2a59
jmp 0x27f8
movl -0x3c(%rbp), %eax
subl $0xd000, %eax           # imm = 0xD000
je 0x2af4
jmp 0x2808
movl -0x3c(%rbp), %eax
subl $0xe000, %eax           # imm = 0xE000
je 0x2c84
jmp 0x2818
movl -0x3c(%rbp), %eax
subl $0xf000, %eax           # imm = 0xF000
je 0x2d82
jmp 0x2d87
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x8, %esi
xorl %r8d, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x284c
jmp 0x40e8
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %esi
movl -0xc(%rbp), %edx
callq 0x4580
cmpl $0x0, %eax
je 0x2865
jmp 0x40e8
cmpl $0x0, -0x2c(%rbp)
je 0x288f
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x47a0
cmpl $0x0, %eax
je 0x288f
jmp 0x40e8
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x3, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
cmpl $0x0, -0x2c(%rbp)
jne 0x28d2
movq -0x8(%rbp), %rax
movw 0x10(%rax), %dx
movq -0x8(%rbp), %rax
movl -0x28(%rbp), %ecx
movw %dx, (%rax,%rcx,2)
jmp 0x28e9
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movw 0x10(%rax), %ax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x8, %esi
xorl %r8d, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x290f
jmp 0x40e8
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
xorl %r8d, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2930
jmp 0x40e8
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x4, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
xorl $-0x1, %ecx
movzwl %cx, %ecx
addl %ecx, %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
andl $0x10000, %eax          # imm = 0x10000
cmpl $0x0, %eax
jne 0x2977
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x1, %ecx
movb %cl, 0x30(%rax)
cmpl $0x0, -0xc(%rbp)
je 0x298e
movl -0x14(%rbp), %eax
movzbl %al, %edi
callq 0x1570
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
xorl %ecx, %eax
movq -0x8(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
xorl -0x14(%rbp), %ecx
xorl $-0x1, %ecx
andl %ecx, %eax
movzwl %ax, %edi
callq 0x1550
cmpw $0x0, %ax
je 0x29cc
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x8, %esi
xorl %r8d, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2a01
jmp 0x40e8
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
xorl %r8d, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2a22
jmp 0x40e8
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x3, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x12(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0x10(%rcx), %ecx
andl %ecx, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x8, %esi
xorl %r8d, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2a7a
jmp 0x40e8
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2a9e
jmp 0x40e8
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x3, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x12(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0x10(%rcx), %ecx
xorl $-0x1, %ecx
andl %ecx, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x2aef
jmp 0x40e8
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x8, %esi
xorl %r8d, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2b15
jmp 0x40e8
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2b39
jmp 0x40e8
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x3, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x12(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0x10(%rcx), %ecx
orl %ecx, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x2b87
jmp 0x40e8
jmp 0x4295
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x8, %esi
xorl %r8d, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2bb4
jmp 0x40e8
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2bd8
jmp 0x40e8
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x4, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
addl %ecx, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
andl $0x10000, %eax          # imm = 0x10000
cmpl $0x0, %eax
je 0x2c16
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x1, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
xorl %ecx, %eax
xorl $-0x1, %eax
movq -0x8(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
xorl -0x14(%rbp), %ecx
andl %ecx, %eax
movzwl %ax, %edi
callq 0x1550
cmpw $0x0, %ax
je 0x2c54
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x2c7f
jmp 0x40e8
jmp 0x4295
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x8, %esi
xorl %r8d, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2cac
jmp 0x40e8
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2cd0
jmp 0x40e8
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x4, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x12(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0x10(%rcx), %ecx
xorl $-0x1, %ecx
movzwl %cx, %ecx
addl %ecx, %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
andl $0x10000, %eax          # imm = 0x10000
cmpl $0x0, %eax
jne 0x2d17
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x1, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
xorl %ecx, %eax
movq -0x8(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
xorl -0x14(%rbp), %ecx
andl %ecx, %eax
movzwl %ax, %edi
callq 0x1550
cmpw $0x0, %ax
je 0x2d52
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x2d7d
jmp 0x40e8
jmp 0x4295
jmp 0x40d0
movq -0x8(%rbp), %rax
movzwl 0x24(%rax), %eax
andl $0xfc0, %eax            # imm = 0xFC0
movl %eax, -0x40(%rbp)
subl $0xa00, %eax            # imm = 0xA00
je 0x2e97
jmp 0x2da4
movl -0x40(%rbp), %eax
subl $0xa40, %eax            # imm = 0xA40
je 0x2f10
jmp 0x2db4
movl -0x40(%rbp), %eax
subl $0xa80, %eax            # imm = 0xA80
je 0x2fa1
jmp 0x2dc4
movl -0x40(%rbp), %eax
subl $0xac0, %eax            # imm = 0xAC0
je 0x3065
jmp 0x2dd4
movl -0x40(%rbp), %eax
subl $0xb00, %eax            # imm = 0xB00
je 0x312b
jmp 0x2de4
movl -0x40(%rbp), %eax
subl $0xb40, %eax            # imm = 0xB40
je 0x3205
jmp 0x2df4
movl -0x40(%rbp), %eax
subl $0xb80, %eax            # imm = 0xB80
je 0x32fa
jmp 0x2e04
movl -0x40(%rbp), %eax
subl $0xbc0, %eax            # imm = 0xBC0
je 0x33ff
jmp 0x2e14
movl -0x40(%rbp), %eax
subl $0xc00, %eax            # imm = 0xC00
je 0x345d
jmp 0x2e24
movl -0x40(%rbp), %eax
subl $0xc40, %eax            # imm = 0xC40
je 0x356b
jmp 0x2e34
movl -0x40(%rbp), %eax
subl $0xc80, %eax            # imm = 0xC80
je 0x367a
jmp 0x2e44
movl -0x40(%rbp), %eax
subl $0xcc0, %eax            # imm = 0xCC0
je 0x3785
jmp 0x2e54
movl -0x40(%rbp), %eax
subl $0xd00, %eax            # imm = 0xD00
je 0x3869
jmp 0x2e64
movl -0x40(%rbp), %eax
subl $0xd40, %eax            # imm = 0xD40
je 0x3869
jmp 0x2e74
movl -0x40(%rbp), %eax
subl $0xd80, %eax            # imm = 0xD80
je 0x3869
jmp 0x2e84
movl -0x40(%rbp), %eax
subl $0xdc0, %eax            # imm = 0xDC0
je 0x3869
jmp 0x386e
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2ebb
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x12(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x4, %ecx
movb %cl, 0x30(%rax)
movl $0x0, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x2f0b
jmp 0x40e8
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2f34
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x12(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x3, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x1, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
xorl $-0x1, %eax
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x2f9c
jmp 0x40e8
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x2fc5
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x12(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x3, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
addl $0x1, %eax
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0xc(%rbp)
je 0x300b
movl -0x14(%rbp), %eax
movzbl %al, %edi
callq 0x1570
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
xorl $-0x1, %eax
andl -0x14(%rbp), %eax
movzwl %ax, %edi
callq 0x1550
cmpw $0x0, %ax
je 0x3035
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x3060
jmp 0x40e8
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x3089
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x12(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x3, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
addl $-0x1, %eax
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0xc(%rbp)
je 0x30cf
movl -0x14(%rbp), %eax
movzbl %al, %edi
callq 0x1570
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
movl -0x14(%rbp), %ecx
xorl $-0x1, %ecx
andl %ecx, %eax
movzwl %ax, %edi
callq 0x1550
cmpw $0x0, %ax
je 0x30fb
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x3126
jmp 0x40e8
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x314f
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x12(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x4, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
xorl $-0x1, %eax
addl $0x1, %eax
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0xc(%rbp)
je 0x3198
movl -0x14(%rbp), %eax
movzbl %al, %edi
callq 0x1570
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x31ac
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x1, %ecx
movb %cl, 0x30(%rax)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
movzwl 0x10(%rcx), %ecx
andl %ecx, %eax
movzwl %ax, %edi
callq 0x1550
cmpw $0x0, %ax
je 0x31d5
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x3200
jmp 0x40e8
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x3229
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x12(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x4, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
addl -0x18(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
andl $0x10000, %eax          # imm = 0x10000
cmpl $0x0, %eax
je 0x3289
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x1, %ecx
movb %cl, 0x30(%rax)
cmpl $0x0, -0xc(%rbp)
je 0x32a0
movl -0x14(%rbp), %eax
movzbl %al, %edi
callq 0x1570
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
xorl $-0x1, %eax
andl -0x14(%rbp), %eax
movzwl %ax, %edi
callq 0x1550
cmpw $0x0, %ax
je 0x32ca
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x32f5
jmp 0x40e8
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x331e
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x12(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
subl $0x1, %eax
movl %eax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x4, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
addl -0x18(%rbp), %eax
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x18(%rbp)
je 0x338c
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
cmpl $0x0, %eax
jne 0x338c
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x1, %ecx
movb %cl, 0x30(%rax)
cmpl $0x0, -0xc(%rbp)
je 0x33a3
movl -0x14(%rbp), %eax
movzbl %al, %edi
callq 0x1570
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
movl -0x14(%rbp), %ecx
xorl $-0x1, %ecx
andl %ecx, %eax
movzwl %ax, %edi
callq 0x1550
cmpw $0x0, %ax
je 0x33cf
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x33fa
jmp 0x40e8
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
xorl %r8d, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x3420
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x12(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x4, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x3481
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x12(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x4, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
movzwl -0x2e(%rbp), %ecx
andl %ecx, %eax
sarl %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x18(%rbp)
je 0x34db
movzwl -0x30(%rbp), %eax
orl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x34f9
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x1, %ecx
movb %cl, 0x30(%rax)
cmpl $0x0, -0xc(%rbp)
je 0x3510
movl -0x14(%rbp), %eax
movzbl %al, %edi
callq 0x1570
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %eax
sarl $0x3, %eax
movq -0x8(%rbp), %rcx
movzbl 0x30(%rcx), %ecx
xorl %ecx, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x353b
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x3566
jmp 0x40e8
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x358f
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x12(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x4, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
shll %eax
movzwl -0x2e(%rbp), %ecx
andl %ecx, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x18(%rbp)
je 0x35e8
movl -0x14(%rbp), %eax
orl $0x1, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
je 0x3608
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x1, %ecx
movb %cl, 0x30(%rax)
cmpl $0x0, -0xc(%rbp)
je 0x361f
movl -0x14(%rbp), %eax
movzbl %al, %edi
callq 0x1570
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %eax
sarl $0x3, %eax
movq -0x8(%rbp), %rcx
movzbl 0x30(%rcx), %ecx
xorl %ecx, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x364a
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x3675
jmp 0x40e8
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x369e
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x12(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x4, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
sarl %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzwl 0x10(%rcx), %ecx
andl $0x8000, %ecx           # imm = 0x8000
orl %ecx, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3713
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x1, %ecx
movb %cl, 0x30(%rax)
cmpl $0x0, -0xc(%rbp)
je 0x372a
movl -0x14(%rbp), %eax
movzbl %al, %edi
callq 0x1570
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %eax
sarl $0x3, %eax
movq -0x8(%rbp), %rcx
movzbl 0x30(%rcx), %ecx
xorl %ecx, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3755
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x3780
jmp 0x40e8
jmp 0x4295
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x37a9
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x12(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x4, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
shll %eax
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
je 0x37f7
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x1, %ecx
movb %cl, 0x30(%rax)
cmpl $0x0, -0xc(%rbp)
je 0x380e
movl -0x14(%rbp), %eax
movzbl %al, %edi
callq 0x1570
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %eax
sarl $0x3, %eax
movq -0x8(%rbp), %rcx
movzbl 0x30(%rcx), %ecx
xorl %ecx, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3839
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x3864
jmp 0x40e8
jmp 0x4295
jmp 0x40d0
movq -0x8(%rbp), %rax
movzwl 0x24(%rax), %eax
andl $0x8f00, %eax           # imm = 0x8F00
movl %eax, -0x44(%rbp)
subl $0x100, %eax            # imm = 0x100
je 0x39ee
jmp 0x388b
movl -0x44(%rbp), %eax
subl $0x200, %eax            # imm = 0x200
je 0x3a04
jmp 0x389b
movl -0x44(%rbp), %eax
subl $0x300, %eax            # imm = 0x300
je 0x3a34
jmp 0x38ab
movl -0x44(%rbp), %eax
subl $0x400, %eax            # imm = 0x400
je 0x3a64
jmp 0x38bb
movl -0x44(%rbp), %eax
subl $0x500, %eax            # imm = 0x500
je 0x3a94
jmp 0x38cb
movl -0x44(%rbp), %eax
subl $0x600, %eax            # imm = 0x600
je 0x3ac4
jmp 0x38db
movl -0x44(%rbp), %eax
subl $0x700, %eax            # imm = 0x700
je 0x3af4
jmp 0x38eb
movl -0x44(%rbp), %eax
subl $0x800, %eax            # imm = 0x800
je 0x3ca4
jmp 0x38fb
movl -0x44(%rbp), %eax
subl $0x900, %eax            # imm = 0x900
je 0x3ca4
jmp 0x390b
movl -0x44(%rbp), %eax
subl $0xe00, %eax            # imm = 0xE00
je 0x3da4
jmp 0x391b
movl -0x44(%rbp), %eax
subl $0xf00, %eax            # imm = 0xF00
je 0x3da4
jmp 0x392b
movl -0x44(%rbp), %eax
subl $0x8000, %eax           # imm = 0x8000
je 0x3b24
jmp 0x393b
movl -0x44(%rbp), %eax
subl $0x8100, %eax           # imm = 0x8100
je 0x3b54
jmp 0x394b
movl -0x44(%rbp), %eax
subl $0x8200, %eax           # imm = 0x8200
je 0x3b84
jmp 0x395b
movl -0x44(%rbp), %eax
subl $0x8300, %eax           # imm = 0x8300
je 0x3bb4
jmp 0x396b
movl -0x44(%rbp), %eax
subl $0x8400, %eax           # imm = 0x8400
je 0x3be4
jmp 0x397b
movl -0x44(%rbp), %eax
subl $0x8500, %eax           # imm = 0x8500
je 0x3c14
jmp 0x398b
movl -0x44(%rbp), %eax
subl $0x8600, %eax           # imm = 0x8600
je 0x3c44
jmp 0x399b
movl -0x44(%rbp), %eax
subl $0x8700, %eax           # imm = 0x8700
je 0x3c74
jmp 0x39ab
movl -0x44(%rbp), %eax
subl $0x8800, %eax           # imm = 0x8800
je 0x3d86
jmp 0x39bb
movl -0x44(%rbp), %eax
subl $0x8900, %eax           # imm = 0x8900
je 0x3d95
jmp 0x39cb
movl -0x44(%rbp), %eax
subl $0x8e00, %eax           # imm = 0x8E00
je 0x3da4
jmp 0x39db
movl -0x44(%rbp), %eax
subl $0x8f00, %eax           # imm = 0x8F00
je 0x3da4
jmp 0x3da9
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0xf0f, %eax            # imm = 0xF0F
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3a2f
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0xf0f0, %eax           # imm = 0xF0F0
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3a5f
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0xcc33, %eax           # imm = 0xCC33
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3a8f
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0x33cc, %eax           # imm = 0x33CC
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3abf
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0xc03, %eax            # imm = 0xC03
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3aef
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0xf3fc, %eax           # imm = 0xF3FC
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3b1f
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0xff, %eax
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3b4f
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0xff00, %eax           # imm = 0xFF00
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3b7f
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0x505, %eax            # imm = 0x505
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3baf
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0xfafa, %eax           # imm = 0xFAFA
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3bdf
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0x3333, %eax           # imm = 0x3333
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3c0f
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0xcccc, %eax           # imm = 0xCCCC
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3c3f
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0x5555, %eax           # imm = 0x5555
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3c6f
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $0xf, %ecx
movl $0xaaaa, %eax           # imm = 0xAAAA
sarl %cl, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3c9f
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
jmp 0x4295
cmpl $0x0, -0x2c(%rbp)
jne 0x3caf
jmp 0x40dc
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %esi
xorl %edx, %edx
callq 0x4580
cmpl $0x0, %eax
je 0x3cc7
jmp 0x40e8
movq -0x8(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x1eb0
cmpl $0x0, %eax
je 0x3cde
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x20(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x12(%rax)
movq -0x8(%rbp), %rax
movzwl 0xc(%rax), %ecx
subl $0x2, %ecx
movw %cx, 0xc(%rax)
cmpl $0x0, -0x34(%rbp)
jne 0x3d22
movq -0x8(%rbp), %rax
movzwl 0xc(%rax), %eax
andl $0xffffff00, %eax       # imm = 0xFFFFFF00
cmpl $0x0, %eax
jne 0x3d22
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
orl $0x1, %ecx
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rax
movw 0xc(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x22(%rax)
movq -0x8(%rbp), %rax
movl -0x24(%rbp), %ecx
movw (%rax,%rcx,2), %cx
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movw %cx, 0xc(%rax)
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x2260
cmpl $0x0, %eax
je 0x3d5e
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0xe(%rax), %dx
movq -0x8(%rbp), %rax
movl -0x24(%rbp), %ecx
movw %dx, (%rax,%rcx,2)
movq -0x8(%rbp), %rax
movw 0x12(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movw $0x18, 0x14(%rax)
jmp 0x4128
movq -0x8(%rbp), %rax
movw $0x1c, 0x14(%rax)
jmp 0x4128
jmp 0x40d0
movq -0x8(%rbp), %rax
movzwl 0x24(%rax), %eax
andl $0xff00, %eax           # imm = 0xFF00
cmpl $0x0, %eax
jne 0x3dbd
jmp 0x3ddc
leaq 0x3459(%rip), %rdi      # 0x721d
leaq 0x346b(%rip), %rsi      # 0x7236
movl $0x24e, %edx            # imm = 0x24E
leaq 0x3467(%rip), %rcx      # 0x723e
callq 0x10d0
movq -0x8(%rbp), %rax
movzwl 0x24(%rax), %eax
andl $0xc0, %eax
movl %eax, -0x48(%rbp)
subl $0x40, %eax
je 0x3e12
jmp 0x3df3
movl -0x48(%rbp), %eax
subl $0x80, %eax
je 0x3e61
jmp 0x3dff
movl -0x48(%rbp), %eax
subl $0xc0, %eax
je 0x3f38
jmp 0x3fc3
cmpl $0x0, -0x2c(%rbp)
jne 0x3e1d
jmp 0x40dc
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %esi
xorl %edx, %edx
callq 0x4580
cmpl $0x0, %eax
je 0x3e35
jmp 0x40e8
movq -0x8(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x1eb0
cmpl $0x0, %eax
je 0x3e4c
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x20(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0xe(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzwl 0x24(%rax), %eax
andl $0x38, %eax
movl %eax, %ecx
movq %rcx, -0x50(%rbp)
subl $0x38, %eax
ja 0x3f36
movq -0x50(%rbp), %rax
leaq 0x31c2(%rip), %rcx      # 0x7048
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
movw 0xc(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x22(%rax)
movq -0x8(%rbp), %rax
movzwl 0xc(%rax), %ecx
addl $0x2, %ecx
movw %cx, 0xc(%rax)
movq -0x8(%rbp), %rax
movl -0x28(%rbp), %ecx
movw (%rax,%rcx,2), %cx
movq -0x8(%rbp), %rax
movw %cx, 0xe(%rax)
movq -0x8(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x1eb0
cmpl $0x0, %eax
je 0x3ed8
jmp 0x40e8
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movw 0xc(%rax), %dx
movq -0x8(%rbp), %rax
movl -0x28(%rbp), %ecx
movw %dx, (%rax,%rcx,2)
jmp 0x4295
jmp 0x40d0
movq -0x8(%rbp), %rax
movzwl 0x24(%rax), %edx
andl $0xf, %edx
xorl $-0x1, %edx
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl %edx, %ecx
movb %cl, 0x30(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movzwl 0x24(%rax), %edx
andl $0xf, %edx
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
orl %edx, %ecx
movb %cl, 0x30(%rax)
jmp 0x4295
jmp 0x3f38
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0xc(%rbp), %ecx
movl $0x9, %esi
movl $0x1, %r8d
callq 0x4510
cmpl $0x0, %eax
je 0x3f5c
jmp 0x40e8
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %ecx
andl $-0x4, %ecx
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x12(%rax), %eax
andl $0xff, %eax
shll $0x8, %eax
movq -0x8(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
sarl $0x8, %ecx
andl $0xff, %ecx
orl %ecx, %eax
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movzwl %ax, %esi
callq 0x4890
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %edx
movzwl %ax, %esi
callq 0x48f0
cmpl $0x0, %eax
je 0x3fbe
jmp 0x40e8
jmp 0x4295
movq -0x8(%rbp), %rax
movzwl 0x24(%rax), %eax
andl $0x7, %eax
movl %eax, %ecx
movq %rcx, -0x58(%rbp)
subl $0x5, %eax
ja 0x40ce
movq -0x58(%rbp), %rax
leaq 0x3144(%rip), %rcx      # 0x712c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
movl $0x0, 0x3c(%rax)
jmp 0x44fe
movq -0x8(%rbp), %rax
movl $0x2, 0x3c(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movw 0xc(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x22(%rax)
movq -0x8(%rbp), %rax
movzwl 0xc(%rax), %ecx
addl $0x2, %ecx
movw %cx, 0xc(%rax)
movq -0x8(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x1eb0
cmpl $0x0, %eax
je 0x4047
jmp 0x40e8
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movw 0xc(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0xe(%rax)
movq -0x8(%rbp), %rax
movw 0xc(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x22(%rax)
movq -0x8(%rbp), %rax
movzwl 0xc(%rax), %ecx
addl $0x2, %ecx
movw %cx, 0xc(%rax)
movq -0x8(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x1eb0
cmpl $0x0, %eax
je 0x408e
jmp 0x40e8
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movw 0xc(%rax), %ax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x30(%rax)
jmp 0x4295
movq -0x8(%rbp), %rax
movw $0xc, 0x14(%rax)
jmp 0x4128
movq -0x8(%rbp), %rax
movw $0x10, 0x14(%rax)
jmp 0x4128
movq -0x8(%rbp), %rdi
callq 0x1da0
jmp 0x4295
jmp 0x40d0
movq -0x8(%rbp), %rax
movw $0x8, 0x14(%rax)
jmp 0x4128
movq -0x8(%rbp), %rax
movw $0x4, 0x14(%rax)
jmp 0x4128
movq -0x8(%rbp), %rax
cmpl $0x1, 0x38(%rax)
jle 0x4110
leaq 0x3158(%rip), %rdi      # 0x7251
movb $0x0, %al
callq 0x10a0
movq -0x8(%rbp), %rax
movl $0x0, 0x3c(%rax)
jmp 0x44fe
leaq 0x3152(%rip), %rdi      # 0x7269
movb $0x0, %al
callq 0x10a0
movq -0x8(%rbp), %rax
movw $0x4, 0x14(%rax)
movq -0x8(%rbp), %rax
movzwl 0xc(%rax), %ecx
subl $0x2, %ecx
movw %cx, 0xc(%rax)
cmpl $0x0, -0x34(%rbp)
jne 0x415c
movq -0x8(%rbp), %rax
movzwl 0xc(%rax), %eax
andl $0xffffff00, %eax       # imm = 0xFFFFFF00
cmpl $0x0, %eax
jne 0x415c
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
orl $0x1, %ecx
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rax
movw 0xc(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x22(%rax)
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movw %cx, 0xc(%rax)
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x2260
cmpl $0x0, %eax
je 0x4198
jmp 0x40e8
movq -0x8(%rbp), %rax
movzwl 0xc(%rax), %ecx
subl $0x2, %ecx
movw %cx, 0xc(%rax)
cmpl $0x0, -0x34(%rbp)
jne 0x41cc
movq -0x8(%rbp), %rax
movzwl 0xc(%rax), %eax
andl $0xffffff00, %eax       # imm = 0xFFFFFF00
cmpl $0x0, %eax
jne 0x41cc
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
orl $0x1, %ecx
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rax
movw 0xc(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x22(%rax)
movq -0x8(%rbp), %rax
movw 0xe(%rax), %cx
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movw %cx, 0xc(%rax)
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x2260
cmpl $0x0, %eax
je 0x4205
jmp 0x40e8
movq -0x8(%rbp), %rax
movw 0x14(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x22(%rax)
movq -0x8(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x1eb0
cmpl $0x0, %eax
je 0x422c
jmp 0x40e8
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movw 0xc(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0xe(%rax)
movq -0x8(%rbp), %rax
movzwl 0x14(%rax), %eax
addl $0x2, %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x22(%rax)
movq -0x8(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x1eb0
cmpl $0x0, %eax
je 0x426d
jmp 0x40e8
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movw 0xc(%rax), %ax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x30(%rax)
movq -0x8(%rbp), %rax
movb 0x30(%rax), %al
movb %al, -0x35(%rbp)
movq -0x8(%rbp), %rdi
callq 0x1c50
movq -0x8(%rbp), %rax
movzbl 0x30(%rax), %eax
sarl $0x5, %eax
movl %eax, -0x18(%rbp)
movzbl -0x35(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x42c8
movzbl -0x35(%rbp), %eax
andl $-0x11, %eax
movb %al, -0x35(%rbp)
movq -0x8(%rbp), %rax
movw $0xc, 0x14(%rax)
jmp 0x4128
movq -0x8(%rbp), %rax
movl 0x34(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x42fa
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
andl $-0x2, %ecx
movl %ecx, 0x34(%rax)
movl $0x1, -0x34(%rbp)
movq -0x8(%rbp), %rax
movw $0x4, 0x14(%rax)
jmp 0x4128
movq -0x8(%rbp), %rax
movl 0x34(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x4325
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
andl $-0x3, %ecx
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rax
movw $0x14, 0x14(%rax)
jmp 0x4128
cmpl $0x7, -0x18(%rbp)
jae 0x4369
movq -0x8(%rbp), %rax
movl 0x34(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x4369
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
andl $-0x5, %ecx
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rax
movq 0x70(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x78(%rcx), %rdi
callq *%rax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x14(%rax)
jmp 0x4128
cmpl $0x6, -0x18(%rbp)
jae 0x43ad
movq -0x8(%rbp), %rax
movl 0x34(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x43ad
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
andl $-0x9, %ecx
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x68(%rcx), %rdi
callq *%rax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x14(%rax)
jmp 0x4128
cmpl $0x6, -0x18(%rbp)
jae 0x43ec
movq -0x8(%rbp), %rax
movl 0x34(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x43ec
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
andl $-0x11, %ecx
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x8c(%rax)
movq -0x8(%rbp), %rax
movw $0x40, 0x14(%rax)
jmp 0x4128
cmpl $0x5, -0x18(%rbp)
jae 0x4430
movq -0x8(%rbp), %rax
movl 0x34(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x4430
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
andl $-0x21, %ecx
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x58(%rcx), %rdi
callq *%rax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x14(%rax)
jmp 0x4128
cmpl $0x4, -0x18(%rbp)
jae 0x4474
movq -0x8(%rbp), %rax
movl 0x34(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x4474
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
andl $-0x41, %ecx
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x48(%rcx), %rdi
callq *%rax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x14(%rax)
jmp 0x4128
cmpl $0x4, -0x18(%rbp)
jae 0x44b8
movq -0x8(%rbp), %rax
movl 0x34(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x44b8
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
andl $0xffffff7f, %ecx       # imm = 0xFFFFFF7F
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x9c(%rax)
movq -0x8(%rbp), %rax
movw $0x30, 0x14(%rax)
jmp 0x4128
cmpl $0x4, -0x18(%rbp)
jae 0x44fc
movq -0x8(%rbp), %rax
movl 0x34(%rax), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x44fc
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
andl $0xfffffeff, %ecx       # imm = 0xFFFFFEFF
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0xb0(%rax)
movq -0x8(%rbp), %rax
movw $0x34, 0x14(%rax)
jmp 0x4128
jmp 0x44fe
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)