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

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

#define SP	cpu->r[6]
#define PC	cpu->r[7]
#define SR	cpu->r[010]
#define DR	cpu->r[011]
#define TV	cpu->r[012]
#define BA	cpu->ba
#define PSW	cpu->psw
#define RD_B	if(sm != 0) if(readop(cpu, 010, src, by)) goto be;\
		if(dm != 0) if(readop(cpu, 011, dst, by)) goto be;\
		if(sm == 0) fetchop(cpu, 010, src, by);\
		if(dm == 0) fetchop(cpu, 011, dst, by)
#define RD_U	if(dm != 0) if(readop(cpu, 011, dst, by)) goto be;\
		if(dm == 0) fetchop(cpu, 011, dst, by);\
		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 CLC	cpu->psw &= ~PSW_C
#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)) goto be; d = cpu->bus->data
#define INA(a,d)	cpu->ba = a; if(dati(cpu, 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;

	trace("fetch from %06o\n", PC);
	tracestate(cpu);
	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;
	sm = src>>3 & 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);
		RD_B; 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; 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; CLV;
		b = DR & SR;
		NZ; SVC;
	case 0140000: case 0040000:	TRB(BIC);
		RD_B; CLV;
		b = DR & ~SR;
		NZ; WR; SVC;
	case 0150000: case 0050000:	TRB(BIS);
		RD_B; CLV;
		b = DR | SR;
		NZ; WR; SVC;
	case 0060000:			TR(ADD);
		by = 0; RD_B; CLCV;
		b = SR + DR; C;
		if(sgn(~(SR ^ DR) & (DR ^ b))) SEV;
		NZ; WR; SVC;
	case 0160000:			TR(SUB);
		by = 0; RD_B; 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; CLCV;
		b = 0;
		NZ; WR; SVC;
	case 0005100:	TRB(COM);
		RD_U; CLV; SEC;
		b = W(~SR);
		NZ; WR; SVC;
	case 0005200:	TRB(INC);
		RD_U; CLV;
		b = W(SR+1); BXT;
		if(sgn(~SR&b)) SEV;
		NZ; WR; SVC;
	case 0005300:	TRB(DEC);
		RD_U; CLV;
		b = W(SR+~0); BXT;
		if(sgn(SR&~b)) SEV;
		NZ; WR; SVC;
	case 0005400:	TRB(NEG);
		RD_U; CLCV;
		b = W(~SR+1); BXT; if(b) SEC;
		if(sgn(b&SR)) SEV;
		NZ; WR; SVC;
	case 0005500:	TRB(ADC);
		RD_U; c = ISSET(PSW_C); CLCV;
		b = SR + c; C; BXT;
		if(sgn(~SR&b)) SEV;
		NZ; WR; SVC;
	case 0005600:	TRB(SBC);
		RD_U; 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; CLCV;
		b = SR;
		NZ; SVC;

	case 0006000:	TRB(ROR);
		RD_U; 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; 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; 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; 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){
	case 0004000:
	case 0004400:	TR(JSR);
		if(dm == 0) goto ill;
		if(addrop(cpu, dst, 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);
	}

	/* Branches */
	switch(cpu->ir & 0103400){
	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;
	}

	// 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;
		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);
		RD_U; CLC;
		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 %o\n", cpu->bus->addr);
	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);
	return;		// TODO: is this correct?
//	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 < 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
	// TODO? console stop
		/* fetch next instruction */
		return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movb 0x30(%rdi), %r14b
cmpl $0x0, 0x10ef2(%rip)     # 0x13cc8
je 0x2dea
movzwl 0xe(%rbx), %esi
leaq 0x4429(%rip), %rdi      # 0x720c
xorl %eax, %eax
callq 0x20a0
movq %rbx, %rdi
callq 0x2a54
movzwl 0xe(%rbx), %eax
movw %ax, 0x22(%rbx)
addl $0x2, %eax
movw %ax, 0xe(%rbx)
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2c19
testl %eax, %eax
jne 0x4986
movb %r14b, 0xb(%rsp)
movq 0x28(%rbx), %rax
movzwl 0xc(%rax), %edi
movw %di, 0x24(%rbx)
testw %di, %di
sets %r15b
movl %edi, %eax
shrl $0xf, %eax
movl %eax, 0x14(%rsp)
movl $0xff, %r12d
movl %edi, 0x18(%rsp)
andl %r12d, %edi
callq 0x2444
movzwl 0x24(%rbx), %ecx
movl %ecx, %edx
movl %ecx, %r14d
shrl $0x6, %r14d
movl %ecx, %esi
andl $0x3f, %esi
movl %esi, 0xc(%rsp)
movl %ecx, %r8d
andl $0x7, %r8d
movl %ecx, %esi
shrl $0x3, %esi
andl $0x7, %esi
movl %esi, 0x10(%rsp)
movl %ecx, %esi
andl $0x7fc0, %esi           # imm = 0x7FC0
cmpl $0xc0, %esi
sete %sil
orb %r15b, %sil
movl $0xffff, %r9d           # imm = 0xFFFF
cmovnel %r12d, %r9d
movl $0x80, %esi
movl $0x8000, %r13d          # imm = 0x8000
cmovnel %esi, %r13d
leal -0x1000(%rdx), %esi
shrl $0xc, %esi
movl $0x8, %r15d
movw $0x8, %r12w
cmpl $0xe, %esi
ja 0x3694
movl %r14d, %edi
andl $0x3f, %edi
movl %edi, 0x1c(%rsp)
movl %edx, %edi
shrl $0x9, %edi
movl %edi, 0x20(%rsp)
leaq 0x419a(%rip), %rdi      # 0x7070
movslq (%rdi,%rsi,4), %rsi
addq %rdi, %rsi
jmpq *%rsi
cmpl $0x0, 0x10de2(%rip)     # 0x13cc8
je 0x2f1b
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
cmpw $0x0, 0x18(%rsp)
leaq 0x432d(%rip), %rax      # 0x7229
leaq 0x4799(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x430f(%rip), %rdi      # 0x721d
xorl %eax, %eax
movq %r8, %r14
callq 0x20a0
movq %r14, %r8
movl 0x20(%rsp), %r12d
testb $0x7, %r12b
movb 0xb(%rsp), %r15b
movl 0x14(%rsp), %ebp
movl 0x10(%rsp), %r14d
je 0x2f55
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
movl %ebp, %ecx
movq %r8, %r13
callq 0x4ae6
movq %r13, %r8
testl %eax, %eax
jne 0x33fb
testl %r14d, %r14d
je 0x2f7b
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
movl %ebp, %ecx
movq %r8, %r13
callq 0x4ae6
movq %r13, %r8
testl %eax, %eax
jne 0x33fb
testb $0x7, %r12b
jne 0x2f9a
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
movl %ebp, %ecx
movq %r8, %r12
callq 0x4b2a
movq %r12, %r8
testl %r14d, %r14d
jne 0x2fb8
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
movl %ebp, %ecx
movq %r8, %r12
callq 0x4b2a
movq %r12, %r8
movb 0x30(%rbx), %cl
movzwl 0x10(%rbx), %eax
andb $-0xf, %cl
movzbl %cl, %edx
orb $0x8, %cl
movzbl %cl, %esi
leal 0x4(%rdx), %ecx
testw %ax, %ax
cmovnsl %edx, %esi
movzbl %cl, %ecx
cmovnel %esi, %ecx
movb %cl, 0x30(%rbx)
testl %r14d, %r14d
je 0x3750
movzwl %ax, %esi
movq %rbx, %rdi
movl %ebp, %edx
callq 0x4b9e
jmp 0x360b
cmpl $0x0, 0x10cc9(%rip)     # 0x13cc8
movl 0x18(%rsp), %r12d
je 0x3031
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
testw %r12w, %r12w
leaq 0x4211(%rip), %rax      # 0x7229
leaq 0x467d(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x4201(%rip), %rdi      # 0x722b
xorl %eax, %eax
callq 0x20a0
movl 0x20(%rsp), %r13d
testb $0x7, %r13b
movb 0xb(%rsp), %r15b
movl 0x14(%rsp), %ebp
movl 0x10(%rsp), %r14d
je 0x3065
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
movl %ebp, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x33fb
testl %r14d, %r14d
je 0x3085
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x33fb
testb $0x7, %r13b
jne 0x309e
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
movl %ebp, %ecx
callq 0x4b2a
testl %r14d, %r14d
jne 0x30b6
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4b2a
movb 0x30(%rbx), %dl
andb $-0x4, %dl
movb %dl, 0x30(%rbx)
movzwl 0x10(%rbx), %eax
movzwl 0x12(%rbx), %ecx
movl %ecx, %esi
xorl $0xffff, %esi           # imm = 0xFFFF
leal (%rax,%rsi), %ebp
incl %ebp
btl $0x10, %ebp
jb 0x30e0
orb $0x1, %dl
movb %dl, 0x30(%rbx)
testw %r12w, %r12w
jns 0x30fa
movzbl %bpl, %edi
callq 0x2444
movzwl %ax, %ebp
movzwl 0x10(%rbx), %eax
movzwl 0x12(%rbx), %ecx
xorl %ecx, %eax
xorl %ebp, %ecx
notl %ecx
andl %eax, %ecx
movzwl %cx, %edi
callq 0x243e
movl 0x30(%rbx), %ecx
movl %ecx, %edx
orb $0x2, %dl
testw %ax, %ax
movzbl %dl, %eax
cmovel %ecx, %eax
andb $-0xd, %al
movzbl %al, %ecx
orb $0x8, %al
movzbl %al, %eax
leal 0x4(%rcx), %edx
testw %bp, %bp
cmovnsl %ecx, %eax
movzbl %dl, %ecx
jmp 0x32fb
cmpl $0x0, 0x10b8b(%rip)     # 0x13cc8
je 0x316c
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
cmpw $0x0, 0x18(%rsp)
leaq 0x40d6(%rip), %rax      # 0x7229
leaq 0x4542(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x40ea(%rip), %rdi      # 0x724f
xorl %eax, %eax
callq 0x20a0
movl 0x20(%rsp), %r12d
testb $0x7, %r12b
movb 0xb(%rsp), %r15b
movl 0x14(%rsp), %ebp
movl 0x10(%rsp), %r14d
je 0x31a0
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
movl %ebp, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x33fb
testl %r14d, %r14d
je 0x31c0
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x33fb
testb $0x7, %r12b
jne 0x31d9
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
movl %ebp, %ecx
callq 0x4b2a
testl %r14d, %r14d
jne 0x31f1
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4b2a
movb 0x30(%rbx), %al
movzwl 0x10(%rbx), %ecx
orw 0x12(%rbx), %cx
andb $-0xf, %al
movzbl %al, %edx
orb $0x8, %al
movzbl %al, %eax
leal 0x4(%rdx), %esi
testw %cx, %cx
cmovnsl %edx, %eax
movzbl %sil, %edx
cmovnel %eax, %edx
movb %dl, 0x30(%rbx)
movzwl %cx, %esi
jmp 0x33e9
cmpl $0x0, 0x10aa0(%rip)     # 0x13cc8
je 0x3257
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
cmpw $0x0, 0x18(%rsp)
leaq 0x3feb(%rip), %rax      # 0x7229
leaq 0x4457(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x3fe7(%rip), %rdi      # 0x7237
xorl %eax, %eax
callq 0x20a0
movl 0x20(%rsp), %r12d
testb $0x7, %r12b
movb 0xb(%rsp), %r15b
movl 0x14(%rsp), %ebp
movl 0x10(%rsp), %r14d
je 0x328b
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
movl %ebp, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x33fb
testl %r14d, %r14d
je 0x32ab
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x33fb
testb $0x7, %r12b
jne 0x32c4
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
movl %ebp, %ecx
callq 0x4b2a
testl %r14d, %r14d
jne 0x32dc
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4b2a
movb 0x30(%rbx), %al
movzwl 0x10(%rbx), %ecx
andb $-0xf, %al
movzbl %al, %edx
orb $0x8, %al
movzbl %al, %eax
leal 0x4(%rdx), %esi
testw %cx, 0x12(%rbx)
cmovnsl %edx, %eax
movzbl %sil, %ecx
cmovnel %eax, %ecx
movb %cl, 0x30(%rbx)
jmp 0x360e
cmpl $0x0, 0x109bb(%rip)     # 0x13cc8
je 0x333c
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
cmpw $0x0, 0x18(%rsp)
leaq 0x3f06(%rip), %rax      # 0x7229
leaq 0x4372(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x3f0e(%rip), %rdi      # 0x7243
xorl %eax, %eax
callq 0x20a0
movl 0x20(%rsp), %r12d
testb $0x7, %r12b
movb 0xb(%rsp), %r15b
movl 0x14(%rsp), %ebp
movl 0x10(%rsp), %r14d
je 0x3370
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
movl %ebp, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x33fb
testl %r14d, %r14d
je 0x338c
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x33fb
testb $0x7, %r12b
jne 0x33a5
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
movl %ebp, %ecx
callq 0x4b2a
testl %r14d, %r14d
jne 0x33bd
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4b2a
movb 0x30(%rbx), %al
movl 0x10(%rbx), %ecx
notl %ecx
andw 0x12(%rbx), %cx
andb $-0xf, %al
movzbl %al, %edx
orb $0x8, %al
movzbl %al, %eax
leal 0x4(%rdx), %esi
testw %cx, %cx
cmovnsl %edx, %eax
movzbl %sil, %edx
cmovnel %eax, %edx
movb %dl, 0x30(%rbx)
movzwl %cx, %esi
movq %rbx, %rdi
movl %ebp, %edx
callq 0x4b9e
testl %eax, %eax
je 0x360b
xorl %ebp, %ebp
jmp 0x4986
cmpl $0x0, 0x108bf(%rip)     # 0x13cc8
je 0x3420
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x3e4c(%rip), %rdi      # 0x7265
xorl %eax, %eax
callq 0x20a0
movl 0x20(%rsp), %r14d
testb $0x7, %r14b
movb 0xb(%rsp), %r15b
je 0x344d
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
xorl %ecx, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x4986
cmpl $0x0, 0x10(%rsp)
je 0x3471
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
xorl %ecx, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x4986
testb $0x7, %r14b
jne 0x348a
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
xorl %ecx, %ecx
callq 0x4b2a
cmpl $0x0, 0x10(%rsp)
jne 0x34a4
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
xorl %ecx, %ecx
callq 0x4b2a
movb 0x30(%rbx), %cl
andb $-0x4, %cl
movb %cl, 0x30(%rbx)
movzwl 0x12(%rbx), %eax
movzwl 0x10(%rbx), %edi
movl %edi, %edx
xorl $0xffff, %edx           # imm = 0xFFFF
leal (%rax,%rdx), %r14d
incl %r14d
btl $0x10, %r14d
jb 0x34d1
orb $0x1, %cl
movb %cl, 0x30(%rbx)
xorl %eax, %edi
xorl %r14d, %eax
movl $0xffff, %ebp           # imm = 0xFFFF
andl %ebp, %edi
andl %eax, %edi
jmp 0x35be
cmpl $0x0, 0x107dd(%rip)     # 0x13cc8
je 0x3502
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x3d60(%rip), %rdi      # 0x725b
xorl %eax, %eax
callq 0x20a0
movl 0x20(%rsp), %r14d
testb $0x7, %r14b
movb 0xb(%rsp), %r15b
je 0x352f
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
xorl %ecx, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x4986
cmpl $0x0, 0x10(%rsp)
je 0x3553
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
xorl %ecx, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x4986
testb $0x7, %r14b
jne 0x356c
movq %rbx, %rdi
movl $0x8, %esi
movl 0x1c(%rsp), %edx
xorl %ecx, %ecx
callq 0x4b2a
cmpl $0x0, 0x10(%rsp)
jne 0x3586
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
xorl %ecx, %ecx
callq 0x4b2a
movb 0x30(%rbx), %cl
andb $-0x4, %cl
movb %cl, 0x30(%rbx)
movzwl 0x10(%rbx), %edi
movzwl 0x12(%rbx), %eax
movl %edi, %r14d
addl %eax, %r14d
cmpl $0x10000, %r14d         # imm = 0x10000
jb 0x35ac
orb $0x1, %cl
movb %cl, 0x30(%rbx)
movl %r14d, %ecx
xorl %eax, %ecx
xorl %eax, %edi
notl %edi
andl %ecx, %edi
movl $0xffff, %ebp           # imm = 0xFFFF
andl %ebp, %edi
callq 0x243e
movl 0x30(%rbx), %ecx
movl %ecx, %edx
orb $0x2, %dl
testw %ax, %ax
movzbl %dl, %eax
cmovel %ecx, %eax
andb $-0xd, %al
movzbl %al, %ecx
orb $0x8, %al
movzbl %al, %eax
leal 0x4(%rcx), %edx
testw %r14w, %r14w
cmovnsl %ecx, %eax
movzbl %dl, %ecx
cmovnel %eax, %ecx
movb %cl, 0x30(%rbx)
andl %ebp, %r14d
xorl %ebp, %ebp
movq %rbx, %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0x4b9e
testl %eax, %eax
jne 0x4986
movb 0x30(%rbx), %cl
testb $0x10, %r15b
jne 0x3682
movl 0x34(%rbx), %eax
testb $0x1, %al
jne 0x372a
testb $0x2, %al
jne 0x373a
cmpb $-0x20, %cl
setae %dl
testb $0x4, %al
sete %sil
orb %dl, %sil
je 0x375a
cmpb $-0x41, %cl
ja 0x4ad7
testb $0x8, %al
jne 0x3cfa
cmpb $-0x61, %cl
ja 0x4ad7
testb $0x20, %al
jne 0x41ef
testb %cl, %cl
sets %cl
testb $0x40, %al
sete %dl
orb %cl, %dl
jne 0x4ad7
andl $-0x6c, %eax
movl %eax, 0x34(%rbx)
movq 0x50(%rbx), %rdi
callq *0x48(%rbx)
jmp 0x376a
movl $0xc, %r15d
movw $0xc, %r12w
xorl %ebp, %ebp
jmp 0x49b0
movl %edx, %esi
andl $0xfc0, %esi            # imm = 0xFC0
addl $0xfffff600, %esi       # imm = 0xFFFFF600
shrl $0x6, %esi
cmpl $0xf, %esi
ja 0x3c2c
leaq 0x39f7(%rip), %rax      # 0x70ac
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
cmpl $0x0, 0x10603(%rip)     # 0x13cc8
je 0x36f4
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
cmpw $0x0, 0x18(%rsp)
leaq 0x3b4e(%rip), %rax      # 0x7229
leaq 0x3fba(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x3b82(%rip), %rdi      # 0x726f
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
movb 0xb(%rsp), %r15b
movl 0x14(%rsp), %r14d
movq %rbx, %rdi
movl $0x9, %esi
je 0x3dc8
movl 0xc(%rsp), %edx
movl %r14d, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x33fb
jmp 0x3dd4
andl $-0x2, %eax
movl %eax, 0x34(%rbx)
movl $0x1, %ebp
jmp 0x49a5
andl $-0x4, %eax
movl %eax, 0x34(%rbx)
movl $0x14, %r15d
movw $0x14, %r12w
jmp 0x368d
movw %ax, (%rbx,%r8,2)
jmp 0x360e
andl $-0x8, %eax
movl %eax, 0x34(%rbx)
movq 0x80(%rbx), %rdi
callq *0x78(%rbx)
movl %eax, %r12d
movl %eax, %r15d
jmp 0x368d
cmpl $0x0, 0x1054c(%rip)     # 0x13cc8
movl 0x18(%rsp), %r14d
je 0x37ae
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
testw %r14w, %r14w
leaq 0x3a94(%rip), %rax      # 0x7229
leaq 0x3f00(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x3b40(%rip), %rdi      # 0x72e7
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
movl 0x14(%rsp), %ebp
movq %rbx, %rdi
movl $0x9, %esi
je 0x3d4f
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4ae6
testl %eax, %eax
movb 0xb(%rsp), %r15b
jne 0x33fb
jmp 0x3d5f
cmpl $0x0, 0x104df(%rip)     # 0x13cc8
je 0x3818
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
cmpw $0x0, 0x18(%rsp)
leaq 0x3a2a(%rip), %rax      # 0x7229
leaq 0x3e96(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x3ab2(%rip), %rdi      # 0x72c3
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
movb 0xb(%rsp), %r15b
movl 0x14(%rsp), %ecx
movq %rbx, %rdi
movl $0x9, %esi
je 0x3d94
movl 0xc(%rsp), %edx
callq 0x4ae6
testl %eax, %eax
jne 0x33fb
jmp 0x3d9d
movl %r9d, %ebp
cmpl $0x0, 0x10474(%rip)     # 0x13cc8
movl 0x18(%rsp), %r12d
je 0x3886
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
testw %r12w, %r12w
leaq 0x39bc(%rip), %rax      # 0x7229
leaq 0x3e28(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x3a50(%rip), %rdi      # 0x72cf
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
movl 0x14(%rsp), %r14d
movq %rbx, %rdi
movl $0x9, %esi
je 0x3df2
movl 0xc(%rsp), %edx
movl %r14d, %ecx
callq 0x4ae6
testl %eax, %eax
movb 0xb(%rsp), %r15b
jne 0x33fb
jmp 0x3e03
cmpl $0x0, 0x10405(%rip)     # 0x13cc8
movl 0x18(%rsp), %r14d
je 0x38f5
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
testw %r14w, %r14w
leaq 0x394d(%rip), %rax      # 0x7229
leaq 0x3db9(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x39bd(%rip), %rdi      # 0x72ab
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
movl 0x14(%rsp), %ebp
movq %rbx, %rdi
movl $0x9, %esi
je 0x3e7e
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4ae6
testl %eax, %eax
movb 0xb(%rsp), %r15b
jne 0x33fb
jmp 0x3e8e
cmpl $0x0, 0x10398(%rip)     # 0x13cc8
movl 0x18(%rsp), %r14d
je 0x3962
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
testw %r14w, %r14w
leaq 0x38e0(%rip), %rax      # 0x7229
leaq 0x3d4c(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x3998(%rip), %rdi      # 0x72f3
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
movl 0x14(%rsp), %ebp
movq %rbx, %rdi
movl $0x9, %esi
je 0x3f0d
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4ae6
testl %eax, %eax
movb 0xb(%rsp), %r15b
jne 0x33fb
jmp 0x3f1d
cmpl $0x0, 0x1032b(%rip)     # 0x13cc8
movl 0x18(%rsp), %r12d
je 0x39cf
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
testw %r12w, %r12w
leaq 0x3873(%rip), %rax      # 0x7229
leaq 0x3cdf(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x38cb(%rip), %rdi      # 0x7293
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
movl 0x14(%rsp), %r14d
movq %rbx, %rdi
movl $0x9, %esi
je 0x3f66
movl 0xc(%rsp), %edx
movl %r14d, %ecx
callq 0x4ae6
testl %eax, %eax
movb 0xb(%rsp), %r15b
jne 0x33fb
jmp 0x3f77
cmpl $0x0, 0x102bc(%rip)     # 0x13cc8
je 0x3a3b
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
cmpw $0x0, 0x18(%rsp)
leaq 0x3807(%rip), %rax      # 0x7229
leaq 0x3c73(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x3847(%rip), %rdi      # 0x727b
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
movb 0xb(%rsp), %r15b
movl 0x14(%rsp), %ebp
movq %rbx, %rdi
movl $0x9, %esi
je 0x3fa6
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x33fb
jmp 0x3fb1
movl %r9d, %r12d
cmpl $0x0, 0x1024f(%rip)     # 0x13cc8
movl 0x18(%rsp), %r14d
je 0x3aab
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
testw %r14w, %r14w
leaq 0x3797(%rip), %rax      # 0x7229
leaq 0x3c03(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x3837(%rip), %rdi      # 0x72db
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
movl 0x14(%rsp), %ebp
movq %rbx, %rdi
movl $0x9, %esi
je 0x3fe7
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4ae6
testl %eax, %eax
movb 0xb(%rsp), %r15b
jne 0x33fb
jmp 0x3ff7
cmpl $0x0, 0x101e2(%rip)     # 0x13cc8
movl 0x18(%rsp), %r12d
je 0x3b18
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
testw %r12w, %r12w
leaq 0x372a(%rip), %rax      # 0x7229
leaq 0x3b96(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x3776(%rip), %rdi      # 0x7287
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
movl 0x14(%rsp), %r14d
movq %rbx, %rdi
movl $0x9, %esi
je 0x4063
movl 0xc(%rsp), %edx
movl %r14d, %ecx
callq 0x4ae6
testl %eax, %eax
movb 0xb(%rsp), %r15b
jne 0x33fb
jmp 0x4074
cmpl $0x0, 0x10173(%rip)     # 0x13cc8
movl 0x18(%rsp), %r12d
je 0x3b87
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
testw %r12w, %r12w
leaq 0x36bb(%rip), %rax      # 0x7229
leaq 0x3b27(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x3737(%rip), %rdi      # 0x72b7
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
movl 0x14(%rsp), %r14d
movq %rbx, %rdi
movl $0x9, %esi
je 0x40a1
movl 0xc(%rsp), %edx
movl %r14d, %ecx
callq 0x4ae6
testl %eax, %eax
movb 0xb(%rsp), %r15b
jne 0x33fb
jmp 0x40b2
cmpl $0x0, 0x10104(%rip)     # 0x13cc8
movl 0x18(%rsp), %r12d
je 0x3bf6
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
testw %r12w, %r12w
leaq 0x364c(%rip), %rax      # 0x7229
leaq 0x3ab8(%rip), %rdx      # 0x769c
cmovsq %rax, %rdx
leaq 0x36b0(%rip), %rdi      # 0x729f
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
movl 0x14(%rsp), %r14d
movq %rbx, %rdi
movl $0x9, %esi
je 0x412b
movl 0xc(%rsp), %edx
movl %r14d, %ecx
callq 0x4ae6
testl %eax, %eax
movb 0xb(%rsp), %r15b
jne 0x33fb
jmp 0x413c
movl %edx, %esi
andl $0x8f00, %esi           # imm = 0x8F00
cmpl $0x87ff, %esi           # imm = 0x87FF
jg 0x3d0c
cmpl $0x800, %esi            # imm = 0x800
je 0x3c54
cmpl $0x900, %esi            # imm = 0x900
jne 0x4201
cmpl $0x0, 0x1006d(%rip)     # 0x13cc8
je 0x3c72
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x3694(%rip), %rdi      # 0x72ff
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
movb 0xb(%rsp), %r15b
je 0x470a
xorl %ebp, %ebp
movq %rbx, %rdi
movl 0xc(%rsp), %esi
xorl %edx, %edx
callq 0x4bee
testl %eax, %eax
jne 0x4986
andl $0x7, %r14d
movzwl 0x20(%rbx), %eax
movw %ax, 0x12(%rbx)
movl 0xc(%rbx), %eax
addl $-0x2, %eax
movw %ax, 0xc(%rbx)
movzwl %ax, %ecx
cmpl $0xff, %ecx
ja 0x3cbf
orb $0x1, 0x34(%rbx)
movw %ax, 0x22(%rbx)
movzwl (%rbx,%r14,2), %eax
movq 0x28(%rbx), %rcx
movw %ax, 0xc(%rcx)
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2cfa
testl %eax, %eax
jne 0x4986
movzwl 0xe(%rbx), %eax
movw %ax, (%rbx,%r14,2)
movzwl 0x12(%rbx), %eax
movw %ax, 0xe(%rbx)
jmp 0x360b
andl $-0xc, %eax
movl %eax, 0x34(%rbx)
movq 0x70(%rbx), %rdi
callq *0x68(%rbx)
jmp 0x376a
cmpl $0x8800, %esi           # imm = 0x8800
je 0x42a6
cmpl $0x8900, %esi           # imm = 0x8900
jne 0x4201
movl $0x1c, %r15d
movw $0x1c, %r12w
cmpl $0x0, 0xff92(%rip)      # 0x13cc8
je 0x49b0
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x35c9(%rip), %rdi      # 0x7313
jmp 0x42cc
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4b2a
movb 0xb(%rsp), %r15b
movzwl 0x12(%rbx), %eax
movb 0x30(%rbx), %sil
andb $-0x4, %sil
movl %eax, %edx
shrl %edx
movl %eax, %ecx
andb $0x1, %cl
orb %sil, %cl
movw %ax, 0x10(%rbx)
movb %cl, 0x30(%rbx)
testw %r14w, %r14w
js 0x41af
andl $0x8000, %eax           # imm = 0x8000
orl %edx, %eax
jmp 0x41ba
movl 0xc(%rsp), %edx
callq 0x4b2a
movzwl 0x12(%rbx), %eax
movw %ax, 0x10(%rbx)
movb 0x30(%rbx), %cl
andb $-0x10, %cl
movzbl %cl, %edx
orb $0x8, %cl
movzbl %cl, %esi
leal 0x4(%rdx), %ecx
testw %ax, %ax
cmovnsl %edx, %esi
movzbl %cl, %ecx
cmovnel %esi, %ecx
jmp 0x32fe
movl 0xc(%rsp), %edx
movl %r14d, %ecx
callq 0x4b2a
movzwl 0x12(%rbx), %eax
movw %ax, 0x10(%rbx)
movb 0x30(%rbx), %al
andb $-0x10, %al
orb $0x4, %al
movb %al, 0x30(%rbx)
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
jmp 0x3e76
movl 0xc(%rsp), %edx
movl %r14d, %ecx
callq 0x4b2a
movb 0xb(%rsp), %r15b
movzwl 0x12(%rbx), %eax
movb 0x30(%rbx), %cl
movl %ecx, %edx
andb $-0x4, %dl
movl %ebp, %esi
andl %eax, %esi
shrl %esi
xorl %ebp, %ebp
testb $0x1, %cl
cmovel %ebp, %r13d
orl %esi, %r13d
movw %ax, 0x10(%rbx)
andb $0x1, %al
orb %dl, %al
movb %al, 0x30(%rbx)
testw %r12w, %r12w
jns 0x3e42
movzbl %r13b, %edi
callq 0x2444
movzwl %ax, %r13d
movb 0x30(%rbx), %al
movl %eax, %ecx
shrb $0x3, %cl
xorb %al, %cl
addb %cl, %cl
andb $0x2, %cl
andb $-0xd, %al
orb %cl, %al
leal 0x8(%rax), %ecx
testw %r13w, %r13w
movzbl %al, %eax
movzbl %cl, %ecx
cmovnsl %eax, %ecx
orb $0x4, %al
testl %r13d, %r13d
movzbl %al, %eax
cmovnel %ecx, %eax
movb %al, 0x30(%rbx)
movq %rbx, %rdi
movl %r13d, %esi
movl %r14d, %edx
jmp 0x35fe
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4b2a
movb 0xb(%rsp), %r15b
movzwl 0x12(%rbx), %edi
movzbl 0x30(%rbx), %ecx
movl %ecx, %eax
andl $0x1, %eax
andb $-0x4, %cl
addl %edi, %eax
cmpl $0x10000, %eax          # imm = 0x10000
setae %dl
orb %cl, %dl
movw %di, 0x10(%rbx)
movb %dl, 0x30(%rbx)
testw %r14w, %r14w
jns 0x3ec6
movzbl %al, %edi
callq 0x2444
movzwl %ax, %eax
movzwl 0x10(%rbx), %edi
notl %edi
movzwl %ax, %r14d
andl %r14d, %edi
callq 0x243e
movl 0x30(%rbx), %ecx
movl %ecx, %edx
orb $0x2, %dl
testw %ax, %ax
movzbl %dl, %eax
cmovel %ecx, %eax
andb $-0xd, %al
movzbl %al, %ecx
orb $0x8, %al
movzbl %al, %eax
leal 0x4(%rcx), %edx
testw %r14w, %r14w
cmovnsl %ecx, %eax
movzbl %dl, %ecx
cmovnel %eax, %ecx
movb %cl, 0x30(%rbx)
movq %rbx, %rdi
movl %r14d, %esi
jmp 0x33ec
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4b2a
movb 0xb(%rsp), %r15b
movzwl 0x12(%rbx), %ecx
movb 0x30(%rbx), %dl
andb $-0x4, %dl
leal (%rcx,%rcx), %eax
movw %cx, 0x10(%rbx)
shrl $0xf, %ecx
orb %dl, %cl
movb %cl, 0x30(%rbx)
testw %r14w, %r14w
jns 0x3f47
movzbl %al, %edi
callq 0x2444
movb 0x30(%rbx), %cl
movl %ecx, %edx
shrb $0x3, %dl
xorb %cl, %dl
addb %dl, %dl
andb $0x2, %dl
andb $-0xd, %cl
orb %dl, %cl
movzbl %cl, %edx
orb $0x8, %cl
movzbl %cl, %ecx
jmp 0x41d4
movl 0xc(%rsp), %edx
movl %r14d, %ecx
callq 0x4b2a
movb 0xb(%rsp), %r15b
movzwl 0x12(%rbx), %eax
andb $-0x3, 0x30(%rbx)
leal -0x1(%rax), %ebp
movw %ax, 0x10(%rbx)
testw %r12w, %r12w
jns 0x3f9b
movzbl %bpl, %edi
callq 0x2444
movl %eax, %ebp
movzwl 0x10(%rbx), %eax
movl %ebp, %ecx
notl %ecx
andl %ecx, %eax
jmp 0x409c
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4b2a
movzwl 0x12(%rbx), %eax
movw %ax, 0x10(%rbx)
movb 0x30(%rbx), %cl
andb $-0x10, %cl
testw %ax, %ax
setns %dl
shlb $0x3, %dl
incb %dl
cmpw $-0x1, %ax
notl %eax
movzbl %dl, %edx
movl $0x5, %esi
cmovnel %edx, %esi
orb %cl, %sil
movb %sil, 0x30(%rbx)
jmp 0x41e7
movl 0xc(%rsp), %edx
movl %ebp, %ecx
callq 0x4b2a
movb 0xb(%rsp), %r15b
movzbl 0x30(%rbx), %ecx
movl %ecx, %eax
andl $0x1, %eax
andb $-0x4, %cl
movzwl 0x12(%rbx), %edx
leal (%rdx,%rdx), %esi
andl %r12d, %esi
orl %eax, %esi
movw %dx, 0x10(%rbx)
movl %edx, %eax
shrl $0xf, %eax
orb %cl, %al
movb %al, 0x30(%rbx)
testw %r14w, %r14w
jns 0x4032
movzbl %sil, %edi
callq 0x2444
movzwl %ax, %esi
movb 0x30(%rbx), %al
movl %eax, %ecx
shrb $0x3, %cl
xorb %al, %cl
addb %cl, %cl
andb $0x2, %cl
andb $-0xd, %al
orb %cl, %al
leal 0x8(%rax), %ecx
testw %si, %si
movzbl %al, %eax
movzbl %cl, %ecx
cmovnsl %eax, %ecx
orb $0x4, %al
testl %esi, %esi
movzbl %al, %eax
cmovnel %ecx, %eax
movb %al, 0x30(%rbx)
jmp 0x33e9
movl 0xc(%rsp), %edx
movl %r14d, %ecx
callq 0x4b2a
movb 0xb(%rsp), %r15b
movzwl 0x12(%rbx), %eax
andb $-0x3, 0x30(%rbx)
leal 0x1(%rax), %ebp
movw %ax, 0x10(%rbx)
testw %r12w, %r12w
jns 0x4098
movzbl %bpl, %edi
callq 0x2444
movl %eax, %ebp
movzwl 0x10(%rbx), %eax
notl %eax
andl %ebp, %eax
movzwl %ax, %edi
jmp 0x40f7
movl 0xc(%rsp), %edx
movl %r14d, %ecx
callq 0x4b2a
movb 0xb(%rsp), %r15b
movzwl 0x12(%rbx), %eax
movzbl 0x30(%rbx), %ecx
movl %ecx, %edx
andl $0x1, %edx
testw %ax, %ax
sete %sil
orb $-0x4, %sil
movl %eax, %ebp
subl %edx, %ebp
andb %cl, %sil
movw %ax, 0x10(%rbx)
movb %sil, 0x30(%rbx)
testw %r12w, %r12w
jns 0x40ee
movzbl %bpl, %edi
callq 0x2444
movl %eax, %ebp
movzwl 0x10(%rbx), %eax
movl %ebp, %ecx
notl %ecx
andl %ecx, %eax
movzwl %ax, %edi
callq 0x243e
movl 0x30(%rbx), %ecx
movl %ecx, %edx
orb $0x2, %dl
testw %ax, %ax
movzbl %dl, %eax
cmovel %ecx, %eax
andb $-0xd, %al
movzbl %al, %ecx
orb $0x8, %al
movzbl %al, %eax
leal 0x4(%rcx), %edx
testw %bp, %bp
cmovnsl %ecx, %eax
movzbl %dl, %ecx
cmovnel %eax, %ecx
movb %cl, 0x30(%rbx)
jmp 0x41a1
movl 0xc(%rsp), %edx
movl %r14d, %ecx
callq 0x4b2a
movb 0xb(%rsp), %r15b
movzwl 0x12(%rbx), %ebp
andb $-0x4, 0x30(%rbx)
movw %bp, 0x10(%rbx)
negl %ebp
testw %r12w, %r12w
jns 0x415b
movzbl %bpl, %edi
callq 0x2444
movl %eax, %ebp
testw %bp, %bp
je 0x4164
orb $0x1, 0x30(%rbx)
movzwl 0x10(%rbx), %eax
andw %bp, %ax
movzwl %ax, %edi
callq 0x243e
movl 0x30(%rbx), %ecx
movl %ecx, %edx
orb $0x2, %dl
testw %ax, %ax
movzbl %dl, %eax
cmovel %ecx, %eax
andb $-0xd, %al
leal 0x8(%rax), %ecx
leal 0x4(%rax), %edx
testw %bp, %bp
movzbl %al, %eax
movzbl %cl, %ecx
cmovnsl %eax, %ecx
movzbl %dl, %eax
cmovnel %ecx, %eax
movb %al, 0x30(%rbx)
movzwl %bp, %esi
movq %rbx, %rdi
movl %r14d, %edx
jmp 0x33ee
movzbl %dl, %edi
callq 0x2444
movb 0x30(%rbx), %cl
movl %ecx, %edx
shrb $0x3, %dl
xorb %cl, %dl
addb %dl, %dl
andb $0x2, %dl
andb $-0xd, %cl
orb %dl, %cl
movzbl %cl, %edx
orb $0x8, %cl
movzbl %cl, %ecx
leal 0x4(%rdx), %esi
testw %ax, %ax
cmovnsl %edx, %ecx
movzbl %sil, %edx
cmovnel %ecx, %edx
movb %dl, 0x30(%rbx)
movzwl %ax, %esi
jmp 0x33e9
andl $-0x2c, %eax
movl %eax, 0x34(%rbx)
movq 0x60(%rbx), %rdi
callq *0x58(%rbx)
jmp 0x376a
movzwl %ax, %r13d
addl %r13d, %r13d
andl $0x8700, %edx           # imm = 0x8700
cmpl $0x7fff, %edx           # imm = 0x7FFF
jg 0x42da
cmpl $0x3ff, %edx            # imm = 0x3FF
jg 0x433b
movq %r8, 0x20(%rsp)
cmpl $0x1ff, %edx            # imm = 0x1FF
jg 0x43c9
testl %edx, %edx
jne 0x44b5
movzwl %cx, %eax
cmpl $0x100, %eax            # imm = 0x100
jae 0x4967
movl %r14d, %eax
leaq 0x2e95(%rip), %rdx      # 0x70ec
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
cmpl $0x5, 0x20(%rsp)
ja 0x49b0
movl 0x20(%rsp), %eax
leaq 0x2e86(%rip), %rcx      # 0x70fc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x0, 0xfa42(%rip)      # 0x13cc8
je 0x4ad0
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x317f(%rip), %rdi      # 0x7419
xorl %eax, %eax
callq 0x20a0
jmp 0x4ad0
movl $0x18, %r15d
movw $0x18, %r12w
cmpl $0x0, 0xfa10(%rip)      # 0x13cc8
je 0x49b0
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x303d(%rip), %rdi      # 0x7309
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x20a0
jmp 0x49b0
cmpl $0x83ff, %edx           # imm = 0x83FF
jg 0x4382
cmpl $0x81ff, %edx           # imm = 0x81FF
jg 0x4404
cmpl $0x8000, %edx           # imm = 0x8000
jne 0x44e2
cmpl $0x0, 0xf9c3(%rip)      # 0x13cc8
je 0x431c
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x304e(%rip), %rdi      # 0x7363
xorl %eax, %eax
callq 0x20a0
movb 0x30(%rbx), %cl
andb $0xf, %cl
movl $0x1, %eax
shll %cl, %eax
testb %al, %al
movb 0xb(%rsp), %r15b
je 0x360b
jmp 0x462e
cmpl $0x5ff, %edx            # imm = 0x5FF
jg 0x443f
cmpl $0x400, %edx            # imm = 0x400
jne 0x4511
cmpl $0x0, 0xf96e(%rip)      # 0x13cc8
je 0x4371
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2fd1(%rip), %rdi      # 0x733b
xorl %eax, %eax
callq 0x20a0
movzbl 0x30(%rbx), %eax
andl $0xf, %eax
movl $0xcc33, %ecx           # imm = 0xCC33
jmp 0x4620
cmpl $0x85ff, %edx           # imm = 0x85FF
jg 0x447a
cmpl $0x8400, %edx           # imm = 0x8400
jne 0x4540
cmpl $0x0, 0xf927(%rip)      # 0x13cc8
je 0x43b8
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2fdb(%rip), %rdi      # 0x738c
xorl %eax, %eax
callq 0x20a0
movzbl 0x30(%rbx), %eax
andl $0xf, %eax
movl $0x3333, %ecx           # imm = 0x3333
jmp 0x4620
cmpl $0x200, %edx            # imm = 0x200
jne 0x456f
cmpl $0x0, 0xf8ec(%rip)      # 0x13cc8
je 0x43f3
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2f3b(%rip), %rdi      # 0x7327
xorl %eax, %eax
callq 0x20a0
movzbl 0x30(%rbx), %eax
andl $0xf, %eax
movl $0xf0f, %ecx            # imm = 0xF0F
jmp 0x4620
cmpl $0x8200, %edx           # imm = 0x8200
jne 0x459e
cmpl $0x0, 0xf8b1(%rip)      # 0x13cc8
je 0x442e
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2f50(%rip), %rdi      # 0x7377
xorl %eax, %eax
callq 0x20a0
movzbl 0x30(%rbx), %eax
andl $0xf, %eax
movl $0x505, %ecx            # imm = 0x505
jmp 0x4620
cmpl $0x600, %edx            # imm = 0x600
jne 0x45ca
cmpl $0x0, 0xf876(%rip)      # 0x13cc8
je 0x4469
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2eed(%rip), %rdi      # 0x734f
xorl %eax, %eax
callq 0x20a0
movzbl 0x30(%rbx), %eax
andl $0xf, %eax
movl $0xc03, %ecx            # imm = 0xC03
jmp 0x4620
cmpl $0x8600, %edx           # imm = 0x8600
jne 0x45f6
cmpl $0x0, 0xf83b(%rip)      # 0x13cc8
je 0x44a4
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2f03(%rip), %rdi      # 0x73a0
xorl %eax, %eax
callq 0x20a0
movzbl 0x30(%rbx), %eax
andl $0xf, %eax
movl $0x5555, %ecx           # imm = 0x5555
jmp 0x4620
cmpl $0x0, 0xf80c(%rip)      # 0x13cc8
je 0x44d3
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2e52(%rip), %rdi      # 0x731e
xorl %eax, %eax
callq 0x20a0
addw %r13w, 0xe(%rbx)
movb 0xb(%rsp), %r15b
jmp 0x360b
cmpl $0x0, 0xf7df(%rip)      # 0x13cc8
je 0x4500
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2e74(%rip), %rdi      # 0x736d
xorl %eax, %eax
callq 0x20a0
movzbl 0x30(%rbx), %eax
andl $0xf, %eax
movl $0xff00, %ecx           # imm = 0xFF00
jmp 0x4620
cmpl $0x0, 0xf7b0(%rip)      # 0x13cc8
je 0x452f
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2e1d(%rip), %rdi      # 0x7345
xorl %eax, %eax
callq 0x20a0
movzbl 0x30(%rbx), %eax
andl $0xf, %eax
movl $0x33cc, %ecx           # imm = 0x33CC
jmp 0x4620
cmpl $0x0, 0xf781(%rip)      # 0x13cc8
je 0x455e
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2e3f(%rip), %rdi      # 0x7396
xorl %eax, %eax
callq 0x20a0
movzbl 0x30(%rbx), %eax
andl $0xf, %eax
movl $0xcccc, %ecx           # imm = 0xCCCC
jmp 0x4620
cmpl $0x0, 0xf752(%rip)      # 0x13cc8
je 0x458d
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2dab(%rip), %rdi      # 0x7331
xorl %eax, %eax
callq 0x20a0
movzbl 0x30(%rbx), %eax
andl $0xf, %eax
movl $0xf0f0, %ecx           # imm = 0xF0F0
jmp 0x4620
cmpl $0x0, 0xf723(%rip)      # 0x13cc8
je 0x45bc
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2dcc(%rip), %rdi      # 0x7381
xorl %eax, %eax
callq 0x20a0
movzbl 0x30(%rbx), %eax
andl $0xf, %eax
movl $0xfafa, %ecx           # imm = 0xFAFA
jmp 0x4620
cmpl $0x0, 0xf6f7(%rip)      # 0x13cc8
je 0x45e8
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2d78(%rip), %rdi      # 0x7359
xorl %eax, %eax
callq 0x20a0
movzbl 0x30(%rbx), %eax
andl $0xf, %eax
movl $0xf3fc, %ecx           # imm = 0xF3FC
jmp 0x4620
cmpl $0x0, 0xf6cb(%rip)      # 0x13cc8
je 0x4614
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2d9d(%rip), %rdi      # 0x73aa
xorl %eax, %eax
callq 0x20a0
movzbl 0x30(%rbx), %eax
andl $0xf, %eax
movl $0xaaaa, %ecx           # imm = 0xAAAA
btl %eax, %ecx
movb 0xb(%rsp), %r15b
jae 0x360b
addw %r13w, 0xe(%rbx)
jmp 0x360b
movl 0x10(%rsp), %eax
leaq 0x2ad1(%rip), %rdx      # 0x7114
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
cmpl $0x0, 0xf675(%rip)      # 0x13cc8
je 0x466e
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2d97(%rip), %rdi      # 0x73fa
xorl %eax, %eax
callq 0x20a0
movzwl 0x24(%rbx), %ecx
notb %cl
orb $-0x10, %cl
andb 0x30(%rbx), %cl
jmp 0x47ab
cmpl $0x0, 0xf646(%rip)      # 0x13cc8
je 0x4699
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2d7c(%rip), %rdi      # 0x740e
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
je 0x471a
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
movl 0x14(%rsp), %ecx
callq 0x4ae6
testl %eax, %eax
jne 0x33fb
jmp 0x472f
cmpl $0x0, 0xf602(%rip)      # 0x13cc8
je 0x46dd
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2d10(%rip), %rdi      # 0x73e6
xorl %eax, %eax
callq 0x20a0
cmpl $0x0, 0x10(%rsp)
je 0x470a
xorl %ebp, %ebp
movq %rbx, %rdi
movl 0xc(%rsp), %esi
xorl %edx, %edx
callq 0x4bee
testl %eax, %eax
movb 0xb(%rsp), %r15b
jne 0x4986
movzwl 0x20(%rbx), %eax
jmp 0x3cf1
movl $0x4, %r15d
movw $0x4, %r12w
jmp 0x368d
movq %rbx, %rdi
movl $0x9, %esi
movl 0xc(%rsp), %edx
movl 0x14(%rsp), %ecx
callq 0x4b2a
movzwl 0x12(%rbx), %eax
movw %ax, 0x10(%rbx)
movb 0x30(%rbx), %cl
movl %eax, %edx
rolw $0x8, %dx
andb $-0xe, %cl
leal 0x8(%rcx), %esi
testw %dx, %dx
movzbl %cl, %ecx
movzbl %sil, %esi
cmovnsl %ecx, %esi
orb $0x4, %cl
testw %ax, %ax
movzbl %cl, %eax
cmovnel %esi, %eax
movb %al, 0x30(%rbx)
movzwl %dx, %esi
movq %rbx, %rdi
movl 0x14(%rsp), %edx
callq 0x4b9e
testl %eax, %eax
movb 0xb(%rsp), %r15b
jne 0x33fb
jmp 0x360b
cmpl $0x0, 0xf53e(%rip)      # 0x13cc8
je 0x47a5
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2c6a(%rip), %rdi      # 0x7404
xorl %eax, %eax
callq 0x20a0
movzwl 0x24(%rbx), %ecx
andb $0xf, %cl
orb 0x30(%rbx), %cl
movb %cl, 0x30(%rbx)
movb 0xb(%rsp), %r15b
jmp 0x360e
movl $0x10, %r15d
movw $0x10, %r12w
cmpl $0x0, 0xf4fe(%rip)      # 0x13cc8
je 0x49b0
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2c65(%rip), %rdi      # 0x7443
jmp 0x42cc
cmpl $0x0, 0xf4de(%rip)      # 0x13cc8
je 0x4801
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2c2a(%rip), %rdi      # 0x7424
xorl %eax, %eax
callq 0x20a0
movl $0x2, 0x3c(%rbx)
jmp 0x44d8
cmpl $0x0, 0xf4b4(%rip)      # 0x13cc8
je 0x482b
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2c0b(%rip), %rdi      # 0x742f
xorl %eax, %eax
callq 0x20a0
movl 0xc(%rbx), %eax
movw %ax, 0x22(%rbx)
addl $0x2, %eax
movw %ax, 0xc(%rbx)
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2c19
testl %eax, %eax
movb 0xb(%rsp), %r15b
jne 0x4986
movq 0x28(%rbx), %rax
movzwl 0xc(%rax), %eax
movw %ax, 0xe(%rbx)
movl 0xc(%rbx), %eax
movw %ax, 0x22(%rbx)
addl $0x2, %eax
movw %ax, 0xc(%rbx)
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2c19
testl %eax, %eax
jne 0x4986
movq 0x28(%rbx), %rax
movb 0xc(%rax), %cl
jmp 0x32fe
movl $0xc, %r15d
movw $0xc, %r12w
cmpl $0x0, 0xf42a(%rip)      # 0x13cc8
je 0x49b0
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2b87(%rip), %rdi      # 0x7439
jmp 0x42cc
cmpl $0x0, 0xf40a(%rip)      # 0x13cc8
je 0x48d5
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2b7f(%rip), %rdi      # 0x744d
xorl %eax, %eax
callq 0x20a0
movl $0x0, 0x34(%rbx)
movq 0x28(%rbx), %rax
movq (%rax), %r14
testq %r14, %r14
movb 0xb(%rsp), %r15b
je 0x360b
movq 0x8(%r14), %rdi
callq *0x38(%r14)
movq (%r14), %r14
testq %r14, %r14
jne 0x48f1
jmp 0x360b
cmpl $0x0, 0xf3bb(%rip)      # 0x13cc8
je 0x4924
movzwl 0xe(%rbx), %esi
addl $-0x2, %esi
leaq 0x2ad3(%rip), %rdi      # 0x73f0
xorl %eax, %eax
callq 0x20a0
movl 0xc(%rbx), %eax
movw %ax, 0x22(%rbx)
addl $0x2, %eax
movw %ax, 0xc(%rbx)
movl 0x20(%rsp), %r14d
movzwl (%rbx,%r14,2), %eax
movw %ax, 0xe(%rbx)
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2c19
testl %eax, %eax
movb 0xb(%rsp), %r15b
jne 0x4986
movq 0x28(%rbx), %rax
movzwl 0xc(%rax), %eax
movw %ax, (%rbx,%r14,2)
jmp 0x360b
leaq 0x2a46(%rip), %rdi      # 0x73b4
leaq 0x2a58(%rip), %rsi      # 0x73cd
leaq 0x2a58(%rip), %rcx      # 0x73d4
movl $0x1da, %edx            # imm = 0x1DA
callq 0x20d0
cmpl $0x2, 0x38(%rbx)
jge 0x4ac4
movq 0x28(%rbx), %rax
movl 0x8(%rax), %esi
leaq 0x2abb(%rip), %rdi      # 0x7459
xorl %eax, %eax
callq 0x20a0
movl $0x4, %r15d
movw $0x4, %r12w
movw %r12w, 0x14(%rbx)
cmpl $0x0, 0xf30c(%rip)      # 0x13cc8
je 0x49d0
movzwl %r15w, %esi
leaq 0x2a9e(%rip), %rdi      # 0x7467
xorl %eax, %eax
callq 0x20a0
movzwl 0xc(%rbx), %eax
addl $-0x2, %eax
movw %ax, 0xc(%rbx)
testl %ebp, %ebp
sete %cl
movzwl %ax, %edx
cmpl $0x100, %edx            # imm = 0x100
setb %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x49f7
orb $0x1, 0x34(%rbx)
movw %ax, 0x22(%rbx)
movzbl 0x30(%rbx), %eax
movq 0x28(%rbx), %rcx
movw %ax, 0xc(%rcx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2cfa
testl %eax, %eax
jne 0x4986
testl %ebp, %ebp
sete %cl
movzwl 0xc(%rbx), %eax
addl $-0x2, %eax
movw %ax, 0xc(%rbx)
movzwl %ax, %edx
cmpl $0x100, %edx            # imm = 0x100
setb %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x4a40
orb $0x1, 0x34(%rbx)
movw %ax, 0x22(%rbx)
movzwl 0xe(%rbx), %eax
movq 0x28(%rbx), %rcx
movw %ax, 0xc(%rcx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2cfa
testl %eax, %eax
jne 0x4986
movzwl 0x14(%rbx), %eax
movw %ax, 0x22(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2c19
testl %eax, %eax
jne 0x4986
movq 0x28(%rbx), %rax
movzwl 0xc(%rax), %eax
movw %ax, 0xe(%rbx)
movl 0x14(%rbx), %eax
addl $0x2, %eax
movw %ax, 0x22(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2c19
testl %eax, %eax
jne 0x4986
movq 0x28(%rbx), %rax
movb 0xc(%rax), %al
movb %al, 0x30(%rbx)
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2a54
leaq 0x29a8(%rip), %rdi      # 0x7473
callq 0x2040
movl $0x0, 0x3c(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq