// File: /workspace/github_c_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movb 0x30(%rdi), %al
movb %al, 0x13(%rsp)
movzwl 0xe(%rdi), %eax
movw %ax, 0x22(%rdi)
addl $0x2, %eax
movw %ax, 0xe(%rdi)
xorl %esi, %esi
xorl %edx, %edx
callq 0x196a
pushq $0x1
popq %rbp
testl %eax, %eax
jne 0x2b0a
movq 0x28(%rbx), %rax
movzwl 0xc(%rax), %edi
movw %di, 0x24(%rbx)
testw %di, %di
sets %bpl
movl %edi, %eax
shrl $0xf, %eax
movl %eax, 0xc(%rsp)
movl $0xff, %r15d
movl %edi, 0x14(%rsp)
andl %r15d, %edi
callq 0x13e2
movzwl 0x24(%rbx), %ecx
movl %ecx, %r13d
shrl $0x6, %r13d
movl %ecx, %r9d
andl $0x3f, %r9d
movl %ecx, %r12d
andl $0x7, %r12d
movl %ecx, %r14d
shrl $0x3, %r14d
andl $0x7, %r14d
movl %ecx, %edx
andl $0x7fc0, %edx           # imm = 0x7FC0
cmpl $0xc0, %edx
sete %dl
orb %bpl, %dl
movl $0xffff, %ebp           # imm = 0xFFFF
cmovnel %r15d, %ebp
movl $0x80, %edx
movl $0x8000, %r15d          # imm = 0x8000
cmovnel %edx, %r15d
leal -0x1000(%rcx), %esi
shrl $0xc, %esi
cmpl $0xe, %esi
ja 0x2087
movl %r13d, %edx
andl $0x3f, %edx
leaq 0x23f4(%rip), %rdi      # 0x4120
movslq (%rdi,%rsi,4), %rsi
addq %rdi, %rsi
jmpq *%rsi
movl %r9d, 0x14(%rsp)
pushq $0x8
popq %rsi
xorl %r15d, %r15d
movq %rbx, %rdi
movl 0xc(%rsp), %r13d
movl %r13d, %ecx
xorl %r8d, %r8d
callq 0x2d4d
testl %eax, %eax
jne 0x1f5e
movq %rbx, %rdi
movl 0x14(%rsp), %esi
movl %r13d, %edx
callq 0x2d97
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
testl %r14d, %r14d
je 0x1d98
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl 0x14(%rsp), %edx
movl %r13d, %ecx
callq 0x2eaa
testl %eax, %eax
jne 0x2b0a
andb $-0x3, 0x30(%rbx)
movzwl 0x10(%rbx), %esi
movq %rbx, %rdi
callq 0x2f1f
movzwl 0x10(%rbx), %eax
testl %r14d, %r14d
je 0x20f5
movzwl %ax, %esi
movq %rbx, %rdi
movl %r13d, %edx
callq 0x2f41
jmp 0x259b
movl %r9d, %r12d
pushq $0x8
popq %rsi
xorl %r15d, %r15d
movq %rbx, %rdi
movl 0xc(%rsp), %r14d
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x2d4d
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
pushq $0x9
popq %rsi
xorl %r15d, %r15d
movq %rbx, %rdi
movl %r12d, %edx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x2d4d
testl %eax, %eax
jne 0x2b0a
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 0x1e38
orb $0x1, %dl
movb %dl, 0x30(%rbx)
cmpw $0x0, 0x14(%rsp)
jns 0x1e54
movzbl %bpl, %edi
callq 0x13e2
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 0x13dc
testw %ax, %ax
je 0x1e6d
orb $0x2, 0x30(%rbx)
movzwl %bp, %esi
movq %rbx, %rdi
callq 0x2f1f
pushq $0x1
popq %rbp
jmp 0x259b
movl %r9d, %ebp
pushq $0x8
popq %rsi
xorl %r15d, %r15d
movq %rbx, %rdi
movl 0xc(%rsp), %r12d
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x2d4d
testl %eax, %eax
jne 0x1f5e
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %ebp, %edx
movl %r12d, %ecx
callq 0x2d4d
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
andb $-0x3, 0x30(%rbx)
movzwl 0x10(%rbx), %eax
orw 0x12(%rbx), %ax
movzwl %ax, %r14d
jmp 0x257a
movl %r9d, %r12d
pushq $0x8
popq %rsi
xorl %r15d, %r15d
movq %rbx, %rdi
movl 0xc(%rsp), %r14d
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x2d4d
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
pushq $0x9
popq %rsi
xorl %r15d, %r15d
movq %rbx, %rdi
movl %r12d, %edx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x2d4d
testl %eax, %eax
jne 0x2b0a
andb $-0x3, 0x30(%rbx)
movzwl 0x10(%rbx), %eax
andw 0x12(%rbx), %ax
movzwl %ax, %esi
movq %rbx, %rdi
callq 0x2f1f
jmp 0x259b
movl %r9d, %ebp
pushq $0x8
popq %rsi
xorl %r15d, %r15d
movq %rbx, %rdi
movl 0xc(%rsp), %r12d
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x2d4d
testl %eax, %eax
je 0x20c0
pushq $0x1
popq %rbp
jmp 0x2b0a
movl %r9d, %r14d
pushq $0x8
popq %rsi
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2d4d
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
pushq $0x9
popq %rsi
xorl %r15d, %r15d
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r14d, %edx
xorl %ecx, %ecx
callq 0x2d4d
testl %eax, %eax
jne 0x2b0a
movb 0x30(%rbx), %dl
andb $-0x4, %dl
movb %dl, 0x30(%rbx)
movzwl 0x12(%rbx), %eax
movzwl 0x10(%rbx), %ecx
movl %ecx, %esi
xorl $0xffff, %esi           # imm = 0xFFFF
leal (%rax,%rsi), %ebp
incl %ebp
btl $0x10, %ebp
jb 0x1fd0
orb $0x1, %dl
movb %dl, 0x30(%rbx)
xorl %eax, %ecx
movl %ebp, %edx
xorl %eax, %edx
andl %ecx, %edx
movzwl %dx, %edi
jmp 0x204d
movl %r9d, %r14d
pushq $0x8
popq %rsi
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2d4d
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
pushq $0x9
popq %rsi
xorl %r15d, %r15d
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r14d, %edx
xorl %ecx, %ecx
callq 0x2d4d
testl %eax, %eax
jne 0x2b0a
movb 0x30(%rbx), %dl
andb $-0x4, %dl
movb %dl, 0x30(%rbx)
movzwl 0x10(%rbx), %eax
movzwl 0x12(%rbx), %ecx
movl %eax, %ebp
addl %ecx, %ebp
cmpl $0x10000, %ebp          # imm = 0x10000
jb 0x2040
orb $0x1, %dl
movb %dl, 0x30(%rbx)
movl %ebp, %edx
xorl %ecx, %edx
xorl %ecx, %eax
notl %eax
andl %edx, %eax
movzwl %ax, %edi
callq 0x13dc
testw %ax, %ax
je 0x205b
orb $0x2, 0x30(%rbx)
movzwl %bp, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2f1f
xorl %r15d, %r15d
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x2f41
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
jmp 0x259b
movl %ecx, %edx
andl $0xfc0, %edx            # imm = 0xFC0
addl $0xfffff600, %edx       # imm = 0xFFFFF600
shrl $0x6, %edx
cmpl $0xf, %edx
ja 0x25aa
leaq 0x20b4(%rip), %rax      # 0x415c
movslq (%rax,%rdx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
xorl %r15d, %r15d
movw $0x8, %ax
pushq $0x1
popq %rbp
jmp 0x2b41
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %ebp, %edx
movl %r12d, %ecx
callq 0x2d4d
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
andb $-0x3, 0x30(%rbx)
movl 0x10(%rbx), %eax
notl %eax
andw 0x12(%rbx), %ax
movzwl %ax, %r14d
jmp 0x257a
movw %ax, (%rbx,%r12,2)
jmp 0x259b
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r9d, %edx
movl 0xc(%rsp), %r12d
movl %r12d, %ecx
callq 0x2d4d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x1f5e
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)
cmpw $0x0, 0x14(%rsp)
pushq $0x1
popq %rbp
js 0x2753
andl $0x8000, %eax           # imm = 0x8000
orl %edx, %eax
jmp 0x275e
pushq $0x9
popq %rsi
xorl %r15d, %r15d
movq %rbx, %rdi
movl %r9d, %edx
movl 0xc(%rsp), %ecx
xorl %r8d, %r8d
callq 0x2d4d
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
movzwl 0x12(%rbx), %esi
movw %si, 0x10(%rbx)
andb $-0x4, 0x30(%rbx)
jmp 0x1f2d
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r9d, %edx
movl 0xc(%rsp), %ebp
movl %ebp, %ecx
callq 0x2d4d
testl %eax, %eax
jne 0x21ef
movzwl 0x12(%rbx), %eax
movw %ax, 0x10(%rbx)
movb 0x30(%rbx), %al
andb $-0x10, %al
orb $0x4, %al
movb %al, 0x30(%rbx)
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
jmp 0x23a8
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r9d, %edx
movl 0xc(%rsp), %r14d
movl %r14d, %ecx
callq 0x2d4d
testl %eax, %eax
je 0x26d4
xorl %r15d, %r15d
jmp 0x1f5e
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r9d, %edx
movl 0xc(%rsp), %r12d
movl %r12d, %ecx
callq 0x2d4d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x1f5e
movzwl 0x12(%rbx), %eax
movzbl 0x30(%rbx), %ecx
movl %ecx, %ebp
andl $0x1, %ebp
andb $-0x4, %cl
addl %eax, %ebp
cmpl $0x10000, %ebp          # imm = 0x10000
setae %dl
orb %cl, %dl
movw %ax, 0x10(%rbx)
movb %dl, 0x30(%rbx)
cmpw $0x0, 0x14(%rsp)
jns 0x2258
movzbl %bpl, %edi
callq 0x13e2
movzwl %ax, %ebp
movzwl 0x10(%rbx), %eax
notl %eax
andl %ebp, %eax
movzwl %ax, %edi
callq 0x13dc
testw %ax, %ax
je 0x226d
orb $0x2, 0x30(%rbx)
movzwl %bp, %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x2f1f
movq %rbx, %rdi
movl %r14d, %esi
movl %r12d, %edx
jmp 0x2072
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r9d, %edx
movl 0xc(%rsp), %r12d
movl %r12d, %ecx
callq 0x2d4d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x1f5e
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)
cmpw $0x0, 0x14(%rsp)
pushq $0x1
popq %rbp
jns 0x22de
movzbl %al, %edi
callq 0x13e2
movb 0x30(%rbx), %cl
movzbl %cl, %edx
movl %edx, %esi
shrl $0x3, %esi
xorl %edx, %esi
testb $0x1, %sil
je 0x20ec
orb $0x2, %cl
movb %cl, 0x30(%rbx)
jmp 0x20ec
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r9d, %edx
movl 0xc(%rsp), %r12d
movl %r12d, %ecx
callq 0x2d4d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x1f5e
movzwl 0x12(%rbx), %eax
andb $-0x3, 0x30(%rbx)
leal -0x1(%rax), %r14d
movw %ax, 0x10(%rbx)
cmpw $0x0, 0x14(%rsp)
pushq $0x1
popq %rbp
jns 0x234d
movzbl %r14b, %edi
callq 0x13e2
movl %eax, %r14d
movzwl 0x10(%rbx), %eax
movl %r14d, %ecx
notl %ecx
andl %ecx, %eax
jmp 0x2489
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r9d, %edx
movl 0xc(%rsp), %ebp
movl %ebp, %ecx
callq 0x2d4d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x1f5e
movzwl 0x12(%rbx), %r14d
movw %r14w, 0x10(%rbx)
movb 0x30(%rbx), %al
andb $-0x4, %al
incb %al
movb %al, 0x30(%rbx)
xorl $0xffff, %r14d          # imm = 0xFFFF
movq %rbx, %rdi
movl %r14d, %esi
callq 0x2f1f
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
jmp 0x2072
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r9d, %edx
movl 0xc(%rsp), %r12d
movl %r12d, %ecx
callq 0x2d4d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x1f5e
movzbl 0x30(%rbx), %ecx
movl %ecx, %eax
andl $0x1, %eax
andb $-0x4, %cl
movzwl 0x12(%rbx), %edx
leal (%rdx,%rdx), %r14d
andl %ebp, %r14d
orl %eax, %r14d
movw %dx, 0x10(%rbx)
movl %edx, %eax
shrl $0xf, %eax
orb %cl, %al
movb %al, 0x30(%rbx)
cmpw $0x0, 0x14(%rsp)
jns 0x2414
movzbl %r14b, %edi
callq 0x13e2
movzwl %ax, %r14d
movb 0x30(%rbx), %al
movzbl %al, %ecx
movl %ecx, %edx
shrl $0x3, %edx
xorl %ecx, %edx
testb $0x1, %dl
pushq $0x1
popq %rbp
je 0x257a
orb $0x2, %al
movb %al, 0x30(%rbx)
jmp 0x257a
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r9d, %edx
movl 0xc(%rsp), %r12d
movl %r12d, %ecx
callq 0x2d4d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x1f5e
movzwl 0x12(%rbx), %eax
andb $-0x3, 0x30(%rbx)
leal 0x1(%rax), %r14d
movw %ax, 0x10(%rbx)
cmpw $0x0, 0x14(%rsp)
pushq $0x1
popq %rbp
jns 0x2484
movzbl %r14b, %edi
callq 0x13e2
movl %eax, %r14d
movzwl 0x10(%rbx), %eax
notl %eax
andl %r14d, %eax
movzwl %ax, %edi
jmp 0x2568
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r9d, %edx
movl 0xc(%rsp), %r12d
movl %r12d, %ecx
callq 0x2d4d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x1f5e
movzwl 0x12(%rbx), %eax
movzbl 0x30(%rbx), %ecx
movl %ecx, %edx
andl $0x1, %edx
testw %ax, %ax
sete %sil
orb $-0x4, %sil
movl %eax, %r14d
subl %edx, %r14d
andb %cl, %sil
movw %ax, 0x10(%rbx)
movb %sil, 0x30(%rbx)
cmpw $0x0, 0x14(%rsp)
pushq $0x1
popq %rbp
jns 0x24fa
movzbl %r14b, %edi
callq 0x13e2
movl %eax, %r14d
movzwl 0x10(%rbx), %eax
movl %r14d, %ecx
notl %ecx
andl %ecx, %eax
movzwl %ax, %edi
jmp 0x2568
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r9d, %edx
movl 0xc(%rsp), %r12d
movl %r12d, %ecx
callq 0x2d4d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x1f5e
movzwl 0x12(%rbx), %r14d
andb $-0x4, 0x30(%rbx)
movw %r14w, 0x10(%rbx)
negl %r14d
cmpw $0x0, 0x14(%rsp)
pushq $0x1
popq %rbp
jns 0x2553
movzbl %r14b, %edi
callq 0x13e2
movl %eax, %r14d
testw %r14w, %r14w
je 0x255d
orb $0x1, 0x30(%rbx)
movzwl 0x10(%rbx), %eax
andw %r14w, %ax
movzwl %ax, %edi
callq 0x13dc
testw %ax, %ax
je 0x2576
orb $0x2, 0x30(%rbx)
movzwl %r14w, %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x2f1f
movq %rbx, %rdi
movl %r14d, %esi
movl %r12d, %edx
callq 0x2f41
testl %eax, %eax
jne 0x2b0a
movb 0x30(%rbx), %cl
xorl %r15d, %r15d
movb 0x13(%rsp), %dl
jmp 0x2c1d
movl $0x8f00, %esi           # imm = 0x8F00
movl %ecx, %edx
andl %esi, %edx
cmpl %esi, %edx
je 0x20b1
movzwl %ax, %eax
addl %eax, %eax
cmpl $0x200, %edx            # imm = 0x200
je 0x292a
cmpl $0x300, %edx            # imm = 0x300
je 0x28e4
cmpl $0x400, %edx            # imm = 0x400
je 0x28c8
cmpl $0x500, %edx            # imm = 0x500
je 0x2938
cmpl $0x600, %edx            # imm = 0x600
je 0x2900
cmpl $0x700, %edx            # imm = 0x700
je 0x28ba
xorl %r15d, %r15d
cmpl $0x800, %edx            # imm = 0x800
je 0x277d
cmpl $0x900, %edx            # imm = 0x900
je 0x277d
cmpl $0xe00, %edx            # imm = 0xE00
je 0x20b1
cmpl $0xf00, %edx            # imm = 0xF00
je 0x20b1
cmpl $0x8000, %edx           # imm = 0x8000
je 0x282d
cmpl $0x8100, %edx           # imm = 0x8100
je 0x2813
cmpl $0x8200, %edx           # imm = 0x8200
je 0x290e
cmpl $0x8300, %edx           # imm = 0x8300
je 0x2848
cmpl $0x8400, %edx           # imm = 0x8400
je 0x291c
cmpl $0x8500, %edx           # imm = 0x8500
je 0x2862
cmpl $0x8600, %edx           # imm = 0x8600
je 0x28f2
cmpl $0x8700, %edx           # imm = 0x8700
je 0x28d6
cmpl $0x8800, %edx           # imm = 0x8800
je 0x2824
cmpl $0x8900, %edx           # imm = 0x8900
je 0x2859
cmpl $0x8e00, %edx           # imm = 0x8E00
je 0x20b1
cmpl $0x100, %edx            # imm = 0x100
jne 0x2873
addw %ax, 0xe(%rbx)
jmp 0x1e78
movzwl 0x12(%rbx), %eax
movb 0x30(%rbx), %cl
movl %ecx, %edx
andb $-0x4, %dl
andl %eax, %ebp
shrl %ebp
xorl %esi, %esi
testb $0x1, %cl
cmovel %esi, %r15d
orl %ebp, %r15d
movw %ax, 0x10(%rbx)
andb $0x1, %al
orb %dl, %al
movb %al, 0x30(%rbx)
cmpw $0x0, 0x14(%rsp)
jns 0x2713
movzbl %r15b, %edi
callq 0x13e2
movzwl %ax, %r15d
movb 0x30(%rbx), %al
movzbl %al, %ecx
movl %ecx, %edx
shrl $0x3, %edx
xorl %ecx, %edx
testb $0x1, %dl
pushq $0x1
popq %rbp
je 0x272a
orb $0x2, %al
movb %al, 0x30(%rbx)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x2f1f
movq %rbx, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x2f41
testl %eax, %eax
je 0x259b
xorl %r15d, %r15d
jmp 0x2b0a
movzbl %dl, %edi
callq 0x13e2
movb 0x30(%rbx), %cl
movzbl %cl, %edx
movl %edx, %esi
shrl $0x3, %esi
xorl %edx, %esi
testb $0x1, %sil
je 0x20ec
orb $0x2, %cl
movb %cl, 0x30(%rbx)
jmp 0x20ec
testl %r14d, %r14d
je 0x2a08
xorl %r15d, %r15d
movq %rbx, %rdi
movl %r9d, %esi
xorl %edx, %edx
callq 0x2d97
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x196a
testl %eax, %eax
jne 0x2b0a
andl $0x7, %r13d
movzwl 0x20(%rbx), %eax
movw %ax, 0x12(%rbx)
movl 0xc(%rbx), %eax
addl $-0x2, %eax
movw %ax, 0xc(%rbx)
cmpw $0xff, %ax
ja 0x27d8
orb $0x1, 0x34(%rbx)
movw %ax, 0x22(%rbx)
movzwl (%rbx,%r13,2), %eax
movq 0x28(%rbx), %rcx
movw %ax, 0xc(%rcx)
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1ad1
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
movzwl 0xe(%rbx), %eax
movw %ax, (%rbx,%r13,2)
movzwl 0x12(%rbx), %eax
jmp 0x29ff
movzbl 0x30(%rbx), %ecx
andl $0xf, %ecx
movl $0xff00, %edx           # imm = 0xFF00
jmp 0x2944
movw $0x18, %ax
jmp 0x20b8
movb 0x30(%rbx), %cl
andb $0xf, %cl
pushq $0x1
popq %rdx
shll %cl, %edx
testb %dl, %dl
pushq $0x1
popq %rbp
je 0x259b
jmp 0x2950
movzbl 0x30(%rbx), %ecx
andl $0xf, %ecx
movl $0xfafa, %edx           # imm = 0xFAFA
jmp 0x2944
movw $0x1c, %ax
jmp 0x20b8
movzbl 0x30(%rbx), %ecx
andl $0xf, %ecx
movl $0xcccc, %edx           # imm = 0xCCCC
jmp 0x2944
cmpw $0x100, %cx             # imm = 0x100
jae 0x2aeb
movl %r13d, %eax
leaq 0x1914(%rip), %rdx      # 0x419c
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
movl %r12d, %r13d
jmpq *%rax
cmpl $0x5, %r12d
ja 0x20b1
leaq 0x1907(%rip), %rax      # 0x41ac
movslq (%rax,%r13,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0x2, 0x3c(%rbx)
jmp 0x1e78
movzbl 0x30(%rbx), %ecx
andl $0xf, %ecx
movl $0xf3fc, %edx           # imm = 0xF3FC
jmp 0x2944
movzbl 0x30(%rbx), %ecx
andl $0xf, %ecx
movl $0xcc33, %edx           # imm = 0xCC33
jmp 0x2944
movzbl 0x30(%rbx), %ecx
andl $0xf, %ecx
movl $0xaaaa, %edx           # imm = 0xAAAA
jmp 0x2944
movzbl 0x30(%rbx), %ecx
andl $0xf, %ecx
movl $0xf0f0, %edx           # imm = 0xF0F0
jmp 0x2944
movzbl 0x30(%rbx), %ecx
andl $0xf, %ecx
movl $0x5555, %edx           # imm = 0x5555
jmp 0x2944
movzbl 0x30(%rbx), %ecx
andl $0xf, %ecx
movl $0xc03, %edx            # imm = 0xC03
jmp 0x2944
movzbl 0x30(%rbx), %ecx
andl $0xf, %ecx
movl $0x505, %edx            # imm = 0x505
jmp 0x2944
movzbl 0x30(%rbx), %ecx
andl $0xf, %ecx
movl $0x3333, %edx           # imm = 0x3333
jmp 0x2944
movzbl 0x30(%rbx), %ecx
andl $0xf, %ecx
movl $0xf0f, %edx            # imm = 0xF0F
jmp 0x2944
movzbl 0x30(%rbx), %ecx
andl $0xf, %ecx
movl $0x33cc, %edx           # imm = 0x33CC
btl %ecx, %edx
pushq $0x1
popq %rbp
jae 0x259b
addw %ax, 0xe(%rbx)
jmp 0x259b
movl %r14d, %eax
leaq 0x1861(%rip), %rdx      # 0x41c4
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
notb %cl
orb $-0x10, %cl
andb 0x30(%rbx), %cl
jmp 0x2a17
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r9d, %edx
movl 0xc(%rsp), %ecx
callq 0x2d4d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x1f5e
andb $-0x4, 0x30(%rbx)
movzwl 0x12(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x2f1f
movq %rbx, %rdi
movl %r14d, %esi
movl 0xc(%rsp), %edx
jmp 0x2072
testl %r14d, %r14d
je 0x2a08
xorl %r15d, %r15d
movq %rbx, %rdi
movl %r9d, %esi
xorl %edx, %edx
callq 0x2d97
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x196a
testl %eax, %eax
jne 0x2b0a
movzwl 0x20(%rbx), %eax
movw %ax, 0xe(%rbx)
jmp 0x259b
movw $0x4, %ax
jmp 0x20b8
andb $0xf, %cl
orb 0x30(%rbx), %cl
movb %cl, 0x30(%rbx)
xorl %r15d, %r15d
pushq $0x1
popq %rbp
jmp 0x25a1
movl 0xc(%rbx), %eax
movw %ax, 0x22(%rbx)
addl $0x2, %eax
movw %ax, 0xc(%rbx)
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x196a
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
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 %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x196a
testl %eax, %eax
jne 0x2b0a
movq 0x28(%rbx), %rax
movb 0xc(%rax), %cl
movb %cl, 0x30(%rbx)
jmp 0x259e
movw $0xc, %ax
jmp 0x20b8
movw $0x10, %ax
jmp 0x20b8
movq %rbx, %rdi
callq 0x1918
jmp 0x1e78
movl 0xc(%rbx), %eax
movw %ax, 0x22(%rbx)
addl $0x2, %eax
movw %ax, 0xc(%rbx)
movzwl (%rbx,%r13,2), %eax
movw %ax, 0xe(%rbx)
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x196a
testl %eax, %eax
pushq $0x1
popq %rbp
jne 0x2b0a
movq 0x28(%rbx), %rax
movzwl 0xc(%rax), %eax
movw %ax, (%rbx,%r13,2)
jmp 0x259b
leaq 0x17ab(%rip), %rdi      # 0x429d
leaq 0x17bd(%rip), %rsi      # 0x42b6
leaq 0x17be(%rip), %rcx      # 0x42be
movl $0x24e, %edx            # imm = 0x24E
callq 0x10d0
cmpl $0x2, 0x38(%rbx)
jge 0x2b22
leaq 0x17d9(%rip), %rdi      # 0x42f0
callq 0x1040
movw $0x4, %ax
jmp 0x2b41
leaq 0x17d1(%rip), %rdi      # 0x42fa
callq 0x1040
andl $0x0, 0x3c(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movw %ax, 0x14(%rbx)
movzwl 0xc(%rbx), %eax
addl $-0x2, %eax
movw %ax, 0xc(%rbx)
testl %r15d, %r15d
sete %cl
cmpw $0x100, %ax             # imm = 0x100
setb %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x2b68
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 0x1ad1
testl %eax, %eax
jne 0x2b0a
testl %r15d, %r15d
sete %cl
movzwl 0xc(%rbx), %eax
addl $-0x2, %eax
movw %ax, 0xc(%rbx)
cmpw $0x100, %ax             # imm = 0x100
setb %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x2ba9
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 0x1ad1
testl %eax, %eax
jne 0x2b0a
movzwl 0x14(%rbx), %eax
movw %ax, 0x22(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x196a
testl %eax, %eax
jne 0x2b0a
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
xorl %edx, %edx
callq 0x196a
testl %eax, %eax
jne 0x2b0a
movq 0x28(%rbx), %rax
movb 0xc(%rax), %cl
movb %cl, 0x30(%rbx)
movl %ecx, %edx
movw $0xc, %ax
testb $0x10, %dl
jne 0x2b41
movl 0x34(%rbx), %eax
testb $0x1, %al
jne 0x2cb6
testb $0x2, %al
jne 0x2cc8
cmpb $-0x20, %cl
setae %dl
testb $0x4, %al
sete %sil
orb %dl, %sil
je 0x2cd7
cmpb $-0x41, %cl
ja 0x2b32
testb $0x8, %al
jne 0x2ce9
testb $0x10, %al
jne 0x2cfb
cmpb $-0x61, %cl
ja 0x2b32
testb $0x20, %al
jne 0x2d11
testb %cl, %cl
js 0x2b32
testb $0x40, %al
jne 0x2d23
testb %al, %al
js 0x2d35
btl $0x8, %eax
jae 0x2b32
andl $0xfffffe04, %eax       # imm = 0xFFFFFE04
movl %eax, 0x34(%rbx)
andl $0x0, 0xb0(%rbx)
movw $0x34, %ax
jmp 0x2b41
andl $-0x2, %eax
movl %eax, 0x34(%rbx)
movw $0x4, %ax
movl %ebp, %r15d
jmp 0x2b41
andl $-0x4, %eax
movl %eax, 0x34(%rbx)
movw $0x14, %ax
jmp 0x2b41
andl $-0x8, %eax
movl %eax, 0x34(%rbx)
movq 0x78(%rbx), %rdi
callq *0x70(%rbx)
jmp 0x2b41
andl $-0xc, %eax
movl %eax, 0x34(%rbx)
movq 0x68(%rbx), %rdi
callq *0x60(%rbx)
jmp 0x2b41
andl $-0x1c, %eax
movl %eax, 0x34(%rbx)
andl $0x0, 0x8c(%rbx)
movw $0x40, %ax
jmp 0x2b41
andl $-0x3c, %eax
movl %eax, 0x34(%rbx)
movq 0x58(%rbx), %rdi
callq *0x50(%rbx)
jmp 0x2b41
andl $-0x7c, %eax
movl %eax, 0x34(%rbx)
movq 0x48(%rbx), %rdi
callq *0x40(%rbx)
jmp 0x2b41
andl $0xffffff04, %eax       # imm = 0xFFFFFF04
movl %eax, 0x34(%rbx)
andl $0x0, 0x9c(%rbx)
movw $0x30, %ax
jmp 0x2b41