// File: /workspace/github_cpp_makefile_star2_O1/kiudee[P]VAHD-Projekt/Node.cpp
// Function: Node::TriggerDataTransfer(IdObj*)
Action Node::TriggerDataTransfer(IdObj *ido)
{
    //std::cout << num << "<-TriggerDataTransfer(" << ido->num << ")\n";

    if (isReal) {
        Relay *temprelay = new Relay(ido->id);
        for (HashMap::iterator it = data.begin(); it != data.end(); ++it) {
            if (g(it->first) >= ido->num) {//WAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHH!!!!!!!!!!!!!
                DateObj *dob = new DateObj(it->first, it->second);
                temprelay->call(Node::DataInsert, dob);//routing unnecessary (ido is the target)
            }
        }
        //delete temprelay;
        delete ido;
    } else {
        if (left == NULL) {
            SearchJob *newsj = new SearchJob(MAX, DATATRANSFER,
                                             Node::calcRoutingBound(), ido);
            Search(newsj);
        } else if (leftstable) {
            left->out->call(Node::TriggerDataTransfer, ido);
        } else {
            call(Node::TriggerDataTransfer, ido);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r12
movq %rdi, %r13
cmpb $0x1, 0xb8(%rdi)
jne 0xa635
movl $0x48, %edi
callq 0x3160
leaq 0x28(%r12), %rsi
movq %rax, (%rsp)
movq %rax, %rdi
callq 0x4e3c
movq 0x78(%r13), %rbx
testq %rbx, %rbx
je 0xa614
leaq 0x8(%rsp), %r14
movl 0x8(%rbx), %edi
callq 0x71d2
ucomisd 0x20(%r12), %xmm0
jb 0xa608
movq %r12, %r15
movq %r13, %r12
movl $0x48, %edi
callq 0x3160
movq %rax, %r13
movl 0x8(%rbx), %ebp
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0xc8fa
movq %r13, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x4faa
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa5b3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3170
movl $0x38, %edi
callq 0x3160
leaq 0x7be4(%rip), %rdx      # 0x121a8
movq (%rdx), %rcx
movq %rcx, (%rax)
incq %rcx
movq %rcx, (%rdx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rax)
leaq -0xd9e(%rip), %rcx      # 0x9842
movq %rcx, 0x18(%rax)
xorl %ecx, %ecx
movq %rcx, 0x20(%rax)
movq %r13, 0x28(%rax)
movq %rcx, 0x30(%rax)
movq (%rsp), %rdi
movq (%rdi), %rcx
movq %r12, %r13
movq %r12, %rsi
movq %rax, %rdx
callq *0x8(%rcx)
movq %r15, %r12
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0xa542
testq %r12, %r12
je 0xa626
movl $0x38, %esi
movq %r12, %rdi
callq 0x3170
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc8(%r13), %rax
testq %rax, %rax
je 0xa69c
cmpb $0x1, 0x60(%r13)
jne 0xa73c
movq 0x28(%rax), %r15
movl $0x38, %edi
callq 0x3160
leaq 0x7b47(%rip), %rcx      # 0x121a8
movq (%rcx), %rdx
movq %rdx, (%rax)
incq %rdx
movq %rdx, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
leaq -0x187(%rip), %rcx      # 0xa4f4
movq %rcx, 0x18(%rax)
xorl %ecx, %ecx
movq %rcx, 0x20(%rax)
movq %r12, 0x28(%rax)
movq %rcx, 0x30(%rax)
movq (%r15), %rcx
movq 0x8(%rcx), %rcx
movq %r15, %rdi
jmp 0xa784
movl $0x60, %edi
callq 0x3160
movq %rax, %r15
movq %r13, %rdi
callq 0x8b0a
leaq 0x7ad0(%rip), %rax      # 0x12188
movq (%rax), %rcx
movq %rcx, (%r15)
incq %rcx
movq %rcx, (%rax)
xorps %xmm1, %xmm1
movups %xmm1, 0x8(%r15)
movq $0x0, 0x18(%r15)
leaq 0x7ac5(%rip), %rax      # 0x121a0
movq (%rax), %rax
testq %rax, %rax
je 0xa6ed
movq %r15, %rcx
addq $0x8, %rcx
movq %rax, (%rcx)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x20(%r15)
xorl %eax, %eax
movq %rax, 0x28(%r15)
movq %r12, 0x30(%r15)
movl $0x4, 0x38(%r15)
movsd %xmm0, 0x40(%r15)
movq %rax, 0x48(%r15)
movl $0x0, 0x50(%r15)
movq %rax, 0x58(%r15)
movq %r13, %rdi
movq %r15, %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x972a
movl $0x38, %edi
callq 0x3160
leaq 0x7a5b(%rip), %rcx      # 0x121a8
movq (%rcx), %rdx
movq %rdx, (%rax)
incq %rdx
movq %rdx, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
leaq -0x273(%rip), %rcx      # 0xa4f4
movq %rcx, 0x18(%rax)
xorl %ecx, %ecx
movq %rcx, 0x20(%rax)
movq %r12, 0x28(%rax)
movq %rcx, 0x30(%rax)
movq (%r13), %rcx
movq 0x48(%rcx), %rcx
movq %r13, %rdi
movq %r13, %rsi
movq %rax, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rcx
movq %rax, %r14
jmp 0xa7c7
movq %rax, %r14
jmp 0xa7c3
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa7c3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3170
movq %r13, (%rsp)
movl $0x48, %esi
movq (%rsp), %rdi
callq 0x3170
movq %r14, %rdi
callq 0x3280
nop