// File: /workspace/github_cpp_makefile_star2_O3/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 0xb18d(%rip), %edi      # 0x102a8
movq 0xb1a6(%rip), %rsi      # 0x102c8
movl 0xb198(%rip), %edx      # 0x102c0
callq 0x2140
movl %eax, %ebx
testl %eax, %eax
js 0x54ad
movl $0x0, 0xb173(%rip)      # 0x102b4
je 0x54c5
movl %ebx, %eax
movq %rax, -0x50(%rbp)
xorl %ebx, %ebx
movq 0xb172(%rip), %r15      # 0x102c8
leaq (%rbx,%rbx,2), %r12
movq 0x4(%r15,%r12,4), %r13
movl (%r15,%r12,4), %r8d
movl (%r13), %ecx
movl 0x10(%r13), %r10d
subq $0x8, %rsp
movq %r13, %rdi
movl $0x3, %esi
leaq 0x63c1(%rip), %rdx      # 0xb53f
movl %r8d, %r9d
xorl %eax, %eax
pushq $0x4
pushq $0x1
pushq $0x2010                 # imm = 0x2010
pushq $0x8
pushq %r10
callq 0x41bd
addq $0x30, %rsp
movl (%r15,%r12,4), %r14d
testl $0x2018, %r14d          # imm = 0x2018
je 0x51cc
testb $0x8, %r14b
jne 0x52a2
movl %r14d, %edi
callq 0x20f0
movq %r13, %rdi
movl $0x3, %esi
leaq 0x63c9(%rip), %rdx      # 0xb590
jmp 0x52f0
movl 0x10(%r13), %eax
cmpl $0x2, %eax
je 0x53e3
cmpl $0x3, %eax
je 0x5329
cmpl $0x4, %eax
jne 0x5317
cmpl $0x1, 0x14(%r13)
jne 0x545a
movl $0x10, -0x2c(%rbp)
movl (%r13), %edi
leaq -0x40(%rbp), %rsi
leaq -0x2c(%rbp), %rdx
callq 0x20d0
testl %eax, %eax
jle 0x5317
movl %eax, %r14d
movl %eax, %edi
callq 0x55bc
testl %eax, %eax
js 0x5317
movl 0x14(%r13), %edi
movl $0x3, %esi
callq 0x4556
movq %rax, %r15
movl %r14d, (%rax)
movups -0x40(%rbp), %xmm0
movups %xmm0, 0x20(%rax)
movl -0x2c(%rbp), %eax
movl %eax, 0x30(%r15)
movl 0x24(%r15), %edi
callq 0x2120
movl 0xb041(%rip), %r10d     # 0x1029c
subq $0x8, %rsp
movq %r13, %rdi
movl $0x3, %esi
leaq 0x6356(%rip), %rdx      # 0xb5c4
movq %r15, %rcx
movl %r14d, %r8d
movq %rax, %r9
xorl %eax, %eax
pushq %r10
callq 0x41bd
addq $0x10, %rsp
movq %r13, %rdi
movl $0x3, %esi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x4cea
movq %r15, %rdi
xorl %esi, %esi
callq 0x496f
jmp 0x5317
movl (%r13), %edi
movl $0x0, -0x40(%rbp)
movl $0x4, -0x2c(%rbp)
movl $0x1, %esi
movl $0x4, %edx
leaq -0x40(%rbp), %rcx
leaq -0x2c(%rbp), %r8
callq 0x2200
movl $0xffffd8f1, %r14d      # imm = 0xFFFFD8F1
testl %eax, %eax
jne 0x52d9
movl -0x40(%rbp), %r14d
movl %r14d, %edi
callq 0x20f0
movq %r13, %rdi
movl $0x1, %esi
leaq 0x6288(%rip), %rdx      # 0xb578
movl %r14d, %ecx
movq %rax, %r8
xorl %eax, %eax
callq 0x41bd
movq %r13, %rdi
callq 0x4069
movq %r13, %rdi
movl $0x5, %esi
xorl %edx, %edx
movl %r14d, %ecx
callq 0x4cea
incq %rbx
cmpq -0x50(%rbp), %rbx
jne 0x514f
jmp 0x54c5
testb $0x1, %r14b
je 0x534f
movq %rbx, -0x48(%rbp)
leaq (%r15,%r12,4), %rbx
movq %r13, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4cea
movl (%rbx), %r14d
movq -0x48(%rbp), %rbx
testb $0x4, %r14b
je 0x5317
cmpl $0x0, 0x48(%r13)
jle 0x5488
leaq 0x38(%r13), %r12
movq %rbx, -0x48(%rbp)
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 0x4fa1
movl 0x48(%r13), %esi
testl %esi, %esi
setle %cl
movl %eax, -0x30(%rbp)
testl %eax, %eax
setle %dl
orb %cl, %dl
jne 0x53cc
movl -0x30(%rbp), %r15d
movq 0x38(%r13), %rax
movl (%rax), %ecx
movl 0x4(%rax), %ebx
subl %ecx, %ebx
cmpl %ebx, %r15d
cmovll %r15d, %ebx
addl %ebx, %ecx
movl %ecx, (%rax)
movq %r12, %rdi
callq 0x5531
movl 0x48(%r13), %esi
testl %esi, %esi
jle 0x53cc
subl %ebx, %r15d
testl %r15d, %r15d
jg 0x539e
cmpl %r14d, -0x30(%rbp)
movq -0x48(%rbp), %rbx
jl 0x5317
testl %esi, %esi
jg 0x5368
jmp 0x5317
movl $0x0, -0x40(%rbp)
movl $0x4, -0x2c(%rbp)
movl (%r13), %edi
movl $0x1, %esi
movl $0x4, %edx
leaq -0x40(%rbp), %rcx
leaq -0x2c(%rbp), %r8
callq 0x2200
movl -0x40(%rbp), %r14d
testl %r14d, %r14d
je 0x5464
movl (%r13), %r15d
movl %r14d, %edi
callq 0x20f0
movq %r13, %rdi
movl $0x1, %esi
leaq 0x6176(%rip), %rdx      # 0xb5a6
movl %r15d, %ecx
movl %r14d, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x41bd
movq %r13, %rdi
callq 0x4069
movl -0x40(%rbp), %ecx
movq %r13, %rdi
movl $0x5, %esi
xorl %edx, %edx
jmp 0x5312
movq %r13, %rdi
movl $0x1, %esi
jmp 0x5497
movq %r13, %rdi
callq 0x4b33
movq %r13, %rdi
xorl %esi, %esi
callq 0x496f
movl $0x3, 0x10(%r13)
movq %r13, %rdi
movl $0x4, %esi
jmp 0x5497
cmpl $0x0, 0x70(%r13)
je 0x54a0
movq %r13, %rdi
movl $0x2, %esi
xorl %edx, %edx
xorl %ecx, %ecx
jmp 0x5312
movq %r13, %rdi
callq 0x4b33
jmp 0x5317
callq 0x2050
movl (%rax), %r14d
cmpl $0x4, %r14d
jne 0x5505
movl $0x0, 0xadef(%rip)      # 0x102b4
movq 0xae04(%rip), %rdi      # 0x102d0
testq %rdi, %rdi
je 0x54e5
movq 0x80(%rdi), %rbx
callq 0x4123
movq %rbx, %rdi
testq %rbx, %rbx
jne 0x54d1
movq $0x0, 0xade0(%rip) # 0x102d0
movl 0xada6(%rip), %eax      # 0x1029c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r14d, %edi
callq 0x20f0
leaq 0x600c(%rip), %rdx      # 0xb520
xorl %edi, %edi
movl $0x1, %esi
movl %ebx, %ecx
movl %r14d, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x41bd
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x54f6