// File: 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
subq $0x250, %rsp            # imm = 0x250
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x228(%rbp)
movw 0x8(%rax), %ax
andw $0xff, %ax
movzwl %ax, %eax
cmpl $0x0, %eax
je 0x21e6a
movq -0x228(%rbp), %rax
movw 0x8(%rax), %ax
andw $0xff, %ax
movzwl %ax, %eax
cmpl $0x6, %eax
je 0x21e6a
leaq -0x188(%rbp), %rdi
movq %rdi, -0x230(%rbp)
callq 0x9a00
movq -0x230(%rbp), %rdi
leaq 0x9a4c9(%rip), %rsi     # 0xbc2c6
callq 0x9760
jmp 0x21e04
leaq -0x1b8(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x9790
jmp 0x21e19
leaq -0x1b8(%rbp), %rdi
callq 0x1ddc0
jmp 0x21e27
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x21e59
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0x9480
leaq -0x188(%rbp), %rdi
callq 0x91d0
jmp 0x2205b
movq -0x228(%rbp), %rax
movw 0x8(%rax), %ax
andw $0xff, %ax
movzwl %ax, %eax
cmpl $0x0, %eax
jne 0x21edf
leaq -0x1e0(%rbp), %rdi
movq %rdi, -0x238(%rbp)
movl $0x6, %esi
callq 0x1e5c0
movq -0x228(%rbp), %rdi
movq -0x238(%rbp), %rsi
callq 0x1f1b0
jmp 0x21eae
leaq -0x1e0(%rbp), %rdi
callq 0x1f050
jmp 0x21edf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x1e0(%rbp), %rdi
callq 0x1f050
jmp 0x2205b
movq -0x228(%rbp), %rdi
callq 0x21a60
movl %eax, -0x1e4(%rbp)
cmpl $0x0, -0xc(%rbp)
jne 0x21f08
movq -0x228(%rbp), %rdi
callq 0x21c50
jmp 0x22052
movl -0xc(%rbp), %eax
cmpl -0x1e4(%rbp), %eax
jbe 0x21f2a
movq -0x228(%rbp), %rdi
movl -0xc(%rbp), %esi
subl $0x1, %esi
callq 0x22070
jmp 0x22050
movl -0xc(%rbp), %eax
movl %eax, -0x1e8(%rbp)
movl -0x1e8(%rbp), %eax
cmpl -0x1e4(%rbp), %eax
jae 0x21fc0
movq -0x228(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x248(%rbp)
movl -0x1e8(%rbp), %esi
leaq -0x1f8(%rbp), %rdi
movq %rdi, -0x240(%rbp)
callq 0x1e0f0
movq -0x248(%rbp), %rdi
movq -0x240(%rbp), %rsi
callq 0x258b0
jmp 0x21f80
leaq -0x1f8(%rbp), %rdi
callq 0x1e280
movl -0x1e8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1e8(%rbp)
jmp 0x21f33
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x1f8(%rbp), %rdi
callq 0x1e280
jmp 0x2205b
movq -0x228(%rbp), %rdi
callq 0x21a60
cmpl -0xc(%rbp), %eax
je 0x2204e
leaq -0x219(%rbp), %rdi
movq %rdi, -0x250(%rbp)
callq 0x9d30
movq -0x250(%rbp), %rdx
leaq 0x99ed5(%rip), %rsi     # 0xbbec7
leaq -0x218(%rbp), %rdi
callq 0x9a30
jmp 0x22000
leaq -0x218(%rbp), %rdi
callq 0x1ddc0
jmp 0x2200e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x22040
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x218(%rbp), %rdi
callq 0x9480
leaq -0x219(%rbp), %rdi
callq 0x97e0
jmp 0x2205b
jmp 0x22050
jmp 0x22052
addq $0x250, %rsp            # imm = 0x250
popq %rbp
retq
movq -0x190(%rbp), %rdi
callq 0x9d20
nopw (%rax,%rax)