// File: /workspace/github_cpp_makefile_star2_O1/DRSY[P]MyRBTree/main.cpp
// Function: RBTree::_insert(Node*, int)
bool _insert(NodePtr_t root, int value) {
      auto [father, pptr] = findInsertion(root, value);
      if(!father) {
        std::cerr << red("inserted value already in the tree\n");
        return false;
      }
      NodePtr_t new_node = new Node_t(value);
      new_node->color = Color::red;
      new_node->father = father;
      (*pptr) = new_node;
      // father node is black
      if(isblack(father)) {
          return true;
      }
      else {
          ascend_fatherIsRed(new_node, father);
          return true;
      }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %edx, %r15d
movq %rdi, %r14
callq 0x1e44
movq %rax, %rbx
testq %rax, %rax
je 0x1b3b
movq %rdx, %r12
movl $0x20, %edi
callq 0x10d0
movl %r15d, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rax)
movups %xmm0, 0x10(%rax)
movq %rbx, 0x8(%rax)
movq %rax, (%r12)
cmpl $0x1, 0x4(%rbx)
je 0x1d8c
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x1e8e
jmp 0x1d8c
leaq -0xb8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x14b7(%rip), %rsi      # 0x3004
leaq 0x14b7(%rip), %rdx      # 0x300b
leaq -0xc8(%rbp), %rdi
callq 0x207a
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x149a(%rip), %rsi      # 0x300c
leaq 0x14b6(%rip), %rdx      # 0x302f
leaq -0xa8(%rbp), %rdi
callq 0x207a
movq -0xc8(%rbp), %rcx
movq -0xc0(%rbp), %r8
movq -0xa0(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r14, %rcx
je 0x1baf
movq -0xb8(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x1bce
movl $0xf, %esi
cmpq %r15, -0xa8(%rbp)
je 0x1bc9
movq -0x98(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x1be3
movq -0xa8(%rbp), %rsi
leaq -0xc8(%rbp), %rdi
callq 0x1040
jmp 0x1bf3
leaq -0xa8(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10f0
leaq -0x38(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x1c14
movq %rsi, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x1c1a
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq -0x78(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x13ea(%rip), %rsi      # 0x3030
leaq 0x13e7(%rip), %rdx      # 0x3034
leaq -0x88(%rbp), %rdi
callq 0x207a
leaq -0x38(%rbp), %r13
movq -0x10(%r13), %rcx
movq -0x8(%r13), %r8
movq -0x80(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0x1c7b
movq -0x38(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x1c97
movl $0xf, %esi
cmpq %r12, -0x88(%rbp)
je 0x1c92
movq -0x78(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x1ca9
movq -0x88(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x1040
jmp 0x1cb9
leaq -0x88(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10f0
leaq -0x58(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x1cda
movq %rsi, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x1ce0
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x60(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq 0x32e5(%rip), %rdi      # 0x4ff0
callq 0x1100
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d29
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x10e0
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x1d41
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x10e0
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x1d56
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x10e0
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x1d71
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x10e0
movq -0xc8(%rbp), %rdi
cmpq %r14, %rdi
je 0x1d8c
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x10e0
testq %rbx, %rbx
setne %al
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1dc5
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x10e0
jmp 0x1dc5
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x1de2
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x10e0
jmp 0x1de2
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e00
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x10e0
jmp 0x1e00
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x1e20
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x10e0
jmp 0x1e20
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e3b
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x10e0
movq %rbx, %rdi
callq 0x1160
nop