// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/RNBasics/json.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)[newSize - 1];
  else {
    for (ArrayIndex index = newSize; index < oldSize; ++index) {
      value_.map_->erase(index);
    }
    assert(size() == newSize);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movl %esi, %ebx
movq %rdi, %r14
movzwl 0x8(%rdi), %ebp
testb %bpl, %bpl
je 0x8364a
movzbl %bpl, %eax
cmpl $0x6, %eax
je 0x83711
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x11800
leaq 0x3e176(%rip), %rsi     # 0xc179a
movl $0x2d, %edx
movq %rbx, %rdi
callq 0x116d0
leaq 0x30(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x11990
leaq 0x8(%rsp), %rdi
callq 0x81bd3
movzbl %bpl, %eax
movl %eax, 0x4(%rsp)
movl $0xfffffe00, %r12d      # imm = 0xFFFFFE00
leaq 0x1a0(%rsp), %r15
andl 0x8(%r15), %r12d
leal 0x6(%r12), %eax
movw %ax, 0x8(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r15)
xorl %r13d, %r13d
movq %r13, 0x20(%r15)
movl $0x30, %edi
callq 0x115b0
leaq 0x8(%rax), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %r13, 0x28(%rax)
movq %rax, (%r15)
movl %ebp, %eax
andl $0xffffff00, %eax       # imm = 0xFFFFFF00
orl $0x6, %eax
movw %ax, 0x8(%r14)
addl 0x4(%rsp), %r12d
movw %r12w, 0x8(%r15)
movq (%r14), %rcx
movq (%r15), %rdx
movq %rdx, (%r14)
movq %rcx, (%r15)
andl $0xfe06, %eax           # imm = 0xFE06
movw %ax, 0x8(%r14)
andl $0x100, %ebp            # imm = 0x100
orl %r12d, %ebp
movw %bp, 0x8(%r15)
movq 0x10(%r14), %rax
movq 0x10(%r15), %rcx
movq %rcx, 0x10(%r14)
movq %rax, 0x10(%r15)
movups 0x18(%r14), %xmm0
movups 0x18(%r15), %xmm1
movups %xmm1, 0x18(%r14)
movups %xmm0, 0x18(%r15)
movq %r15, %rdi
callq 0x82500
movq %r14, %rdi
callq 0x80e7c
testl %ebx, %ebx
je 0x83740
movl %eax, %ebp
cmpl %ebx, %eax
jae 0x83759
decl %ebx
movq %r14, %rdi
movl %ebx, %esi
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x83824
movq %r14, %rdi
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x83518
jbe 0x837a7
leaq 0x28(%rsp), %r15
movq (%r14), %r12
movq $0x0, 0x28(%rsp)
movl %ebx, 0x30(%rsp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x8c304
movq %r12, %rdi
movq %rax, %rsi
callq 0x8c3c0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x837a1
movl 0x30(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x837a1
callq 0x11720
incl %ebx
cmpl %ebx, %ebp
jne 0x83760
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x837de
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x837de
jmp 0x837db
movq %rax, %rbx
movq 0x827bb(%rip), %rsi     # 0x105fa0
leaq 0x28(%rsp), %rdi
callq 0x112f0
leaq 0x98(%rsp), %rdi
callq 0x111f0
jmp 0x8381c
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x8381c
movl 0x30(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x8381c
callq 0x11720
movq %rbx, %rdi
callq 0x11a70