// File: /workspace/github_cpp_makefile_star2_O2/xocoder[P]m_kcptun/vendor/m_net/src/mnet_core.c
// Function: mnet_poll
int
mnet_poll(int microseconds) {
#if MNET_OS_WIN
   return _select_poll(microseconds);
#else
   return _evt_poll(microseconds);
#endif
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edi, %ecx
movl 0xa4fb(%rip), %edi      # 0xf298
movq 0xa514(%rip), %rsi      # 0xf2b8
movl 0xa506(%rip), %edx      # 0xf2b0
callq 0x2140
movl %eax, %ebx
testl %eax, %eax
jns 0x4dc7
callq 0x2040
movl (%rax), %r14d
cmpl $0x4, %r14d
jne 0x5153
andl $0x0, 0xa4d6(%rip)      # 0xf2a4
xorl %eax, %eax
testl %ebx, %ebx
cmovlel %eax, %ebx
xorl %eax, %eax
movq %rbx, -0x48(%rbp)
cmpq %rbx, %rax
je 0x5119
movq 0xa4cd(%rip), %r14      # 0xf2b8
movq %rax, -0x50(%rbp)
imulq $0xc, %rax, %r15
movq 0x4(%r14,%r15), %r13
movl (%r14,%r15), %r8d
movl (%r13), %ecx
movl 0x10(%r13), %r10d
subq $0x8, %rsp
movq %r13, %rdi
pushq $0x3
popq %rsi
leaq 0x572a(%rip), %rdx      # 0xa53f
movl %r8d, %r9d
xorl %eax, %eax
pushq $0x4
pushq $0x1
pushq $0x2010                 # imm = 0x2010
pushq $0x8
pushq %r10
callq 0x3eb5
addq $0x30, %rsp
movl (%r14,%r15), %r12d
testw $0x2018, %r12w          # imm = 0x2018
je 0x4e80
testb $0x8, %r12b
jne 0x4f53
movl %r12d, %edi
callq 0x20e0
movq %r13, %rdi
pushq $0x3
popq %rsi
leaq 0x5735(%rip), %rdx      # 0xa590
movl %r12d, %ecx
movq %rax, %r8
xorl %eax, %eax
callq 0x3eb5
movq %r13, %rdi
callq 0x3da8
movq %r13, %rdi
pushq $0x5
popq %rsi
xorl %edx, %edx
movl %r12d, %ecx
jmp 0x50ec
movl 0x10(%r13), %eax
cmpl $0x2, %eax
pushq $0x1
popq %rbx
je 0x5055
cmpl $0x3, %eax
je 0x4fbe
cmpl $0x4, %eax
jne 0x50f1
cmpl $0x1, 0x14(%r13)
jne 0x50c0
movl $0x10, -0x2c(%rbp)
movl (%r13), %edi
leaq -0x3c(%rbp), %rsi
leaq -0x2c(%rbp), %rdx
callq 0x20c0
testl %eax, %eax
jle 0x50f1
movl %eax, %r14d
movl %eax, %edi
callq 0x522d
testl %eax, %eax
js 0x50f1
movl 0x14(%r13), %edi
pushq $0x3
popq %rbx
movl %ebx, %esi
callq 0x425e
movq %rax, %r15
movl %r14d, (%rax)
movups -0x3c(%rbp), %xmm0
movups %xmm0, 0x20(%rax)
movl -0x2c(%rbp), %eax
movl %eax, 0x30(%r15)
movq %r15, %rdi
callq 0x4063
movl 0xa37b(%rip), %r10d     # 0xf28c
subq $0x8, %rsp
movq %r13, %rdi
movl %ebx, %esi
leaq 0x56a3(%rip), %rdx      # 0xa5c4
movq %r15, %rcx
movl %r14d, %r8d
movq %rax, %r9
xorl %eax, %eax
pushq %r10
callq 0x3eb5
popq %rax
popq %rcx
movq %r13, %rdi
movl %ebx, %esi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x4980
movq %r15, %rdi
xorl %esi, %esi
callq 0x461f
jmp 0x50f1
andl $0x0, -0x3c(%rbp)
movl $0x4, -0x2c(%rbp)
movl (%r13), %edi
pushq $0x1
popq %rbx
movl %ebx, %esi
pushq $0x4
popq %rdx
leaq -0x3c(%rbp), %rcx
leaq -0x2c(%rbp), %r8
callq 0x21f0
movl $0xffffd8f1, %r14d      # imm = 0xFFFFD8F1
testl %eax, %eax
jne 0x4f85
movl -0x3c(%rbp), %r14d
movl %r14d, %edi
callq 0x20e0
movq %r13, %rdi
movl %ebx, %esi
leaq 0x55df(%rip), %rdx      # 0xa578
movl %r14d, %ecx
movq %rax, %r8
xorl %eax, %eax
callq 0x3eb5
movq %r13, %rdi
callq 0x3da8
movq %r13, %rdi
pushq $0x5
popq %rsi
xorl %edx, %edx
movl %r14d, %ecx
jmp 0x50ec
testb $0x1, %r12b
je 0x4fd8
addq %r15, %r14
movq %r13, %rdi
movl %ebx, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4980
movl (%r14), %r12d
testb $0x4, %r12b
je 0x50f1
cmpl $0x0, 0x48(%r13)
jle 0x5101
leaq 0x38(%r13), %r12
movq 0x38(%r13), %rax
movslq (%rax), %rsi
movl 0x4(%rax), %r14d
subl %esi, %r14d
addq 0x10(%rax), %rsi
movq %r13, %rdi
movl %r14d, %edx
callq 0x4c25
movl %eax, %ebx
movl %eax, %r15d
movl 0x48(%r13), %eax
testl %eax, %eax
jle 0x5043
testl %r15d, %r15d
jle 0x5043
movq (%r12), %rax
movl (%rax), %ecx
movl 0x4(%rax), %edx
subl %ecx, %edx
cmpl %edx, %r15d
cmovll %r15d, %edx
subl %edx, %r15d
addl %ecx, %edx
movl %edx, (%rax)
movq %r12, %rdi
callq 0x51a2
jmp 0x5013
cmpl %r14d, %ebx
jl 0x50f1
testl %eax, %eax
jg 0x4ff1
jmp 0x50f1
andl $0x0, -0x3c(%rbp)
movl $0x4, -0x2c(%rbp)
movl (%r13), %edi
movl %ebx, %esi
pushq $0x4
popq %r15
movl %r15d, %edx
leaq -0x3c(%rbp), %rcx
leaq -0x2c(%rbp), %r8
callq 0x21f0
movl -0x3c(%rbp), %r14d
testl %r14d, %r14d
je 0x50c8
movl (%r13), %r15d
movl %r14d, %edi
callq 0x20e0
movq %r13, %rdi
movl %ebx, %esi
leaq 0x550b(%rip), %rdx      # 0xa5a6
movl %r15d, %ecx
movl %r14d, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x3eb5
movq %r13, %rdi
callq 0x3da8
movl -0x3c(%rbp), %ecx
movq %r13, %rdi
pushq $0x5
popq %rsi
xorl %edx, %edx
jmp 0x50ec
movq %r13, %rdi
pushq $0x1
popq %rsi
jmp 0x50e8
movq %r13, %rdi
callq 0x47d6
movq %r13, %rdi
xorl %esi, %esi
callq 0x461f
movl $0x3, 0x10(%r13)
movq %r13, %rdi
movl %r15d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4980
movq -0x50(%rbp), %rax
incq %rax
movq -0x48(%rbp), %rbx
jmp 0x4ddb
cmpl $0x0, 0x70(%r13)
je 0x510f
movq %r13, %rdi
pushq $0x2
jmp 0x50c5
movq %r13, %rdi
callq 0x47d6
jmp 0x50f1
movq 0xa1a0(%rip), %rdi      # 0xf2c0
testq %rdi, %rdi
je 0x5136
movq 0x80(%rdi), %rbx
callq 0x3e3b
movq %rbx, %rdi
jmp 0x5120
andq $0x0, 0xa182(%rip)      # 0xf2c0
movl 0xa148(%rip), %eax      # 0xf28c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r14d, %edi
callq 0x20e0
leaq 0x53be(%rip), %rdx      # 0xa520
pushq $0x1
popq %rsi
xorl %edi, %edi
movl %ebx, %ecx
movl %r14d, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x3eb5
pushq $-0x1
popq %rax
jmp 0x5144