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

		// a cycle takes 5μs
		if(pdp->run) {
			!pdp->cyc ? cycle0(pdp) :
			pdp->df1 ? defer(pdp)
				: cycle1(pdp);
//printf("%s %s  hack/%d\n", pdp->cyc ? "cyc" : "   ", pdp->df1 ? "df1" : "   ", pdp->cychack);
		}
//		handleio(pdp);
	}
	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 0x4034(%rdi), %r12
leaq 0xc(%rdi), %r14
leaq 0x18(%rdi), %r13
leaq -0x30(%rbp), %r15
movq %r12, -0x40(%rbp)
movq %r13, -0x38(%rbp)
movq 0xe14e(%rip), %rdi      # 0x12678
movq %r15, %rsi
callq 0x3cab
cmpl $0x1, %eax
je 0x4541
cmpl $-0x1, %eax
jne 0x454d
jmp 0x501c
movq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x42e6
cmpl $0x0, (%r12)
je 0x4523
cmpl $0x0, 0x403c(%rbx)
je 0x45a2
cmpl $0x0, 0x4040(%rbx)
je 0x45b8
movl 0x8(%rbx), %ecx
movl $0xfff, %eax            # imm = 0xFFF
andl %eax, %ecx
orl 0xc(%rbx), %ecx
movl %ecx, 0xc(%rbx)
movl 0x18(%rbx,%rcx,4), %edx
movl %edx, 0x8(%rbx)
btl $0xc, %edx
jb 0x45eb
movl 0x14(%rbx), %eax
cmpl $0x18, %eax
je 0x4595
cmpl $0x19, %eax
jne 0x45f8
movl 0x10(%rbx), %esi
movl %esi, (%rbx)
movl %edx, %esi
andl $0xfff, %esi            # imm = 0xFFF
movl %esi, 0x10(%rbx)
jmp 0x45f8
cmpl $0x4, 0x4080(%rbx)
jne 0x4642
movl 0x8(%rbx), %r15d
jmp 0x46f8
cmpl $0x1, 0x4080(%rbx)
movl 0x14(%rbx), %eax
je 0x4865
movl %eax, %edx
xorl $0x7, %edx
movl 0x8(%rbx), %ecx
movl %ecx, %esi
andl $0x1000, %esi           # imm = 0x1000
orl %edx, %esi
jne 0x4828
orb $0x40, (%r14)
pushq $0x7
jmp 0x4864
movl $0x1, 0x4044(%rbx)
movl 0x14(%rbx), %eax
movl %edx, (%r13,%rcx,4)
cmpl $0x1e, %eax
ja 0x47d7
movl $0x40008061, %ecx       # imm = 0x40008061
btl %eax, %ecx
movq %r12, %rcx
jae 0x47d7
andl $0x0, (%rcx)
cmpl $0x0, 0x4044(%rbx)
jne 0x4636
andl $0x0, 0x4040(%rbx)
cmpl $0x18, %eax
jb 0x4636
andl $0x0, 0x403c(%rbx)
andl $0x0, 0x4044(%rbx)
jmp 0x4523
movl 0x14(%rbx), %eax
cmpl $0x1b, %eax
jne 0x4666
testb $0x20, 0x8(%rbx)
pushq $0x1b
popq %rax
je 0x465e
movq %rbx, %rdi
callq 0x5282
movl 0x14(%rbx), %eax
cmpl $0x1b, %eax
sete %cl
jmp 0x4668
xorl %ecx, %ecx
movl 0x10(%rbx), %edx
orl %edx, 0xc(%rbx)
testb %cl, %cl
je 0x4683
testb $0x40, 0x8(%rbx)
je 0x4683
movq %rbx, %rdi
callq 0x5282
movl 0x14(%rbx), %eax
cmpl $0x1b, %eax
jne 0x469c
testb $-0x80, 0x8(%rbx)
pushq $0x1b
popq %rax
je 0x469c
movq %rbx, %rdi
callq 0x5282
movl 0x14(%rbx), %eax
movl 0x10(%rbx), %ecx
incl %ecx
andl $0xfff, %ecx            # imm = 0xFFF
movl %ecx, 0x10(%rbx)
cmpl $0x1d, %eax
jne 0x46db
xorl %r15d, %r15d
cmpl $0x0, 0x406c(%rbx)
movl $0x0, %eax
jne 0x46cc
xorl %eax, %eax
cmpl $0x0, 0x4064(%rbx)
sete %al
movl %eax, 0x4060(%rbx)
andl $0x0, 0x4064(%rbx)
jmp 0x46f8
andl $0x0, 0x4064(%rbx)
xorl %r15d, %r15d
cmpl $0x1b, %eax
jne 0x46f8
testb $0x1, 0x9(%rbx)
je 0x46f8
movq %rbx, %rdi
callq 0x5282
movl 0xc(%rbx), %eax
orl 0x18(%rbx,%rax,4), %r15d
movl %r15d, 0x8(%rbx)
andl $0x0, 0x18(%rbx,%rax,4)
movl %r15d, %ecx
shrl $0xd, %ecx
movl %ecx, 0x14(%rbx)
cmpl $0x1d, %ecx
je 0x4749
movl %r15d, %eax
andl $0x1000, %eax           # imm = 0x1000
je 0x4749
cmpl $0x7, %ecx
je 0x4749
cmpl $0x1f, %ecx
je 0x4749
movl %r15d, %eax
andl $0xffffc000, %eax       # imm = 0xFFFFC000
cmpl $0x34000, %eax          # imm = 0x34000
je 0x4749
cmpl $0x1c, %ecx
je 0x4749
movl $0x1, 0x4040(%rbx)
cmpl $0x1d, %ecx
jne 0x4783
btl $0xc, %r15d
jb 0x497c
cmpl $0x0, 0x406c(%rbx)
je 0x4998
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x4060(%rbx)
andl $0x0, 0x406c(%rbx)
jmp 0x4998
cmpl $0x1b, %ecx
setne %al
testb $0x1, %r15b
sete %dl
orb %al, %dl
jne 0x479f
movq %rbx, %rdi
callq 0x5282
movl 0x14(%rbx), %ecx
xorl %eax, %eax
leal -0x19(%rcx), %edx
cmpl $0x6, %edx
ja 0x499d
leaq 0x1c44(%rip), %rsi      # 0x63f8
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
cmpl $0x0, 0x4040(%rbx)
pushq $0x19
popq %rax
jne 0x4c6f
movb $0x1, %al
andl $0x0, (%rbx)
jmp 0x499d
cmpl $0x0, 0x4078(%rbx)
movq %r12, %rcx
jne 0x4617
cmpl $0x0, 0x407c(%rbx)
je 0x4805
cmpl $0x18, %eax
jb 0x4805
cmpl $0x0, 0x4044(%rbx)
movq %r12, %rcx
je 0x4617
cmpl $0x0, 0x4038(%rbx)
movq %r12, %rcx
je 0x4617
cmpl $0x0, (%r12)
movq %r14, %rcx
jne 0x4617
jmp 0x461a
andl $0xfff, %ecx            # imm = 0xFFF
orl %ecx, (%r14)
cmpl $0x17, %eax
jne 0x4865
movl (%rbx), %eax
movl 0x4(%rbx), %ecx
movl %eax, %edx
movl $0xfffdffff, %edi       # imm = 0xFFFDFFFF
andl %edi, %edx
movl %ecx, %esi
shrl $0x11, %esi
andl $0x1, %esi
leal (%rsi,%rdx,2), %edx
andl %edi, %ecx
shrl $0x11, %eax
andl $0x1, %eax
leal (%rax,%rcx,2), %eax
xorl $0x1, %eax
movl %eax, 0x4(%rbx)
movl %edx, (%rbx)
pushq $0x17
popq %rax
movl %eax, %ecx
xorl $0x17, %ecx
movl 0x4(%rbx), %edi
movl %edi, %edx
andl $0x1, %edx
orl %ecx, %edx
je 0x4899
andl $0x0, 0x8(%rbx)
cmpl $0x4, %eax
jne 0x4927
andl $0x0, 0x403c(%rbx)
movl $0x4, 0x4080(%rbx)
jmp 0x4523
movl (%rbx), %ecx
movl 0xc(%rbx), %r8d
leal 0x1(%rcx), %r9d
cmpl $0x3ffff, %ecx          # imm = 0x3FFFF
pushq $0x1
popq %rcx
cmovel %ecx, %r9d
leaq (,%r8,4), %rcx
addq %r13, %rcx
movl 0x18(%rbx,%r8,4), %esi
movl %esi, 0x8(%rbx)
andl $0x0, 0x18(%rbx,%r8,4)
xorl %esi, %r9d
xorl %edx, %edx
movl %r9d, %r10d
notl %r10d
andl %esi, %r10d
leal (%r9,%r10,2), %r11d
addl %r10d, %r10d
btl $0x12, %r11d
adcl %r9d, %r10d
andl $0x3ffff, %r10d         # imm = 0x3FFFF
movl %r10d, (%rbx)
movl %eax, %r10d
andl $-0x2, %r10d
cmpl $0x12, %r10d
jne 0x4b7c
movl (%rbx), %r9d
cmpl $0x3fffe, %r9d          # imm = 0x3FFFE
je 0x4b71
cmpl $0x3ffff, %r9d          # imm = 0x3FFFF
jne 0x4b76
pushq $0x1
popq %r9
jmp 0x4b79
movl 0xc(%rbx), %r8d
movl 0x18(%rbx,%r8,4), %esi
movl %esi, 0x8(%rbx)
andl $0x0, 0x18(%rbx,%r8,4)
leaq (,%r8,4), %rcx
addq %r13, %rcx
leal -0x1(%rax), %edx
cmpl $0x8, %edx
jbe 0x4b5a
leal -0x12(%rax), %edx
cmpl $0x2, %edx
jb 0x4bc5
cmpl $0x17, %eax
je 0x4f73
cmpl $0x11, %eax
jne 0x4bc7
movl (%rbx), %r9d
jmp 0x4f80
testb $0x10, 0x9(%rbx)
je 0x4998
cmpl $0x0, 0x406c(%rbx)
jne 0x4998
cmpl $0x0, 0x4064(%rbx)
jne 0x4998
movl $0x1, 0x406c(%rbx)
xorl %eax, %eax
pushq $0x1d
popq %rcx
cmpl $0x0, 0x4040(%rbx)
je 0x4a99
cmpl $0x1b, %ecx
je 0x4abf
cmpl $0x1a, %ecx
jne 0x4ad7
movl 0x8(%rbx), %r15d
xorl %r13d, %r13d
btl $0xa, %r15d
jae 0x49d5
xorl %r13d, %r13d
testb $0x2, 0x6(%rbx)
sete %r13b
btl $0x9, %r15d
jae 0x49ea
cmpl $0x0, 0x4050(%rbx)
pushq $0x1
popq %rax
cmovel %eax, %r13d
btl $0x8, %r15d
jae 0x49fc
testb $0x2, 0x2(%rbx)
pushq $0x1
popq %rax
cmovnel %eax, %r13d
testb %r15b, %r15b
jns 0x4a0c
testb $0x2, 0x2(%rbx)
pushq $0x1
popq %rax
cmovel %eax, %r13d
testb $0x40, %r15b
je 0x4a1c
cmpl $0x0, (%rbx)
pushq $0x1
popq %rax
cmovel %eax, %r13d
movq %r14, %r12
testb $0x38, %r15b
je 0x4a41
movl 0x4070(%rbx), %r14d
movl %r15d, %edi
shrl $0x3, %edi
callq 0x53b8
testl %r14d, %eax
pushq $0x1
popq %rax
cmovel %eax, %r13d
testb $0x7, %r15b
je 0x4a60
movl 0x4074(%rbx), %r14d
movl %r15d, %edi
callq 0x53b8
testl %r14d, %eax
pushq $0x1
popq %rax
cmovel %eax, %r13d
movq %r12, %r14
xorl %ecx, %ecx
testl %r13d, %r13d
sete %cl
btl $0xc, %r15d
cmovael %r13d, %ecx
pushq $0x1a
popq %rax
testl %ecx, %ecx
movq -0x40(%rbp), %r12
movq -0x38(%rbp), %r13
je 0x4c6f
movl 0x10(%rbx), %eax
incl %eax
andl $0xfff, %eax            # imm = 0xFFF
pushq $0x1a
popq %rcx
jmp 0x4c6a
testb %al, %al
je 0x4aa8
movl 0x10(%rbx), %eax
orl %eax, (%rbx)
andl $0x0, 0x10(%rbx)
jmp 0x4ad7
cmpl $0x18, %ecx
je 0x4c68
cmpl $0x1a, %ecx
je 0x49bc
cmpl $0x1b, %ecx
jne 0x4ad7
testb $0x2, 0x8(%rbx)
pushq $0x1b
popq %rax
je 0x4c6f
movq %rbx, %rdi
callq 0x5282
movl 0x14(%rbx), %ecx
cmpl $0x1c, %ecx
je 0x4b1d
movl %ecx, %eax
cmpl $0x1f, %ecx
jne 0x4c6f
movl 0x8(%rbx), %r15d
btl $0xa, %r15d
jae 0x4afa
movl 0x401c(%rbx), %eax
orl %eax, (%rbx)
testb $0x40, %r15b
je 0x4b05
movl 0x10(%rbx), %eax
orl %eax, (%rbx)
movl %r15d, %edi
callq 0x53b8
testb $0x8, %r15b
jne 0x4b4c
notl %eax
andl %eax, 0x4074(%rbx)
jmp 0x4b52
movl 0x8(%rbx), %r15d
movl %r15d, %eax
andl $0xfff, %eax            # imm = 0xFFF
orl %eax, (%rbx)
pushq $0x1c
jmp 0x4b54
movl 0x8(%rbx), %eax
testb %al, %al
jns 0x4b39
andl $0x0, (%rbx)
btl $0xb, %eax
jae 0x4b43
andl $0x0, 0x4(%rbx)
xorl %eax, %eax
pushq $0x1f
jmp 0x499c
orl %eax, 0x4074(%rbx)
pushq $0x1f
popq %rax
jmp 0x4c73
leaq 0x1833(%rip), %r9       # 0x6394
movslq (%r9,%rdx,4), %rdx
addq %r9, %rdx
jmpq *%rdx
andl %esi, (%rbx)
jmp 0x4ea3
xorl %r9d, %r9d
jmp 0x4b79
incl %r9d
movl %r9d, (%rbx)
leal -0x7(%rax), %r9d
cmpl $0xf, %r9d
ja 0x4c3c
leaq 0x1827(%rip), %r11      # 0x63b8
movslq (%r11,%r9,4), %r9
addq %r11, %r9
jmpq *%r9
movl (%rbx), %r9d
movl %r9d, 0x8(%rbx)
cmpl $0xb, %eax
je 0x4e53
cmpl $0xd, %eax
je 0x4bbd
movl %r9d, %esi
cmpl $0xc, %eax
je 0x4be9
jmp 0x4c3f
movl %edi, 0x8(%rbx)
jmp 0x4e6d
movl %esi, (%rbx)
leal -0xd(%rax), %edx
cmpl $0x1, %edx
ja 0x4f8a
andl $0x0, 0x8(%rbx)
xorl %esi, %esi
jmp 0x4faf
movl (%rbx), %r9d
jmp 0x4e56
movl (%rbx), %r9d
andl $0xfff, %esi            # imm = 0xFFF
andl $0x3f000, %r9d          # imm = 0x3F000
jmp 0x4e63
movl (%rbx), %r9d
movl %r9d, %r8d
shrl %r8d
andl $0x1, %r9d
shll $0x11, %r9d
shrl %edi
orl %r9d, %edi
movl %edi, 0x4(%rbx)
movl %r8d, (%rbx)
movl %esi, %edi
jmp 0x4e6d
movl (%rbx), %r9d
movl 0x10(%rbx), %esi
movl %r9d, 0x8(%rbx)
movl %esi, (%rbx)
andl $0x0, 0x10(%rbx)
movl %r9d, (%rcx)
orl %r8d, 0x10(%rbx)
movb $0x1, %cl
jmp 0x4eb7
movl %esi, %r9d
cmpl $0x13, %eax
je 0x4e7e
cmpl $0x14, %eax
je 0x4e74
cmpl $0x15, %eax
jne 0x4e97
cmpl $0x0, (%rbx)
jne 0x4e79
jmp 0x4e84
xorl %eax, %eax
movl %eax, 0x10(%rbx)
movl %ecx, %eax
movl 0x8(%rbx), %r15d
movl 0xc(%rbx), %ecx
movl %r15d, 0x18(%rbx,%rcx,4)
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0x18, %ecx
jne 0x4c9b
cmpl $0x0, 0x4040(%rbx)
jne 0x4c9b
andl $0xfff, %r15d           # imm = 0xFFF
orl %r15d, 0x10(%rbx)
jmp 0x4ce1
cmpl $0x1b, %eax
je 0x4cc5
cmpl $0x1a, %eax
jne 0x4ce1
btl $0x9, %r15d
pushq $0x1a
popq %rax
leaq -0x30(%rbp), %r15
jae 0x4d63
andl $0x0, 0x4050(%rbx)
pushq $0x1a
jmp 0x4d48
pushq $0x1b
popq %rax
testb $0x4, %r15b
leaq -0x30(%rbp), %r15
je 0x4d63
movq %rbx, %rdi
callq 0x5282
movl 0x14(%rbx), %eax
leal -0x1c(%rax), %ecx
cmpl $0x3, %ecx
jbe 0x4d00
leal -0x5(%rax), %ecx
cmpl $0x2, %ecx
leaq -0x30(%rbp), %r15
jb 0x4d70
testl %eax, %eax
je 0x4d70
cmpl $0xf, %eax
jne 0x4d63
jmp 0x4d70
leaq 0x170d(%rip), %rdx      # 0x6414
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
leaq -0x30(%rbp), %r15
jmpq *%rcx
testb $0x10, 0x9(%rbx)
pushq $0x1c
popq %rax
je 0x4d63
xorl $0x3ffff, (%rbx)        # imm = 0x3FFFF
pushq $0x1c
jmp 0x4d48
cmpl $0x0, 0x4064(%rbx)
pushq $0x1d
popq %rax
jne 0x4d63
cmpl $0x0, 0x4068(%rbx)
pushq $0x1d
popq %rax
je 0x4d63
andl $0x0, 0x406c(%rbx)
pushq $0x1d
popq %rax
jmp 0x4d63
movl 0x8(%rbx), %eax
btl $0x9, %eax
jae 0x4d5a
xorl $0x3ffff, (%rbx)        # imm = 0x3FFFF
btl $0x8, %eax
pushq $0x1f
popq %rax
jb 0x4d70
cmpl $0x0, 0x4078(%rbx)
je 0x4e0a
andl $0x0, (%r12)
cmpl $0x1b, %eax
jne 0x4d8e
testb $0x8, 0x8(%rbx)
pushq $0x1b
popq %rax
je 0x4db7
movq %rbx, %rdi
callq 0x5282
movl 0x14(%rbx), %eax
cmpl $0x1d, %eax
jne 0x4db7
cmpl $0x0, 0x406c(%rbx)
pushq $0x1d
popq %rax
je 0x4db7
movl 0x10(%rbx), %eax
decl %eax
andl $0xfff, %eax            # imm = 0xFFF
movl %eax, 0x10(%rbx)
andq $0x0, 0x4040(%rbx)
pushq $0x1d
popq %rax
cmpl $0x0, (%r12)
je 0x4dc2
andl $0x0, (%r14)
cmpl $0x18, %eax
jb 0x4dd0
cmpl $0x0, 0x4040(%rbx)
je 0x4dda
movl $0x1, 0x403c(%rbx)
cmpl $0x1b, %eax
jne 0x4df0
testb $0x10, 0x8(%rbx)
je 0x4e47
movq %rbx, %rdi
callq 0x5282
movl 0x14(%rbx), %eax
cmpl $0x1d, %eax
jne 0x4e47
cmpl $0x0, 0x4064(%rbx)
je 0x4e37
movl $0x1, 0x406c(%rbx)
jmp 0x4e47
cmpl $0x0, 0x407c(%rbx)
je 0x4e25
cmpl $0x18, %eax
jb 0x4e25
cmpl $0x0, 0x4040(%rbx)
je 0x4d70
cmpl $0x0, 0x4038(%rbx)
jne 0x4d75
jmp 0x4d70
cmpl $0x0, 0x406c(%rbx)
jne 0x4e47
andl $0x0, 0x4068(%rbx)
andl $0x0, 0x4080(%rbx)
jmp 0x4523
movl %r9d, %esi
andl $0x3f000, %esi          # imm = 0x3F000
andl $0xfff, %r9d            # imm = 0xFFF
orl %esi, %r9d
movl %r9d, 0x8(%rbx)
movl %r9d, %edi
movl %edi, (%rcx)
movl %edi, %r9d
jmp 0x4eaa
cmpl $0x0, (%rbx)
jne 0x4e84
movl %r9d, (%rcx)
jmp 0x4eca
testb $0x2, 0x2(%rbx)
jne 0x4e97
movl 0x10(%rbx), %esi
incl %esi
andl $0xfff, %esi            # imm = 0xFFF
movl %esi, 0x10(%rbx)
movl %r9d, (%rcx)
jmp 0x4ec4
movl %r9d, %esi
jmp 0x4ea5
movl %esi, 0x4(%rbx)
jmp 0x4ea3
orl %esi, (%rbx)
xorl %edx, %edx
movl %esi, (%rcx)
movl %esi, %r9d
cmpl $0x11, %eax
jne 0x4ebd
xorl $0x3ffff, (%rbx)        # imm = 0x3FFFF
xorl %ecx, %ecx
testb %dl, %dl
jne 0x4ed3
jmp 0x4ef3
movl %eax, %r10d
andl $-0x2, %r10d
cmpl $0x14, %r10d
jne 0x4ecd
xorl %r9d, (%rbx)
xorl %ecx, %ecx
testb %dl, %dl
je 0x4ee4
xorl (%rbx), %r9d
btl $0x11, %r9d
jb 0x4ee4
andl $0x0, 0x4054(%rbx)
cmpl $0x1e, %eax
ja 0x4ef3
movl $0x40008061, %edx       # imm = 0x40008061
btl %eax, %edx
jb 0x4f05
cmpl $0x0, 0x4078(%rbx)
jne 0x4f05
cmpl $0x0, 0x407c(%rbx)
je 0x4f68
andl $0x0, (%r12)
cmpl $0x17, %eax
je 0x4f14
cmpl $0x10, %eax
jne 0x4f1f
cmpl $0x3ffff, (%rbx)        # imm = 0x3FFFF
jne 0x4f1f
andl $0x0, (%rbx)
testb %cl, %cl
je 0x4f30
movl 0x10(%rbx), %eax
incl %eax
andl $0xfff, %eax            # imm = 0xFFF
movl %eax, 0x10(%rbx)
cmpl $0x0, 0x4054(%rbx)
je 0x4f43
movl $0x1, 0x4050(%rbx)
andl $0x0, 0x4054(%rbx)
andl $0x0, 0x403c(%rbx)
xorl %eax, %eax
cmpl %eax, 0x4034(%rbx)
je 0x4523
andl $0x0, (%r14)
jmp 0x4523
cmpl $0x0, 0x4038(%rbx)
jne 0x4f0a
jmp 0x4f05
movl (%rbx), %r9d
testb $0x1, %dil
je 0x48c9
xorl $0x3ffff, %r9d          # imm = 0x3FFFF
movl %r9d, (%rbx)
movl %eax, %edx
andl $-0x2, %edx
cmpl $0x10, %edx
jne 0x4faf
movl (%rbx), %r9d
xorl %esi, %r9d
movb $0x1, %dl
btl $0x11, %r9d
jb 0x4fb1
movl $0x1, 0x4054(%rbx)
jmp 0x4fb1
xorl %edx, %edx
cmpl $0x17, %eax
ja 0x48f0
movl $0xb30008, %r9d         # imm = 0xB30008
btl %eax, %r9d
jae 0x4ffe
movl (%rbx), %r9d
xorl %esi, %r9d
movl %r9d, (%rbx)
leal -0x10(%rax), %r10d
cmpl $0x2, %r10d
jb 0x48ce
cmpl $0x17, %eax
je 0x48ce
cmpl $0x16, %eax
jne 0x48f0
testb $0x1, %dil
jne 0x48ce
jmp 0x4bfe
cmpl $0x16, %eax
jne 0x48f0
movl (%rbx), %r9d
testb $0x1, %dil
je 0x4bfe
xorl %esi, %r9d
jmp 0x48ce
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq