// File: /workspace/github_c_makefile_star2_O3/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 0xa7b3(%rip), %r12      # 0xe200
movups 0x55dc(%rip), %xmm0     # 0x9030
movaps %xmm0, 0x10(%rsp)
movl 0xa915(%rip), %esi      # 0xe374
leaq 0x644e(%rip), %rdi      # 0x9eb4
xorl %eax, %eax
callq 0x7509
movl $0x10, %ecx
leaq 0xa8(%rsp), %rdx
movq %rdx, %rdi
leaq 0xa98c(%rip), %rax      # 0xe410
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x10, %ecx
leaq 0x28(%rsp), %r8
movq %r8, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl 0xa8d1(%rip), %edi      # 0xe374
incl %edi
movq %rdx, %rsi
xorl %edx, %edx
movq %r8, %rcx
leaq 0x10(%rsp), %r8
callq 0x2210
testl %eax, %eax
jle 0x3b56
movl %eax, %ebx
movl 0xa8a5(%rip), %eax      # 0xe36c
cmpl 0xa8a3(%rip), %eax      # 0xe370
ja 0x3b56
movslq %eax, %r14
imulq $0x8038, %r14, %r15     # imm = 0x8038
leaq 0xaa3c(%rip), %rax      # 0xe520
addq %rax, %r15
movl (%r15), %ecx
testl %ecx, %ecx
js 0x3b3c
movl %ecx, %r13d
shrl $0x6, %r13d
movq 0x28(%rsp,%r13,8), %rax
movl $0x1, %ebp
shlq %cl, %rbp
btq %rcx, %rax
jae 0x3b29
movl 0x4(%r15), %eax
movq (%r12,%rax,8), %rsi
leaq 0x63b7(%rip), %rdi      # 0x9ece
movq %r14, %rdx
xorl %eax, %eax
callq 0x7509
movl %r14d, %edi
callq 0x3fe5
testq %rbp, 0xa8(%rsp,%r13,8)
je 0x3b3c
movl %r14d, %edi
callq *0x10(%r15)
decl %ebx
testl %ebx, %ebx
jle 0x3b56
incq %r14
addq $0x8038, %r15           # imm = 0x8038
movslq 0xa81f(%rip), %rax      # 0xe370
cmpq %rax, %r14
jbe 0x3ae7
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x20189cb(%rip), %rsi   # 0x201c530
movq 0x20189dc(%rip), %rdx   # 0x201c548
movq 0x20189ed(%rip), %rcx   # 0x201c560
leaq 0x6377(%rip), %rdi      # 0x9ef1
xorl %eax, %eax
callq 0x7509
cmpl $0x0, 0xa7e8(%rip)      # 0xe370
js 0x3f1a
movl $0x10, %ecx
leaq 0xa8(%rsp), %rdx
movq %rdx, %rdi
leaq 0xa8eb(%rip), %r8       # 0xe490
movq %r8, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x10, %ecx
leaq 0x28(%rsp), %rax
movq %rax, %rdi
movq %r8, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl 0xa7b0(%rip), %edi      # 0xe374
incl %edi
xorl %esi, %esi
movq %rax, %rcx
leaq 0x10(%rsp), %r8
callq 0x2210
movl %eax, %ebx
callq 0x72e8
movq %rax, %rbp
movl 0xa787(%rip), %edx      # 0xe36c
movl 0xa785(%rip), %ecx      # 0xe370
movl 0xa782(%rip), %r8d      # 0xe374
leaq 0x631f(%rip), %rdi      # 0x9f18
movl %ebx, %esi
xorl %eax, %eax
callq 0x7509
testl %ebx, %ebx
jle 0x3f1a
movl 0xa75c(%rip), %eax      # 0xe36c
cmpl 0xa75a(%rip), %eax      # 0xe370
jg 0x3f1a
movslq %eax, %r14
imulq $0x8038, %r14, %rax     # imm = 0x8038
leaq 0xa8f3(%rip), %rcx      # 0xe520
leaq (%rax,%rcx), %r13
addq $0x8018, %r13           # imm = 0x8018
movq $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
movl -0x8018(%r13), %r15d
testl %r15d, %r15d
js 0x3d29
cmpl $0x2001, %r15d          # imm = 0x2001
jb 0x3c76
leaq 0x62d6(%rip), %rdi      # 0x9f3f
movl %r14d, %esi
movl %r15d, %edx
xorl %eax, %eax
callq 0x762f
movl 0xa6f8(%rip), %ecx      # 0xe374
cmpl %ecx, %r15d
jle 0x3c95
leaq 0x62d9(%rip), %rdi      # 0x9f61
movl %r14d, %esi
movl %r15d, %edx
xorl %eax, %eax
callq 0x762f
movl %r15d, %eax
shrl $0x6, %eax
movl $0x1, %edx
movl %r15d, %ecx
shlq %cl, %rdx
cmpq $0x1, %r15
je 0x3cdf
movq 0x28(%rsp,%rax,8), %rcx
andq %rdx, %rcx
je 0x3cdf
movl -0x8014(%r13), %eax
movq (%r12,%rax,8), %rsi
leaq 0x62bc(%rip), %rdi      # 0x9f84
movl %r14d, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x7509
movl %r14d, %edi
callq 0x3fe5
jmp 0x3d29
testq %rdx, 0xa8(%rsp,%rax,8)
je 0x3d29
movl -0x8014(%r13), %eax
movq (%r12,%rax,8), %rsi
movq -0x8010(%r13), %r9
leaq 0x62a6(%rip), %rdi      # 0x9fa8
movl %r14d, %edx
movl %r15d, %ecx
movl $0x1, %r8d
xorl %eax, %eax
callq 0x7509
decl %ebx
cmpq $0x0, 0x8(%r13)
je 0x3d54
movl %r14d, %edi
movq %r13, %rsi
callq 0x4112
testl %ebx, %ebx
jle 0x3efd
leaq 0x1(%r14), %rax
addq $0x8038, %r13           # imm = 0x8038
movslq 0xa62d(%rip), %rcx      # 0xe370
cmpq %rcx, %r14
movq %rax, %r14
jl 0x3c49
jmp 0x3efd
movl -0x8014(%r13), %eax
decl %eax
cmpl $0x11, %eax
ja 0x3d29
leaq 0x52d7(%rip), %rcx      # 0x9040
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x20187e7(%rip), %rsi   # 0x201c560
leaq 0x625b(%rip), %rdi      # 0x9fdb
xorl %eax, %eax
callq 0x7509
cmpq $0x0, 0x20187d1(%rip)   # 0x201c560
je 0x3d29
movl %r14d, %edi
leaq 0x20187bd(%rip), %rsi   # 0x201c558
jmp 0x3d24
cmpq $0x0, 0x20187a3(%rip)   # 0x201c548
je 0x3d29
movl %r14d, %edi
leaq 0x201878f(%rip), %rsi   # 0x201c540
jmp 0x3d24
cmpq $0x0, 0x2018772(%rip)   # 0x201c530
je 0x3d29
movl %r14d, %edi
leaq 0x201875a(%rip), %rsi   # 0x201c528
jmp 0x3d24
movq 0x2018786(%rip), %rsi   # 0x201c560
leaq 0x61f6(%rip), %rdi      # 0x9fd7
xorl %eax, %eax
callq 0x7509
movq 0x2018771(%rip), %rdx   # 0x201c560
testq %rdx, %rdx
je 0x3d29
movq 0x2018759(%rip), %rsi   # 0x201c558
movl %r15d, %edi
xorl %ecx, %ecx
leaq 0xa571(%rip), %r8       # 0xe37c
movl $0x10, %r9d
callq 0x2180
jmp 0x3d29
movq -0x8010(%r13), %rax
testq %rax, %rax
setne %cl
cmpq %rbp, %rax
setb %al
andb %cl, %al
cmpb $0x1, %al
jne 0x3d29
movq (%rsp), %r15
testq %r15, %r15
jne 0x3e51
movl $0x1, %edi
movq %rbp, %rsi
callq 0x4349
movq %rax, %r15
movq %r15, %rdi
callq 0x2100
movl %r14d, %edi
movq %r15, (%rsp)
jmp 0x3eba
movq -0x8010(%r13), %rax
testq %rax, %rax
setne %cl
cmpq %rbp, %rax
setb %al
andb %cl, %al
cmpb $0x1, %al
jne 0x3d29
movq 0x8(%rsp), %r15
testq %r15, %r15
jne 0x3eaa
movl $0x3, %edi
movq %rbp, %rsi
callq 0x4349
movq %rax, %r15
leaq 0x612f(%rip), %rdi      # 0x9fcf
movq %rax, %rsi
xorl %eax, %eax
callq 0x7509
movq %r15, %rdi
callq 0x2100
movl %r14d, %edi
movq %r15, 0x8(%rsp)
movq %r15, %rsi
movq %rax, %rdx
callq 0x4610
jmp 0x3d29
movl $0x6, %edi
movq %rbp, %rsi
callq 0x4349
movq %rax, %r15
movq %rax, %rdi
callq 0x2100
movl %r14d, %edi
movq %r15, %rsi
movq %rax, %rdx
callq 0x4610
movq %r15, %rdi
callq 0x2030
jmp 0x3d29
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x3f0b
callq 0x2030
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3f1a
callq 0x2030
movq $0x0, 0x201860b(%rip) # 0x201c530
movq 0x20185fc(%rip), %rax   # 0x201c528
testq %rax, %rax
je 0x3f34
movb $0x0, (%rax)
movq $0x0, 0x2018621(%rip) # 0x201c560
movq 0x2018612(%rip), %rax   # 0x201c558
testq %rax, %rax
je 0x3f4e
movb $0x0, (%rax)
movq $0x0, 0x20185ef(%rip) # 0x201c548
movq 0x20185e0(%rip), %rax   # 0x201c540
testq %rax, %rax
je 0x3f68
movb $0x0, (%rax)
cmpb $0x1, 0xa5a3(%rip)      # 0xe512
jne 0x3a4d
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq