// File: /workspace/github_cpp_makefile_star2_O1/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 0xb120(%rip), %edi      # 0x102a8
movq 0xb139(%rip), %rsi      # 0x102c8
movl 0xb12b(%rip), %edx      # 0x102c0
callq 0x2140
movl %eax, %ebx
testl %eax, %eax
jns 0x51b2
callq 0x2050
movl (%rax), %r14d
cmpl $0x4, %r14d
jne 0x5592
movl $0x0, 0xb0f8(%rip)      # 0x102b4
testl %ebx, %ebx
jle 0x5552
movl %ebx, %ebx
xorl %edx, %edx
movq %rbx, -0x48(%rbp)
movq 0xb0f5(%rip), %rax      # 0x102c8
leaq (%rdx,%rdx,2), %rcx
leaq (%rax,%rcx,4), %r15
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x51ef
movl (%r15), %r8d
movq %rdx, -0x50(%rbp)
testq %rax, %rax
je 0x51fb
movl (%r15), %r9d
movq 0x4(%rax,%rcx,4), %r13
movl (%r13), %ecx
movl 0x10(%r13), %r10d
subq $0x8, %rsp
movq %r13, %rdi
movl $0x3, %esi
leaq 0x6324(%rip), %rdx      # 0xb53f
xorl %eax, %eax
pushq $0x4
pushq $0x1
pushq $0x2010                 # imm = 0x2010
pushq $0x8
pushq %r10
callq 0x420f
addq $0x30, %rsp
movl (%r15), %r14d
testl $0x2018, %r14d          # imm = 0x2018
je 0x5265
testb $0x8, %r14b
jne 0x5322
movl %r14d, %edi
callq 0x20f0
movq %r13, %rdi
movl $0x3, %esi
leaq 0x6330(%rip), %rdx      # 0xb590
jmp 0x5370
movl 0x10(%r13), %eax
cmpl $0x2, %eax
je 0x545b
cmpl $0x3, %eax
je 0x53ac
cmpl $0x4, %eax
jne 0x5397
cmpl $0x1, 0x14(%r13)
jne 0x54d2
movl $0x10, -0x2c(%rbp)
movl (%r13), %edi
leaq -0x3c(%rbp), %rsi
leaq -0x2c(%rbp), %rdx
callq 0x20d0
testl %eax, %eax
jle 0x5500
movl %eax, %r15d
movl %eax, %edi
callq 0x5649
testl %eax, %eax
js 0x5500
movl 0x14(%r13), %edi
movl $0x3, %esi
callq 0x45c2
movq %rax, %r14
movl %r15d, (%rax)
movups -0x3c(%rbp), %xmm0
movups %xmm0, 0x20(%rax)
movl -0x2c(%rbp), %eax
movl %eax, 0x30(%r14)
movl 0x24(%r14), %edi
callq 0x2120
movl 0xafa8(%rip), %r10d     # 0x1029c
subq $0x8, %rsp
movq %r13, %rdi
movl $0x3, %esi
leaq 0x62bd(%rip), %rdx      # 0xb5c4
movq %r14, %rcx
movl %r15d, %r8d
movq %rax, %r9
xorl %eax, %eax
pushq %r10
callq 0x420f
addq $0x10, %rsp
jmp 0x5503
movl $0x0, -0x3c(%rbp)
movl $0x4, -0x2c(%rbp)
movl (%r13), %edi
movl $0x1, %esi
movl $0x4, %edx
leaq -0x3c(%rbp), %rcx
leaq -0x2c(%rbp), %r8
callq 0x21f0
movl $0xffffd8f1, %r14d      # imm = 0xFFFFD8F1
testl %eax, %eax
jne 0x5359
movl -0x3c(%rbp), %r14d
movl %r14d, %edi
callq 0x20f0
movq %r13, %rdi
movl $0x1, %esi
leaq 0x6208(%rip), %rdx      # 0xb578
movl %r14d, %ecx
movq %rax, %r8
xorl %eax, %eax
callq 0x420f
movq %r13, %rdi
callq 0x40b7
movq %r13, %rdi
movl $0x5, %esi
xorl %edx, %edx
movl %r14d, %ecx
callq 0x4d49
movq -0x50(%rbp), %rdx
incq %rdx
cmpq %rbx, %rdx
jne 0x51cc
jmp 0x5552
testb $0x1, %r14b
je 0x53c3
movq %r13, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4d49
testb $0x4, (%r15)
je 0x5397
cmpl $0x0, 0x48(%r13)
jle 0x552d
leaq 0x38(%r13), %r12
movq (%r12), %rax
testq %rax, %rax
je 0x53e8
movl 0x4(%rax), %edx
subl (%rax), %edx
jmp 0x53ea
xorl %edx, %edx
movslq (%rax), %rsi
addq 0x10(%rax), %rsi
movq %r13, %rdi
movl %edx, -0x40(%rbp)
callq 0x5006
movl %eax, %ebx
testl %eax, %eax
jle 0x5442
cmpl $0x0, 0x48(%r13)
jle 0x5442
movl %ebx, %r15d
movq (%r12), %rax
testq %rax, %rax
je 0x541e
movl 0x4(%rax), %r14d
subl (%rax), %r14d
jmp 0x5421
xorl %r14d, %r14d
cmpl %r14d, %r15d
cmovll %r15d, %r14d
addl %r14d, (%rax)
movq %r12, %rdi
callq 0x55be
cmpl $0x0, 0x48(%r13)
jle 0x5442
subl %r14d, %r15d
testl %r15d, %r15d
jg 0x540c
cmpl -0x40(%rbp), %ebx
movq -0x48(%rbp), %rbx
jl 0x5397
cmpl $0x0, 0x48(%r13)
jg 0x53d8
jmp 0x5397
movl $0x0, -0x3c(%rbp)
movl $0x4, -0x2c(%rbp)
movl (%r13), %edi
movl $0x1, %esi
movl $0x4, %edx
leaq -0x3c(%rbp), %rcx
leaq -0x2c(%rbp), %r8
callq 0x21f0
movl -0x3c(%rbp), %r14d
testl %r14d, %r14d
je 0x54dc
movl (%r13), %r15d
movl %r14d, %edi
callq 0x20f0
movq %r13, %rdi
movl $0x1, %esi
leaq 0x60fe(%rip), %rdx      # 0xb5a6
movl %r15d, %ecx
movl %r14d, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x420f
movq %r13, %rdi
callq 0x40b7
movl -0x3c(%rbp), %ecx
movq %r13, %rdi
movl $0x5, %esi
xorl %edx, %edx
jmp 0x5392
movq %r13, %rdi
movl $0x1, %esi
jmp 0x553c
movq %r13, %rdi
callq 0x4b8a
movq %r13, %rdi
xorl %esi, %esi
callq 0x49c0
movl $0x3, 0x10(%r13)
movq %r13, %rdi
movl $0x4, %esi
jmp 0x553c
xorl %r14d, %r14d
testq %r14, %r14
je 0x5397
movq %r13, %rdi
movl $0x3, %esi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x4d49
movq %r14, %rdi
xorl %esi, %esi
callq 0x49c0
jmp 0x5397
cmpl $0x0, 0x70(%r13)
je 0x5545
movq %r13, %rdi
movl $0x2, %esi
xorl %edx, %edx
xorl %ecx, %ecx
jmp 0x5392
movq %r13, %rdi
callq 0x4b8a
jmp 0x5397
movq 0xad77(%rip), %rdi      # 0x102d0
testq %rdi, %rdi
je 0x5572
movq 0x80(%rdi), %rbx
callq 0x4171
movq %rbx, %rdi
testq %rbx, %rbx
jne 0x555e
movq $0x0, 0xad53(%rip) # 0x102d0
movl 0xad19(%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 0x5f7f(%rip), %rdx      # 0xb520
xorl %edi, %edi
movl $0x1, %esi
movl %ebx, %ecx
movl %r14d, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x420f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x5583