// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: loadoldboard
int loadoldboard(char *filename, char fromwhere, int *daposx, int *daposy, int *daposz,
			 short *daang, short *dacursectnum)
{
	short fil, i, numsprites;
	struct sectortypev4 v4sect;
	struct walltypev4   v4wall;
	struct spritetypev4 v4spr;
	struct sectortypev5 v5sect;
	struct walltypev5   v5wall;
	struct spritetypev5 v5spr;
	struct sectortypev6 v6sect;
	struct walltypev6   v6wall;
	struct spritetypev6 v6spr;

	i = strlen(filename)-1;
	if ((unsigned char)filename[i] == 255) { filename[i] = 0; fromwhere = 1; }	// JBF 20040119: "compatibility"
	if ((fil = kopen4load(filename,fromwhere)) == -1)
		{ mapversion = 5L; return(-1); }

	if (kread(fil,&mapversion,4) != 4) goto readerror;
	mapversion = B_LITTLE32(mapversion);
	if (mapversion != 4L && mapversion != 5L && mapversion != 6L) {
		kclose(fil);
		return(-2);
	}

	initspritelists();

	clearbuf(&show2dsector[0],(int)((MAXSECTORS+3)>>5),0L);
	clearbuf(&show2dsprite[0],(int)((MAXSPRITES+3)>>5),0L);
	clearbuf(&show2dwall[0],(int)((MAXWALLS+3)>>5),0L);

	if (kread(fil,daposx,4) != 4) goto readerror;
	if (kread(fil,daposy,4) != 4) goto readerror;
	if (kread(fil,daposz,4) != 4) goto readerror;
	if (kread(fil,daang,2) != 2) goto readerror;
	if (kread(fil,dacursectnum,2) != 2) goto readerror;
	*daposx = B_LITTLE32(*daposx);
	*daposy = B_LITTLE32(*daposy);
	*daposz = B_LITTLE32(*daposz);
	*daang  = B_LITTLE16(*daang);
	*dacursectnum = B_LITTLE16(*dacursectnum);

	if (mapversion == 4) {
		if (kread(fil,&numsectors,2) != 2) goto readerror;
		if (kread(fil,&numwalls,2) != 2) goto readerror;
		if (kread(fil,&numsprites,2) != 2) goto readerror;
	}

	if (mapversion > 4 && kread(fil,&numsectors,2) != 2) goto readerror;
	numsectors = B_LITTLE16(numsectors);
	if (numsectors > MAXSECTORS) {
		kclose(fil);
		return(-1);
	}

	for (i=0; i<numsectors; i++) {
		switch (mapversion) {
			case 4:
				if (readv4sect(fil,&v4sect)) goto readerror;
				convertv4sectv5(&v4sect,&v5sect);
				convertv5sectv6(&v5sect,&v6sect);
				convertv6sectv7(&v6sect,&sector[i]);
				break;
			case 5:
				if (readv5sect(fil,&v5sect)) goto readerror;
				convertv5sectv6(&v5sect,&v6sect);
				convertv6sectv7(&v6sect,&sector[i]);
				break;
			case 6:
				if (readv6sect(fil,&v6sect)) goto readerror;
				convertv6sectv7(&v6sect,&sector[i]);
				break;
		}
	}

	if (mapversion > 4 && kread(fil,&numwalls,2) != 2) goto readerror;
	numwalls = B_LITTLE16(numwalls);
	if (numwalls > MAXWALLS) {
		kclose(fil);
		return(-1);
	}

	for (i=0; i<numwalls; i++) {
		switch (mapversion) {
			case 4:
				if (readv4wall(fil,&v4wall)) goto readerror;
				convertv4wallv5(&v4wall,&v5wall);
				convertv5wallv6(&v5wall,&v6wall,i);
				convertv6wallv7(&v6wall,&wall[i]);
				break;
			case 5:
				if (readv5wall(fil,&v5wall)) goto readerror;
				convertv5wallv6(&v5wall,&v6wall,i);
				convertv6wallv7(&v6wall,&wall[i]);
				break;
			case 6:
				if (readv6wall(fil,&v6wall)) goto readerror;
				convertv6wallv7(&v6wall,&wall[i]);
				break;
		}
	}

	if (mapversion > 4 && kread(fil,&numsprites,2) != 2) goto readerror;
	numsprites = B_LITTLE16(numsprites);
	if (numsprites > MAXSPRITES) {
		kclose(fil);
		return(-1);
	}

	for (i=0; i<numsprites; i++) {
		switch (mapversion) {
			case 4:
				if (readv4sprite(fil,&v4spr)) goto readerror;
				convertv4sprv5(&v4spr,&v5spr);
				convertv5sprv6(&v5spr,&v6spr);
				convertv6sprv7(&v6spr,&sprite[i]);
				break;
			case 5:
				if (readv5sprite(fil,&v5spr)) goto readerror;
				convertv5sprv6(&v5spr,&v6spr);
				convertv6sprv7(&v6spr,&sprite[i]);
				break;
			case 6:
				if (readv6sprite(fil,&v6spr)) goto readerror;
				convertv6sprv7(&v6spr,&sprite[i]);
				break;
		}
	}

	for(i=0;i<numsprites;i++) {
		if ((sprite[i].cstat & 48) == 48) sprite[i].cstat &= ~48;
		insertsprite(sprite[i].sectnum,sprite[i].statnum);
	}

		//Must be after loading sectors, etc!
	updatesector(*daposx,*daposy,dacursectnum);

	kclose(fil);

#if USE_POLYMOST && USE_OPENGL
	memset(spriteext, 0, sizeof(spriteext));
#endif
	guniqhudid = 0;

	return(0);

readerror:
	kclose(fil);
	return -3;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %r9, %r15
movq %r8, %r12
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r13
callq 0x6420
decl %eax
movswq %ax, %rax
cmpb $-0x1, (%r13,%rax)
jne 0x2d449
movb $0x0, (%r13,%rax)
movb $0x1, %bpl
movsbl %bpl, %esi
movq %r13, %rdi
callq 0x1dc36
movl %eax, %ecx
shll $0x10, %ecx
cmpl $0xffff0000, %ecx       # imm = 0xFFFF0000
jne 0x2d473
movl $0x5, 0x7032c(%rip)     # 0x9d798
pushq $-0x1
jmp 0x2ed4b
movswl %ax, %ebp
leaq 0x7031b(%rip), %rsi     # 0x9d798
pushq $0x4
popq %rdx
movl %ebp, %edi
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl 0x70302(%rip), %eax     # 0x9d798
addl $-0x7, %eax
cmpl $-0x4, %eax
ja 0x2d4ac
movl %ebp, %edi
callq 0x1e2db
pushq $-0x2
jmp 0x2ed4b
callq 0x22da8
leaq 0x376e28(%rip), %rdi    # 0x3a42e0
movl $0x80, %esi
xorl %edx, %edx
callq 0x444af
leaq 0x377015(%rip), %rdi    # 0x3a44e0
movl $0x200, %esi            # imm = 0x200
xorl %edx, %edx
callq 0x444af
leaq 0x377802(%rip), %rdi    # 0x3a4ce0
movl $0x200, %esi            # imm = 0x200
xorl %edx, %edx
callq 0x444af
pushq $0x4
popq %rdx
movl %ebp, %edi
movq %r14, %rsi
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
pushq $0x4
popq %rdx
movl %ebp, %edi
movq %rbx, %rsi
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
pushq $0x4
popq %rdx
movl %ebp, %edi
movq %r12, %rsi
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
pushq $0x2
popq %rdx
movl %ebp, %edi
movq %r15, %rsi
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movq 0x1c0(%rsp), %rsi
pushq $0x2
popq %rdx
movl %ebp, %edi
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl 0x70235(%rip), %eax     # 0x9d798
cmpl $0x4, %eax
jne 0x2d5ba
leaq 0x39b9f1(%rip), %rsi    # 0x3c8f60
pushq $0x2
popq %rdx
movl %ebp, %edi
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
leaq 0x3e26df(%rip), %rsi    # 0x40fc68
pushq $0x2
popq %rdx
movl %ebp, %edi
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
leaq 0xe(%rsp), %rsi
pushq $0x2
popq %rdx
movl %ebp, %edi
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl 0x701de(%rip), %eax     # 0x9d798
cmpl $0x5, %eax
jl 0x2d5d9
leaq 0x39b99a(%rip), %rsi    # 0x3c8f60
pushq $0x2
popq %rdx
movl %ebp, %edi
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movzwl 0x39b980(%rip), %eax    # 0x3c8f60
cmpw $0x1000, %ax            # imm = 0x1000
jle 0x2d5f2
movl %ebp, %edi
callq 0x1e2db
jmp 0x2d46c
leaq 0x20f467(%rip), %r15    # 0x23ca60
xorl %edx, %edx
movswq %ax, %rcx
movl 0x70193(%rip), %eax     # 0x9d798
cmpq %rcx, %rdx
jge 0x2de98
cmpl $0x6, %eax
je 0x2dc48
cmpl $0x5, %eax
je 0x2d9e1
cmpl $0x4, %eax
jne 0x2de85
movq %rdx, 0x170(%rsp)
movq %r15, 0x178(%rsp)
movl %ebp, %edi
leaq 0x8c(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x8e(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x90(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x91(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x92(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x93(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x94(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x98(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x9a(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x9c(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x9d(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x9e(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x9f(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xa0(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xa4(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xa6(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xa8(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movzwl 0x8c(%rsp), %eax
movw %ax, 0xb6(%rsp)
movzwl 0x8e(%rsp), %ecx
movw %cx, 0xb4(%rsp)
movw %ax, 0x38(%rsp)
movw %cx, 0x3a(%rsp)
movzwl 0x98(%rsp), %eax
movw %ax, 0xb2(%rsp)
movw %ax, 0x3c(%rsp)
movzwl 0xa4(%rsp), %eax
movw %ax, 0xb0(%rsp)
movw %ax, 0x3e(%rsp)
movzwl 0x9a(%rsp), %eax
movw %ax, 0xae(%rsp)
movw %ax, 0x40(%rsp)
movzwl 0xa6(%rsp), %eax
movw %ax, 0xac(%rsp)
movw %ax, 0x42(%rsp)
movl 0x94(%rsp), %eax
movl %eax, 0x184(%rsp)
movl %eax, 0x44(%rsp)
movl 0xa0(%rsp), %r11d
movl %r11d, 0x48(%rsp)
movb 0x93(%rsp), %r12b
movb %r12b, 0x4c(%rsp)
movb 0x9f(%rsp), %r13b
movb %r13b, 0x4d(%rsp)
movb 0x90(%rsp), %r10b
movb 0x91(%rsp), %r15b
movb %r15b, 0x4e(%rsp)
movb 0x9d(%rsp), %r8b
movb %r8b, 0x4f(%rsp)
movb 0x92(%rsp), %dil
movb %dil, 0x50(%rsp)
movb 0x9e(%rsp), %sil
movb %sil, 0x51(%rsp)
movb %r10b, 0x52(%rsp)
movb 0x9c(%rsp), %dl
movb %dl, 0x53(%rsp)
andw $0x0, 0x54(%rsp)
xorl %eax, %eax
movb %al, 0x56(%rsp)
movl 0xa8(%rsp), %ecx
movw %cx, 0x58(%rsp)
movl %ecx, %eax
shrl $0x10, %eax
movw %ax, 0x5a(%rsp)
orw $-0x1, 0x5c(%rsp)
movzwl 0xb6(%rsp), %r9d
movw %r9w, 0x10(%rsp)
movzwl 0xb4(%rsp), %r9d
movw %r9w, 0x12(%rsp)
movzwl 0xb2(%rsp), %r9d
movw %r9w, 0x14(%rsp)
movzwl 0xb0(%rsp), %r9d
movw %r9w, 0x16(%rsp)
movzwl 0xae(%rsp), %r9d
movw %r9w, 0x18(%rsp)
movzwl 0xac(%rsp), %r9d
movw %r9w, 0x1a(%rsp)
movl 0x184(%rsp), %r9d
movl %r9d, 0x1c(%rsp)
movl %r11d, 0x20(%rsp)
movb %r12b, 0x24(%rsp)
movb %r13b, 0x25(%rsp)
movb %r15b, 0x26(%rsp)
movb %r8b, 0x27(%rsp)
movb %dil, 0x28(%rsp)
movb %sil, 0x29(%rsp)
movb %r10b, 0x2a(%rsp)
movb %dl, 0x2b(%rsp)
andw $0x0, 0x2c(%rsp)
xorl %edx, %edx
movb %dl, 0x2e(%rsp)
movw %cx, 0x30(%rsp)
movw %ax, 0x32(%rsp)
movw $0xffff, %ax            # imm = 0xFFFF
jmp 0x2dc3e
movq %rdx, 0x170(%rsp)
movq %r15, 0x178(%rsp)
movl %ebp, %edi
leaq 0x38(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x3a(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x3c(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x3e(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x40(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x42(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x44(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x48(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x4c(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x4d(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x4e(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x4f(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x50(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x51(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x52(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x53(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x54(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x55(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x56(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x58(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x5a(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x5c(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
movl 0x40(%rsp), %eax
movl %eax, 0x18(%rsp)
movdqu 0x44(%rsp), %xmm0
movdqu %xmm0, 0x1c(%rsp)
movb 0x54(%rsp), %al
movb %al, 0x2c(%rsp)
movzwl 0x55(%rsp), %eax
movw %ax, 0x2d(%rsp)
movl 0x58(%rsp), %eax
movl %eax, 0x30(%rsp)
movzwl 0x5c(%rsp), %eax
movw %ax, 0x34(%rsp)
jmp 0x2de68
movq %rdx, 0x170(%rsp)
movq %r15, 0x178(%rsp)
movl %ebp, %edi
leaq 0x10(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x12(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x14(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x16(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x18(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x1a(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x1c(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x20(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x24(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x25(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x26(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x27(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x28(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x29(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x2a(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x2b(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x2c(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x2d(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x2e(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x30(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x32(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x34(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
leaq 0x10(%rsp), %rdi
movq 0x178(%rsp), %r15
movq %r15, %rsi
callq 0x2eddf
movq 0x170(%rsp), %rdx
incq %rdx
movzwl 0x39b0d1(%rip), %eax    # 0x3c8f60
addq $0x28, %r15
jmp 0x2d5fb
cmpl $0x5, %eax
jl 0x2deb7
leaq 0x3e1dc4(%rip), %rsi    # 0x40fc68
pushq $0x2
popq %rdx
movl %ebp, %edi
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movzwl 0x3e1daa(%rip), %eax    # 0x40fc68
cmpw $0x4000, %ax            # imm = 0x4000
jg 0x2d5e6
leaq 0x183b81(%rip), %r13    # 0x1b1a50
xorl %r12d, %r12d
pushq $0x2
popq %r15
movswq %ax, %rcx
movl 0x6f8b8(%rip), %eax     # 0x9d798
cmpq %rcx, %r12
jge 0x2e537
cmpl $0x6, %eax
je 0x2e349
cmpl $0x5, %eax
je 0x2e146
cmpl $0x4, %eax
jne 0x2e524
movl %ebp, %edi
leaq 0x108(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x10c(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x110(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x112(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x113(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x114(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x115(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x116(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x117(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x118(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x11a(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x11c(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x11e(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x120(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x122(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x124(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movq 0x108(%rsp), %rax
movq %rax, 0xe0(%rsp)
movzwl 0x110(%rsp), %eax
movw %ax, 0xe8(%rsp)
movl 0x118(%rsp), %eax
movl %eax, 0xea(%rsp)
movb 0x113(%rsp), %al
movb %al, 0xee(%rsp)
movzbl 0x112(%rsp), %eax
movw %ax, 0xf0(%rsp)
movl 0x114(%rsp), %eax
movl %eax, 0xf2(%rsp)
movq 0x11c(%rsp), %rax
movq %rax, 0xf6(%rsp)
movl 0x124(%rsp), %eax
movw %ax, 0xfe(%rsp)
shrl $0x10, %eax
movw %ax, 0x100(%rsp)
orw $-0x1, 0x102(%rsp)
jmp 0x2e32c
movl %ebp, %edi
leaq 0xe0(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xe4(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xe8(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xea(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xec(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xee(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xf0(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xf2(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xf3(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xf4(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xf5(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xf6(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xf8(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xfa(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xfc(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xfe(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x100(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x102(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
leaq 0xe0(%rsp), %rdi
leaq 0x150(%rsp), %rsi
movl %r12d, %edx
callq 0x2eee5
jmp 0x2e514
movl %ebp, %edi
leaq 0x150(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x154(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x158(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x15a(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x15c(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x15e(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x160(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x162(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x163(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x164(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x166(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x167(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x168(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x169(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x16a(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x16c(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x16e(%rsp), %rsi
movl %r15d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
leaq 0x150(%rsp), %rdi
movq %r13, %rsi
callq 0x2efae
incq %r12
movzwl 0x3e173a(%rip), %eax    # 0x40fc68
addq $0x20, %r13
jmp 0x2ded6
cmpl $0x5, %eax
jl 0x2e554
leaq 0xe(%rsp), %rsi
pushq $0x2
popq %rdx
movl %ebp, %edi
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movzwl 0xe(%rsp), %eax
cmpw $0x4000, %ax            # imm = 0x4000
jg 0x2d5e6
leaq 0x247746(%rip), %r13    # 0x275cb0
xorl %r15d, %r15d
pushq $0x2
popq %r12
movswq %ax, %rcx
cmpq %rcx, %r15
jge 0x2ed60
movl 0x6f214(%rip), %eax     # 0x9d798
cmpl $0x6, %eax
je 0x2eb16
cmpl $0x5, %eax
je 0x2e88a
cmpl $0x4, %eax
jne 0x2ed31
movl %ebp, %edi
leaq 0x128(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x12c(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x130(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x134(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x135(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x136(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x137(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x138(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x13a(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x13c(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x13e(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x140(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x142(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x144(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x146(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x148(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x14c(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl 0x128(%rsp), %edi
movl 0x12c(%rsp), %r8d
movl %edi, 0xb8(%rsp)
movl %r8d, 0xbc(%rsp)
movl 0x130(%rsp), %r9d
movl %r9d, 0xc0(%rsp)
movzbl 0x134(%rsp), %r10d
movb %r10b, 0xc4(%rsp)
movb 0x135(%rsp), %r11b
movb %r11b, 0xc5(%rsp)
movb 0x136(%rsp), %al
movb %al, 0xc6(%rsp)
movb 0x137(%rsp), %cl
movb %cl, 0xc7(%rsp)
movdqu 0x138(%rsp), %xmm0
movdqu %xmm0, 0xc8(%rsp)
movl 0x148(%rsp), %edx
movw %dx, 0xd8(%rsp)
movl %edx, %esi
shrl $0x10, %esi
movw %si, 0xda(%rsp)
orw $-0x1, 0xdc(%rsp)
movl %edi, 0x60(%rsp)
movl %r8d, 0x64(%rsp)
movl %r9d, 0x68(%rsp)
movw %r10w, 0x6c(%rsp)
pextrw $0x6, %xmm0, %edi
movb %r11b, 0x6e(%rsp)
movswq %di, %rdi
imulq $0x28, %rdi, %rdi
leaq 0x20e227(%rip), %r9     # 0x23ca60
leaq (%r9,%rdi), %r8
movzwl 0xc(%rdi,%r9), %edi
xorl %r9d, %r9d
testb $0x1, %dil
sete %r9b
movb 0x15(%r8,%r9,8), %dil
movb %dil, 0x6f(%rsp)
movb $0x20, 0x70(%rsp)
movb %al, 0x71(%rsp)
movb %cl, 0x72(%rsp)
andw $0x0, 0x73(%rsp)
movdqu %xmm0, 0x76(%rsp)
movw %dx, 0x86(%rsp)
movw %si, 0x88(%rsp)
movw $0xffff, %ax            # imm = 0xFFFF
jmp 0x2eb09
movl %ebp, %edi
leaq 0xb8(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xbc(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xc0(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xc4(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xc5(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xc6(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xc7(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xc8(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xca(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xcc(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xce(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xd0(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xd2(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xd4(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xd6(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xd8(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xda(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0xdc(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movq 0xb8(%rsp), %rax
movq %rax, 0x60(%rsp)
movl 0xc0(%rsp), %eax
movl %eax, 0x68(%rsp)
movzbl 0xc4(%rsp), %eax
movw %ax, 0x6c(%rsp)
movb 0xc5(%rsp), %al
movb %al, 0x6e(%rsp)
movb $0x20, 0x70(%rsp)
movzwl 0xc6(%rsp), %eax
movw %ax, 0x71(%rsp)
andw $0x0, 0x73(%rsp)
movdqu 0xc8(%rsp), %xmm0
pextrw $0x6, %xmm0, %eax
movswq %ax, %rax
imulq $0x28, %rax, %rax
leaq 0x20df8b(%rip), %rdx    # 0x23ca60
leaq (%rdx,%rax), %rcx
movzwl 0xc(%rax,%rdx), %eax
xorl %edx, %edx
testb $0x1, %al
sete %dl
movb 0x15(%rcx,%rdx,8), %al
movb %al, 0x6f(%rsp)
movdqu %xmm0, 0x76(%rsp)
movl 0xd8(%rsp), %eax
movl %eax, 0x86(%rsp)
movzwl 0xdc(%rsp), %eax
movw %ax, 0x8a(%rsp)
jmp 0x2ed24
movl %ebp, %edi
leaq 0x60(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x64(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x68(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0x1de3f
cmpl $0x4, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x6c(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x6e(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x6f(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x70(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x71(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x72(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x73(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x74(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x1de3f
cmpl $0x1, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x76(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x78(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x7a(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x7c(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x7e(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x80(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x82(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x84(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x86(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x88(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
movl %ebp, %edi
leaq 0x8a(%rsp), %rsi
movl %r12d, %edx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x2ed42
leaq 0x60(%rsp), %rdi
movq %r13, %rsi
callq 0x2f025
incq %r15
movzwl 0xe(%rsp), %eax
addq $0x2c, %r13
jmp 0x2e571
movl %ebp, %edi
callq 0x1e2db
pushq $-0x3
popq %rbx
movl %ebx, %eax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x246f55(%rip), %r15    # 0x275cbc
xorl %r12d, %r12d
movswq %ax, %rax
cmpq %rax, %r12
jge 0x2eda5
movl (%r15), %eax
movl %eax, %ecx
notl %ecx
testb $0x30, %cl
jne 0x2ed88
andl $0xffcf, %eax           # imm = 0xFFCF
movw %ax, (%r15)
movswl 0xc(%r15), %edi
movswl 0xe(%r15), %esi
callq 0x2d3f9
incq %r12
movzwl 0xe(%rsp), %eax
addq $0x2c, %r15
jmp 0x2ed6a
movl (%r14), %edi
movl (%rbx), %esi
movq 0x1c0(%rsp), %rdx
callq 0x23663
movl %ebp, %edi
callq 0x1e2db
leaq 0x2f6eeb(%rip), %rdi    # 0x325cb0
xorl %ebx, %ebx
movl $0x30c00, %edx          # imm = 0x30C00
xorl %esi, %esi
callq 0x62f0
andl $0x0, 0x3e0e92(%rip)    # 0x40fc6c
jmp 0x2ed4c