// File: /workspace/github_cpp_makefile_star2_O3/KinderRiven[P]rdma_demo/server.cc
// Function: main
int main(int argc, char** argv)
{
    rdma_context_t _ctx;
    memset(&_ctx, 0, sizeof(_ctx));
    _ctx.num_qps = 1;
    _ctx.ib_buf_size = 2UL * 1024 * 1024;

    rdma_init(&_ctx);
    connect_qpair(&_ctx);

#if 1
    int tmp;
    printf("[addr:%llx][data:%llx]\n", (uint64_t*)_ctx.local_qp->addr, *(uint64_t*)_ctx.local_qp->addr);
    while (true) {
        scanf("%d", &tmp);
        if (tmp) {
            printf("[addr:%llx][data:%llx]\n", (uint64_t*)_ctx.local_qp->addr, *(uint64_t*)_ctx.local_qp->addr);
        } else {
            break;
        }
    }
#endif
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x688, %rsp            # imm = 0x688
leaq -0x678(%rbp), %rbx
movl $0x588, %edx            # imm = 0x588
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10c0
movl $0x1, 0x570(%rbx)
movq $0x200000, 0x578(%rbx) # imm = 0x200000
leaq 0xf58(%rip), %rdi       # 0x2348
callq 0x11d0
leaq -0xe0(%rbp), %r14
movl $0x0, (%r14)
movq %r14, %rdi
callq 0x11a0
movl (%r14), %esi
testl %esi, %esi
je 0x1d13
movq %rax, %rbx
leaq 0xc43(%rip), %rdi       # 0x2063
xorl %eax, %eax
callq 0x1050
movq (%rbx), %rbx
movq %rbx, %rdi
callq 0x1100
movq %rax, -0x670(%rbp)
testq %rax, %rax
je 0x1d1c
movq %rbx, %rdi
callq 0x10d0
leaq 0xc32(%rip), %rdi       # 0x2083
movq %rax, %rsi
xorl %eax, %eax
callq 0x1050
leaq -0x248(%rbp), %rdx
movq -0x428(%rdx), %rdi
cmpq $-0x1, 0x140(%rdi)
jne 0x1497
cmpq $0x288, -0x8(%rdi)      # imm = 0x288
jb 0x1497
movq -0x140(%rdi), %rax
testq %rax, %rax
je 0x1497
movl $0x34, %ecx
movl $0x1, %esi
callq *%rax
jmp 0x14ba
xorpd %xmm0, %xmm0
movupd %xmm0, 0x20(%rdx)
movupd %xmm0, 0x10(%rdx)
movupd %xmm0, (%rdx)
movl $0x0, 0x30(%rdx)
movl $0x1, %esi
callq 0x11f0
testl %eax, %eax
jne 0x1d25
leaq 0xea3(%rip), %rdi       # 0x236c
callq 0x11d0
leaq -0x118(%rbp), %rbx
movzwl -0x10e(%rbx), %esi
leaq 0xbbd(%rip), %rdi       # 0x20a0
xorl %eax, %eax
callq 0x1050
movq -0x558(%rbx), %rdi
movl $0x1, %esi
movl $0x2, %edx
movq %rbx, %rcx
callq 0x1130
testl %eax, %eax
jne 0x1d2e
leaq 0xe70(%rip), %rdi       # 0x2382
callq 0x11d0
leaq 0xb91(%rip), %rdi       # 0x20af
xorl %eax, %eax
callq 0x1050
leaq 0xb89(%rip), %r14       # 0x20b5
xorl %ebx, %ebx
movzbl -0x118(%rbp,%rbx), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1050
testb $0x1, %bl
je 0x154f
movl $0x3a, %edi
callq 0x1190
incq %rbx
cmpq $0x10, %rbx
jne 0x152e
movl $0xa, %edi
callq 0x1190
leaq 0xb46(%rip), %rdi       # 0x20af
xorl %eax, %eax
callq 0x1050
leaq -0x210(%rbp), %rsi
movq -0x460(%rsi), %rdi
callq 0x11c0
testl %eax, %eax
jne 0x1d37
leaq 0xe05(%rip), %rdi       # 0x2397
callq 0x11d0
movl -0x1a8(%rbp), %esi
leaq 0xb16(%rip), %rdi       # 0x20ba
xorl %eax, %eax
callq 0x1050
movl -0x190(%rbp), %esi
movl -0x18c(%rbp), %edx
leaq 0xb0f(%rip), %rdi       # 0x20cd
xorl %eax, %eax
callq 0x1050
movl -0x1a0(%rbp), %esi
leaq 0xb1d(%rip), %rdi       # 0x20ef
xorl %eax, %eax
callq 0x1050
movl -0x188(%rbp), %eax
leal 0xfffff(%rax), %esi
testl %eax, %eax
cmovnsl %eax, %esi
sarl $0x14, %esi
movq -0x1c0(%rbp), %rdx
shrq $0x1e, %rdx
leaq 0xb05(%rip), %rdi       # 0x2104
xorl %eax, %eax
callq 0x1050
leaq 0xe2b(%rip), %rdi       # 0x2438
callq 0x11d0
movq -0x670(%rbp), %rdi
callq 0x1070
movq %rax, -0x668(%rbp)
testq %rax, %rax
je 0x1d40
leaq 0xe28(%rip), %rdi       # 0x245d
callq 0x11d0
movq -0x670(%rbp), %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x10e0
movq %rax, -0x658(%rbp)
testq %rax, %rax
je 0x1d49
leaq 0xe08(%rip), %rdi       # 0x2471
callq 0x11d0
xorpd %xmm0, %xmm0
movapd %xmm0, -0xb0(%rbp)
movapd %xmm0, -0xe0(%rbp)
movapd %xmm0, -0xd0(%rbp)
movabsq $0x100000002, %rax      # imm = 0x100000002
movq %rax, -0xac(%rbp)
movq -0x658(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq %rax, -0xd0(%rbp)
movapd 0x958(%rip), %xmm0      # 0x2010
movapd %xmm0, -0xc0(%rbp)
cmpl $0x0, -0x108(%rbp)
jle 0x1738
leaq -0xe0(%rbp), %r14
leaq 0xa73(%rip), %r15       # 0x214a
leaq 0xa89(%rip), %r12       # 0x2167
xorl %r13d, %r13d
movq -0x668(%rbp), %rdi
movq %r14, %rsi
callq 0x1180
movq %rax, -0x650(%rbp,%r13,8)
testq %rax, %rax
je 0x1cf4
movl -0x108(%rbp), %edx
movq %r15, %rdi
movl %r13d, %esi
xorl %eax, %eax
callq 0x1050
movq -0x650(%rbp,%r13,8), %rax
movl 0x34(%rax), %esi
movq %r12, %rdi
xorl %eax, %eax
callq 0x1050
incq %r13
movslq -0x108(%rbp), %rax
cmpq %rax, %r13
jl 0x16e1
leaq 0xd78(%rip), %rdi       # 0x24b7
callq 0x11d0
movq -0x100(%rbp), %rbx
movq %rbx, %rdi
callq 0x1030
movq %rax, -0x678(%rbp)
movabsq $0x4452206f6c6c6548, %rcx # imm = 0x4452206F6C6C6548
movq %rcx, (%rax)
movl $0x21414d, 0x8(%rax)    # imm = 0x21414D
leaq 0xa0e(%rip), %rdi       # 0x2183
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1050
movq -0x678(%rbp), %rsi
movq -0x668(%rbp), %rdi
movq -0x100(%rbp), %rdx
movl $0x7, %ecx
callq 0x10f0
movq %rax, -0x660(%rbp)
testq %rax, %rax
je 0x1d52
leaq 0xd1a(%rip), %rdi       # 0x24cf
callq 0x11d0
movq -0x660(%rbp), %rax
movl 0x24(%rax), %esi
movl 0x28(%rax), %edx
leaq 0x9cd(%rip), %rdi       # 0x219b
xorl %eax, %eax
callq 0x1050
movq -0x660(%rbp), %rax
movsd 0x18(%rax), %xmm1
unpcklps 0x838(%rip), %xmm1      # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
movq 0x10(%rax), %rsi
subpd 0x83c(%rip), %xmm1      # 0x2030
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x838(%rip), %xmm0      # 0x2040
leaq 0x9a5(%rip), %rdi       # 0x21b4
movb $0x1, %al
callq 0x1050
leaq 0xab9(%rip), %rdi       # 0x22d6
callq 0x11d0
xorpd %xmm0, %xmm0
leaq -0x6a8(%rbp), %rdx
movupd %xmm0, 0x8(%rdx)
movupd %xmm0, 0x18(%rdx)
movq $0x0, 0x28(%rdx)
movl $0x1, 0x8(%rdx)
movq $0x1, (%rdx)
leaq 0x983(%rip), %rsi       # 0x21d7
leaq -0x38(%rbp), %rcx
xorl %edi, %edi
callq 0x1150
testl %eax, %eax
jne 0x1d5b
leaq 0xa8e(%rip), %rdi       # 0x22fc
callq 0x11d0
movq -0x38(%rbp), %rbx
testq %rbx, %rbx
je 0x18bd
movl 0x4(%rbx), %edi
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
callq 0x1080
movl %eax, %r14d
testl %eax, %eax
js 0x18b2
movq 0x18(%rbx), %rsi
movl 0x10(%rbx), %edx
movl %r14d, %edi
callq 0x1060
testl %eax, %eax
je 0x18c5
movl %r14d, %edi
callq 0x1200
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq 0x28(%rbx), %rbx
testq %rbx, %rbx
jne 0x187c
jmp 0x18d6
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x18d6
leaq 0x910(%rip), %rdi       # 0x21dc
movl %r14d, %esi
xorl %eax, %eax
callq 0x1050
movq -0x38(%rbp), %rdi
callq 0x1160
movl %r14d, %edi
movl $0x5, %esi
callq 0x1110
testl %eax, %eax
jne 0x1d64
leaq 0xa14(%rip), %rdi       # 0x230f
callq 0x11d0
leaq -0x44(%rbp), %rdx
movl $0x10, (%rdx)
leaq -0xf0(%rbp), %rsi
movl %r14d, %edi
callq 0x1090
movl %eax, %r15d
leaq 0x8d3(%rip), %rdi       # 0x21f6
xorl %r12d, %r12d
movl %eax, %esi
xorl %eax, %eax
callq 0x1050
movl %r15d, -0xf8(%rbp)
movl $0x22, %r13d
movl $0x22, %edi
callq 0x1170
movq %rax, %r14
movq %rax, %rbx
movq %rax, -0x120(%rbp)
movq %rax, -0x30(%rbp)
movl %r15d, %edi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x11b0
testq %rax, %rax
je 0x1975
addq %rax, %rbx
addq %rax, %r12
subq %rax, %r13
jne 0x1957
leaq 0x88d(%rip), %rdi       # 0x2209
movl $0x22, %edx
movq %r12, %rsi
xorl %eax, %eax
callq 0x1050
movq -0x30(%rbp), %rbx
movq (%rbx), %rsi
movl 0x8(%rbx), %edx
leaq 0x884(%rip), %rdi       # 0x2220
xorl %eax, %eax
callq 0x1050
movzwl 0x10(%rbx), %esi
movl 0xc(%rbx), %edx
leaq 0x88a(%rip), %rdi       # 0x223b
xorl %eax, %eax
callq 0x1050
leaq 0x896(%rip), %rdi       # 0x2255
xorl %eax, %eax
callq 0x1050
addq $0x12, %r14
leaq 0x6e4(%rip), %r12       # 0x20b5
xorl %ebx, %ebx
movzbl (%r14,%rbx), %esi
movq %r12, %rdi
xorl %eax, %eax
callq 0x1050
testb $0x1, %bl
je 0x19f1
movl $0x3a, %edi
callq 0x1190
incq %rbx
cmpq $0x10, %rbx
jne 0x19d3
movq %r14, -0x40(%rbp)
leaq 0x918(%rip), %rdi       # 0x231d
callq 0x11d0
movl $0x22, %edi
callq 0x1170
movq %rax, %r14
movq %rax, -0x128(%rbp)
movq -0x678(%rbp), %rax
movq %rax, (%r14)
movq -0x660(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, 0x8(%r14)
movq -0x650(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, 0xc(%r14)
movzwl -0x226(%rbp), %eax
movw %ax, 0x10(%r14)
leaq -0x118(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x12(%r14)
movq %r14, %r12
addq $0x12, %r12
xorl %ebx, %ebx
movq %r14, %r13
movl $0x22, %edx
subq %rbx, %rdx
movl %r15d, %edi
movq %r13, %rsi
callq 0x10b0
testq %rax, %rax
je 0x1a91
addq %rax, %rbx
addq %rax, %r13
cmpq $0x22, %rbx
jb 0x1a6b
jmp 0x1a98
movq $-0x1, %rbx
leaq 0x7c1(%rip), %rdi       # 0x2260
movl $0x22, %edx
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1050
movq (%r14), %rsi
movl 0x8(%r14), %edx
leaq 0x764(%rip), %rdi       # 0x2220
xorl %eax, %eax
callq 0x1050
movzwl 0x10(%r14), %esi
movl 0xc(%r14), %edx
leaq 0x768(%rip), %rdi       # 0x223b
xorl %eax, %eax
callq 0x1050
leaq 0x774(%rip), %rdi       # 0x2255
xorl %eax, %eax
callq 0x1050
leaq 0x5c6(%rip), %rbx       # 0x20b5
xorl %r14d, %r14d
movzbl (%r12,%r14), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1050
testb $0x1, %r14b
je 0x1b11
movl $0x3a, %edi
callq 0x1190
incq %r14
cmpq $0x10, %r14
jne 0x1af2
leaq 0x7fc(%rip), %rdi       # 0x231d
callq 0x11d0
movq -0x650(%rbp), %rbx
leaq -0xe0(%rbp), %r15
movl $0x90, %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x10c0
movl $0x1, %r14d
movl %r14d, (%r15)
movb $0x1, %al
movb %al, 0x81(%r15)
movl $0x7, 0x20(%r15)
movq %rbx, %rdi
movq %r15, %rsi
movl $0x39, %edx
callq 0x11e0
movl %eax, %ebx
movl %eax, %edi
callq 0x10a0
leaq 0x6fb(%rip), %rdi       # 0x2278
movl %ebx, %esi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1050
movq -0x650(%rbp), %rbx
movq -0x30(%rbp), %rax
movl 0xc(%rax), %r13d
movzwl 0x10(%rax), %r12d
movl $0x90, %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x10c0
movl $0x2, (%r15)
movl %r14d, 0x8(%r15)
movl %r13d, 0x1c(%r15)
movw $0x1201, 0x7f(%r15)     # imm = 0x1201
movw %r12w, 0x50(%r15)
movw $0x101, 0x55(%r15)      # imm = 0x101
movq -0x40(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x38(%r15)
movw $0x102, 0x4c(%r15)      # imm = 0x102
movq %rbx, %rdi
movq %r15, %rsi
movl $0x129181, %edx         # imm = 0x129181
callq 0x11e0
movl %eax, %ebx
movl %eax, %edi
callq 0x10a0
leaq 0x697(%rip), %rdi       # 0x2298
movl %ebx, %esi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1050
movq -0x650(%rbp), %rbx
leaq -0xe0(%rbp), %r14
movl $0x90, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x10c0
movl $0x3, (%r14)
movw $0x60c, 0x82(%r14)      # imm = 0x60C
movb $0x1, %al
movb %al, 0x7e(%r14)
movq %rbx, %rdi
movq %r14, %rsi
movl $0x12e01, %edx          # imm = 0x12E01
callq 0x11e0
movl %eax, %ebx
movl %eax, %edi
callq 0x10a0
leaq 0x656(%rip), %rdi       # 0x22b7
movl %ebx, %esi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1050
movq -0x128(%rbp), %rax
movq (%rax), %rsi
movq (%rsi), %rdx
leaq 0x3c7(%rip), %rdi       # 0x2048
xorl %eax, %eax
callq 0x1050
leaq 0x3d1(%rip), %rdi       # 0x2060
leaq -0xe0(%rbp), %rbx
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1120
cmpl $0x0, (%rbx)
je 0x1ce0
leaq 0x39c(%rip), %rbx       # 0x2048
leaq 0x3ad(%rip), %r14       # 0x2060
movq -0x128(%rbp), %rax
movq (%rax), %rsi
movq (%rsi), %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1050
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x1120
cmpl $0x0, -0xe0(%rbp)
jne 0x1cb3
xorl %eax, %eax
addq $0x688, %rsp            # imm = 0x688
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1040
movl (%rax), %edi
callq 0x10a0
leaq 0x425(%rip), %rdi       # 0x212c
movq %rax, %rsi
xorl %eax, %eax
callq 0x1050
jmp 0x1d70
leaq 0x6ff(%rip), %rdi       # 0x2419
jmp 0x1d6b
leaq 0x6db(%rip), %rdi       # 0x23fe
jmp 0x1d6b
leaq 0x6b8(%rip), %rdi       # 0x23e4
jmp 0x1d6b
leaq 0x696(%rip), %rdi       # 0x23cb
jmp 0x1d6b
leaq 0x671(%rip), %rdi       # 0x23af
jmp 0x1d6b
leaq 0x758(%rip), %rdi       # 0x249f
jmp 0x1d6b
leaq 0x736(%rip), %rdi       # 0x2486
jmp 0x1d6b
leaq 0x788(%rip), %rdi       # 0x24e1
jmp 0x1d6b
leaq 0x5cf(%rip), %rdi       # 0x2331
jmp 0x1d6b
leaq 0x5b4(%rip), %rdi       # 0x231f
callq 0x11d0
movl $0x1, %edi
callq 0x1140