// File: kiudee[P]VAHD-Projekt/Node.cpp
// Function: Node::ConnectChild(IdObj*)
Action Node::ConnectChild(IdObj *ido)
{
    if (ido->num == num / 2) {
        node0 = new NodeRelay(ido);
        NumObj *numo0 = new NumObj(5);
        node0->out->call(Node::Wakeup, numo0); //WAAAAAAAAAAAAAAAAAH!!!!!!!!!!!!
    } else {
        node1 = new NodeRelay(ido);
        NumObj *numo1 = new NumObj(5);
        node1->out->call(Node::Wakeup, numo1); //HOW WE COULD FORGET THAT???
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rcx
movsd 0x20(%rcx), %xmm0
movsd 0xb0(%rax), %xmm1
movsd 0x80fc(%rip), %xmm2     # 0x17410
divsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jne 0xf43f
jp 0xf43f
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rsi
callq 0x57f0
jmp 0xf347
movq -0x58(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, 0xd8(%rax)
movl $0x28, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x68(%rbp)
movl $0x5, %esi
callq 0x5a90
jmp 0xf376
movq -0x58(%rbp), %rax
movq -0x68(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movq 0xd8(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x78(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x70(%rbp)
leaq 0x1d4(%rip), %rax       # 0xf580
movq %rax, -0x38(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
leaq -0x28(%rbp), %rcx
callq 0x5ae0
jmp 0xf3cb
movq -0x70(%rbp), %rdx
movq -0x58(%rbp), %rsi
movq -0x78(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0xf562
movq -0x60(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0xf56b
movq -0x68(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x28, %esi
callq 0x31d0
jmp 0xf56b
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0xf56b
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rsi
callq 0x57f0
jmp 0xf45e
movq -0x58(%rbp), %rax
movq -0x80(%rbp), %rcx
movq %rcx, 0xe0(%rax)
movl $0x28, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x88(%rbp)
movl $0x5, %esi
callq 0x5a90
jmp 0xf490
movq -0x58(%rbp), %rax
movq -0x88(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movq 0xe0(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x98(%rbp)
movl $0x38, %edi
callq 0x31c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x90(%rbp)
leaq 0xb1(%rip), %rax        # 0xf580
movq %rax, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
leaq -0x40(%rbp), %rcx
callq 0x5ae0
jmp 0xf4ee
movq -0x90(%rbp), %rdx
movq -0x58(%rbp), %rsi
movq -0x98(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0xf562
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0xf56b
movq -0x88(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x28, %esi
callq 0x31d0
jmp 0xf56b
movq -0x90(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x38, %esi
callq 0x31d0
jmp 0xf56b
addq $0xa0, %rsp
popq %rbp
retq
movq -0x18(%rbp), %rdi
callq 0x3330
nopw %cs:(%rax,%rax)