// File: /workspace/github_c_makefile_star2_O1/canboat[P]canboat/n2kd/main.c
// Function: doServerWork
static void doServerWork(void)
{
  do
  {
    /* Do a range of non-blocking operations */
    checkReadEvents(); /* Process incoming requests on all clients */
    writeAllClients(); /* Check any timeouts on clients */
  } while (!stop);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
leaq 0xa7bb(%rip), %r13      # 0xe200
movups 0x55d4(%rip), %xmm0     # 0x9020
movaps %xmm0, 0x10(%rsp)
movl 0xa91d(%rip), %esi      # 0xe374
leaq 0x6446(%rip), %rdi      # 0x9ea4
xorl %eax, %eax
callq 0x7549
movl $0x10, %ecx
leaq 0xa0(%rsp), %rdx
movq %rdx, %rdi
leaq 0xa994(%rip), %rax      # 0xe410
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x10, %ecx
leaq 0x20(%rsp), %r8
movq %r8, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl 0xa8d9(%rip), %edi      # 0xe374
incl %edi
movq %rdx, %rsi
xorl %edx, %edx
movq %r8, %rcx
leaq 0x10(%rsp), %r8
callq 0x2210
testl %eax, %eax
jle 0x3b4f
movl %eax, %ebx
movl 0xa8ad(%rip), %eax      # 0xe36c
cmpl 0xa8ab(%rip), %eax      # 0xe370
ja 0x3b4f
movslq %eax, %r14
imulq $0x8038, %r14, %r15     # imm = 0x8038
leaq 0xaa44(%rip), %rax      # 0xe520
addq %rax, %r15
movl (%r15), %ecx
testl %ecx, %ecx
js 0x3b35
movl %ecx, %r12d
shrl $0x6, %r12d
movq 0x20(%rsp,%r12,8), %rax
movl $0x1, %ebp
shlq %cl, %rbp
btq %rcx, %rax
jae 0x3b22
movl 0x4(%r15), %eax
movq (%r13,%rax,8), %rsi
leaq 0x63ae(%rip), %rdi      # 0x9ebe
movq %r14, %rdx
xorl %eax, %eax
callq 0x7549
movl %r14d, %edi
callq 0x4062
testq %rbp, 0xa0(%rsp,%r12,8)
je 0x3b35
movl %r14d, %edi
callq *0x10(%r15)
decl %ebx
testl %ebx, %ebx
jle 0x3b4f
incq %r14
addq $0x8038, %r15           # imm = 0x8038
movslq 0xa826(%rip), %rax      # 0xe370
cmpq %rax, %r14
jbe 0x3adf
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x20189d2(%rip), %rsi   # 0x201c530
movq 0x20189e3(%rip), %rdx   # 0x201c548
movq 0x20189f4(%rip), %rcx   # 0x201c560
leaq 0x636e(%rip), %rdi      # 0x9ee1
xorl %eax, %eax
callq 0x7549
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0xb0(%rsp)
movaps %xmm0, 0xc0(%rsp)
movaps %xmm0, 0xd0(%rsp)
movaps %xmm0, 0xe0(%rsp)
movaps %xmm0, 0xf0(%rsp)
movaps %xmm0, 0x100(%rsp)
movaps %xmm0, 0x110(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x90(%rsp)
cmpl $0x0, 0xa77e(%rip)      # 0xe370
js 0x3f71
movl $0x10, %ecx
leaq 0xa0(%rsp), %rdx
movq %rdx, %rdi
leaq 0xa881(%rip), %r8       # 0xe490
movq %r8, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x10, %ecx
leaq 0x20(%rsp), %rax
movq %rax, %rdi
movq %r8, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl 0xa746(%rip), %edi      # 0xe374
incl %edi
xorl %esi, %esi
movq %rax, %rcx
leaq 0x10(%rsp), %r8
callq 0x2210
movl %eax, %ebx
callq 0x7328
movq %rax, 0x8(%rsp)
movl 0xa71b(%rip), %edx      # 0xe36c
movl 0xa719(%rip), %ecx      # 0xe370
movl 0xa716(%rip), %r8d      # 0xe374
leaq 0x62a3(%rip), %rdi      # 0x9f08
movl %ebx, %esi
xorl %eax, %eax
callq 0x7549
testl %ebx, %ebx
jle 0x3f71
movl 0xa6f0(%rip), %eax      # 0xe36c
movl $0x0, %r14d
movl $0x0, %ecx
movq %rcx, (%rsp)
cmpl 0xa6df(%rip), %eax      # 0xe370
jg 0x3f7c
movslq %eax, %r12
imulq $0x8038, %r12, %rax     # imm = 0x8038
leaq 0xa878(%rip), %rcx      # 0xe520
leaq (%rax,%rcx), %r15
addq $0x8018, %r15           # imm = 0x8018
movq $0x0, (%rsp)
xorl %r14d, %r14d
movl -0x8018(%r15), %ebp
testl %ebp, %ebp
js 0x3d97
cmpl $0x2001, %ebp           # imm = 0x2001
jl 0x3ce8
leaq 0x6253(%rip), %rdi      # 0x9f2f
movl %r12d, %esi
movl %ebp, %edx
xorl %eax, %eax
callq 0x766f
movl 0xa686(%rip), %ecx      # 0xe374
cmpl %ecx, %ebp
jle 0x3d05
leaq 0x6258(%rip), %rdi      # 0x9f51
movl %r12d, %esi
movl %ebp, %edx
xorl %eax, %eax
callq 0x766f
movl %ebp, %eax
shrl $0x6, %eax
movl $0x1, %edx
movl %ebp, %ecx
shlq %cl, %rdx
cmpq $0x1, %rbp
je 0x3d4d
movq 0x20(%rsp,%rax,8), %rcx
andq %rdx, %rcx
je 0x3d4d
movl -0x8014(%r15), %eax
movq (%r13,%rax,8), %rsi
leaq 0x623d(%rip), %rdi      # 0x9f74
movl %r12d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x7549
movl %r12d, %edi
callq 0x4062
jmp 0x3d97
testq %rdx, 0xa0(%rsp,%rax,8)
je 0x3d97
movl -0x8014(%r15), %eax
movq (%r13,%rax,8), %rsi
movq -0x8010(%r15), %r9
leaq 0x6227(%rip), %rdi      # 0x9f98
movl %r12d, %edx
movl %ebp, %ecx
movl $0x1, %r8d
xorl %eax, %eax
callq 0x7549
decl %ebx
cmpq $0x0, 0x8(%r15)
je 0x3dc3
movl %r12d, %edi
movq %r15, %rsi
callq 0x418f
testl %ebx, %ebx
jle 0x3f7c
leaq 0x1(%r12), %rax
addq $0x8038, %r15           # imm = 0x8038
movslq 0xa5be(%rip), %rcx      # 0xe370
cmpq %rcx, %r12
movq %rax, %r12
jl 0x3cbe
jmp 0x3f7c
movl -0x8014(%r15), %eax
decl %eax
cmpl $0x11, %eax
ja 0x3d97
leaq 0x5258(%rip), %rcx      # 0x9030
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x2018778(%rip), %rsi   # 0x201c560
leaq 0x61dc(%rip), %rdi      # 0x9fcb
xorl %eax, %eax
callq 0x7549
cmpq $0x0, 0x2018762(%rip)   # 0x201c560
je 0x3d97
movl %r12d, %edi
leaq 0x201874e(%rip), %rsi   # 0x201c558
jmp 0x3d92
cmpq $0x0, 0x2018734(%rip)   # 0x201c548
je 0x3d97
movl %r12d, %edi
leaq 0x2018720(%rip), %rsi   # 0x201c540
jmp 0x3d92
cmpq $0x0, 0x2018703(%rip)   # 0x201c530
je 0x3d97
movl %r12d, %edi
leaq 0x20186eb(%rip), %rsi   # 0x201c528
jmp 0x3d92
movq 0x2018717(%rip), %rsi   # 0x201c560
leaq 0x6177(%rip), %rdi      # 0x9fc7
xorl %eax, %eax
callq 0x7549
movq 0x2018702(%rip), %rdx   # 0x201c560
testq %rdx, %rdx
je 0x3d97
movq 0x20186ea(%rip), %rsi   # 0x201c558
movl %ebp, %edi
xorl %ecx, %ecx
leaq 0xa503(%rip), %r8       # 0xe37c
movl $0x10, %r9d
callq 0x2180
jmp 0x3d97
movq -0x8010(%r15), %rax
testq %rax, %rax
setne %cl
cmpq 0x8(%rsp), %rax
setb %al
andb %cl, %al
cmpb $0x1, %al
jne 0x3d97
testq %r14, %r14
jne 0x3ebf
movl $0x1, %edi
movq 0x8(%rsp), %rsi
callq 0x43c1
movq %rax, %r14
movq %r14, %rdi
callq 0x2100
movl %r12d, %edi
movq %r14, %rsi
jmp 0x3f2f
movq -0x8010(%r15), %rax
testq %rax, %rax
setne %cl
cmpq 0x8(%rsp), %rax
setb %al
andb %cl, %al
cmpb $0x1, %al
jne 0x3d97
movq (%rsp), %rdi
testq %rdi, %rdi
jne 0x3f1d
movl $0x3, %edi
movq 0x8(%rsp), %rsi
callq 0x43c1
movq %rax, %rbp
leaq 0x60af(%rip), %rdi      # 0x9fbf
movq %rax, %rsi
xorl %eax, %eax
callq 0x7549
movq %rbp, %rdi
movq %rdi, %rbp
callq 0x2100
movl %r12d, %edi
movq %rbp, (%rsp)
movq %rbp, %rsi
movq %rax, %rdx
callq 0x465d
jmp 0x3d97
movl $0x6, %edi
movq 0x8(%rsp), %rsi
callq 0x43c1
movq %rax, %rbp
movq %rax, %rdi
callq 0x2100
movl %r12d, %edi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x465d
movq %rbp, %rdi
callq 0x2030
jmp 0x3d97
xorl %r14d, %r14d
movq $0x0, (%rsp)
testq %r14, %r14
je 0x3f89
movq %r14, %rdi
callq 0x2030
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x3f97
callq 0x2030
movq $0x0, 0x201858e(%rip) # 0x201c530
movq 0x201857f(%rip), %rax   # 0x201c528
testq %rax, %rax
je 0x3fb1
movb $0x0, (%rax)
movq $0x0, 0x20185a4(%rip) # 0x201c560
movq 0x2018595(%rip), %rax   # 0x201c558
testq %rax, %rax
je 0x3fcb
movb $0x0, (%rax)
movq $0x0, 0x2018572(%rip) # 0x201c548
movq 0x2018563(%rip), %rax   # 0x201c540
testq %rax, %rax
je 0x3fe5
movb $0x0, (%rax)
cmpb $0x1, 0xa526(%rip)      # 0xe512
jne 0x3a45
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq