// File: /workspace/github_c_makefile_star2_O3/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 $0x28, %rsp
movq %rdi, %rbx
leaq 0x109c(%rdi), %r12
leaq 0x1c(%rdi), %rax
movq %rax, -0x30(%rbp)
leaq 0x5c(%rdi), %rax
movq %rax, -0x38(%rbp)
leaq -0x48(%rbp), %r14
movl $0x7ff, %r15d           # imm = 0x7FF
leaq 0x2777(%rip), %r13      # 0x7324
movq 0xbb84(%rip), %rdi      # 0x10738
movq %r14, %rsi
callq 0x4153
cmpl $0x1, %eax
je 0x4bcb
cmpl $-0x1, %eax
jne 0x4bd7
jmp 0x6062
movq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x4a1f
cmpl $0x0, 0x8(%rbx)
je 0x4c67
cmpl $0x0, 0xc(%rbx)
je 0x4c76
movzwl 0x14(%rbx), %eax
testl %eax, %eax
je 0x4dd4
cmpl $0x3, %eax
je 0x4d93
cmpl $0x5, %eax
jne 0x4c76
cmpl $0x0, 0x10c4(%rbx)
jne 0x4de6
movl $0x0, 0xc(%rbx)
movw $0x0, 0x109c(%rbx)
movzwl 0x16(%rbx), %eax
cmpq $0x1f, %rax
ja 0x4eb7
movw $0x0, 0x10b8(%rbx)
movl 0x10c8(%rbx), %ecx
movl $0x1c0, %edx            # imm = 0x1C0
andl %edx, %ecx
cmpl $0x180, %ecx            # imm = 0x180
jne 0x4eeb
movl 0x18(%rbx), %ecx
btl %eax, %ecx
jae 0x5bd2
movq -0x30(%rbp), %rcx
jmp 0x5bd6
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x2420
jmp 0x602f
movl $0x0, 0x10b4(%rbx)
cmpw $0x0, 0x10aa(%rbx)
jne 0x6073
movzwl 0x10(%rbx), %edx
movl $0x0, 0x109c(%rbx)
cmpq $0x20, %rdx
jae 0x4cb0
movl 0x18(%rbx), %eax
btl %edx, %eax
jae 0x4cc4
movq -0x30(%rbp), %rax
jmp 0x4cc8
movzwl 0x9c(%rbx,%rdx,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rcx
jmp 0x4cce
movq -0x38(%rbp), %rax
leaq (%rax,%rdx,2), %rcx
xorl %eax, %eax
orw (%rcx), %ax
movzwl %ax, %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)
movl %edx, %r8d
incl %r8d
andl %r15d, %r8d
movw %r8w, 0x10(%rbx)
cmpw $0x1f, %si
ja 0x5044
movslq (%r13,%rsi,4), %r9
addq %r13, %r9
jmpq *%r9
xorl %ecx, %ecx
movw %cx, 0x10ac(%rbx)
movw %cx, 0x10b0(%rbx)
movw %cx, 0x109c(%rbx)
movzwl 0x10a8(%rbx), %edx
movl %edx, %ecx
testw %dx, %dx
jns 0x4d6e
movl %edx, %ecx
notl %ecx
movw %cx, 0x10a8(%rbx)
movl $0x1, 0x10b4(%rbx)
cmpw $0x20, %ax
jae 0x4f05
movl 0x18(%rbx), %edi
btl %eax, %edi
movzwl %ax, %eax
movq -0x30(%rbp), %rdi
cmovaeq -0x38(%rbp), %rdi
movzwl (%rdi,%rax,2), %eax
jmp 0x4f17
cmpl $0x0, 0x10c4(%rbx)
jne 0x4de6
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
jmp 0x4e96
cmpl $0x0, 0x10bc(%rbx)
je 0x4df2
cmpl $0x0, 0x10c4(%rbx)
je 0x4df2
movl $0x1, 0xc(%rbx)
jmp 0x6022
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 0x253b(%rip), %rdx      # 0x73a4
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
xorl %esi, %esi
movq %r15, %r13
movzwl 0x10a8(%rbx), %ecx
movl %ecx, %eax
shrl $0x5, %eax
movl %eax, 0x10dc(%rbx)
movl $0x7ff, %r15d           # imm = 0x7FF
movw %cx, 0x10b8(%rbx)
testq %rsi, %rsi
je 0x6022
movq %rbx, %rdi
callq *0x8(%rsi)
cmpl $0x0, 0x10bc(%rbx)
jne 0x6022
jmp 0x5c21
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movw $0x0, 0x10b8(%rbx)
movl 0x10c8(%rbx), %ecx
movl $0x1c0, %eax            # imm = 0x1C0
andl %eax, %ecx
movq %r12, %rax
cmpl $0x180, %ecx            # imm = 0x180
je 0x5bda
movzwl 0x10a8(%rbx), %eax
movw %ax, 0x109c(%rbx)
movw %ax, 0x10b8(%rbx)
jmp 0x5bf2
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movw %ax, 0x10a0(%rbx)
testw %ax, %ax
jns 0x4f3b
xorl %edi, %edi
testw %dx, %dx
setns %dil
notl %eax
movw %ax, 0x10a0(%rbx)
movl %edi, 0x10b4(%rbx)
xorl %edx, %edx
cmpw $0x19, %si
sete %dl
movl %edx, 0x10a4(%rbx)
movw $0x12, %dx
xorl %r9d, %r9d
xorl %r8d, %r8d
movl %ecx, %r10d
andl $0xfffe, %r10d          # imm = 0xFFFE
movl %r9d, %edi
testb $0x1, %cl
je 0x4f75
movl %r8d, %ecx
andl %eax, %ecx
orl %ecx, %edi
xorl %eax, %r8d
movl %r10d, %ecx
jmp 0x4f61
shrdw $0x1, %r8w, %cx
movzwl %r8w, %r9d
shrl %r9d
movl %r9d, %r8d
xorl %edi, %r8d
andl %edi, %r9d
movl %edx, %r10d
leal 0x1(%r10), %edx
testb $0x20, %r10b
je 0x4f54
movzwl %r9w, %eax
movzwl %r8w, %r8d
leal (%r8,%rax,2), %eax
movl %eax, %r8d
shrl $0x10, %r8d
addl %eax, %r8d
testw %r8w, %r8w
sets %al
testw %di, %di
setns %dil
andb %al, %dil
movw %dx, 0x10b2(%rbx)
movw %cx, 0x10ac(%rbx)
movzbl %dil, %eax
movw %ax, 0x10ae(%rbx)
movw %r8w, 0x10a8(%rbx)
movw $0x0, 0x10aa(%rbx)
cmpw $0x19, %si
je 0x5009
movq %rbx, %rdi
callq 0x649f
cmpl $0x0, 0x10a4(%rbx)
jne 0x5009
movw $0x0, 0x10ac(%rbx)
cmpl $0x0, 0x10b4(%rbx)
je 0x5023
notw 0x10a8(%rbx)
movl $0x0, 0x10b4(%rbx)
cmpw $0x0, 0x10ae(%rbx)
jne 0x6092
cmpw $0x0, 0x10b0(%rbx)
je 0x6022
jmp 0x60b1
movzwl %si, %esi
leaq 0x2497(%rip), %rdi      # 0x74e5
xorl %eax, %eax
callq 0x2100
jmp 0x6022
movl $0x0, 0x10ae(%rbx)
movw $0x0, 0x10b2(%rbx)
movzwl 0x10a8(%rbx), %edx
movl %edx, %ecx
testw %dx, %dx
jns 0x5090
movl %edx, %ecx
notl %ecx
movw %cx, 0x10a8(%rbx)
movl $0x1, 0x10b4(%rbx)
cmpw $0x20, %ax
jae 0x56c8
xorl %esi, %esi
jmp 0x56d9
xorl %ecx, %ecx
movw %cx, 0x10b0(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x579a
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %ecx
jae 0x5c71
movq -0x30(%rbp), %rsi
jmp 0x5c75
movl $0x0, 0x10ae(%rbx)
movzwl 0x10a8(%rbx), %eax
testw %ax, %ax
jns 0x50fc
notl %eax
movw %ax, 0x10a8(%rbx)
movl $0x1, 0x10b4(%rbx)
movzwl %di, %esi
movl $0x21, %edx
subl %esi, %edx
movw %dx, 0x10b2(%rbx)
testw %di, %di
je 0x5256
movzwl 0x10ac(%rbx), %esi
shldw $0x1, %si, %ax
andl $0x7fff, %eax           # imm = 0x7FFF
addl %esi, %esi
movl %edx, %edi
leal 0x1(%rdi), %edx
testb $0x20, %dil
je 0x511d
movw %ax, 0x10a8(%rbx)
movw %si, 0x10ac(%rbx)
jmp 0x524f
movl $0x0, 0x10ac(%rbx)
xorl %ecx, %ecx
movw %cx, 0x10b0(%rbx)
movw %cx, 0x109c(%rbx)
movzwl 0x10a8(%rbx), %esi
movl %esi, %edi
testw %si, %si
jns 0x5182
movl %esi, %edi
notl %edi
movl $0x1, 0x10b4(%rbx)
movl $0x1, %ecx
cmpw $0x20, %ax
jae 0x57b4
movl 0x18(%rbx), %r8d
btl %eax, %r8d
movzwl %ax, %eax
movq -0x30(%rbp), %r8
cmovaeq -0x38(%rbp), %r8
movzwl (%r8,%rax,2), %eax
jmp 0x57c6
movl $0x0, 0x10a4(%rbx)
xorl %ecx, %ecx
movw %cx, 0x10ac(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x58bf
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5c9f
movq -0x30(%rbp), %rcx
jmp 0x5ca3
movl $0x0, 0x10ae(%rbx)
movzwl 0x10a8(%rbx), %eax
testw %ax, %ax
jns 0x520f
notl %eax
movw %ax, 0x10a8(%rbx)
movl $0x1, 0x10b4(%rbx)
movzwl %di, %esi
movl $0x21, %edx
subl %esi, %edx
movw %dx, 0x10b2(%rbx)
testw %di, %di
je 0x5256
movzwl 0x10ac(%rbx), %esi
shrdw $0x1, %ax, %si
movzwl %ax, %eax
shrl %eax
movl %edx, %edi
leal 0x1(%rdi), %edx
testb $0x20, %dil
je 0x522c
movw %ax, 0x10a8(%rbx)
movw %si, 0x10ac(%rbx)
movw %dx, 0x10b2(%rbx)
testw %cx, %cx
jne 0x5269
movq %rbx, %rdi
callq 0x649f
movl 0x10a4(%rbx), %ecx
testl %ecx, %ecx
jne 0x5276
movw $0x0, 0x10ac(%rbx)
cmpl $0x0, 0x10b4(%rbx)
je 0x5290
notw 0x10a8(%rbx)
movl $0x0, 0x10b4(%rbx)
cmpw $0x0, 0x10ae(%rbx)
je 0x6019
movzwl 0x12(%rbx), %edx
leaq 0x2263(%rip), %rdi      # 0x750c
leaq 0x2241(%rip), %rsi      # 0x74f1
jmp 0x600b
movw $0x0, 0x10a0(%rbx)
cmpw $0x0, 0x10a8(%rbx)
jns 0x6022
movw %r8w, 0x10a0(%rbx)
movw %ax, 0x10(%rbx)
jmp 0x6022
xorl %ecx, %ecx
movw %cx, 0x10b0(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x58d9
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
movq -0x30(%rbp), %rcx
cmovaeq -0x38(%rbp), %rcx
movzwl (%rcx,%rax,2), %eax
jmp 0x58eb
movw $0x0, (%r12)
cmpw $0x1f, %ax
ja 0x5969
movl 0x18(%rbx), %ecx
btl %eax, %ecx
jae 0x5cd4
movzwl %ax, %eax
movzwl 0x1c(%rbx,%rax,2), %ecx
andl $0xfffff800, %ecx       # imm = 0xFFFFF800
movzwl 0x10a0(%rbx), %edx
jmp 0x54fe
xorl %ecx, %ecx
movw %cx, 0x10a0(%rbx)
movl $0x0, 0x10ae(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x5986
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5ce0
movq -0x30(%rbp), %rcx
jmp 0x5ce4
movl $0x0, 0x10ae(%rbx)
movw $0x0, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x59a0
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5d26
movq -0x30(%rbp), %rcx
jmp 0x5d2a
movw $0x0, (%r12)
cmpw $0x1f, %ax
ja 0x59ba
movl 0x18(%rbx), %ecx
btl %eax, %ecx
jae 0x5d4d
movzwl 0x10a8(%rbx), %ecx
movw %cx, 0x109c(%rbx)
movzwl %ax, %eax
movw %cx, 0x1c(%rbx,%rax,2)
jmp 0x6022
cmpw $0x1f, %ax
ja 0x59d8
movl 0x18(%rbx), %edx
movzwl %ax, %ecx
addl %ecx, %ecx
movq -0x38(%rbp), %rsi
addq %rcx, %rsi
addq -0x30(%rbp), %rcx
btl %eax, %edx
cmovbq %rcx, %rsi
movzwl (%rsi), %eax
movw %ax, 0x10a0(%rbx)
movzwl 0x10a8(%rbx), %edx
jae 0x542c
movw %dx, (%rcx)
movw %dx, (%r12)
jmp 0x5a00
xorl %ecx, %ecx
movw %cx, 0x10b0(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x5a0c
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %ecx
jae 0x5d60
movq -0x30(%rbp), %rsi
jmp 0x5d64
xorl %ecx, %ecx
movw %cx, 0x10b0(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x5a26
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5e15
movq -0x30(%rbp), %rcx
jmp 0x5e19
xorl %ecx, %ecx
movw %cx, 0x10b0(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x5a40
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5e63
movq -0x30(%rbp), %rcx
jmp 0x5e67
movw $0x0, (%r12)
cmpw $0x1f, %ax
ja 0x5a5a
movl 0x18(%rbx), %ecx
btl %eax, %ecx
jae 0x5ed0
movzwl %ax, %eax
movzwl 0x1c(%rbx,%rax,2), %ecx
andl $0xfffff800, %ecx       # imm = 0xFFFFF800
movzwl 0x10a8(%rbx), %edx
andl $0x7ff, %edx            # imm = 0x7FF
movw %dx, 0x109c(%rbx)
orl %ecx, %edx
movw %dx, 0x1c(%rbx,%rax,2)
jmp 0x6022
xorl %ecx, %ecx
movw %cx, 0x10b0(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x5a8e
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5ee8
movq -0x30(%rbp), %rcx
jmp 0x5eec
movl $0x0, 0x10a4(%rbx)
xorl %ecx, %ecx
movw %cx, 0x10ac(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x5aa8
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
movq -0x30(%rbp), %rcx
cmovaeq -0x38(%rbp), %rcx
movzwl (%rcx,%rax,2), %eax
jmp 0x5aba
movl $0x0, 0x10a4(%rbx)
xorl %ecx, %ecx
movw %cx, 0x10ac(%rbx)
movw %cx, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x5b59
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x5f70
movq -0x30(%rbp), %rcx
jmp 0x5f74
movl $0x0, 0x10ae(%rbx)
movw $0x0, 0x109c(%rbx)
cmpw $0x20, %ax
jae 0x5b73
movl 0x18(%rbx), %ecx
btl %eax, %ecx
movzwl %ax, %eax
jae 0x603c
movq -0x30(%rbp), %rcx
jmp 0x6040
movzwl %di, %edx
movl $0x21, %eax
subl %edx, %eax
movw %ax, 0x10b2(%rbx)
testw %dx, %dx
je 0x5649
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 0x561d
movw %si, 0x10a8(%rbx)
movw %dx, 0x10ac(%rbx)
movw %ax, 0x10b2(%rbx)
testw %cx, %cx
jne 0x6022
movw $0x0, 0x10ac(%rbx)
jmp 0x6022
movq 0x10e0(%rbx), %rsi
movq %rsi, 0x10d0(%rbx)
jmp 0x4e74
cmpl $0x1, %eax
ja 0x4e72
movl $0x0, 0x8(%rbx)
jmp 0x4e72
movq 0x10e8(%rbx), %rsi
movq %rsi, 0x10d0(%rbx)
shrl $0x2, %eax
movzwl 0x10a8(%rbx), %ecx
movl %ecx, %edx
shrl $0x5, %edx
andl $0x1, %eax
movl %eax, 0x10bc(%rbx)
movl %edx, 0x10dc(%rbx)
movq %r15, %r13
movl $0x7ff, %r15d           # imm = 0x7FF
jne 0x4e8f
jmp 0x4e96
movzwl %ax, %esi
movzwl 0x9c(%rbx,%rsi,2), %esi
andl $0xf800, %esi           # imm = 0xF800
btl $0xe, %ecx
jb 0x572b
movzwl 0x10ac(%rbx), %r8d
xorl %edi, %edi
movl %ecx, %r9d
shldw $0x1, %r8w, %cx
shldw $0x1, %r9w, %r8w
movl %edi, %r9d
leal 0x1(%r9), %edi
andl $0x20, %r9d
movl %ecx, %r10d
andl $0x4000, %r10d          # imm = 0x4000
orw %r9w, %r10w
je 0x56e9
movw %cx, 0x10a8(%rbx)
movw %r8w, 0x10ac(%rbx)
movw %di, 0x10b2(%rbx)
jmp 0x572d
xorl %edi, %edi
cmpw $0x1f, %ax
ja 0x5774
movl 0x18(%rbx), %r8d
btl %eax, %r8d
jae 0x5c3a
movzwl %ax, %eax
movzwl 0x1c(%rbx,%rax,2), %r8d
andl $0xfffff800, %r8d       # imm = 0xFFFFF800
movw %di, 0x10a0(%rbx)
andl $0x7ff, %edi            # imm = 0x7FF
orl %edi, %esi
movw %si, 0x109c(%rbx)
orl %r8d, %edi
movw %di, 0x1c(%rbx,%rax,2)
jmp 0x5c50
movw %di, 0x10a0(%rbx)
andl $0x7ff, %edi            # imm = 0x7FF
orl %edi, %esi
movw %si, 0x109c(%rbx)
movzwl %ax, %eax
movw %si, 0x9c(%rbx,%rax,2)
jmp 0x5c50
movzwl %ax, %ecx
movzwl 0x9c(%rbx,%rcx,2), %ecx
movw %cx, 0x109c(%rbx)
movq %r12, %rcx
jmp 0x5c79
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movw %ax, 0x10a0(%rbx)
testw %ax, %ax
movq %r12, -0x40(%rbp)
jns 0x57ed
xorl %ecx, %ecx
testw %si, %si
setns %cl
notl %eax
movw %ax, 0x10a0(%rbx)
movl %ecx, 0x10b4(%rbx)
movl %eax, %esi
notl %esi
movl %edi, %r10d
andl %esi, %r10d
movw %r10w, 0x10aa(%rbx)
movl %esi, %r9d
xorl %edi, %r9d
movw %r9w, 0x10a8(%rbx)
movw $0x10, 0x10b2(%rbx)
movw $0x10, %r8w
xorl %edi, %edi
xorl %r11d, %r11d
movzwl %r9w, %r9d
movzwl %r10w, %r10d
leal (%r9,%r10,2), %r12d
addl %r10d, %r10d
btl $0x10, %r12d
adcl %r9d, %r10d
movl %r10d, %r9d
notl %r9d
movzwl %r9w, %r12d
shrl $0xf, %r12d
movl %r10d, %r9d
rolw %r9w
leal (%r12,%rdi,2), %edi
testw %r10w, %r10w
js 0x586a
movl %r9d, %r10d
andl %esi, %r10d
xorl %esi, %r9d
testb $0x1, %r11b
jne 0x5873
jmp 0x5b8d
movl %r9d, %r10d
andl %eax, %r10d
xorl %eax, %r9d
leal 0x1(%r8), %r12d
movw %r12w, 0x10b2(%rbx)
movb $0x1, %r11b
testb $0x20, %r8b
movl %r12d, %r8d
je 0x5820
movw %di, 0x10ac(%rbx)
movl $0x0, 0x10a8(%rbx)
movw $0x0, 0x10ae(%rbx)
testl %ecx, %ecx
movq -0x40(%rbp), %r12
je 0x6022
movw $0xffff, 0x10a8(%rbx)   # imm = 0xFFFF
jmp 0x5c62
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5ca7
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movw %ax, 0x10a0(%rbx)
movzwl 0x10a8(%rbx), %edx
movw %dx, 0x10ac(%rbx)
movl %edx, %ecx
testw %dx, %dx
jns 0x5915
movl %edx, %ecx
notl %ecx
movl $0x1, 0x10b4(%rbx)
testw %ax, %ax
jns 0x5932
xorl %esi, %esi
testw %dx, %dx
setns %sil
notl %eax
movw %ax, 0x10a0(%rbx)
movl %esi, 0x10b4(%rbx)
notl %eax
movl %ecx, %edx
xorl %eax, %edx
movl $0xffff, %esi           # imm = 0xFFFF
andl %esi, %edx
andl %esi, %ecx
andl %eax, %ecx
leal (%rdx,%rcx,2), %eax
movl %eax, %ecx
shrl $0x10, %ecx
addl %eax, %ecx
xorl %eax, %eax
movw %ax, 0x10ae(%rbx)
movw %cx, 0x10a8(%rbx)
movw %ax, 0x10aa(%rbx)
jmp 0x6022
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %ecx
andl $0xfffff800, %ecx       # imm = 0xFFFFF800
movzwl 0x10a0(%rbx), %edx
jmp 0x5a72
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5ce8
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5d2e
movzwl 0x10a8(%rbx), %ecx
movw %cx, 0x109c(%rbx)
movzwl %ax, %eax
movw %cx, 0x9c(%rbx,%rax,2)
jmp 0x6022
movzwl %ax, %ecx
movzwl 0x9c(%rbx,%rcx,2), %eax
movw %ax, 0x10a0(%rbx)
movzwl 0x10a8(%rbx), %edx
movw %dx, 0x109c(%rbx)
movw %dx, 0x9c(%rbx,%rcx,2)
movw %ax, 0x10a8(%rbx)
jmp 0x6022
movzwl %ax, %ecx
movzwl 0x9c(%rbx,%rcx,2), %ecx
movw %cx, 0x109c(%rbx)
movq %r12, %rcx
jmp 0x5d68
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5e1d
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5e6b
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %ecx
andl $0xfffff800, %ecx       # imm = 0xFFFFF800
movzwl 0x10a8(%rbx), %edx
andl $0x7ff, %edx            # imm = 0x7FF
orl %ecx, %edx
movw %dx, 0x109c(%rbx)
movw %dx, 0x9c(%rbx,%rax,2)
jmp 0x6022
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5ef0
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movw %ax, 0x10a0(%rbx)
xorl %esi, %esi
cmpw $0x0, 0x10ae(%rbx)
setne %sil
movl %esi, %ecx
orl $-0x2, %ecx
cmpw $0x0, 0x10b0(%rbx)
cmovel %esi, %ecx
movw $0x0, 0x10b0(%rbx)
testw %ax, %ax
jns 0x5b00
notl %eax
movw %ax, 0x10a0(%rbx)
movl $0x1, 0x10b4(%rbx)
movswl %cx, %ecx
movl %eax, %esi
xorl %ecx, %esi
movl $0xffff, %edi           # imm = 0xFFFF
movl %esi, %r8d
andl %edi, %r8d
andl %edi, %ecx
andl %eax, %ecx
leal (%r8,%rcx,2), %eax
movl %eax, %ecx
shrl $0x10, %ecx
addl %eax, %ecx
testw %cx, %cx
sets %al
testw %si, %si
setns %sil
andb %al, %sil
movzbl %sil, %eax
movw %ax, 0x10ae(%rbx)
movw %cx, 0x10a8(%rbx)
movw $0x0, 0x10aa(%rbx)
cmpb $0x1, %al
je 0x5ffd
jmp 0x6019
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x5f78
movzwl %ax, %eax
movzwl 0x9c(%rbx,%rax,2), %eax
movw %ax, 0x109c(%rbx)
movq %r12, %rax
jmp 0x6044
movw %r9w, 0x10a8(%rbx)
movw %r10w, 0x10aa(%rbx)
movw $0x0, 0x10ae(%rbx)
movw %di, 0x10ac(%rbx)
leaq 0x1958(%rip), %rdi      # 0x750c
leaq 0x193f(%rip), %rsi      # 0x74fa
xorl %eax, %eax
callq 0x2100
movl $0x0, 0x8(%rbx)
movq -0x40(%rbp), %r12
jmp 0x6022
movq -0x38(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movw %ax, 0x10b8(%rbx)
movzwl 0x10a8(%rbx), %eax
movw %ax, 0x109c(%rbx)
movzwl %ax, %eax
shrl $0x5, %eax
movl %eax, 0x10d8(%rbx)
movq 0x10d0(%rbx), %rsi
testq %rsi, %rsi
je 0x6022
movq %rbx, %rdi
callq *0x8(%rsi)
cmpl $0x0, 0x10bc(%rbx)
je 0x6022
movq 0x10d0(%rbx), %rax
movl $0x1, %ecx
movl %ecx, (%rax)
movl %ecx, 0x10c4(%rbx)
jmp 0x6022
movw %di, 0x10a0(%rbx)
andl $0x7ff, %edi            # imm = 0x7FF
orl %edi, %esi
movw %si, 0x109c(%rbx)
testw %dx, %dx
jns 0x6022
notl %ecx
movw %cx, 0x10a8(%rbx)
movl $0x0, 0x10b4(%rbx)
jmp 0x6022
movq -0x38(%rbp), %rsi
leaq (%rsi,%rcx,2), %rcx
movzwl (%rcx), %edi
movl %edi, %ecx
xorl $0x1, %ecx
movl %edi, %esi
andl $0x1, %esi
leal (%rcx,%rsi,2), %esi
movl %esi, %ecx
shrl $0x10, %ecx
addl %esi, %ecx
testw %cx, %cx
sets %r8b
testw %di, %di
jmp 0x5da5
movq -0x38(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %ecx
movw %cx, 0x10a0(%rbx)
xorl %eax, %eax
xorl %esi, %esi
cmpw %ax, 0x10ae(%rbx)
setne %sil
movl %esi, %edi
orl $-0x2, %edi
cmpw %ax, 0x10b0(%rbx)
cmovel %esi, %edi
jmp 0x5fa2
movzwl 0x10a0(%rbx), %eax
jmp 0x5ed7
movq -0x38(%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 0x6022
leaq 0x1800(%rip), %rdi      # 0x750c
leaq 0x17f0(%rip), %rsi      # 0x7503
xorl %eax, %eax
callq 0x2100
movl $0x0, 0x8(%rbx)
jmp 0x6022
movq -0x38(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movw %ax, 0x10a0(%rbx)
xorw %ax, 0x10a8(%rbx)
movw $0x0, 0x10aa(%rbx)
jmp 0x6022
movzwl 0x10a8(%rbx), %eax
movw %ax, 0x109c(%rbx)
jmp 0x6022
movq -0x38(%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
movw %di, 0x10a0(%rbx)
movzbl %sil, %edi
movw %di, 0x10ae(%rbx)
movw %cx, 0x10a8(%rbx)
movw $0x0, 0x10aa(%rbx)
cmpw $0x1f, %ax
ja 0x5dee
movl 0x18(%rbx), %edi
btl %eax, %edi
jae 0x5e02
movzwl %ax, %eax
movw %cx, (%r12)
movq -0x30(%rbp), %rdi
movw %cx, (%rdi,%rax,2)
jmp 0x5e07
movw %cx, 0x109c(%rbx)
movzwl %ax, %eax
movw %cx, 0x9c(%rbx,%rax,2)
jmp 0x5e07
movw %cx, (%r12)
testb %sil, %sil
jne 0x5ffd
jmp 0x6019
movq -0x38(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movw %ax, 0x10a0(%rbx)
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
jmp 0x5eb4
movq -0x38(%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
movw %cx, 0x10ae(%rbx)
movw %ax, 0x10a8(%rbx)
movw $0x0, 0x10aa(%rbx)
jmp 0x5ff8
movzwl 0x10a8(%rbx), %eax
andl $0x7ff, %eax            # imm = 0x7FF
movw %ax, 0x109c(%rbx)
jmp 0x6022
movq -0x38(%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 0x6022
testw %ax, %ax
js 0x5f5f
movl $0x10000, 0x10ae(%rbx)  # imm = 0x10000
xorl $0x8000, %eax           # imm = 0x8000
movw %ax, 0x10a8(%rbx)
jmp 0x6022
movq -0x38(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %ecx
movw %cx, 0x10a0(%rbx)
xorl %eax, %eax
xorl %esi, %esi
cmpw %ax, 0x10ae(%rbx)
setne %sil
movl %esi, %edi
orl $-0x2, %edi
cmpw %ax, 0x10b0(%rbx)
cmovel %esi, %edi
notl %ecx
movl %edi, %esi
xorl %ecx, %esi
movl $0xffff, %r8d           # imm = 0xFFFF
movl %esi, %r9d
andl %r8d, %r9d
andl %r8d, %ecx
andl %edi, %ecx
leal (%rcx,%rcx), %edi
leal (%r9,%rcx,2), %r8d
btl $0x10, %r8d
adcl %r9d, %edi
movw %ax, 0x10b0(%rbx)
xorl %edi, %ecx
testw %cx, %cx
sets %cl
testw %si, %si
setns %sil
andb %cl, %sil
movzbl %sil, %ecx
movw %cx, 0x10ae(%rbx)
movw %di, 0x10a8(%rbx)
movw %ax, 0x10aa(%rbx)
cmpb $0x1, %cl
jne 0x6019
leaq 0x1508(%rip), %rdi      # 0x750c
leaq 0x14e6(%rip), %rsi      # 0x74f1
xorl %eax, %eax
callq 0x2100
movl $0x0, 0x8(%rbx)
movw $0x0, 0x10ae(%rbx)
cmpl $0x0, 0x4(%rbx)
je 0x602f
movl $0x0, 0x8(%rbx)
movq %rbx, %rdi
callq 0x4a73
jmp 0x4bad
movq -0x38(%rbp), %rcx
leaq (%rcx,%rax,2), %rax
movzwl 0x10a8(%rbx), %ecx
andw (%rax), %cx
movl %ecx, %eax
notl %eax
movw %ax, 0x10a0(%rbx)
movw %cx, 0x10a8(%rbx)
jmp 0x6022
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1422(%rip), %rdi      # 0x749c
leaq 0x1428(%rip), %rsi      # 0x74a9
leaq 0x142c(%rip), %rcx      # 0x74b4
movl $0x2aa, %edx            # imm = 0x2AA
callq 0x2130
leaq 0x142c(%rip), %rdi      # 0x74c5
leaq 0x1409(%rip), %rsi      # 0x74a9
leaq 0x140d(%rip), %rcx      # 0x74b4
movl $0x4ae, %edx            # imm = 0x4AE
callq 0x2130
leaq 0x1420(%rip), %rdi      # 0x74d8
leaq 0x13ea(%rip), %rsi      # 0x74a9
leaq 0x13ee(%rip), %rcx      # 0x74b4
movl $0x4af, %edx            # imm = 0x4AF
callq 0x2130