// File: /workspace/github_cpp_makefile_star2_O3/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 0x1e34
movq %rax, %rbx
testq %rax, %rax
je 0x1b33
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 0x1d7c
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x1e70
jmp 0x1d7c
leaq -0xb8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x14bf(%rip), %rsi      # 0x3004
leaq 0x14bf(%rip), %rdx      # 0x300b
leaq -0xc8(%rbp), %rdi
callq 0x2032
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x14a2(%rip), %rsi      # 0x300c
leaq 0x14be(%rip), %rdx      # 0x302f
leaq -0xa8(%rbp), %rdi
callq 0x2032
movq -0xc8(%rbp), %rcx
movq -0xc0(%rbp), %r8
movq -0xa0(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r14, %rcx
je 0x1ba7
movq -0xb8(%rbp), %rdi
movq -0xa8(%rbp), %rsi
cmpq %rdi, %rax
jbe 0x1bc9
movl $0xf, %edi
cmpq %r15, %rsi
je 0x1bc4
movq -0x98(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x1bd7
leaq -0xc8(%rbp), %rdi
callq 0x1040
jmp 0x1be7
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 0x1c08
movq %rsi, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x1c0e
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 0x13f6(%rip), %rsi      # 0x3030
leaq 0x13f3(%rip), %rdx      # 0x3034
leaq -0x88(%rbp), %rdi
callq 0x2032
leaq -0x38(%rbp), %r13
movq -0x10(%r13), %rcx
movq -0x8(%r13), %r8
movq -0x80(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x1c6f
movq -0x38(%rbp), %rdi
movq -0x88(%rbp), %rsi
cmpq %rdi, %rax
jbe 0x1c8e
movl $0xf, %edi
cmpq %r12, %rsi
je 0x1c89
movq -0x78(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x1c99
leaq -0x48(%rbp), %rdi
callq 0x1040
jmp 0x1ca9
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 0x1cca
movq %rsi, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x1cd0
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 0x32f5(%rip), %rdi      # 0x4ff0
callq 0x1100
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d19
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x10e0
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x1d31
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x10e0
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x1d46
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x10e0
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x1d61
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x10e0
movq -0xc8(%rbp), %rdi
cmpq %r14, %rdi
je 0x1d7c
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 0x1db5
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x10e0
jmp 0x1db5
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x1dd2
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x10e0
jmp 0x1dd2
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1df0
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x10e0
jmp 0x1df0
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x1e10
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x10e0
jmp 0x1e10
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e2b
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x10e0
movq %rbx, %rdi
callq 0x1160
nop