// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Json/json_value.cpp
// Function: Json::Value::resize(unsigned int)
void Value::resize(ArrayIndex newSize) {
  JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue,
                      "in Json::Value::resize(): requires arrayValue");
  if (type_ == nullValue)
    *this = Value(arrayValue);
  ArrayIndex oldSize = size();
  if (newSize == 0)
    clear();
  else if (newSize > oldSize)
    this->operator[](newSize - 1);
  else {
    for (ArrayIndex index = newSize; index < oldSize; ++index) {
      value_.map_->erase(index);
    }
    JSON_ASSERT(size() == newSize);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movl %esi, %r12d
movq %rdi, %r14
movzwl 0x8(%rdi), %ebx
testb %bl, %bl
je 0x147ae
movzbl %bl, %eax
cmpl $0x6, %eax
je 0x14826
leaq -0x1c8(%rbp), %rbx
movq %rbx, %rdi
callq 0x8860
leaq 0x5561e(%rip), %rsi     # 0x69da6
movl $0x2d, %edx
movq %rbx, %rdi
callq 0x8720
leaq -0x1c0(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0x89f0
leaq -0x50(%rbp), %rdi
callq 0x125d5
movl $0x30, %edi
callq 0x8640
leaq 0x8(%rax), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
xorl %ecx, %ecx
movq %rcx, 0x28(%rax)
movq (%r14), %rdx
movq %rax, (%r14)
leaq -0x1f0(%rbp), %rdi
movq %rdx, (%rdi)
movl %ebx, %eax
andl $0xfffffe00, %eax       # imm = 0xFFFFFE00
orl $0x6, %eax
movw %ax, 0x8(%r14)
andl $0x1ff, %ebx            # imm = 0x1FF
movw %bx, 0x8(%rdi)
movq 0x10(%r14), %rax
movq %rcx, 0x10(%r14)
movq %rax, 0x10(%rdi)
movq 0x18(%r14), %rax
movq %rcx, 0x18(%r14)
movq %rax, 0x18(%rdi)
movq 0x20(%r14), %rax
movq %rcx, 0x20(%r14)
movq %rax, 0x20(%rdi)
callq 0x1315e
movq %r14, %rdi
callq 0x145be
testl %r12d, %r12d
je 0x1485a
movl %eax, %r15d
cmpl %r12d, %eax
jae 0x14873
decl %r12d
movq %r14, %rdi
movl %r12d, %esi
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x149a6
movq %r14, %rdi
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x14678
movl %r12d, -0x2c(%rbp)
jbe 0x148d3
leaq -0x1c8(%rbp), %r12
movl -0x2c(%rbp), %ebx
movq (%r14), %r13
movq $0x0, -0x1c8(%rbp)
movl %ebx, -0x1c0(%rbp)
movq %r13, %rdi
movq %r12, %rsi
callq 0x170f6
movq %r13, %rdi
movq %rax, %rsi
callq 0x171c2
movq -0x1c8(%rbp), %rdi
testq %rdi, %rdi
je 0x148cc
movl -0x1c0(%rbp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x148cc
callq 0x87a0
incl %ebx
cmpl %ebx, %r15d
jne 0x14883
movq %r14, %rdi
callq 0x145be
cmpl -0x2c(%rbp), %eax
jne 0x148f2
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x1b8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x550a3(%rip), %rsi     # 0x699a7
leaq 0x550ae(%rip), %rdx     # 0x699b9
leaq -0x1c8(%rbp), %rdi
callq 0x1100a
leaq -0x1c8(%rbp), %rdi
callq 0x125d5
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1495a
callq 0x85d0
jmp 0x1495a
jmp 0x14957
movq %rax, %rbx
movq -0x1c8(%rbp), %rdi
cmpq %r14, %rdi
je 0x1499d
callq 0x85d0
jmp 0x1499d
movq %rax, %rbx
jmp 0x1499d
movq %rax, %rbx
movq 0x79667(%rip), %rsi     # 0x8dfc8
leaq -0x1c8(%rbp), %rdi
callq 0x8370
leaq -0x158(%rbp), %rdi
callq 0x8220
jmp 0x1499d
movq %rax, %rbx
movq -0x1c8(%rbp), %rdi
testq %rdi, %rdi
je 0x1499d
movl -0x1c0(%rbp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x1499d
callq 0x87a0
movq %rbx, %rdi
callq 0x8b30
nop