// File: zeeev[P]DASVC/bamtools/src/third_party/jsoncpp/json_reader.cpp
// Function: Json::Reader::decodeUnicodeEscapeSequence(Json::Reader::Token&, char const*&, char const*, unsigned int&)
bool 
Reader::decodeUnicodeEscapeSequence( Token &token, 
                                     Location &current, 
                                     Location end, 
                                     unsigned int &unicode )
{
   if ( end - current < 4 )
      return addError( "Bad unicode escape sequence in string: four digits expected.", token, current );
   unicode = 0;
   for ( int index =0; index < 4; ++index )
   {
      Char c = *current++;
      unicode *= 16;
      if ( c >= '0'  &&  c <= '9' )
         unicode += c - '0';
      else if ( c >= 'a'  &&  c <= 'f' )
         unicode += c - 'a' + 10;
      else if ( c >= 'A'  &&  c <= 'F' )
         unicode += c - 'A' + 10;
      else
         return addError( "Bad unicode escape sequence in string: hexadecimal digit expected.", token, current );
   }
   return true;
}

// Assembly:
subq $0xc8, %rsp
movq %rdi, 0xb8(%rsp)
movq %rsi, 0xb0(%rsp)
movq %rdx, 0xa8(%rsp)
movq %rcx, 0xa0(%rsp)
movq %r8, 0x98(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xa0(%rsp), %rax
movq 0xa8(%rsp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
cmpq $0x4, %rax
jge 0x119c5e
leaq 0x77(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x86da0
movq 0x20(%rsp), %rdx
leaq 0x1aca3(%rip), %rsi     # 0x13486a
leaq 0x78(%rsp), %rdi
callq 0x86a00
jmp 0x119bd3
movq 0x28(%rsp), %rdi
movq 0xb0(%rsp), %rdx
movq 0xa8(%rsp), %rax
movq (%rax), %rcx
leaq 0x78(%rsp), %rsi
callq 0x116e50
movb %al, 0x1f(%rsp)
jmp 0x119bfb
movb 0x1f(%rsp), %al
andb $0x1, %al
movb %al, 0xc7(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x86f68
jmp 0x119c14
leaq 0x77(%rsp), %rdi
callq 0x867b0
jmp 0x119e00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
jmp 0x119c4f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x86f68
jmp 0x119c4d
jmp 0x119c4f
leaq 0x77(%rsp), %rdi
callq 0x867b0
jmp 0x119e11
movq 0x98(%rsp), %rax
movl $0x0, (%rax)
movl $0x0, 0x60(%rsp)
cmpl $0x4, 0x60(%rsp)
jge 0x119df8
movq 0xa8(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movb (%rax), %al
movb %al, 0x5f(%rsp)
movq 0x98(%rsp), %rax
movl (%rax), %ecx
shll $0x4, %ecx
movl %ecx, (%rax)
movsbl 0x5f(%rsp), %eax
cmpl $0x30, %eax
jl 0x119cd6
movsbl 0x5f(%rsp), %eax
cmpl $0x39, %eax
jg 0x119cd6
movsbl 0x5f(%rsp), %ecx
subl $0x30, %ecx
movq 0x98(%rsp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
jmp 0x119de6
movsbl 0x5f(%rsp), %eax
cmpl $0x61, %eax
jl 0x119d06
movsbl 0x5f(%rsp), %eax
cmpl $0x66, %eax
jg 0x119d06
movsbl 0x5f(%rsp), %ecx
subl $0x61, %ecx
addl $0xa, %ecx
movq 0x98(%rsp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
jmp 0x119de4
movsbl 0x5f(%rsp), %eax
cmpl $0x41, %eax
jl 0x119d36
movsbl 0x5f(%rsp), %eax
cmpl $0x46, %eax
jg 0x119d36
movsbl 0x5f(%rsp), %ecx
subl $0x41, %ecx
addl $0xa, %ecx
movq 0x98(%rsp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
jmp 0x119de2
leaq 0x37(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x86da0
movq 0x10(%rsp), %rdx
leaq 0x1ab56(%rip), %rsi     # 0x1348a7
leaq 0x38(%rsp), %rdi
callq 0x86a00
jmp 0x119d5d
movq 0x28(%rsp), %rdi
movq 0xb0(%rsp), %rdx
movq 0xa8(%rsp), %rax
movq (%rax), %rcx
leaq 0x38(%rsp), %rsi
callq 0x116e50
movb %al, 0xf(%rsp)
jmp 0x119d85
movb 0xf(%rsp), %al
andb $0x1, %al
movb %al, 0xc7(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x86f68
jmp 0x119d9e
leaq 0x37(%rsp), %rdi
callq 0x867b0
jmp 0x119e00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
jmp 0x119dd6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x86f68
jmp 0x119dd4
jmp 0x119dd6
leaq 0x37(%rsp), %rdi
callq 0x867b0
jmp 0x119e11
jmp 0x119de4
jmp 0x119de6
jmp 0x119de8
movl 0x60(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x60(%rsp)
jmp 0x119c74
movb $0x1, 0xc7(%rsp)
movb 0xc7(%rsp), %al
andb $0x1, %al
addq $0xc8, %rsp
retq
movq 0x68(%rsp), %rdi
callq 0x86d80
movq %rax, %rdi
callq 0x91290
nopw %cs:(%rax,%rax)