// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNBasics/json.cpp
// Function: Json::Value::removeIndex(unsigned int, Json::Value*)
bool Value::removeIndex(ArrayIndex index, Value* removed) {
  if (type_ != arrayValue) {
    return false;
  }
  CZString key(index);
  ObjectValues::iterator it = value_.map_->find(key);
  if (it == value_.map_->end()) {
    return false;
  }
  *removed = it->second;
  ArrayIndex oldSize = size();
  // shift left all items left, into the place of the "removed"
  for (ArrayIndex i = index; i < (oldSize - 1); ++i){
    CZString keey(i);
    (*value_.map_)[keey] = (*this)[i + 1];
  }
  // erase the last one ("leftover")
  CZString keyLast(oldSize - 1);
  ObjectValues::iterator itLast = value_.map_->find(keyLast);
  value_.map_->erase(itLast);
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
cmpb $0x6, 0x8(%rdi)
jne 0x8297d
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r14
leaq 0x18(%rsp), %rsi
movq $0x0, (%rsi)
movl %ebp, 0x8(%rsi)
movq (%rdi), %rdi
callq 0x8a540
movq (%r14), %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
setne %bl
je 0x82960
movl %ebx, 0x14(%rsp)
addq $0x30, %rax
leaq 0x50(%rsp), %rdi
movq %rax, %rsi
callq 0x8056c
movzwl 0x8(%r15), %eax
leaq 0x50(%rsp), %rdi
movzwl 0x8(%rdi), %ecx
movl $0xfe00, %ebx           # imm = 0xFE00
movl %eax, %edx
andl %ebx, %edx
movl %ecx, %esi
andl %ebx, %esi
movq (%r15), %r8
movq (%rdi), %r9
movq %r9, (%r15)
movq %r8, (%rdi)
movl $0x1ff, %r13d           # imm = 0x1FF
andl %r13d, %ecx
orl %edx, %ecx
movw %cx, 0x8(%r15)
andl %r13d, %eax
orl %esi, %eax
movw %ax, 0x8(%rdi)
movq 0x10(%r15), %rax
movq 0x10(%rdi), %rcx
movq %rcx, 0x10(%r15)
movq %rax, 0x10(%rdi)
movups 0x18(%rdi), %xmm0
movups 0x18(%r15), %xmm1
movups %xmm0, 0x18(%r15)
movups %xmm1, 0x18(%rdi)
callq 0x80736
movq %r14, %rdi
callq 0x7f26c
movl %eax, %r15d
decl %r15d
cmpl %ebp, %r15d
jbe 0x82921
leaq 0x28(%rsp), %r12
movq $0x0, (%rsp)
movl %ebp, 0x8(%rsp)
incl %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x819ea
movq %r12, %rdi
movq %rax, %rsi
callq 0x8056c
movq (%r14), %rdi
movq %rsp, %rsi
callq 0x87c1e
movzwl 0x8(%rax), %ecx
movzwl 0x30(%rsp), %edx
movl %ecx, %esi
andl %ebx, %esi
movl %edx, %edi
andl %ebx, %edi
movq (%rax), %r8
movq 0x28(%rsp), %r9
movq %r9, (%rax)
movq %r8, 0x28(%rsp)
andl %r13d, %edx
orl %esi, %edx
movw %dx, 0x8(%rax)
andl %r13d, %ecx
orl %edi, %ecx
movw %cx, 0x30(%rsp)
movq 0x10(%rax), %rcx
movq 0x38(%rsp), %rdx
movq %rdx, 0x10(%rax)
movq %rcx, 0x38(%rsp)
movups 0x40(%rsp), %xmm0
movups 0x18(%rax), %xmm1
movups %xmm0, 0x18(%rax)
movups %xmm1, 0x40(%rsp)
movq %r12, %rdi
callq 0x80736
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x82918
movl 0x8(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x82918
callq 0x11710
cmpl %ebp, %r15d
jne 0x82870
movq %rsp, %rsi
movq $0x0, (%rsi)
movl %r15d, 0x8(%rsi)
movq (%r14), %rdi
callq 0x8a540
movq (%r14), %rdi
movq %rax, %rsi
callq 0x8a228
movq (%rsp), %rdi
testq %rdi, %rdi
movl 0x14(%rsp), %ebx
je 0x82960
movl 0x8(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x82960
callq 0x11710
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x8297f
movl 0x20(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x8297f
callq 0x11710
jmp 0x8297f
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x829a6
movq %rax, %rbx
jmp 0x829c3
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x80736
jmp 0x829a9
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x829c3
movl 0x8(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x829c3
callq 0x11710
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x829de
movl 0x20(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x829de
callq 0x11710
movq %rbx, %rdi
callq 0x11a60