// File: /workspace/github_c_makefile_star2_O1/aap[P]rx-0/ww1/mach.c
// Function: simthread
void*
simthread(void *arg)
{
	WWI *ww = (WWI*)arg;
	Msg msg;
	for(;;){
		switch(channbrecv(cmdchan, &msg)){
		case -1:	// channel closed
			return nil;
		case 0:	break;	// nothing
		case 1:
			handlemsg(ww, msg);
			break;
		}

		if(ww->run){
			step(ww);
			if(ww->order_by_order)
				ww->run = 0;
		}else
			usleep(1000);

		handleio(ww);
	}
	return nil;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x109c(%rdi), %r12
leaq 0x1c(%rdi), %rax
movq %rax, -0x38(%rbp)
leaq 0x5c(%rdi), %rax
movq %rax, -0x30(%rbp)
leaq -0x40(%rbp), %r14
movl $0x7ff, %r15d           # imm = 0x7FF
leaq 0x2728(%rip), %r13      # 0x7324
movq 0xbb35(%rip), %rdi      # 0x10738
movq %r14, %rsi
callq 0x41af
cmpl $0x1, %eax
je 0x4c1a
cmpl $-0x1, %eax
jne 0x4c26
jmp 0x629f
movq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0x4a76
cmpl $0x0, 0x8(%rbx)
je 0x4cdd
cmpl $0x0, 0xc(%rbx)
je 0x4cec
movzwl 0x14(%rbx), %eax
testl %eax, %eax
je 0x4e5d
cmpl $0x3, %eax
je 0x4e13
cmpl $0x5, %eax
jne 0x4cec
cmpl $0x0, 0x10c4(%rbx)
jne 0x4e6f
movl $0x0, 0xc(%rbx)
movw $0x0, 0x109c(%rbx)
movzwl 0x16(%rbx), %ecx
cmpq $0x20, %rcx
jb 0x4c8e
movzwl 0x9c(%rbx,%rcx,2), %eax
movw %ax, 0x109c(%rbx)
movw $0x0, 0x10b8(%rbx)
movl $0x0, 0x10d8(%rbx)
movl 0x10c8(%rbx), %eax
movl $0x1c0, %edx            # imm = 0x1C0
andl %edx, %eax
cmpl $0x180, %eax            # imm = 0x180
jne 0x5ab6
movq %r12, %rdx
cmpw $0x1f, %cx
ja 0x5aac
movl 0x18(%rbx), %edx
btl %ecx, %edx
movl %ecx, %ecx
jae 0x5aa4
movq -0x38(%rbp), %rdx
jmp 0x5aa8
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x2430
jmp 0x6269
movl $0x0, 0x10b4(%rbx)
cmpw $0x0, 0x10aa(%rbx)
jne 0x62b0
movzwl 0x10(%rbx), %edx
movw %dx, 0x16(%rbx)
movl $0x0, 0x109c(%rbx)
cmpq $0x20, %rdx
jae 0x4d2a
movl 0x18(%rbx), %eax
btl %edx, %eax
jae 0x4d3e
movq -0x38(%rbp), %rax
jmp 0x4d42
movzwl 0x9c(%rbx,%rdx,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x4d46
movq -0x30(%rbp), %rax
leaq (%rax,%rdx,2), %rax
movzwl 0x109c(%rbx), %ecx
orw (%rax), %cx
movzwl %cx, %ecx
movw %cx, 0x109c(%rbx)
movl %ecx, %eax
andl %r15d, %eax
movw %ax, 0x16(%rbx)
movl %ecx, %esi
shrl $0xb, %esi
movw %si, 0x14(%rbx)
movl %ecx, %edi
andl $0x1f, %edi
movl %edi, %r8d
xorl $0x1f, %r8d
movw %r8w, 0x10b2(%rbx)
shrl $0x9, %ecx
andl $0x1, %ecx
movl %ecx, 0x10a4(%rbx)
movw %dx, 0x12(%rbx)
leal 0x1(%rdx), %r8d
andl %r15d, %r8d
movw %r8w, 0x10(%rbx)
cmpw $0x1f, %si
ja 0x4f68
movslq (%r13,%rsi,4), %r9
addq %r13, %r9
jmpq *%r9
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movl $0x0, 0x10ac(%rbx)
movw %cx, 0x10b0(%rbx)
movw %cx, 0x109c(%rbx)
movzwl 0x10a8(%rbx), %ecx
testw %cx, %cx
jns 0x4df1
notl %ecx
movw %cx, 0x10a8(%rbx)
movl $0x1, 0x10b4(%rbx)
cmpw $0x20, %ax
jae 0x4f4e
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x592c
movq -0x38(%rbp), %rcx
jmp 0x5930
cmpl $0x0, 0x10c4(%rbx)
jne 0x4e6f
movl $0x0, 0xc(%rbx)
movzwl 0x10b8(%rbx), %eax
movw %ax, 0x10a0(%rbx)
movw %ax, 0x109c(%rbx)
movw $0x0, 0x10b8(%rbx)
movw %ax, 0x10a8(%rbx)
movq 0x10d0(%rbx), %rsi
testq %rsi, %rsi
jne 0x4f36
jmp 0x625c
cmpl $0x0, 0x10bc(%rbx)
je 0x4e7b
cmpl $0x0, 0x10c4(%rbx)
je 0x4e7b
movl $0x1, 0xc(%rbx)
jmp 0x625c
movq %r13, %r15
xorl %r13d, %r13d
movl %r13d, 0xc(%rbx)
movl %r13d, 0x10c8(%rbx)
movq 0x10e0(%rbx), %rsi
movq %rbx, %rdi
callq *0x10(%rsi)
movq 0x10e8(%rbx), %rsi
movq %rbx, %rdi
callq *0x10(%rsi)
movl %r13d, 0x10c4(%rbx)
movzwl 0x109c(%rbx), %eax
andl $0x7ff, %eax            # imm = 0x7FF
orl 0x10c8(%rbx), %eax
movl %eax, 0x10c8(%rbx)
movw $0x0, 0x10b8(%rbx)
movl $0x1, 0x10bc(%rbx)
movq $0x0, 0x10d0(%rbx)
movl %eax, %ecx
shrl $0x6, %ecx
andl $0x7, %ecx
leaq 0x24b2(%rip), %rdx      # 0x73a4
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movzwl 0x10a8(%rbx), %eax
movl %eax, %ecx
shrl $0x5, %ecx
movl %ecx, 0x10dc(%rbx)
cmpl $0x0, 0x10bc(%rbx)
je 0x4f1d
movw %ax, 0x10b8(%rbx)
movq 0x10d0(%rbx), %rsi
testq %rsi, %rsi
movq %r15, %r13
movl $0x7ff, %r15d           # imm = 0x7FF
je 0x625c
movq %rbx, %rdi
callq *0x8(%rsi)
cmpl $0x0, 0x10bc(%rbx)
jne 0x625c
jmp 0x5afe
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5934
movzwl %si, %esi
leaq 0x2590(%rip), %rdi      # 0x7502
xorl %eax, %eax
callq 0x2100
jmp 0x625c
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movl $0x0, 0x10ae(%rbx)
movw %cx, 0x10b2(%rbx)
movzwl 0x10a8(%rbx), %ecx
testw %cx, %cx
jns 0x4fb7
notl %ecx
movw %cx, 0x10a8(%rbx)
movl $0x1, 0x10b4(%rbx)
movw $0x0, (%r12)
cmpw $0x20, %ax
jb 0x4fd6
movzwl %ax, %ecx
movzwl 0x9c(%rbx,%rcx,2), %ecx
movw %cx, 0x109c(%rbx)
movl 0x10a8(%rbx), %ecx
btl $0xe, %ecx
jb 0x5024
movzwl 0x10ac(%rbx), %edx
xorl %esi, %esi
movl %ecx, %edi
shldw $0x1, %dx, %cx
shldw $0x1, %di, %dx
movl %esi, %edi
leal 0x1(%rdi), %esi
andl $0x20, %edi
movl %ecx, %r8d
andl $0x4000, %r8d           # imm = 0x4000
orw %di, %r8w
je 0x4feb
movw %cx, 0x10a8(%rbx)
movw %dx, 0x10ac(%rbx)
movw %si, 0x10b2(%rbx)
movzwl (%r12), %ecx
andl $0xf800, %ecx           # imm = 0xF800
movw %cx, (%r12)
cmpw $0x1f, %ax
ja 0x504c
movl 0x18(%rbx), %edx
btl %eax, %edx
jae 0x504c
movzwl %ax, %edx
andw $0xf800, 0x1c(%rbx,%rdx,2) # imm = 0xF800
movzwl 0x10b2(%rbx), %edx
movw %dx, 0x10a0(%rbx)
andl $0x7ff, %edx            # imm = 0x7FF
orl %edx, %ecx
movw %cx, 0x109c(%rbx)
cmpw $0x1f, %ax
ja 0x578f
movl 0x18(%rbx), %ecx
btl %eax, %ecx
jae 0x579a
movzwl %ax, %eax
orw %dx, 0x1c(%rbx,%rax,2)
jmp 0x579a
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movw %cx, 0x10a8(%rbx)
movl $0x0, 0x10ae(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x57b3
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5b17
movq -0x38(%rbp), %rcx
jmp 0x5b1b
movl $0x0, 0x10ae(%rbx)
movzwl 0x10a8(%rbx), %eax
testw %ax, %ax
jns 0x50f8
notl %eax
movw %ax, 0x10a8(%rbx)
movl $0x1, 0x10b4(%rbx)
movzwl %di, %edx
movl $0x21, %eax
subl %edx, %eax
movw %ax, 0x10b2(%rbx)
testw %di, %di
je 0x526e
movzwl 0x10a8(%rbx), %edx
movzwl 0x10ac(%rbx), %esi
shldw $0x1, %si, %dx
andl $0x7fff, %edx           # imm = 0x7FFF
addl %esi, %esi
movl %eax, %edi
leal 0x1(%rdi), %eax
testb $0x20, %dil
je 0x5120
movw %dx, 0x10a8(%rbx)
movw %si, 0x10ac(%rbx)
jmp 0x5267
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movl $0x0, 0x10ac(%rbx)
movw %cx, 0x10b0(%rbx)
movw %cx, 0x109c(%rbx)
movzwl 0x10a8(%rbx), %ecx
testw %cx, %cx
jns 0x518b
notl %ecx
movw %cx, 0x10a8(%rbx)
movl $0x1, 0x10b4(%rbx)
cmpw $0x20, %ax
jae 0x57cd
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5bb3
movq -0x38(%rbp), %rcx
jmp 0x5bb7
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movw %cx, 0x10a8(%rbx)
movl $0x0, 0x10a4(%rbx)
movw %cx, 0x10ac(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x57e7
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5cf4
movq -0x38(%rbp), %rcx
jmp 0x5cf8
movl $0x0, 0x10ae(%rbx)
movzwl 0x10a8(%rbx), %eax
testw %ax, %ax
jns 0x5220
notl %eax
movw %ax, 0x10a8(%rbx)
movl $0x1, 0x10b4(%rbx)
movzwl %di, %edx
movl $0x21, %eax
subl %edx, %eax
movw %ax, 0x10b2(%rbx)
testw %di, %di
je 0x526e
movzwl 0x10a8(%rbx), %edx
movzwl 0x10ac(%rbx), %esi
shrdw $0x1, %dx, %si
movzwl %dx, %edx
shrl %edx
movl %eax, %edi
leal 0x1(%rdi), %eax
testb $0x20, %dil
je 0x5244
movw %dx, 0x10a8(%rbx)
movw %si, 0x10ac(%rbx)
movw %ax, 0x10b2(%rbx)
testw %cx, %cx
jne 0x5285
cmpw $0x0, 0x10ac(%rbx)
jns 0x5285
movq %rbx, %rdi
callq 0x66fb
cmpl $0x0, 0x10a4(%rbx)
jne 0x5297
movw $0x0, 0x10ac(%rbx)
cmpl $0x0, 0x10b4(%rbx)
je 0x5b8e
notw 0x10a8(%rbx)
movl $0x0, 0x10b4(%rbx)
jmp 0x5b8e
movw $0x0, 0x10a0(%rbx)
jmp 0x55f2
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movw %cx, 0x10b0(%rbx)
movl $0x0, 0x10ac(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x5801
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5d78
movq -0x38(%rbp), %rcx
jmp 0x5d7c
movw $0x0, (%r12)
cmpw $0x20, %ax
jb 0x532a
movzwl %ax, %ecx
movzwl 0x9c(%rbx,%rcx,2), %ecx
movw %cx, 0x109c(%rbx)
movzwl (%r12), %ecx
andl $0xf800, %ecx           # imm = 0xF800
movw %cx, (%r12)
cmpw $0x1f, %ax
ja 0x5352
movl 0x18(%rbx), %edx
btl %eax, %edx
jae 0x5352
movzwl %ax, %edx
andw $0xf800, 0x1c(%rbx,%rdx,2) # imm = 0xF800
movzwl 0x10a0(%rbx), %edx
jmp 0x5561
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movl $0x0, 0x10ae(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x581b
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5e33
movq -0x38(%rbp), %rcx
jmp 0x5e37
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movl $0x0, 0x10ae(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x5835
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5e79
movq -0x38(%rbp), %rcx
jmp 0x5e7d
movw $0x0, (%r12)
cmpw $0x1f, %ax
ja 0x53f5
movl 0x18(%rbx), %ecx
btl %eax, %ecx
jae 0x53f5
movzwl %ax, %ecx
movw $0x0, 0x1c(%rbx,%rcx,2)
movzwl 0x10a8(%rbx), %ecx
movw %cx, 0x109c(%rbx)
cmpw $0x1f, %ax
ja 0x584f
movl 0x18(%rbx), %edx
btl %eax, %edx
jae 0x625c
movzwl %ax, %eax
orw %cx, 0x1c(%rbx,%rax,2)
jmp 0x625c
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x585f
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %ecx
jae 0x5ea0
movq -0x38(%rbp), %rdx
jmp 0x5ea4
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movw %cx, 0x10a8(%rbx)
movl $0x0, 0x10ae(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x5879
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %ecx
jae 0x5f22
movq -0x38(%rbp), %rsi
jmp 0x5f26
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movl $0x0, 0x10ae(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x5893
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5fed
movq -0x38(%rbp), %rcx
jmp 0x5ff1
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movl $0x0, 0x10ae(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x58ad
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x6004
movq -0x38(%rbp), %rcx
jmp 0x6008
movw $0x0, (%r12)
cmpw $0x20, %ax
jb 0x5532
movzwl %ax, %ecx
movzwl 0x9c(%rbx,%rcx,2), %ecx
movw %cx, 0x109c(%rbx)
movzwl (%r12), %ecx
andl $0xf800, %ecx           # imm = 0xF800
movw %cx, (%r12)
cmpw $0x1f, %ax
ja 0x555a
movl 0x18(%rbx), %edx
btl %eax, %edx
jae 0x555a
movzwl %ax, %edx
andw $0xf800, 0x1c(%rbx,%rdx,2) # imm = 0xF800
movzwl 0x10a8(%rbx), %edx
andl $0x7ff, %edx            # imm = 0x7FF
orl %edx, %ecx
movw %cx, 0x109c(%rbx)
cmpw $0x1f, %ax
ja 0x558f
movl 0x18(%rbx), %ecx
btl %eax, %ecx
jae 0x625c
movzwl %ax, %eax
orw %dx, 0x1c(%rbx,%rax,2)
jmp 0x625c
movzwl %ax, %eax
movw %cx, 0x9c(%rbx,%rax,2)
jmp 0x625c
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movl $0x0, 0x10ae(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x58c7
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x605a
movq -0x38(%rbp), %rcx
jmp 0x605e
movw $0x0, 0x10a0(%rbx)
cmpw $0x0, 0x10a8(%rbx)
jns 0x625c
orw %r8w, 0x10a0(%rbx)
movw %ax, 0x10(%rbx)
jmp 0x625c
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movw %cx, 0x10a8(%rbx)
movl $0x0, 0x10a4(%rbx)
movw %cx, 0x10ac(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x58e1
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x60db
movq -0x38(%rbp), %rcx
jmp 0x60df
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movw %cx, 0x10a8(%rbx)
movl $0x0, 0x10a4(%rbx)
movw %cx, 0x10ac(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x58fb
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x6199
movq -0x38(%rbp), %rcx
jmp 0x619d
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movl $0x0, 0x10ae(%rbx)
movw %cx, 0x109c(%rbx)
movzwl %ax, %ecx
cmpw $0x20, %ax
jae 0x5915
movl 0x18(%rbx), %edx
btl %eax, %edx
jae 0x6276
movq -0x38(%rbp), %rax
jmp 0x627a
movzwl %di, %edx
movl $0x21, %eax
subl %edx, %eax
movw %ax, 0x10b2(%rbx)
testw %dx, %dx
je 0x5723
movzwl 0x10a8(%rbx), %esi
movzwl 0x10ac(%rbx), %edx
movl %esi, %edi
shldw $0x1, %dx, %si
shldw $0x1, %di, %dx
movl %eax, %edi
leal 0x1(%rdi), %eax
testb $0x20, %dil
je 0x56f7
movw %si, 0x10a8(%rbx)
movw %dx, 0x10ac(%rbx)
movw %ax, 0x10b2(%rbx)
testw %cx, %cx
jne 0x625c
movw $0x0, 0x10ac(%rbx)
jmp 0x625c
movq 0x10e0(%rbx), %rax
movq %rax, 0x10d0(%rbx)
movl $0x1, 0x10bc(%rbx)
jmp 0x4efb
cmpl $0x1, %eax
je 0x5764
testl %eax, %eax
jne 0x4efb
movl $0x0, 0x8(%rbx)
jmp 0x4efb
movq 0x10e8(%rbx), %rcx
movq %rcx, 0x10d0(%rbx)
shrl $0x2, %eax
andl $0x1, %eax
movl %eax, 0x10bc(%rbx)
jmp 0x4efb
movzwl %ax, %eax
movw %cx, 0x9c(%rbx,%rax,2)
cmpl $0x0, 0x10b4(%rbx)
je 0x625c
notw 0x10a8(%rbx)
jmp 0x5cb3
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5b1f
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5bbb
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5cfc
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5d80
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5e3b
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5e81
movzwl %ax, %eax
movw %cx, 0x9c(%rbx,%rax,2)
jmp 0x625c
movzwl %ax, %ecx
movzwl 0x9c(%rbx,%rcx,2), %ecx
movw %cx, 0x109c(%rbx)
movq %r12, %rcx
jmp 0x5ea8
movzwl %ax, %ecx
movzwl 0x9c(%rbx,%rcx,2), %ecx
movw %cx, 0x109c(%rbx)
movq %r12, %rcx
jmp 0x5f2a
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5ff5
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x600c
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x6062
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x60e3
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x61a1
movzwl 0x9c(%rbx,%rcx,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x627e
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %ecx
movw %cx, 0x10a0(%rbx)
movzwl 0x10a8(%rbx), %eax
movw %ax, 0x10ac(%rbx)
testw %cx, %cx
jns 0x596c
notl %ecx
movw %cx, 0x10a0(%rbx)
xorl %ecx, %ecx
cmpl $0x0, 0x10b4(%rbx)
sete %cl
movl %ecx, 0x10b4(%rbx)
movw $0x0, 0x10a8(%rbx)
xorl %ecx, %ecx
cmpw $0x19, %si
sete %cl
movl %ecx, 0x10a4(%rbx)
movw $0x12, 0x10b2(%rbx)
testb $0x1, %al
jne 0x59d6
movzwl 0x10a8(%rbx), %edx
shrdw $0x1, %dx, %ax
shrl %edx
movzwl 0x10aa(%rbx), %ecx
movl %ecx, %edi
xorl %edx, %edi
movw %di, 0x10a8(%rbx)
andl %ecx, %edx
movw %dx, 0x10aa(%rbx)
movzwl 0x10b2(%rbx), %r8d
leal 0x1(%r8), %r9d
movw %r9w, 0x10b2(%rbx)
testb $0x20, %r8b
je 0x598d
jmp 0x59fd
movl 0x10a0(%rbx), %ecx
movl 0x10a8(%rbx), %edx
movl %edx, %edi
andl %ecx, %edi
orw %di, 0x10aa(%rbx)
xorl %ecx, %edx
movw %dx, 0x10a8(%rbx)
andl $0xfffe, %eax           # imm = 0xFFFE
jmp 0x598d
cmpw $0x19, %si
sete %sil
movw %ax, 0x10ac(%rbx)
movzwl %di, %edi
movzwl %dx, %edx
leal (%rdi,%rdx,2), %edx
movl %edx, %edi
shrl $0x10, %edi
addl %edx, %edi
testw %di, %di
sets %dl
testw %cx, %cx
setns %cl
andb %dl, %cl
movzbl %cl, %ecx
movw %cx, 0x10ae(%rbx)
movw %di, 0x10a8(%rbx)
movw $0x0, 0x10aa(%rbx)
testw %ax, %ax
setns %al
orb %sil, %al
jne 0x5a57
movq %rbx, %rdi
callq 0x66fb
cmpl $0x0, 0x10a4(%rbx)
jne 0x5a69
movw $0x0, 0x10ac(%rbx)
cmpl $0x0, 0x10b4(%rbx)
je 0x5a83
notw 0x10a8(%rbx)
movl $0x0, 0x10b4(%rbx)
cmpw $0x0, 0x10ae(%rbx)
jne 0x62cf
cmpw $0x0, 0x10b0(%rbx)
je 0x625c
jmp 0x62ee
movq -0x30(%rbp), %rdx
leaq (%rdx,%rcx,2), %rdx
movzwl (%rdx), %ecx
movw %cx, 0x10b8(%rbx)
movzwl 0x10a8(%rbx), %ecx
movw %cx, 0x109c(%rbx)
cmpl $0x180, %eax            # imm = 0x180
je 0x5ad2
orw %cx, 0x10b8(%rbx)
shrl $0x5, %ecx
movl %ecx, 0x10d8(%rbx)
movq 0x10d0(%rbx), %rsi
testq %rsi, %rsi
je 0x625c
movq %rbx, %rdi
callq *0x8(%rsi)
cmpl $0x0, 0x10bc(%rbx)
je 0x625c
movq 0x10d0(%rbx), %rax
movl $0x1, %ecx
movl %ecx, (%rax)
movl %ecx, 0x10c4(%rbx)
jmp 0x625c
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movw %ax, 0x10a0(%rbx)
movw %ax, 0x10a8(%rbx)
movq %rbx, %rdi
callq 0x66fb
movw $0x0, 0x109c(%rbx)
movzwl 0x16(%rbx), %eax
cmpq $0x1f, %rax
ja 0x5b5a
movl 0x18(%rbx), %ecx
btl %eax, %ecx
jae 0x5b5a
movw $0x0, 0x1c(%rbx,%rax,2)
movzwl 0x10a8(%rbx), %ecx
orw %cx, 0x109c(%rbx)
cmpw $0x1f, %ax
ja 0x5b7d
movl 0x18(%rbx), %edx
btl %eax, %edx
jae 0x5b8e
orw %cx, 0x1c(%rbx,%rax,2)
jmp 0x5b8e
movzwl 0x109c(%rbx), %ecx
movl %eax, %eax
movw %cx, 0x9c(%rbx,%rax,2)
cmpw $0x0, 0x10ae(%rbx)
je 0x6253
movzwl 0x12(%rbx), %edx
leaq 0x1982(%rip), %rdi      # 0x7529
leaq 0x1960(%rip), %rsi      # 0x750e
jmp 0x6245
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movw %ax, 0x10a0(%rbx)
testw %ax, %ax
jns 0x5be5
notl %eax
movw %ax, 0x10a0(%rbx)
xorl %eax, %eax
cmpl $0x0, 0x10b4(%rbx)
sete %al
movl %eax, 0x10b4(%rbx)
movl 0x10a0(%rbx), %eax
movl 0x10a8(%rbx), %r8d
movl %eax, %ecx
notl %ecx
movl %ecx, %edi
xorl %r8d, %edi
andl %ecx, %r8d
movw %r8w, 0x10aa(%rbx)
movw %di, 0x10a8(%rbx)
movw $0x10, 0x10b2(%rbx)
xorl %esi, %esi
xorl %r9d, %r9d
movzwl %di, %edi
movzwl %r8w, %r8d
leal (%rdi,%r8,2), %r10d
addl %r8d, %r8d
btl $0x10, %r10d
adcl %edi, %r8d
movl %r8d, %edi
notl %edi
movzwl %di, %r10d
shrl $0xf, %r10d
movl %r8d, %edi
rolw %di
leal (%r10,%rsi,2), %esi
testw %r8w, %r8w
js 0x5c5e
movl %edi, %r8d
andl %ecx, %r8d
xorl %ecx, %edi
testb $0x1, %r9b
jne 0x5c66
jmp 0x5cc2
movl %edi, %r8d
andl %eax, %r8d
xorl %eax, %edi
movzwl 0x10b2(%rbx), %r10d
leal 0x1(%r10), %r9d
movw %r9w, 0x10b2(%rbx)
movb $0x1, %r9b
testb $0x20, %r10b
je 0x5c1b
movw $0x0, 0x10ae(%rbx)
movw %si, 0x10ac(%rbx)
movl $0x0, 0x10a8(%rbx)
cmpl $0x0, 0x10b4(%rbx)
je 0x625c
movw $0xffff, 0x10a8(%rbx)   # imm = 0xFFFF
movl $0x0, 0x10b4(%rbx)
jmp 0x625c
movw %di, 0x10a8(%rbx)
movw %r8w, 0x10aa(%rbx)
movw $0x0, 0x10ae(%rbx)
movw %si, 0x10ac(%rbx)
leaq 0x1841(%rip), %rdi      # 0x7529
leaq 0x1828(%rip), %rsi      # 0x7517
jmp 0x5e66
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %ecx
movw %cx, 0x10a0(%rbx)
cmpw $0x0, 0x10ae(%rbx)
je 0x5d19
movw $0x1, 0x10a8(%rbx)
cmpw $0x0, 0x10b0(%rbx)
je 0x5d2b
orw $-0x2, 0x10a8(%rbx)
xorl %eax, %eax
movw %ax, 0x10b0(%rbx)
movl 0x10a8(%rbx), %esi
movl %esi, %edi
andl %ecx, %edi
xorl %ecx, %esi
movl $0xffff, %ecx           # imm = 0xFFFF
movl %esi, %r8d
andl %ecx, %r8d
andl %ecx, %edi
leal (%rdi,%rdi), %ecx
leal (%r8,%rdi,2), %r9d
btl $0x10, %r9d
adcl %r8d, %ecx
xorl %ecx, %edi
testw %di, %di
sets %dil
testw %si, %si
setns %sil
andb %dil, %sil
movzbl %sil, %esi
jmp 0x621c
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movw %ax, 0x10a0(%rbx)
movzwl 0x10a8(%rbx), %ecx
movw %cx, 0x10ac(%rbx)
testw %cx, %cx
jns 0x5db0
notl %ecx
movw %cx, 0x10a8(%rbx)
movl $0x1, 0x10b4(%rbx)
testw %ax, %ax
jns 0x5dd0
notl %eax
movw %ax, 0x10a0(%rbx)
xorl %eax, %eax
cmpl $0x0, 0x10b4(%rbx)
sete %al
movl %eax, 0x10b4(%rbx)
movl 0x10a0(%rbx), %eax
movl 0x10a8(%rbx), %ecx
notl %eax
movl %ecx, %edx
xorl %eax, %edx
movl $0xffff, %esi           # imm = 0xFFFF
movl %edx, %edi
andl %esi, %edi
andl %esi, %ecx
andl %eax, %ecx
leal (%rcx,%rcx), %eax
leal (%rdi,%rcx,2), %esi
btl $0x10, %esi
adcl %edi, %eax
xorl %eax, %ecx
testw %cx, %cx
sets %cl
testw %dx, %dx
setns %dl
andb %cl, %dl
movzbl %dl, %ecx
movw %cx, 0x10ae(%rbx)
movw %ax, 0x10a8(%rbx)
movw $0x0, 0x10aa(%rbx)
cmpb $0x1, %cl
jne 0x625c
jmp 0x630d
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movl 0x10a8(%rbx), %ecx
movl %ecx, %esi
xorl %eax, %esi
movw %si, 0x109e(%rbx)
cmpw %cx, %ax
je 0x625c
leaq 0x16ca(%rip), %rdi      # 0x7529
leaq 0x16ba(%rip), %rsi      # 0x7520
xorl %eax, %eax
callq 0x2100
movl $0x0, 0x8(%rbx)
jmp 0x625c
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movw %ax, 0x10a0(%rbx)
xorw %ax, 0x10a8(%rbx)
movw $0x0, 0x10aa(%rbx)
jmp 0x625c
movq -0x30(%rbp), %rdx
leaq (%rdx,%rcx,2), %rcx
movzwl (%rcx), %ecx
movw %cx, 0x10a0(%rbx)
movw $0x0, 0x109c(%rbx)
cmpw $0x1f, %ax
ja 0x5ed3
movl 0x18(%rbx), %edx
btl %eax, %edx
jae 0x5ed3
movzwl %ax, %edx
movw $0x0, 0x1c(%rbx,%rdx,2)
movzwl 0x10a8(%rbx), %edx
movw %dx, 0x109c(%rbx)
cmpw $0x1f, %ax
ja 0x5f02
movl 0x18(%rbx), %esi
btl %eax, %esi
jae 0x5ef7
movzwl %ax, %eax
orw %dx, 0x1c(%rbx,%rax,2)
movw $0x0, 0x10a8(%rbx)
jmp 0x5f16
movw $0x0, 0x10a8(%rbx)
movzwl %ax, %eax
movw %dx, 0x9c(%rbx,%rax,2)
movw %cx, 0x10a8(%rbx)
jmp 0x625c
movq -0x30(%rbp), %rsi
leaq (%rsi,%rcx,2), %rcx
movzwl (%rcx), %edi
movl 0x10ac(%rbx), %esi
movl %esi, %r8d
andl %edi, %r8d
xorl %edi, %esi
movl $0xffff, %ecx           # imm = 0xFFFF
movl %esi, %r9d
andl %ecx, %r9d
andl %ecx, %r8d
leal (%r8,%r8), %ecx
leal (%r9,%r8,2), %r10d
btl $0x10, %r10d
adcl %r9d, %ecx
xorl %ecx, %r8d
testw %r8w, %r8w
sets %r8b
testw %si, %si
setns %sil
andb %r8b, %sil
xorl %r8d, %r8d
movw %di, 0x10a0(%rbx)
movzbl %sil, %edi
movw %di, 0x10ae(%rbx)
movw %cx, 0x10a8(%rbx)
movw %r8w, 0x10aa(%rbx)
movw %r8w, 0x109c(%rbx)
cmpw $0x1f, %ax
ja 0x5fcf
movl 0x18(%rbx), %edi
btl %eax, %edi
jae 0x5fb2
movzwl %ax, %edi
movw $0x0, 0x1c(%rbx,%rdi,2)
movw %cx, (%r12)
cmpw $0x1f, %ax
ja 0x5fd4
movl 0x18(%rbx), %edi
btl %eax, %edi
jae 0x5fdf
movzwl %ax, %eax
orw %cx, 0x1c(%rbx,%rax,2)
jmp 0x5fdf
movw %cx, (%r12)
movzwl %ax, %eax
movw %cx, 0x9c(%rbx,%rax,2)
testb %sil, %sil
jne 0x6237
jmp 0x6253
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movw %ax, 0x10a0(%rbx)
jmp 0x613a
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movw %ax, 0x10a0(%rbx)
notl %eax
movl 0x10a8(%rbx), %ecx
movl %ecx, %esi
xorl %eax, %esi
movl $0xffff, %edi           # imm = 0xFFFF
movl %esi, %r8d
andl %edi, %r8d
andl %edi, %ecx
andl %eax, %ecx
leal (%rcx,%rcx), %eax
leal (%r8,%rcx,2), %edi
btl $0x10, %edi
adcl %r8d, %eax
xorl %eax, %ecx
testw %cx, %cx
sets %cl
testw %si, %si
setns %sil
andb %cl, %sil
movzbl %sil, %ecx
jmp 0x6174
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movw %ax, 0x10a0(%rbx)
movl 0x10a8(%rbx), %ecx
movl %ecx, %edx
andl %eax, %edx
xorl %eax, %ecx
movl $0xffff, %eax           # imm = 0xFFFF
movl %ecx, %esi
andl %eax, %esi
andl %eax, %edx
leal (%rdx,%rdx), %eax
leal (%rsi,%rdx,2), %edi
btl $0x10, %edi
adcl %esi, %eax
xorl %eax, %edx
testw %dx, %dx
sets %dl
testw %cx, %cx
setns %cl
andb %dl, %cl
movzbl %cl, %ecx
movw %cx, 0x10ae(%rbx)
movw %ax, 0x10a8(%rbx)
movw $0x0, 0x10aa(%rbx)
cmpb $0x1, %cl
jne 0x625c
testw %ax, %ax
js 0x60d1
movl $0x10000, 0x10ae(%rbx)  # imm = 0x10000
xorl $0x8000, %eax           # imm = 0x8000
jmp 0x6296
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movw %ax, 0x10a0(%rbx)
cmpw $0x0, 0x10ae(%rbx)
je 0x6100
movw $0x1, 0x10a8(%rbx)
cmpw $0x0, 0x10b0(%rbx)
je 0x6112
orw $-0x2, 0x10a8(%rbx)
movl $0x0, 0x10ae(%rbx)
testw %ax, %ax
jns 0x6134
notl %eax
movw %ax, 0x10a0(%rbx)
movl $0x1, 0x10b4(%rbx)
movl 0x10a0(%rbx), %eax
movl 0x10a8(%rbx), %ecx
movl %ecx, %esi
andl %eax, %esi
xorl %eax, %ecx
movl $0xffff, %eax           # imm = 0xFFFF
movl %ecx, %edi
andl %eax, %edi
andl %eax, %esi
leal (%rsi,%rsi), %eax
leal (%rdi,%rsi,2), %r8d
btl $0x10, %r8d
adcl %edi, %eax
xorl %eax, %esi
testw %si, %si
sets %sil
testw %cx, %cx
setns %cl
andb %sil, %cl
movzbl %cl, %ecx
movw %cx, 0x10ae(%rbx)
movw %ax, 0x10a8(%rbx)
movw $0x0, 0x10aa(%rbx)
cmpb $0x1, %cl
je 0x6237
jmp 0x6253
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %ecx
movw %cx, 0x10a0(%rbx)
cmpw $0x0, 0x10ae(%rbx)
je 0x61be
movw $0x1, 0x10a8(%rbx)
cmpw $0x0, 0x10b0(%rbx)
je 0x61d0
orw $-0x2, 0x10a8(%rbx)
xorl %eax, %eax
movw %ax, 0x10b0(%rbx)
notl %ecx
movl 0x10a8(%rbx), %esi
movl %esi, %edi
xorl %ecx, %edi
movl $0xffff, %r8d           # imm = 0xFFFF
movl %edi, %r9d
andl %r8d, %r9d
andl %r8d, %esi
andl %ecx, %esi
leal (%rsi,%rsi), %ecx
leal (%r9,%rsi,2), %r8d
btl $0x10, %r8d
adcl %r9d, %ecx
xorl %ecx, %esi
testw %si, %si
sets %sil
testw %di, %di
setns %dil
andb %sil, %dil
movzbl %dil, %esi
movw %si, 0x10ae(%rbx)
movw %cx, 0x10a8(%rbx)
movw %ax, 0x10aa(%rbx)
cmpb $0x1, %sil
jne 0x6253
leaq 0x12eb(%rip), %rdi      # 0x7529
leaq 0x12c9(%rip), %rsi      # 0x750e
xorl %eax, %eax
callq 0x2100
movl $0x0, 0x8(%rbx)
movw $0x0, 0x10ae(%rbx)
cmpl $0x0, 0x4(%rbx)
je 0x6269
movl $0x0, 0x8(%rbx)
movq %rbx, %rdi
callq 0x4aca
jmp 0x4bfc
movq -0x30(%rbp), %rax
leaq (%rax,%rcx,2), %rax
movzwl (%rax), %eax
movl 0x10a8(%rbx), %ecx
notl %ecx
notl %eax
orl %ecx, %eax
movw %ax, 0x10a0(%rbx)
notl %eax
movw %ax, 0x10a8(%rbx)
jmp 0x625c
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x11e5(%rip), %rdi      # 0x749c
leaq 0x11eb(%rip), %rsi      # 0x74a9
leaq 0x11ef(%rip), %rcx      # 0x74b4
movl $0x2aa, %edx            # imm = 0x2AA
callq 0x2130
leaq 0x120c(%rip), %rdi      # 0x74e2
leaq 0x11cc(%rip), %rsi      # 0x74a9
leaq 0x11d0(%rip), %rcx      # 0x74b4
movl $0x4ae, %edx            # imm = 0x4AE
callq 0x2130
leaq 0x1200(%rip), %rdi      # 0x74f5
leaq 0x11ad(%rip), %rsi      # 0x74a9
leaq 0x11b1(%rip), %rcx      # 0x74b4
movl $0x4af, %edx            # imm = 0x4AF
callq 0x2130
leaq 0x11b1(%rip), %rdi      # 0x74c5
leaq 0x118e(%rip), %rsi      # 0x74a9
leaq 0x1192(%rip), %rcx      # 0x74b4
movl $0x3ba, %edx            # imm = 0x3BA
callq 0x2130