// File: /workspace/github_cpp_makefile_star2_O2/ncbi[P]amr/common.cpp
// Function: Common_sp::Json::Json(Common_sp::JsonContainer*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Json::Json (JsonContainer* parent,
            const string& name)
{ 
  ASSERT (parent);
  
  if (const JsonArray* jArray = parent->asJsonArray ())
  {
    ASSERT (name. empty ());  
    var_cast (jArray) -> data << this;
  }
  else if (const JsonMap* jMap = parent->asJsonMap ())
  {
    ASSERT (! name. empty ());  
    if (contains (jMap->data, name))
      throw runtime_error (FUNC "Duplicate name in JSON map: " + strQuote (name));
    var_cast (jMap) -> data [name] = this;
  }
  // throw() in a child constructor will invoke terminate() if an ancestor is JsonArray or JsonMap
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r14
leaq 0x526f7(%rip), %rax     # 0x829e8
movq %rax, (%rdi)
callq 0xb060
andl $0x0, (%rax)
testq %r12, %r12
je 0x3039a
movq %rax, %r15
movq (%r12), %rax
movq %r12, %rdi
callq *0x70(%rax)
testq %rax, %rax
je 0x30344
andl $0x0, (%r15)
cmpq $0x0, 0x8(%rbx)
jne 0x3046e
addq $0x8, %rax
movq %rax, %rdi
movq %r14, %rsi
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4a106
movq (%r12), %rax
movq %r12, %rdi
callq *0x78(%rax)
testq %rax, %rax
je 0x3038a
andl $0x0, (%r15)
cmpq $0x0, 0x8(%rbx)
je 0x30542
movq %rax, %r12
addq $0x8, %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3ce5d
testb %al, %al
jne 0x3061e
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3ce72
movq %r14, (%rax)
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0xb6c0
testl %eax, %eax
jne 0x30616
leaq 0x2b593(%rip), %rsi     # 0x5b941
leaq 0x90(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1b7b6
leaq 0xf0(%rsp), %rdi
movl $0xbe3, %esi            # imm = 0xBE3
callq 0x1caa3
leaq 0x10(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0xf0(%rsp), %rdx
callq 0x1ca3c
leaq 0x297f0(%rip), %rdx     # 0x59be3
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1b92d
leaq 0x2c889(%rip), %rsi     # 0x5cc92
leaq 0xb0(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x1b7b6
leaq 0x2b51c(%rip), %rdx     # 0x5b93e
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x1b92d
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0x1ca3c
leaq 0x2c874(%rip), %rdx     # 0x5ccc9
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x1b92d
leaq 0x70(%rsp), %rdi
callq 0x224fc
callq 0xb6c0
testl %eax, %eax
jne 0x30616
leaq 0x2b4bf(%rip), %rsi     # 0x5b941
leaq 0x90(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1b7b6
leaq 0xf0(%rsp), %rdi
movl $0xbe7, %esi            # imm = 0xBE7
callq 0x1caa3
leaq 0x10(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0xf0(%rsp), %rdx
callq 0x1ca3c
leaq 0x2971c(%rip), %rdx     # 0x59be3
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1b92d
leaq 0x2c7b5(%rip), %rsi     # 0x5cc92
leaq 0xb0(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x1b7b6
leaq 0x2b448(%rip), %rdx     # 0x5b93e
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x1b92d
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0x1ca3c
leaq 0x2c241(%rip), %rdx     # 0x5c76a
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x1b92d
leaq 0x70(%rsp), %rdi
callq 0x224fc
callq 0xb6c0
testl %eax, %eax
jne 0x30616
leaq 0x2b3eb(%rip), %rsi     # 0x5b941
leaq 0x90(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1b7b6
leaq 0xf0(%rsp), %rdi
movl $0xbec, %esi            # imm = 0xBEC
callq 0x1caa3
leaq 0x10(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0xf0(%rsp), %rdx
callq 0x1ca3c
leaq 0x29648(%rip), %rdx     # 0x59be3
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1b92d
leaq 0x2c6e1(%rip), %rsi     # 0x5cc92
leaq 0xb0(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x1b7b6
leaq 0x2b374(%rip), %rdx     # 0x5b93e
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x1b92d
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0x1ca3c
leaq 0x2c16b(%rip), %rdx     # 0x5c768
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x1b92d
leaq 0x70(%rsp), %rdi
callq 0x224fc
pushq $0x1
popq %rdi
callq 0xb6d0
pushq $0x10
popq %rdi
callq 0xb300
movq %rax, %r14
leaq 0x2c662(%rip), %rsi     # 0x5cc92
leaq 0x30(%rsp), %rdi
leaq 0x90(%rsp), %rdx
callq 0x1b7b6
leaq 0x2c687(%rip), %rdx     # 0x5ccd0
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x1b92d
leaq 0x10(%rsp), %rdi
pushq $0x22
popq %rdx
movq %rbx, %rsi
callq 0x243b1
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x1ca3c
movb $0x1, %bpl
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
callq 0xb940
xorl %ebp, %ebp
movq 0x53953(%rip), %rsi     # 0x83fe8
movq 0x538c4(%rip), %rdx     # 0x83f60
movq %r14, %rdi
callq 0xb9d0
jmp 0x306b0
jmp 0x306bf
jmp 0x306d2
jmp 0x306b0
jmp 0x306bf
jmp 0x306e8
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xbb68
jmp 0x306c2
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xbb68
jmp 0x306d5
jmp 0x306d2
jmp 0x3071f
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0xbb68
jmp 0x306eb
jmp 0x306e8
jmp 0x30744
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0xbb68
jmp 0x30722
jmp 0x3071f
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xbb68
jmp 0x30711
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x10(%rsp), %rdi
callq 0xbb68
jmp 0x30736
jmp 0x3076e
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xbb68
jmp 0x30747
jmp 0x30744
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x50(%rsp), %rdi
callq 0xbb68
jmp 0x3075b
jmp 0x3078f
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xbb68
jmp 0x30771
jmp 0x3076e
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x30(%rsp), %rdi
callq 0xbb68
testb %bpl, %bpl
jne 0x30785
jmp 0x307a6
jmp 0x307a3
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0xbb68
jmp 0x30792
jmp 0x3078f
movq %rax, %rbx
movq %r14, %rdi
callq 0xb470
jmp 0x307a6
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xbb68
jmp 0x307a6
jmp 0x307a3
movq %rax, %rbx
movq %rbx, %rdi
callq 0xba30