// File: 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
movq %rsp, %rbp
subq $0x300, %rsp            # imm = 0x300
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x158(%rbp)
testb $0x1, 0xb8(%rax)
je 0x11045
cmpq $0x0, -0x10(%rbp)
jne 0x10a51
movq -0x158(%rbp), %rax
cmpq $0x0, 0xc8(%rax)
jne 0x10631
movl $0x38, %edi
callq 0x31c0
movq %rax, %rcx
movq -0x158(%rbp), %rax
movq %rcx, -0x170(%rbp)
movsd 0xb0(%rax), %xmm0
movsd 0x6eea(%rip), %xmm1     # 0x17400
mulsd %xmm1, %xmm0
movsd %xmm0, -0x168(%rbp)
movl $0x28, %edi
callq 0x31c0
movq %rax, -0x160(%rbp)
jmp 0x10535
movq -0x160(%rbp), %rdi
movq -0x158(%rbp), %rax
movq 0xd8(%rax), %rax
movq 0x28(%rax), %rsi
callq 0x153e0
jmp 0x10555
movq -0x160(%rbp), %rsi
movsd -0x168(%rbp), %xmm0
movq -0x170(%rbp), %rdi
movq -0x158(%rbp), %rax
movq 0xd8(%rax), %rax
movl 0x30(%rax), %edx
callq 0x15520
jmp 0x10583
movq -0x170(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x178(%rbp)
movq -0x18(%rbp), %rsi
callq 0x57f0
jmp 0x105b0
movq -0x158(%rbp), %rax
movq -0x178(%rbp), %rcx
movq %rcx, 0xc8(%rax)
movb $0x0, 0x60(%rax)
jmp 0x1078b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x105f9
movq -0x160(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x28, %esi
callq 0x31d0
movq -0x170(%rbp), %rdi
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
movq -0x178(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
movl $0x38, %edi
callq 0x31c0
movq %rax, %rcx
movq -0x158(%rbp), %rax
movq %rcx, -0x190(%rbp)
movsd 0xb0(%rax), %xmm0
movsd %xmm0, -0x188(%rbp)
movl $0x28, %edi
callq 0x31c0
movq %rax, -0x180(%rbp)
jmp 0x1066f
movq -0x180(%rbp), %rdi
movq -0x158(%rbp), %rax
movq 0xc0(%rax), %rsi
callq 0x153e0
jmp 0x1068b
movq -0x180(%rbp), %rsi
movsd -0x188(%rbp), %xmm0
movq -0x190(%rbp), %rdi
xorl %edx, %edx
callq 0x15c90
jmp 0x106aa
movq -0x158(%rbp), %rax
movq -0x190(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq 0xc8(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x1a0(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x198(%rbp)
leaq -0x24c(%rip), %rax      # 0x104a0
movq %rax, -0x40(%rbp)
movq $0x0, -0x38(%rbp)
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x20(%rbp), %rcx
callq 0x5ae0
jmp 0x1070b
movq -0x198(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x1a0(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x1078b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x10753
movq -0x180(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x28, %esi
callq 0x31d0
movq -0x190(%rbp), %rdi
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
movq -0x198(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
movq -0x158(%rbp), %rax
cmpq $0x0, 0xd0(%rax)
jne 0x108f2
movl $0x38, %edi
callq 0x31c0
movq %rax, %rcx
movq -0x158(%rbp), %rax
movq %rcx, -0x1b8(%rbp)
movsd 0xb0(%rax), %xmm0
movsd 0x6c3d(%rip), %xmm1     # 0x17408
addsd %xmm1, %xmm0
movsd 0x6c29(%rip), %xmm1     # 0x17400
mulsd %xmm1, %xmm0
movsd %xmm0, -0x1b0(%rbp)
movl $0x28, %edi
callq 0x31c0
movq %rax, -0x1a8(%rbp)
jmp 0x107f6
movq -0x1a8(%rbp), %rdi
movq -0x158(%rbp), %rax
movq 0xe0(%rax), %rax
movq 0x28(%rax), %rsi
callq 0x153e0
jmp 0x10816
movq -0x1a8(%rbp), %rsi
movsd -0x1b0(%rbp), %xmm0
movq -0x1b8(%rbp), %rdi
movq -0x158(%rbp), %rax
movq 0xe0(%rax), %rax
movl 0x30(%rax), %edx
callq 0x15520
jmp 0x10844
movq -0x1b8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1c0(%rbp)
movq -0x18(%rbp), %rsi
callq 0x57f0
jmp 0x10871
movq -0x158(%rbp), %rax
movq -0x1c0(%rbp), %rcx
movq %rcx, 0xd0(%rax)
movb $0x0, 0x61(%rax)
jmp 0x10a4c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x108ba
movq -0x1a8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x28, %esi
callq 0x31d0
movq -0x1b8(%rbp), %rdi
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
movq -0x1c0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
movl $0x38, %edi
callq 0x31c0
movq %rax, %rcx
movq -0x158(%rbp), %rax
movq %rcx, -0x1d8(%rbp)
movsd 0xb0(%rax), %xmm0
movsd %xmm0, -0x1d0(%rbp)
movl $0x28, %edi
callq 0x31c0
movq %rax, -0x1c8(%rbp)
jmp 0x10930
movq -0x1c8(%rbp), %rdi
movq -0x158(%rbp), %rax
movq 0xc0(%rax), %rsi
callq 0x153e0
jmp 0x1094c
movq -0x1c8(%rbp), %rsi
movsd -0x1d0(%rbp), %xmm0
movq -0x1d8(%rbp), %rdi
xorl %edx, %edx
callq 0x15c90
jmp 0x1096b
movq -0x158(%rbp), %rax
movq -0x1d8(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq 0xd0(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x1e8(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1e0(%rbp)
leaq -0x50d(%rip), %rax      # 0x104a0
movq %rax, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
leaq -0x20(%rbp), %rcx
callq 0x5ae0
jmp 0x109cc
movq -0x1e0(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x1e8(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x10a4c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x10a14
movq -0x1c8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x28, %esi
callq 0x31d0
movq -0x1d8(%rbp), %rdi
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
movq -0x1e0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
jmp 0x11040
movq -0x158(%rbp), %rax
movq -0x10(%rbp), %rcx
movsd 0x28(%rcx), %xmm0
ucomisd 0xb0(%rax), %xmm0
jbe 0x10d32
movq -0x10(%rbp), %rax
cmpl $0x0, 0x20(%rax)
jne 0x10b20
movq -0x158(%rbp), %rax
movq -0x10(%rbp), %rcx
movl $0x1, 0x20(%rcx)
movq 0xd8(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x1f8(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1f0(%rbp)
leaq -0x61f(%rip), %rax      # 0x104a0
movq %rax, -0x60(%rbp)
movq $0x0, -0x58(%rbp)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
leaq -0x10(%rbp), %rcx
callq 0x5ae0
jmp 0x10ade
movq -0x1f0(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x1f8(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x11750
movq -0x1f0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
movq -0x158(%rbp), %rax
movsd 0xb0(%rax), %xmm1
movq -0x10(%rbp), %rax
movsd 0x28(%rax), %xmm0
movsd 0x68d0(%rip), %xmm2     # 0x17410
divsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jb 0x10bfd
movq -0x158(%rbp), %rax
cmpq $0x0, 0xd0(%rax)
je 0x10bfb
movq -0x158(%rbp), %rax
movq 0xd0(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x208(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x200(%rbp)
leaq -0x6fa(%rip), %rax      # 0x104a0
movq %rax, -0x70(%rbp)
movq $0x0, -0x68(%rbp)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
leaq -0x10(%rbp), %rcx
callq 0x5ae0
jmp 0x10bb9
movq -0x200(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x208(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x11750
movq -0x200(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
jmp 0x10bfd
jmp 0x10bff
movl $0x48, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x210(%rbp)
movq -0x10(%rbp), %rsi
addq $0x30, %rsi
callq 0x5890
jmp 0x10c25
movq -0x210(%rbp), %rax
movq %rax, -0x78(%rbp)
movl $0x28, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x218(%rbp)
xorl %esi, %esi
callq 0x5a90
jmp 0x10c50
movq -0x218(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x228(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x220(%rbp)
leaq 0x3fec(%rip), %rax      # 0x14c70
movq %rax, -0x90(%rbp)
movq $0x0, -0x88(%rbp)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
leaq -0x80(%rbp), %rcx
callq 0x5ae0
jmp 0x10caf
movq -0x220(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x228(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x10d32
movq -0x210(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x48, %esi
callq 0x31d0
jmp 0x11759
movq -0x218(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x28, %esi
callq 0x31d0
jmp 0x11759
movq -0x220(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
movq -0x158(%rbp), %rax
movq -0x10(%rbp), %rcx
movsd 0x28(%rcx), %xmm1
movsd 0xb0(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1103e
movq -0x10(%rbp), %rax
cmpl $0x0, 0x20(%rax)
jne 0x10e11
movq -0x158(%rbp), %rax
movq -0x10(%rbp), %rcx
movl $0x1, 0x20(%rcx)
movq 0xe0(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x238(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x230(%rbp)
leaq -0x904(%rip), %rax      # 0x104a0
movq %rax, -0xa0(%rbp)
movq $0x0, -0x98(%rbp)
movq -0xa0(%rbp), %rsi
movq -0x98(%rbp), %rdx
leaq -0x10(%rbp), %rcx
callq 0x5ae0
jmp 0x10dcf
movq -0x230(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x238(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x11750
movq -0x230(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
movq -0x158(%rbp), %rax
movsd 0xb0(%rax), %xmm0
movq -0x10(%rbp), %rax
movsd 0x28(%rax), %xmm1
movsd 0x65df(%rip), %xmm2     # 0x17410
divsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jb 0x10efa
movq -0x158(%rbp), %rax
cmpq $0x0, 0xc8(%rax)
je 0x10ef8
movq -0x158(%rbp), %rax
movq 0xc8(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x248(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x240(%rbp)
leaq -0x9eb(%rip), %rax      # 0x104a0
movq %rax, -0xb0(%rbp)
movq $0x0, -0xa8(%rbp)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
leaq -0x10(%rbp), %rcx
callq 0x5ae0
jmp 0x10eb6
movq -0x240(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x248(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x11750
movq -0x240(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
jmp 0x10efa
jmp 0x10efc
movl $0x48, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x250(%rbp)
movq -0x10(%rbp), %rsi
addq $0x30, %rsi
callq 0x5890
jmp 0x10f22
movq -0x250(%rbp), %rax
movq %rax, -0xb8(%rbp)
movl $0x28, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x258(%rbp)
movl $0x1, %esi
callq 0x5a90
jmp 0x10f53
movq -0x258(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x268(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x260(%rbp)
leaq 0x3ce3(%rip), %rax      # 0x14c70
movq %rax, -0xd0(%rbp)
movq $0x0, -0xc8(%rbp)
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rdx
leaq -0xc0(%rbp), %rcx
callq 0x5ae0
jmp 0x10fbb
movq -0x260(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x268(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x1103e
movq -0x250(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x48, %esi
callq 0x31d0
jmp 0x11759
movq -0x258(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x28, %esi
callq 0x31d0
jmp 0x11759
movq -0x260(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
jmp 0x11040
jmp 0x11750
cmpq $0x0, -0x10(%rbp)
je 0x1174e
movq -0x158(%rbp), %rax
movq -0x10(%rbp), %rcx
movsd 0x28(%rcx), %xmm0
ucomisd 0xb0(%rax), %xmm0
jbe 0x113c7
movq -0x158(%rbp), %rax
movsd 0xb0(%rax), %xmm0
movq -0x10(%rbp), %rax
movsd 0x28(%rax), %xmm1
movsd 0x6382(%rip), %xmm2     # 0x17410
divsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jne 0x110c1
jp 0x110c1
movq -0x10(%rbp), %rax
movq %rax, -0x270(%rbp)
cmpq $0x0, %rax
je 0x110bc
movq -0x270(%rbp), %rdi
movl $0x38, %esi
callq 0x31d0
jmp 0x11750
movq -0x10(%rbp), %rax
cmpl $0x0, 0x20(%rax)
jne 0x1118d
movq -0x158(%rbp), %rax
cmpq $0x0, 0xc8(%rax)
je 0x11188
movq -0x158(%rbp), %rax
movq 0xc8(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x280(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x278(%rbp)
leaq -0xc7b(%rip), %rax      # 0x104a0
movq %rax, -0xe0(%rbp)
movq $0x0, -0xd8(%rbp)
movq -0xe0(%rbp), %rsi
movq -0xd8(%rbp), %rdx
leaq -0x10(%rbp), %rcx
callq 0x5ae0
jmp 0x11146
movq -0x278(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x280(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x11750
movq -0x278(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
jmp 0x11288
movq -0x10(%rbp), %rax
cmpl $0x1, 0x20(%rax)
jne 0x11286
movq -0x158(%rbp), %rax
movsd 0xb0(%rax), %xmm1
movq -0x10(%rbp), %rax
movsd 0x28(%rax), %xmm0
movsd 0x6255(%rip), %xmm2     # 0x17410
divsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x11284
movq -0x158(%rbp), %rax
cmpq $0x0, 0xd0(%rax)
je 0x11282
movq -0x158(%rbp), %rax
movq 0xd0(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x290(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x288(%rbp)
leaq -0xd75(%rip), %rax      # 0x104a0
movq %rax, -0xf0(%rbp)
movq $0x0, -0xe8(%rbp)
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
leaq -0x10(%rbp), %rcx
callq 0x5ae0
jmp 0x11240
movq -0x288(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x290(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x11750
movq -0x288(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
jmp 0x11284
jmp 0x11286
jmp 0x11288
movl $0x48, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x298(%rbp)
movq -0x10(%rbp), %rsi
addq $0x30, %rsi
callq 0x5890
jmp 0x112ae
movq -0x298(%rbp), %rax
movq %rax, -0xf8(%rbp)
movl $0x28, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x2a0(%rbp)
xorl %esi, %esi
callq 0x5a90
jmp 0x112dc
movq -0x2a0(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x2b0(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x2a8(%rbp)
leaq 0x395a(%rip), %rax      # 0x14c70
movq %rax, -0x110(%rbp)
movq $0x0, -0x108(%rbp)
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
leaq -0x100(%rbp), %rcx
callq 0x5ae0
jmp 0x11344
movq -0x2a8(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x2b0(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x113c7
movq -0x298(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x48, %esi
callq 0x31d0
jmp 0x11759
movq -0x2a0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x28, %esi
callq 0x31d0
jmp 0x11759
movq -0x2a8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
movq -0x158(%rbp), %rax
movq -0x10(%rbp), %rcx
movsd 0x28(%rcx), %xmm1
movsd 0xb0(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1174c
movq -0x158(%rbp), %rax
movsd 0xb0(%rax), %xmm0
movq -0x10(%rbp), %rax
movsd 0x6004(%rip), %xmm1     # 0x17408
addsd 0x28(%rax), %xmm1
movsd 0x5fff(%rip), %xmm2     # 0x17410
divsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jne 0x11444
jp 0x11444
movq -0x10(%rbp), %rax
movq %rax, -0x2b8(%rbp)
cmpq $0x0, %rax
je 0x1143f
movq -0x2b8(%rbp), %rdi
movl $0x38, %esi
callq 0x31d0
jmp 0x11750
movq -0x10(%rbp), %rax
cmpl $0x0, 0x20(%rax)
jne 0x11510
movq -0x158(%rbp), %rax
cmpq $0x0, 0xd0(%rax)
je 0x1150b
movq -0x158(%rbp), %rax
movq 0xd0(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x2c8(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x2c0(%rbp)
leaq -0xffe(%rip), %rax      # 0x104a0
movq %rax, -0x120(%rbp)
movq $0x0, -0x118(%rbp)
movq -0x120(%rbp), %rsi
movq -0x118(%rbp), %rdx
leaq -0x10(%rbp), %rcx
callq 0x5ae0
jmp 0x114c9
movq -0x2c0(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x2c8(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x11750
movq -0x2c0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
jmp 0x11613
movq -0x10(%rbp), %rax
cmpl $0x1, 0x20(%rax)
jne 0x11611
movq -0x158(%rbp), %rax
movsd 0xb0(%rax), %xmm0
movq -0x10(%rbp), %rax
movsd 0x5ecf(%rip), %xmm1     # 0x17408
addsd 0x28(%rax), %xmm1
movsd 0x5eca(%rip), %xmm2     # 0x17410
divsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x1160f
movq -0x158(%rbp), %rax
cmpq $0x0, 0xc8(%rax)
je 0x1160d
movq -0x158(%rbp), %rax
movq 0xc8(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x2d8(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x2d0(%rbp)
leaq -0x1100(%rip), %rax     # 0x104a0
movq %rax, -0x130(%rbp)
movq $0x0, -0x128(%rbp)
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
leaq -0x10(%rbp), %rcx
callq 0x5ae0
jmp 0x115cb
movq -0x2d0(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x2d8(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x11750
movq -0x2d0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
jmp 0x1160f
jmp 0x11611
jmp 0x11613
movl $0x48, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x2e0(%rbp)
movq -0x10(%rbp), %rsi
addq $0x30, %rsi
callq 0x5890
jmp 0x11639
movq -0x2e0(%rbp), %rax
movq %rax, -0x138(%rbp)
movl $0x28, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x2e8(%rbp)
movl $0x1, %esi
callq 0x5a90
jmp 0x1166a
movq -0x2e8(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x2f8(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x2f0(%rbp)
leaq 0x35cc(%rip), %rax      # 0x14c70
movq %rax, -0x150(%rbp)
movq $0x0, -0x148(%rbp)
movq -0x150(%rbp), %rsi
movq -0x148(%rbp), %rdx
leaq -0x140(%rbp), %rcx
callq 0x5ae0
jmp 0x116d2
movq -0x2f0(%rbp), %rdx
movq -0x158(%rbp), %rsi
movq -0x2f8(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x1174c
movq -0x2e0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x48, %esi
callq 0x31d0
jmp 0x11759
movq -0x2e8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x28, %esi
callq 0x31d0
jmp 0x11759
movq -0x2f0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0x11759
jmp 0x1174e
jmp 0x11750
addq $0x300, %rsp            # imm = 0x300
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x3330
nopw %cs:(%rax,%rax)