// File: /workspace/github_cpp_makefile_star2_O1/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 0x1d51
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 0x1d5a
movq %rbx, %rdi
callq 0x10d0
leaq 0xc32(%rip), %rdi       # 0x2083
xorl %ebx, %ebx
movq %rax, %rsi
xorl %eax, %eax
callq 0x1050
movq -0x670(%rbp), %rdi
leaq -0x140(%rdi), %rax
cmpq $-0x1, 0x140(%rdi)
cmovneq %rbx, %rax
jne 0x1497
cmpq $0x288, 0x138(%rax) # imm = 0x288
jae 0x148a
xorl %ebx, %ebx
jmp 0x1497
movq (%rax), %rcx
testq %rcx, %rcx
cmoveq %rcx, %rax
movq %rax, %rbx
leaq -0x248(%rbp), %rdx
testq %rbx, %rbx
je 0x14b1
movl $0x34, %ecx
movl $0x1, %esi
callq *(%rbx)
jmp 0x14d4
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 0x1d63
leaq 0xe89(%rip), %rdi       # 0x236c
callq 0x11d0
leaq -0x118(%rbp), %rbx
movzwl -0x10e(%rbx), %esi
leaq 0xba3(%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 0x1d6c
leaq 0xe56(%rip), %rdi       # 0x2382
callq 0x11d0
leaq 0xb77(%rip), %rdi       # 0x20af
xorl %eax, %eax
callq 0x1050
leaq 0xb6f(%rip), %r14       # 0x20b5
xorl %ebx, %ebx
movzbl -0x118(%rbp,%rbx), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1050
testb $0x1, %bl
je 0x1569
movl $0x3a, %edi
callq 0x1190
incq %rbx
cmpq $0x10, %rbx
jne 0x1548
movl $0xa, %edi
callq 0x1190
leaq 0xb2c(%rip), %rdi       # 0x20af
xorl %eax, %eax
callq 0x1050
leaq -0x210(%rbp), %rsi
movq -0x460(%rsi), %rdi
callq 0x11c0
testl %eax, %eax
jne 0x1d75
leaq 0xdeb(%rip), %rdi       # 0x2397
callq 0x11d0
movl -0x1a8(%rbp), %esi
leaq 0xafc(%rip), %rdi       # 0x20ba
xorl %eax, %eax
callq 0x1050
movl -0x190(%rbp), %esi
movl -0x18c(%rbp), %edx
leaq 0xaf5(%rip), %rdi       # 0x20cd
xorl %eax, %eax
callq 0x1050
movl -0x1a0(%rbp), %esi
leaq 0xb03(%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 0xaeb(%rip), %rdi       # 0x2104
xorl %eax, %eax
callq 0x1050
leaq 0xe11(%rip), %rdi       # 0x2438
callq 0x11d0
movq -0x670(%rbp), %rdi
callq 0x1070
movq %rax, -0x668(%rbp)
testq %rax, %rax
je 0x1d7e
leaq 0xe0e(%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 0x1d87
leaq 0xdee(%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 0x93e(%rip), %xmm0      # 0x2010
movapd %xmm0, -0xc0(%rbp)
cmpl $0x0, -0x108(%rbp)
jle 0x1752
leaq -0xe0(%rbp), %r14
leaq 0xa59(%rip), %r15       # 0x214a
leaq 0xa6f(%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 0x1d32
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 0x16fb
leaq 0xd5e(%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 0x9f4(%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 0x1d90
leaq 0xd00(%rip), %rdi       # 0x24cf
callq 0x11d0
movq -0x660(%rbp), %rax
movl 0x24(%rax), %esi
movl 0x28(%rax), %edx
leaq 0x9b3(%rip), %rdi       # 0x219b
xorl %eax, %eax
callq 0x1050
movq -0x660(%rbp), %rax
movsd 0x18(%rax), %xmm1
unpcklps 0x81e(%rip), %xmm1      # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
movq 0x10(%rax), %rsi
subpd 0x822(%rip), %xmm1      # 0x2030
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x81e(%rip), %xmm0      # 0x2040
leaq 0x98b(%rip), %rdi       # 0x21b4
movb $0x1, %al
callq 0x1050
leaq 0xa9f(%rip), %rdi       # 0x22d6
callq 0x11d0
xorpd %xmm0, %xmm0
leaq -0x6b0(%rbp), %rdx
movapd %xmm0, (%rdx)
movapd %xmm0, 0x10(%rdx)
movapd %xmm0, 0x20(%rdx)
movl $0x1, 0x8(%rdx)
movq $0x1, (%rdx)
leaq 0x96d(%rip), %rsi       # 0x21d7
leaq -0x38(%rbp), %rcx
xorl %edi, %edi
callq 0x1150
testl %eax, %eax
jne 0x1d99
leaq 0xa78(%rip), %rdi       # 0x22fc
callq 0x11d0
movq -0x38(%rbp), %rbx
testq %rbx, %rbx
je 0x18d3
movl 0x4(%rbx), %edi
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
callq 0x1080
movl %eax, %r14d
testl %eax, %eax
js 0x18c8
movq 0x18(%rbx), %rsi
movl 0x10(%rbx), %edx
movl %r14d, %edi
callq 0x1060
testl %eax, %eax
je 0x18db
movl %r14d, %edi
callq 0x1200
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq 0x28(%rbx), %rbx
testq %rbx, %rbx
jne 0x1892
jmp 0x18ec
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x18ec
leaq 0x8fa(%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 0x1da2
leaq 0x9fe(%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 0x8bd(%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 0x198b
addq %rax, %rbx
addq %rax, %r12
subq %rax, %r13
jne 0x196d
leaq 0x877(%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 0x86e(%rip), %rdi       # 0x2220
xorl %eax, %eax
callq 0x1050
movzwl 0x10(%rbx), %esi
movl 0xc(%rbx), %edx
leaq 0x874(%rip), %rdi       # 0x223b
xorl %eax, %eax
callq 0x1050
leaq 0x880(%rip), %rdi       # 0x2255
xorl %eax, %eax
callq 0x1050
addq $0x12, %r14
leaq 0x6ce(%rip), %r12       # 0x20b5
xorl %ebx, %ebx
movzbl (%r14,%rbx), %esi
movq %r12, %rdi
xorl %eax, %eax
callq 0x1050
testb $0x1, %bl
je 0x1a07
movl $0x3a, %edi
callq 0x1190
incq %rbx
cmpq $0x10, %rbx
jne 0x19e9
movq %r14, -0x40(%rbp)
leaq 0x902(%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 0x1aa7
addq %rax, %rbx
addq %rax, %r13
cmpq $0x22, %rbx
jb 0x1a81
jmp 0x1aae
movq $-0x1, %rbx
leaq 0x7ab(%rip), %rdi       # 0x2260
movl $0x22, %edx
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1050
movq (%r14), %rsi
movl 0x8(%r14), %edx
leaq 0x74e(%rip), %rdi       # 0x2220
xorl %eax, %eax
callq 0x1050
movzwl 0x10(%r14), %esi
movl 0xc(%r14), %edx
leaq 0x752(%rip), %rdi       # 0x223b
xorl %eax, %eax
callq 0x1050
leaq 0x75e(%rip), %rdi       # 0x2255
xorl %eax, %eax
callq 0x1050
leaq 0x5b0(%rip), %rbx       # 0x20b5
xorl %r14d, %r14d
movzbl (%r12,%r14), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1050
testb $0x1, %r14b
je 0x1b27
movl $0x3a, %edi
callq 0x1190
incq %r14
cmpq $0x10, %r14
jne 0x1b08
leaq 0x7e6(%rip), %rdi       # 0x231d
callq 0x11d0
movq -0x650(%rbp), %rbx
leaq -0xe0(%rbp), %r15
xorl %r12d, %r12d
movl $0x90, %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x10c0
movl $0x1, %eax
movl %eax, (%r15)
movb $0x1, %al
movb %al, 0x81(%r15)
movw %r12w, 0x78(%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 0x6de(%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), %r14d
movl $0x90, %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x10c0
movl $0x2, (%r15)
movl $0x1, %eax
movl %eax, 0x8(%r15)
movl %r13d, 0x1c(%r15)
movl %r12d, 0x14(%r15)
movw $0x1201, 0x7f(%r15)     # imm = 0x1201
movw %r14w, 0x50(%r15)
movw %r12w, 0x52(%r15)
movw $0x101, 0x55(%r15)      # imm = 0x101
movq -0x40(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x38(%r15)
movl %r12d, 0x48(%r15)
movw $0x102, 0x4c(%r15)      # imm = 0x102
movb %r12b, 0x4e(%r15)
movq %rbx, %rdi
movq %r15, %rsi
movl $0x129181, %edx         # imm = 0x129181
callq 0x11e0
movl %eax, %ebx
movl %eax, %edi
callq 0x10a0
leaq 0x664(%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 %r12b, 0x84(%r14)
movl %r12d, 0x18(%r14)
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 0x618(%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 0x389(%rip), %rdi       # 0x2048
xorl %eax, %eax
callq 0x1050
leaq 0x393(%rip), %rdi       # 0x2060
leaq -0xe0(%rbp), %rbx
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1120
cmpl %r12d, (%rbx)
je 0x1d1e
leaq 0x35e(%rip), %rbx       # 0x2048
leaq 0x36f(%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 0x1cf1
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 0x3e7(%rip), %rdi       # 0x212c
movq %rax, %rsi
xorl %eax, %eax
callq 0x1050
jmp 0x1dae
leaq 0x6c1(%rip), %rdi       # 0x2419
jmp 0x1da9
leaq 0x69d(%rip), %rdi       # 0x23fe
jmp 0x1da9
leaq 0x67a(%rip), %rdi       # 0x23e4
jmp 0x1da9
leaq 0x658(%rip), %rdi       # 0x23cb
jmp 0x1da9
leaq 0x633(%rip), %rdi       # 0x23af
jmp 0x1da9
leaq 0x71a(%rip), %rdi       # 0x249f
jmp 0x1da9
leaq 0x6f8(%rip), %rdi       # 0x2486
jmp 0x1da9
leaq 0x74a(%rip), %rdi       # 0x24e1
jmp 0x1da9
leaq 0x591(%rip), %rdi       # 0x2331
jmp 0x1da9
leaq 0x576(%rip), %rdi       # 0x231f
callq 0x11d0
movl $0x1, %edi
callq 0x1140