// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rbx
movups 0x473c(%rip), %xmm0     # 0x8030
movaps %xmm0, 0x10(%rsp)
movl 0x9a85(%rip), %esi      # 0xd384
leaq 0x55ae(%rip), %rdi      # 0x8eb4
xorl %eax, %eax
callq 0x6d78
pushq $0x10
popq %rdx
movq %rdx, %rcx
leaq 0xa8(%rsp), %r8
movq %r8, %rdi
leaq 0x9afb(%rip), %rax      # 0xd420
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rdx, %rcx
leaq 0x28(%rsp), %r9
movq %r9, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl 0x9a42(%rip), %edi      # 0xd384
incl %edi
movq %r8, %rsi
xorl %edx, %edx
movq %r9, %rcx
leaq 0x10(%rsp), %r8
callq 0x2210
movl %eax, %ebp
movslq 0x9a1d(%rip), %r14      # 0xd37c
imulq $0x8038, %r14, %r15     # imm = 0x8038
leaq 0x9bc3(%rip), %rax      # 0xd530
addq %rax, %r15
testl %ebp, %ebp
jle 0x39e6
movslq 0x9a05(%rip), %rax      # 0xd380
cmpq %rax, %r14
ja 0x39e6
movl (%r15), %ecx
testl %ecx, %ecx
js 0x39da
movl %ecx, %r12d
shrl $0x6, %r12d
movq 0x28(%rsp,%r12,8), %rax
movq %rbx, %r13
shlq %cl, %r13
btq %rcx, %rax
jae 0x39c7
movl 0x4(%r15), %eax
leaq 0x9866(%rip), %rdx      # 0xd210
movq (%rdx,%rax,8), %rsi
leaq 0x5519(%rip), %rdi      # 0x8ece
movq %r14, %rdx
xorl %eax, %eax
callq 0x6d78
movl %r14d, %edi
callq 0x3e5c
testq %r13, 0xa8(%rsp,%r12,8)
je 0x39da
movl %r14d, %edi
callq *0x10(%r15)
decl %ebp
incq %r14
addq $0x8038, %r15           # imm = 0x8038
jmp 0x3970
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x2017b4b(%rip), %rsi   # 0x201b540
movq 0x2017b5c(%rip), %rdx   # 0x201b558
movq 0x2017b6d(%rip), %rcx   # 0x201b570
leaq 0x54e7(%rip), %rdi      # 0x8ef1
xorl %eax, %eax
callq 0x6d78
xorl %eax, %eax
cmpq $0x10, %rax
je 0x3a27
andq $0x0, 0xa8(%rsp,%rax,8)
incq %rax
jmp 0x3a13
xorl %eax, %eax
cmpq $0x10, %rax
je 0x3a3a
andq $0x0, 0x28(%rsp,%rax,8)
incq %rax
jmp 0x3a29
cmpl $0x0, 0x993f(%rip)      # 0xd380
js 0x3d96
pushq $0x10
popq %rax
movq %rax, %rcx
leaq 0xa8(%rsp), %rdx
movq %rdx, %rdi
leaq 0x9a41(%rip), %r8       # 0xd4a0
movq %r8, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rax, %rcx
leaq 0x28(%rsp), %rax
movq %rax, %rdi
movq %r8, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl 0x9908(%rip), %edi      # 0xd384
incl %edi
xorl %esi, %esi
movq %rax, %rcx
leaq 0x10(%rsp), %r8
callq 0x2210
movl %eax, %r12d
callq 0x6b84
movq %rax, (%rsp)
movl 0x98dd(%rip), %edx      # 0xd37c
movl 0x98db(%rip), %ecx      # 0xd380
movl 0x98d8(%rip), %r8d      # 0xd384
leaq 0x5465(%rip), %rdi      # 0x8f18
movl %r12d, %esi
xorl %eax, %eax
callq 0x6d78
movslq 0x98b8(%rip), %r14      # 0xd37c
imulq $0x8038, %r14, %rax     # imm = 0x8038
leaq 0x9a5e(%rip), %rcx      # 0xd530
leaq (%rax,%rcx), %r15
addq $0x8018, %r15           # imm = 0x8018
movq $0x0, 0x8(%rsp)
xorl %r13d, %r13d
testl %r12d, %r12d
jle 0x3d8f
movslq 0x9887(%rip), %rax      # 0xd380
cmpq %rax, %r14
jg 0x3d8f
movl -0x8018(%r15), %ebp
testl %ebp, %ebp
js 0x3be4
cmpl $0x2001, %ebp           # imm = 0x2001
jb 0x3b2c
leaq 0x541f(%rip), %rdi      # 0x8f3f
movl %r14d, %esi
movl %ebp, %edx
xorl %eax, %eax
callq 0x6e9a
movl 0x9852(%rip), %ecx      # 0xd384
cmpl %ecx, %ebp
jle 0x3b49
leaq 0x5424(%rip), %rdi      # 0x8f61
movl %r14d, %esi
movl %ebp, %edx
xorl %eax, %eax
callq 0x6e9a
movl %ebp, %eax
shrl $0x6, %eax
movq %rbx, %rdx
movl %ebp, %ecx
shlq %cl, %rdx
cmpq $0x1, %rbp
je 0x3b95
movq 0x28(%rsp,%rax,8), %rcx
andq %rdx, %rcx
je 0x3b95
movl -0x8014(%r15), %eax
leaq 0x969c(%rip), %rcx      # 0xd210
movq (%rcx,%rax,8), %rsi
leaq 0x5405(%rip), %rdi      # 0x8f84
movl %r14d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x6d78
movl %r14d, %edi
callq 0x3e5c
jmp 0x3be4
testq %rdx, 0xa8(%rsp,%rax,8)
je 0x3be4
movl -0x8014(%r15), %eax
leaq 0x9663(%rip), %rcx      # 0xd210
movq (%rcx,%rax,8), %rsi
movq -0x8010(%r15), %r9
leaq 0x53e9(%rip), %rdi      # 0x8fa8
movl %r14d, %edx
movl %ebp, %ecx
pushq $0x1
popq %r8
xorl %eax, %eax
callq 0x6d78
decl %r12d
cmpq $0x0, 0x8(%r15)
je 0x3bf3
movl %r14d, %edi
movq %r15, %rsi
callq 0x3f62
incq %r14
addq $0x8038, %r15           # imm = 0x8038
jmp 0x3ae9
movl -0x8014(%r15), %eax
decl %eax
cmpl $0x11, %eax
ja 0x3be4
leaq 0x4438(%rip), %rcx      # 0x8040
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x2017958(%rip), %rsi   # 0x201b570
leaq 0x53bc(%rip), %rdi      # 0x8fdb
xorl %eax, %eax
callq 0x6d78
cmpq $0x0, 0x2017942(%rip)   # 0x201b570
je 0x3be4
movl %r14d, %edi
leaq 0x201792e(%rip), %rsi   # 0x201b568
jmp 0x3bdf
cmpq $0x0, 0x2017914(%rip)   # 0x201b558
je 0x3be4
movl %r14d, %edi
leaq 0x2017900(%rip), %rsi   # 0x201b550
jmp 0x3bdf
cmpq $0x0, 0x20178e6(%rip)   # 0x201b540
je 0x3be4
movl %r14d, %edi
leaq 0x20178d2(%rip), %rsi   # 0x201b538
jmp 0x3bdf
movq 0x20178fe(%rip), %rsi   # 0x201b570
leaq 0x535e(%rip), %rdi      # 0x8fd7
xorl %eax, %eax
callq 0x6d78
movq 0x20178e9(%rip), %rdx   # 0x201b570
testq %rdx, %rdx
je 0x3be4
movq 0x20178d1(%rip), %rsi   # 0x201b568
movl %ebp, %edi
xorl %ecx, %ecx
leaq 0x96ea(%rip), %r8       # 0xd38c
pushq $0x10
popq %r9
callq 0x2180
jmp 0x3be4
movq -0x8010(%r15), %rax
testq %rax, %rax
setne %cl
cmpq (%rsp), %rax
setb %al
andb %cl, %al
cmpb $0x1, %al
jne 0x3be4
movq 0x8(%rsp), %rbp
testq %rbp, %rbp
jne 0x3ce7
pushq $0x1
popq %rdi
movq (%rsp), %rsi
callq 0x417e
movq %rax, %rbp
movq %rbp, %rdi
callq 0x2100
movl %r14d, %edi
movq %rbp, 0x8(%rsp)
jmp 0x3d4d
movq -0x8010(%r15), %rax
testq %rax, %rax
setne %cl
cmpq (%rsp), %rax
setb %al
andb %cl, %al
cmpb $0x1, %al
jne 0x3be4
movq %r13, %rbp
testq %r13, %r13
jne 0x3d3f
pushq $0x3
popq %rdi
movq (%rsp), %rsi
callq 0x417e
movq %rax, %rbp
leaq 0x529a(%rip), %rdi      # 0x8fcf
movq %rax, %rsi
xorl %eax, %eax
callq 0x6d78
movq %rbp, %rdi
callq 0x2100
movl %r14d, %edi
movq %rbp, %r13
movq %rbp, %rsi
movq %rax, %rdx
callq 0x43e0
jmp 0x3be4
pushq $0x6
popq %rdi
movq (%rsp), %rsi
callq 0x417e
movq %rax, %rbp
movq %rax, %rdi
callq 0x2100
movl %r14d, %edi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x43e0
movq %rbp, %rdi
callq 0x2030
jmp 0x3be4
movq 0x8(%rsp), %rdi
jmp 0x3d9b
xorl %edi, %edi
xorl %r13d, %r13d
callq 0x2030
movq %r13, %rdi
callq 0x2030
andq $0x0, 0x2017790(%rip)   # 0x201b540
movq 0x2017781(%rip), %rax   # 0x201b538
testq %rax, %rax
je 0x3dbf
movb $0x0, (%rax)
andq $0x0, 0x20177a9(%rip)   # 0x201b570
movq 0x201779a(%rip), %rax   # 0x201b568
testq %rax, %rax
je 0x3dd6
movb $0x0, (%rax)
andq $0x0, 0x201777a(%rip)   # 0x201b558
movq 0x201776b(%rip), %rax   # 0x201b550
testq %rax, %rax
je 0x3ded
movb $0x0, (%rax)
cmpb $0x1, 0x972e(%rip)      # 0xd522
jne 0x38ed
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq