// File: /workspace/github_cpp_makefile_star2_O3/kiudee[P]VAHD-Projekt/Node.cpp
// Function: Node::Probing(Probe*)
Action Node::Probing(Probe *ido)
{
    IdObj *tempido;
    Probe *tempprobe;
    if (isReal) {
        if (ido == NULL) {
            //If no left neighbor is set, set it to node0 and probing is done, else send probe to the left neighbor
            if (left == NULL) {
                tempido = new IdObj(num / 2, new Identity(node0->out), node0->debugID);
                left = new NodeRelay(tempido);
                leftstable = false;

            } else {
                //(1) send probe to left introducing the first phase (indicating by parameter 0)
                tempprobe = new Probe(num, new Identity(in), 0);
                left->out->call(Node::Probing, tempprobe);
            }
            //If no right neighbor is set, set it to node1 and probing is done, else send the probe to the right neighbor
            if (right == NULL) {
                tempido = new IdObj((1 + num) / 2, new Identity(node1->out), node1->debugID);
                right = new NodeRelay(tempido);
                rightstable = false;

            } else {
                tempprobe = new Probe(num, new Identity(in), 0);
                right->out->call(Node::Probing, tempprobe);
            }
        } else {

            //probe reaches v.0 or v.1. finish probing. this shall never happen, because we are on a real node, but we're searching for a virtual one.
            //if (num == ido->num / 2 || num == (1 + ido->num) / 2) {
            //v.0 / v.1 has to be virtual
            //delete ido;
            //return;
            //}

            /*probe came from the left, so we're searching for ido->num/2
             because we're on a real node, change the direction flag and
             send probe to node0*/
            if (ido->num > num) {
                //(3) we are on the real node w, so we switch the phase flag indicating, that we are on the left side of v.0.
                //tempido = new Probe(ido->num, extractIdentity(ido->out), 1);
                //delete ido;
                if (ido->phase == 0) {
                    ido->phase = 1;
                    node0->out->call(Node::Probing, ido);
                    return;
                } else {
                    if (num <= ido->num / 2) {
                        if (right != NULL) {
                            right->out->call(Node::Probing, ido);
                            return;
                        }

                    }

                }
                Relay *temprelay = new Relay(ido->id);
                NumObj *numo = new NumObj(0);
                temprelay->call(Node::BuildWeakConnectedComponent, numo);

            }

            /*probe came from the right, so we're searching for 1+ido->value/2
             because we're on a real node, change the direction flag and
             send probe to node1*/
            if (ido->num < num) {
                //tempido = new Probe(ido->num, extractIdentity(ido->out), 1);
                //delete ido;
                // Unpack probe
                if (ido->phase == 0) {
                    ido->phase = 1;
                    node1->out->call(Node::Probing, ido);
                    return;
                } else {
                    if (num >= ido->num / 2) {
                        if (left != NULL) {
                            left->out->call(Node::Probing, ido);
                            return;
                        }
                    }
                }
                Relay *temprelay = new Relay(ido->id);
                NumObj *numo = new NumObj(1);
                temprelay->call(Node::BuildWeakConnectedComponent, numo);
            }

        }

    } else {
        if (ido != NULL) {
            //probe came from the left
            if (ido->num > num) {
                //probe reaches v.0. finish probing
                if (num == ido->num / 2) {
                    delete ido;
                    return;
                }
                //probe hit no real node yet, so send it to left
                if (ido->phase == 0) {
                    if (left != NULL) {
                        //(2) send probe to the left
                        left->out->call(Node::Probing, ido);
                        return;
                    }
                }
                //probe hit real node, so send it to right
                else if (ido->phase == 1) {
                    if (num < ido->num / 2) {
                        if (right != NULL) {
                            //(4) send probe to the right
                            right->out->call(Node::Probing, ido);
                            return;
                        }
                    }
                }
                /*if the probe gets stuck (no left or right neighbor) or
                 the id was not found, establish link between v and v.0*/
                Relay *temprelay = new Relay(ido->id);
                NumObj *numo = new NumObj(0);
                temprelay->call(Node::BuildWeakConnectedComponent, numo);
                //delete temprelay;
            }
            if (ido->num < num) {

                //probe reaches v.1. finish probing
                if (num == (1 + ido->num) / 2) {
                    delete ido;
                    return;
                }
                if (ido->phase == 0) {
                    if (right != NULL) {
                        right->out->call(Node::Probing, ido);
                        return;
                    }
                } else if (ido->phase == 1) {
                    if (num > (1 + ido->num) / 2) {
                        if (left != NULL) {
                            left->out->call(Node::Probing, ido);
                            return;
                        }
                    }
                }
                Relay *temprelay = new Relay(ido->id);
                NumObj *numo = new NumObj(1);
                temprelay->call(Node::BuildWeakConnectedComponent, numo);
                //delete temprelay;
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, 0xb8(%rdi)
jne 0x7ccd
testq %r14, %r14
je 0x7d23
movsd 0x28(%r14), %xmm0
movsd 0xb0(%rbx), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x7c79
cmpl $0x0, 0x20(%r14)
je 0x7ebe
mulsd 0x4821(%rip), %xmm0     # 0xc3b8
ucomisd %xmm1, %xmm0
jb 0x7bad
movq 0xd0(%rbx), %rax
testq %rax, %rax
jne 0x84d6
movl $0x48, %edi
callq 0x2160
movq %rax, %r15
leaq 0x30(%r14), %rsi
movq %rax, %rdi
callq 0x3dfc
movl $0x28, %edi
callq 0x2160
movq %rax, %r12
leaq 0x95ae(%rip), %rax      # 0x11188
movq (%rax), %rcx
movq %rcx, (%r12)
incq %rcx
movq %rcx, (%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%r12)
movq $0x0, 0x18(%r12)
leaq 0x959e(%rip), %rax      # 0x111a0
movq (%rax), %rax
testq %rax, %rax
je 0x7c14
movq %r12, %rcx
addq $0x8, %rcx
movq %rax, (%rcx)
movl $0x0, 0x20(%r12)
movl $0x38, %edi
callq 0x2160
leaq 0x957a(%rip), %rcx      # 0x111a8
movq (%rcx), %rdx
movq %rdx, (%rax)
incq %rdx
movq %rdx, (%rcx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rax)
leaq 0x345c(%rip), %rcx      # 0xb0a6
movq %rcx, 0x18(%rax)
xorl %ecx, %ecx
movq %rcx, 0x20(%rax)
movq %r12, 0x28(%rax)
movq %rcx, 0x30(%rax)
movq (%r15), %rcx
movq %r15, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq *0x8(%rcx)
movsd 0x28(%r14), %xmm0
movsd 0xb0(%rbx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x8386
cmpl $0x0, 0x20(%r14)
je 0x7f65
mulsd 0x4722(%rip), %xmm0     # 0xc3b8
ucomisd %xmm0, %xmm1
jb 0x7cac
movq 0xc8(%rbx), %rax
testq %rax, %rax
jne 0x84d6
movl $0x48, %edi
callq 0x2160
movq %rax, %r15
addq $0x30, %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x3dfc
jmp 0x8555
testq %r14, %r14
je 0x8386
movsd 0x28(%r14), %xmm0
movsd 0xb0(%rbx), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x834d
mulsd 0x46c2(%rip), %xmm0     # 0xc3b8
ucomisd %xmm0, %xmm1
jne 0x7d02
jnp 0x836b
movl 0x20(%r14), %eax
cmpl $0x1, %eax
je 0x826b
testl %eax, %eax
jne 0x8281
movq 0xc8(%rbx), %rax
jmp 0x8278
movq 0xc8(%rbx), %r15
movl $0x38, %edi
callq 0x2160
movq %rax, %r14
movsd 0xb0(%rbx), %xmm0
movsd %xmm0, 0x10(%rsp)
testq %r15, %r15
je 0x7deb
movq %r15, (%rsp)
movl $0x28, %edi
callq 0x2160
movq %rax, %r15
movq 0xc0(%rbx), %r12
leaq 0x941b(%rip), %rcx      # 0x11188
movq (%rcx), %rbp
movq %rbp, (%rax)
leaq 0x1(%rbp), %rdx
movq %rdx, (%rcx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
leaq 0x940e(%rip), %rax      # 0x111a0
movq (%rax), %r13
testq %r13, %r13
je 0x7ed2
movq %r13, 0x8(%r15)
movupd %xmm0, 0x10(%r15)
movq $0x0, 0x20(%r15)
testq %r12, %r12
je 0x7dc0
cmpq %r13, 0x18(%r12)
je 0x83b6
movq %rdx, (%r14)
addq $0x2, %rbp
movq %rbp, (%rcx)
movq %r14, %rax
addq $0x8, %rax
movupd %xmm0, 0x8(%r14)
movq $0x0, 0x18(%r14)
movq (%rsp), %rcx
movq %r13, (%rax)
jmp 0x7ef6
movl $0x28, %edi
callq 0x2160
movq %rax, %r15
movq 0xd8(%rbx), %rax
movq 0x28(%rax), %rbp
leaq 0x937e(%rip), %rcx      # 0x11188
movq (%rcx), %r13
movq %r13, (%r15)
leaq 0x1(%r13), %rdx
movq %rdx, (%rcx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%r15)
movq $0x0, 0x18(%r15)
leaq 0x9370(%rip), %rsi      # 0x111a0
movq (%rsi), %r12
testq %r12, %r12
je 0x7f79
movq %r12, 0x8(%r15)
movupd %xmm0, 0x10(%r15)
movq $0x0, 0x20(%r15)
testq %rbp, %rbp
je 0x7f8a
cmpq %r12, 0x18(%rbp)
jne 0x7f8a
movq %rdx, 0x8(%rsp)
movq %rax, (%rsp)
movq %rbp, 0x10(%r15)
movq 0x30(%rbp), %rax
movq %rax, 0x20(%r15)
movl $0x18, %edi
callq 0x2160
movq %r15, 0x10(%rax)
movq 0x40(%rbp), %rcx
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
leaq 0x930a(%rip), %rsi      # 0x111a0
je 0x7e9e
movq %rax, (%rdx)
movq (%rsi), %r12
movq %rdx, 0x8(%rax)
movq %rcx, (%rax)
movq %rax, 0x8(%rcx)
leaq 0x92d8(%rip), %rcx      # 0x11188
movq (%rsp), %rax
movq 0x8(%rsp), %rdx
jmp 0x7f8a
movl $0x1, 0x20(%r14)
movq 0xd8(%rbx), %rax
jmp 0x84d6
movupd %xmm0, 0x10(%r15)
xorl %eax, %eax
movq %rax, 0x20(%r15)
movq %rdx, (%r14)
addq $0x2, %rbp
movq %rbp, (%rcx)
movq %rax, 0x18(%r14)
movupd %xmm0, 0x8(%r14)
movq (%rsp), %rcx
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x28(%r14)
movl $0x0, 0x20(%r14)
movq %r15, 0x30(%r14)
movq 0x28(%rcx), %r15
movl $0x38, %edi
callq 0x2160
leaq 0x9285(%rip), %rcx      # 0x111a8
movq (%rcx), %rdx
movq %rdx, (%rax)
incq %rdx
movq %rdx, (%rcx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rax)
leaq -0x3fd(%rip), %rcx      # 0x7b42
movq %rcx, 0x18(%rax)
xorl %ecx, %ecx
movq %rcx, 0x20(%rax)
movq %r14, 0x28(%rax)
movq %rcx, 0x30(%rax)
movq (%r15), %rcx
movq %r15, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq *0x8(%rcx)
jmp 0x8003
movl $0x1, 0x20(%r14)
movq 0xe0(%rbx), %rax
jmp 0x84d6
movupd %xmm0, 0x10(%r15)
movq $0x0, 0x20(%r15)
xorl %r12d, %r12d
movsd 0x10(%rsp), %xmm0
mulsd 0x4420(%rip), %xmm0     # 0xc3b8
movsd %xmm0, 0x10(%rsp)
movl 0x30(%rax), %eax
movq %rdx, (%r14)
addq $0x2, %r13
movq %r13, (%rcx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%r14)
movq $0x0, 0x18(%r14)
testq %r12, %r12
je 0x7fcc
movq %r14, %rcx
addq $0x8, %rcx
movq %r12, (%rcx)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x20(%r14)
movq %r15, 0x28(%r14)
movl %eax, 0x30(%r14)
movl $0x38, %edi
callq 0x2160
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x3d6c
movq %r15, 0xc8(%rbx)
movb $0x0, 0x60(%rbx)
movq 0xd0(%rbx), %r15
movl $0x38, %edi
callq 0x2160
movq %rax, %r14
movsd 0xb0(%rbx), %xmm0
movsd %xmm0, 0x10(%rsp)
testq %r15, %r15
je 0x80cb
movq %r15, (%rsp)
movl $0x28, %edi
callq 0x2160
movq %rax, %r15
movq 0xc0(%rbx), %r12
leaq 0x913b(%rip), %rcx      # 0x11188
movq (%rcx), %rbp
movq %rbp, (%rax)
leaq 0x1(%rbp), %rdx
movq %rdx, (%rcx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
leaq 0x912e(%rip), %rax      # 0x111a0
movq (%rax), %r13
testq %r13, %r13
je 0x819b
movq %r13, 0x8(%r15)
movupd %xmm0, 0x10(%r15)
movq $0x0, 0x20(%r15)
testq %r12, %r12
je 0x80a0
cmpq %r13, 0x18(%r12)
je 0x843d
movq %rdx, (%r14)
addq $0x2, %rbp
movq %rbp, (%rcx)
movq %r14, %rax
addq $0x8, %rax
movupd %xmm0, 0x8(%r14)
movq $0x0, 0x18(%r14)
movq (%rsp), %rcx
movq %r13, (%rax)
jmp 0x81bf
movl $0x28, %edi
callq 0x2160
movq %rax, %r15
movq 0xe0(%rbx), %rax
movq 0x28(%rax), %rbp
leaq 0x909e(%rip), %rcx      # 0x11188
movq (%rcx), %r13
movq %r13, (%r15)
leaq 0x1(%r13), %rdx
movq %rdx, (%rcx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%r15)
movq $0x0, 0x18(%r15)
leaq 0x9090(%rip), %rsi      # 0x111a0
movq (%rsi), %r12
testq %r12, %r12
je 0x81e0
movq %r12, 0x8(%r15)
movupd %xmm0, 0x10(%r15)
movq $0x0, 0x20(%r15)
testq %rbp, %rbp
je 0x81f1
cmpq %r12, 0x18(%rbp)
jne 0x81f1
movq %rdx, 0x8(%rsp)
movq %rax, (%rsp)
movq %rbp, 0x10(%r15)
movq 0x30(%rbp), %rax
movq %rax, 0x20(%r15)
movl $0x18, %edi
callq 0x2160
movq %r15, 0x10(%rax)
movq 0x40(%rbp), %rcx
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
leaq 0x902a(%rip), %rsi      # 0x111a0
je 0x817e
movq %rax, (%rdx)
movq (%rsi), %r12
movq %rdx, 0x8(%rax)
movq %rcx, (%rax)
movq %rax, 0x8(%rcx)
leaq 0x8ff8(%rip), %rcx      # 0x11188
movq (%rsp), %rax
movq 0x8(%rsp), %rdx
jmp 0x81f1
movupd %xmm0, 0x10(%r15)
xorl %eax, %eax
movq %rax, 0x20(%r15)
movq %rdx, (%r14)
addq $0x2, %rbp
movq %rbp, (%rcx)
movq %rax, 0x18(%r14)
movupd %xmm0, 0x8(%r14)
movq (%rsp), %rcx
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x28(%r14)
movl $0x0, 0x20(%r14)
movq %r15, 0x30(%r14)
movq 0x28(%rcx), %r15
jmp 0x84da
movupd %xmm0, 0x10(%r15)
movq $0x0, 0x20(%r15)
xorl %r12d, %r12d
movsd 0x10(%rsp), %xmm1
addsd 0x41c1(%rip), %xmm1     # 0xc3c0
mulsd 0x41b1(%rip), %xmm1     # 0xc3b8
movl 0x30(%rax), %eax
movq %rdx, (%r14)
addq $0x2, %r13
movq %r13, (%rcx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%r14)
movq $0x0, 0x18(%r14)
testq %r12, %r12
je 0x8235
movq %r14, %rcx
addq $0x8, %rcx
movq %r12, (%rcx)
movsd %xmm1, 0x20(%r14)
movq %r15, 0x28(%r14)
movl %eax, 0x30(%r14)
movl $0x38, %edi
callq 0x2160
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x3d6c
movq %r15, 0xd0(%rbx)
movb $0x0, 0x61(%rbx)
jmp 0x8386
ucomisd %xmm1, %xmm0
jbe 0x8281
movq 0xd0(%rbx), %rax
testq %rax, %rax
jne 0x84d6
movl $0x48, %edi
callq 0x2160
movq %rax, %r15
leaq 0x30(%r14), %rsi
movq %rax, %rdi
callq 0x3dfc
movl $0x28, %edi
callq 0x2160
movq %rax, %r12
leaq 0x8eda(%rip), %rax      # 0x11188
movq (%rax), %rcx
movq %rcx, (%r12)
incq %rcx
movq %rcx, (%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%r12)
movq $0x0, 0x18(%r12)
leaq 0x8eca(%rip), %rax      # 0x111a0
movq (%rax), %rax
testq %rax, %rax
je 0x82e8
movq %r12, %rcx
addq $0x8, %rcx
movq %rax, (%rcx)
movl $0x0, 0x20(%r12)
movl $0x38, %edi
callq 0x2160
leaq 0x8ea6(%rip), %rcx      # 0x111a8
movq (%rcx), %rdx
movq %rdx, (%rax)
incq %rdx
movq %rdx, (%rcx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rax)
leaq 0x2d88(%rip), %rcx      # 0xb0a6
movq %rcx, 0x18(%rax)
xorl %ecx, %ecx
movq %rcx, 0x20(%rax)
movq %r12, 0x28(%rax)
movq %rcx, 0x30(%rax)
movq (%r15), %rcx
movq %r15, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq *0x8(%rcx)
movsd 0x28(%r14), %xmm0
movsd 0xb0(%rbx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x8386
addsd 0x4065(%rip), %xmm0     # 0xc3c0
mulsd 0x4055(%rip), %xmm0     # 0xc3b8
ucomisd %xmm0, %xmm1
jne 0x8395
jp 0x8395
movl $0x38, %esi
movq %r14, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2170
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x20(%r14), %eax
cmpl $0x1, %eax
je 0x84c4
testl %eax, %eax
jne 0x8539
movq 0xd0(%rbx), %rax
jmp 0x84d1
movq %rdx, 0x8(%rsp)
movq %r12, 0x10(%r15)
movq 0x30(%r12), %rax
movq %rax, 0x20(%r15)
movl $0x18, %edi
callq 0x2160
movq %r15, 0x10(%rax)
movq 0x40(%r12), %rcx
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
je 0x83f1
movq %rax, (%rdx)
leaq 0x8db2(%rip), %rsi      # 0x111a0
movq (%rsi), %r13
movq %rdx, 0x8(%rax)
movq %rcx, (%rax)
movq %rax, 0x8(%rcx)
movq 0x8(%rsp), %rax
movq %rax, (%r14)
addq $0x2, %rbp
leaq 0x8d79(%rip), %rax      # 0x11188
movq %rbp, (%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%r14)
movq $0x0, 0x18(%r14)
testq %r13, %r13
movq (%rsp), %rcx
je 0x7ef6
movq %r14, %rax
addq $0x8, %rax
jmp 0x7de3
movq %rdx, 0x8(%rsp)
movq %r12, 0x10(%r15)
movq 0x30(%r12), %rax
movq %rax, 0x20(%r15)
movl $0x18, %edi
callq 0x2160
movq %r15, 0x10(%rax)
movq 0x40(%r12), %rcx
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
je 0x8478
movq %rax, (%rdx)
leaq 0x8d2b(%rip), %rsi      # 0x111a0
movq (%rsi), %r13
movq %rdx, 0x8(%rax)
movq %rcx, (%rax)
movq %rax, 0x8(%rcx)
movq 0x8(%rsp), %rax
movq %rax, (%r14)
addq $0x2, %rbp
leaq 0x8cf2(%rip), %rax      # 0x11188
movq %rbp, (%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%r14)
movq $0x0, 0x18(%r14)
testq %r13, %r13
movq (%rsp), %rcx
je 0x81bf
movq %r14, %rax
addq $0x8, %rax
jmp 0x80c3
ucomisd %xmm0, %xmm1
jbe 0x8539
movq 0xc8(%rbx), %rax
testq %rax, %rax
je 0x8539
movq 0x28(%rax), %r15
movl $0x38, %edi
callq 0x2160
leaq 0x8cbd(%rip), %rcx      # 0x111a8
movq (%rcx), %rdx
movq %rdx, (%rax)
incq %rdx
movq %rdx, (%rcx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rax)
leaq -0x9c5(%rip), %rcx      # 0x7b42
movq %rcx, 0x18(%rax)
xorl %ecx, %ecx
movq %rcx, 0x20(%rax)
movq %r14, 0x28(%rax)
movq %rcx, 0x30(%rax)
movq (%r15), %rcx
movq 0x8(%rcx), %rcx
movq %r15, %rdi
movq %rbx, %rsi
movq %rax, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rcx
movl $0x48, %edi
callq 0x2160
movq %rax, %r15
addq $0x30, %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x3dfc
movl $0x28, %edi
callq 0x2160
movq %rax, %r14
leaq 0x8c1f(%rip), %rax      # 0x11188
movq (%rax), %rcx
movq %rcx, (%r14)
incq %rcx
movq %rcx, (%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%r14)
movq $0x0, 0x18(%r14)
leaq 0x8c12(%rip), %rax      # 0x111a0
movq (%rax), %rax
testq %rax, %rax
je 0x85a0
movq %r14, %rcx
addq $0x8, %rcx
movq %rax, (%rcx)
movl $0x1, 0x20(%r14)
movl $0x38, %edi
callq 0x2160
leaq 0x8bef(%rip), %rcx      # 0x111a8
movq (%rcx), %rdx
movq %rdx, (%rax)
incq %rdx
movq %rdx, (%rcx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rax)
leaq 0x2ad1(%rip), %rcx      # 0xb0a6
jmp 0x8507
jmp 0x85e0
jmp 0x85e0
jmp 0x85e0
movq %rax, %rbx
movl $0x28, %esi
movq %r15, %rdi
callq 0x2170
jmp 0x861a
jmp 0x85f8
jmp 0x85f8
jmp 0x85f8
movq %rax, %rbx
movl $0x48, %esi
jmp 0x860e
jmp 0x8606
jmp 0x8617
movq %rax, %rbx
movl $0x38, %esi
movq %r15, %rdi
jmp 0x8622
jmp 0x8617
jmp 0x8617
movq %rax, %rbx
movl $0x38, %esi
movq %r14, %rdi
callq 0x2170
movq %rbx, %rdi
callq 0x2280
nop