// File: /workspace/github_cpp_makefile_star2_O1/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 0x84975
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r14
leaq 0x18(%rsp), %rsi
movq $0x0, (%rsi)
movl %ebp, 0x8(%rsi)
movq (%rdi), %rdi
callq 0x8c73c
movq (%r14), %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
setne %bl
je 0x84958
movl %ebx, 0x14(%rsp)
addq $0x30, %rax
leaq 0x50(%rsp), %rdi
movq %rax, %rsi
callq 0x82336
movzwl 0x8(%r15), %eax
movl $0xff, %r8d
movl %eax, %ecx
andl %r8d, %ecx
leaq 0x50(%rsp), %rdi
movzwl 0x8(%rdi), %edx
movl %edx, %esi
andl %r8d, %esi
movl $0xff00, %r13d          # imm = 0xFF00
movl %eax, %r8d
andl %r13d, %r8d
orl %esi, %r8d
movw %r8w, 0x8(%r15)
movl %edx, %esi
andl %r13d, %esi
orl %ecx, %esi
movw %si, 0x8(%rdi)
movq (%r15), %rcx
movq (%rdi), %r9
movq %r9, (%r15)
movq %rcx, (%rdi)
movl $0x100, %ebx            # imm = 0x100
andl %ebx, %edx
andl $0xfeff, %r8d           # imm = 0xFEFF
orl %edx, %r8d
movw %r8w, 0x8(%r15)
andl %ebx, %eax
andl $0xfffffeff, %esi       # imm = 0xFFFFFEFF
orl %eax, %esi
movw %si, 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 0x82500
movq %r14, %rdi
callq 0x80e7c
movl %eax, %r15d
decl %r15d
cmpl %ebp, %r15d
jbe 0x84919
leaq 0x28(%rsp), %r12
movq $0x0, (%rsp)
movl %ebp, 0x8(%rsp)
incl %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x83824
movq %r12, %rdi
movq %rax, %rsi
callq 0x82336
movq (%r14), %rdi
movq %rsp, %rsi
callq 0x89e0c
movzwl 0x8(%rax), %ecx
movl %ecx, %edx
movl $0xff, %r8d
andl %r8d, %edx
movzwl 0x30(%rsp), %esi
movl %esi, %edi
andl %r8d, %edi
movl %ecx, %r8d
andl %r13d, %r8d
orl %edi, %r8d
movw %r8w, 0x8(%rax)
movl %esi, %edi
andl %r13d, %edi
orl %edx, %edi
movw %di, 0x30(%rsp)
movq (%rax), %rdx
movq 0x28(%rsp), %r9
movq %r9, (%rax)
movq %rdx, 0x28(%rsp)
andl %ebx, %esi
andl $0xfeff, %r8d           # imm = 0xFEFF
orl %esi, %r8d
movw %r8w, 0x8(%rax)
andl %ebx, %ecx
andl $0xfffffeff, %edi       # imm = 0xFFFFFEFF
orl %ecx, %edi
movw %di, 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 0x82500
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x84910
movl 0x8(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x84910
callq 0x11720
cmpl %ebp, %r15d
jne 0x84839
movq %rsp, %rsi
movq $0x0, (%rsi)
movl %r15d, 0x8(%rsi)
movq (%r14), %rdi
callq 0x8c73c
movq (%r14), %rdi
movq %rax, %rsi
callq 0x8c426
movq (%rsp), %rdi
testq %rdi, %rdi
movl 0x14(%rsp), %ebx
je 0x84958
movl 0x8(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x84958
callq 0x11720
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x84977
movl 0x20(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x84977
callq 0x11720
jmp 0x84977
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8499e
movq %rax, %rbx
jmp 0x849bb
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x82500
jmp 0x849a1
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x849bb
movl 0x8(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x849bb
callq 0x11720
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x849d6
movl 0x20(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x849d6
callq 0x11720
movq %rbx, %rdi
callq 0x11a70