// File: /workspace/github_cpp_makefile_star2_O2/AutomataLab[P]JSONSki/src/QueryProcessor.cpp
// Function: QueryProcessor::goToPrimElem(long&, bitmap&)
__attribute__((always_inline)) int QueryProcessor::goToPrimElem(long& pos, bitmap& bm) {
    do {
        int element_type = getElementType(pos);
        switch (element_type) {
            case PRIMITIVE:
                return SUCCESS;
            case OBJECT:
                goOverObj(pos, bm);
                break;
            case ARRAY:
                goOverAry(pos, bm);
        }
    } while (hasMoreElements(pos));
    return ARRAY_END;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r8
movq 0x2c8(%rdi), %r11
leaq 0x30(%rdx), %rax
movq %rax, -0x8(%rsp)
movq (%rsi), %rax
vpcmpeqd %xmm0, %xmm0, %xmm0
movabsq $0x100002400, %r12      # imm = 0x100002400
movzbl (%r11,%rax), %ecx
cmpl $0x7b, %ecx
je 0x1d50e
cmpl $0x5b, %ecx
je 0x1d1fc
cmpl $0x20, %ecx
jne 0x1d8ab
incq %rax
movq %rax, (%rsi)
jmp 0x1d1d8
cqto
movabsq $0x40, %rcx
idivq %rcx
movq %rax, %r9
movl $0x0, -0x2c(%rsp)
movl $0x1, %r15d
leaq (%r9,%r9), %rax
movq %rax, -0x10(%rsp)
movq %r9, %rax
shlq $0x6, %rax
movq %rax, -0x18(%rsp)
leaq 0x1(,%r9,2), %rax
movq %rax, -0x20(%rsp)
shlq $0x5, %rax
movq %rax, -0x28(%rsp)
xorl %eax, %eax
movl %r15d, %ebp
movq 0x2e0(%rdi), %rcx
cmpq %rcx, %r9
jge 0x1d253
cmpq 0x270(%rdi), %r9
jle 0x1d376
movq -0x8(%rsp), %rcx
andw $0x0, 0x4(%rcx)
andl $0x0, (%rcx)
movq -0x10(%rsp), %rcx
movq %rcx, 0x88(%rdi)
movq %r9, 0x270(%rdi)
movq -0x18(%rsp), %rcx
vmovdqu (%r11,%rcx), %ymm1
vmovdqa %ymm1, 0xa0(%rdi)
vmovdqa 0x140(%rdi), %ymm2
vmovdqa 0x180(%rdi), %ymm3
vpcmpeqb %ymm1, %ymm2, %ymm4
vpmovmskb %ymm4, %ebx
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %r15d
movq -0x20(%rsp), %rcx
movq %rcx, 0x88(%rdi)
movq -0x28(%rsp), %rcx
vmovdqu (%r11,%rcx), %ymm1
vmovdqa %ymm1, 0xc0(%rdi)
vpcmpeqb %ymm1, %ymm2, %ymm2
vpmovmskb %ymm2, %ecx
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %edx
shlq $0x20, %rcx
orq %rbx, %rcx
shlq $0x20, %rdx
orq %r15, %rdx
leaq (%rdx,%rdx), %rbx
notq %rbx
andq %rdx, %rbx
movq 0x250(%rdi), %r13
movq 0x240(%rdi), %r10
movq %r10, %r15
xorq %r13, %r15
movq %rbx, %r14
andq %r15, %r14
notq %r15
andq %rbx, %r15
addq %rdx, %r14
xorl %ebx, %ebx
addq %rdx, %r15
setb %bl
movq %rbx, 0x240(%rdi)
andq 0x258(%rdi), %r14
orq %r10, %r15
andq %r13, %r15
orq %r14, %r15
notq %r15
orq %rdx, %r15
andq %rcx, %r15
movq %r15, 0xe0(%rdi)
vmovq %r15, %xmm1
vpclmulqdq $0x0, %xmm0, %xmm1, %xmm1
vmovq %xmm1, %rcx
xorq 0x248(%rdi), %rcx
movq %rcx, (%rdi)
sarq $0x3f, %rcx
movq %rcx, 0x248(%rdi)
cmpb $0x0, 0x34(%r8)
jne 0x1d3b6
vmovdqa 0x200(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %ecx
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %edx
shlq $0x20, %rdx
orq %rcx, %rdx
movq (%rdi), %rcx
notq %rcx
andq %rdx, %rcx
movq %rcx, 0x20(%r8)
movb $0x1, 0x34(%r8)
testb $0x1, %al
jne 0x1d3dd
testb $0x1, -0x2c(%rsp)
je 0x1d40d
movq 0x20(%r8), %rax
movq %rax, %rdx
negq %rdx
setb %cl
andq %rax, %rdx
leaq -0x1(%rdx), %r15
orq %rdx, %r15
jmp 0x1d487
movq 0x20(%r8), %r10
movq %r10, %rdx
negq %rdx
andq %r10, %rdx
leaq -0x1(%r10), %rcx
andq %r10, %rcx
movq %rcx, 0x20(%r8)
je 0x1d460
movq %rcx, %r10
negq %r10
andq %rcx, %r10
movq %r10, %r15
subq %rdx, %r15
orq %r10, %r15
movb $0x1, %cl
jmp 0x1d489
movq (%rsi), %rax
cqto
movabsq $0x40, %rcx
idivq %rcx
movq %rdx, %rcx
movabsq $0x1, %rdx
shlq %cl, %rdx
movq %rdx, %r15
negq %r15
movq %r15, %rax
btcq %rcx, %rax
movq 0x20(%r8), %r13
andq %rax, %r13
movq %r13, 0x20(%r8)
setne %cl
je 0x1d477
movq %r13, %r10
negq %r10
andq %r13, %r10
movq %r10, %r15
subq %rdx, %r15
orq %r10, %r15
jmp 0x1d484
negq %rdx
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
orq %rcx, %rdx
xorl %ecx, %ecx
movq %rdx, %r15
jmp 0x1d489
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
orq %rdx, %r15
andq %rax, %r15
movb $0x1, %al
cmpb $0x0, 0x35(%r8)
je 0x1d496
movq 0x28(%r8), %rdx
jmp 0x1d4cf
vmovdqa 0x220(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %edx
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r10d
shlq $0x20, %r10
orq %rdx, %r10
movq (%rdi), %rdx
notq %rdx
andq %r10, %rdx
movq %rdx, 0x28(%r8)
movb $0x1, 0x35(%r8)
andq %r15, %rdx
popcntq %rdx, %r13
movl %ebp, %r15d
subl %r13d, %r15d
jle 0x1d504
testb %cl, %cl
je 0x1d4ed
subl %r13d, %ebp
incl %ebp
jmp 0x1d24c
incq %r9
movb $0x1, %al
movl %eax, -0x2c(%rsp)
jmp 0x1d21c
leaq -0x1(%rdx), %rax
andq %rax, %rdx
decl %ebp
cmpl $0x2, %ebp
jge 0x1d4fb
jmp 0x1d81d
cqto
movabsq $0x40, %rcx
idivq %rcx
movq %rax, %r9
movl $0x0, -0x2c(%rsp)
movl $0x1, %r15d
leaq (%r9,%r9), %rax
movq %rax, -0x10(%rsp)
movq %r9, %rax
shlq $0x6, %rax
movq %rax, -0x18(%rsp)
leaq 0x1(,%r9,2), %rax
movq %rax, -0x20(%rsp)
shlq $0x5, %rax
movq %rax, -0x28(%rsp)
xorl %eax, %eax
movl %r15d, %ebp
movq 0x2e0(%rdi), %rcx
cmpq %rcx, %r9
jge 0x1d565
cmpq 0x270(%rdi), %r9
jle 0x1d68a
movq -0x8(%rsp), %rcx
andw $0x0, 0x4(%rcx)
andl $0x0, (%rcx)
movq -0x10(%rsp), %rcx
movq %rcx, 0x88(%rdi)
movq %r9, 0x270(%rdi)
movq -0x18(%rsp), %rcx
vmovdqu (%r11,%rcx), %ymm1
vmovdqa %ymm1, 0xa0(%rdi)
vmovdqa 0x140(%rdi), %ymm2
vmovdqa 0x180(%rdi), %ymm3
vpcmpeqb %ymm1, %ymm2, %ymm4
vpmovmskb %ymm4, %r15d
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %r13d
movq -0x20(%rsp), %rcx
movq %rcx, 0x88(%rdi)
movq -0x28(%rsp), %rcx
vmovdqu (%r11,%rcx), %ymm1
vmovdqa %ymm1, 0xc0(%rdi)
vpcmpeqb %ymm1, %ymm2, %ymm2
vpmovmskb %ymm2, %ecx
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %edx
shlq $0x20, %rcx
orq %r15, %rcx
shlq $0x20, %rdx
orq %r13, %rdx
leaq (%rdx,%rdx), %r13
notq %r13
andq %rdx, %r13
movq 0x250(%rdi), %r10
movq 0x240(%rdi), %r14
movq %r14, %r15
xorq %r10, %r15
movq %r13, %rbx
andq %r15, %rbx
notq %r15
andq %r13, %r15
addq %rdx, %rbx
xorl %r13d, %r13d
addq %rdx, %r15
setb %r13b
movq %r13, 0x240(%rdi)
andq 0x258(%rdi), %rbx
orq %r14, %r15
andq %r10, %r15
orq %rbx, %r15
notq %r15
orq %rdx, %r15
andq %rcx, %r15
movq %r15, 0xe0(%rdi)
vmovq %r15, %xmm1
vpclmulqdq $0x0, %xmm0, %xmm1, %xmm1
vmovq %xmm1, %rcx
xorq 0x248(%rdi), %rcx
movq %rcx, (%rdi)
sarq $0x3f, %rcx
movq %rcx, 0x248(%rdi)
cmpb $0x0, 0x32(%r8)
jne 0x1d6ca
vmovdqa 0x1a0(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %ecx
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %edx
shlq $0x20, %rdx
orq %rcx, %rdx
movq (%rdi), %rcx
notq %rcx
andq %rdx, %rcx
movq %rcx, 0x10(%r8)
movb $0x1, 0x32(%r8)
testb $0x1, %al
jne 0x1d6f1
testb $0x1, -0x2c(%rsp)
je 0x1d721
movq 0x10(%r8), %rax
movq %rax, %rdx
negq %rdx
setb %cl
andq %rax, %rdx
leaq -0x1(%rdx), %r15
orq %rdx, %r15
jmp 0x1d79b
movq 0x10(%r8), %r10
movq %r10, %rdx
negq %rdx
andq %r10, %rdx
leaq -0x1(%r10), %rcx
andq %r10, %rcx
movq %rcx, 0x10(%r8)
je 0x1d774
movq %rcx, %r10
negq %r10
andq %rcx, %r10
movq %r10, %r15
subq %rdx, %r15
orq %r10, %r15
movb $0x1, %cl
jmp 0x1d79d
movq (%rsi), %rax
cqto
movabsq $0x40, %rcx
idivq %rcx
movq %rdx, %rcx
movabsq $0x1, %rdx
shlq %cl, %rdx
movq %rdx, %r15
negq %r15
movq %r15, %rax
btcq %rcx, %rax
movq 0x10(%r8), %r13
andq %rax, %r13
movq %r13, 0x10(%r8)
setne %cl
je 0x1d78b
movq %r13, %r10
negq %r10
andq %r13, %r10
movq %r10, %r15
subq %rdx, %r15
orq %r10, %r15
jmp 0x1d798
negq %rdx
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
orq %rcx, %rdx
xorl %ecx, %ecx
movq %rdx, %r15
jmp 0x1d79d
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
orq %rdx, %r15
andq %rax, %r15
movb $0x1, %al
cmpb $0x0, 0x33(%r8)
je 0x1d7aa
movq 0x18(%r8), %rdx
jmp 0x1d7e3
vmovdqa 0x1c0(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %edx
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r10d
shlq $0x20, %r10
orq %rdx, %r10
movq (%rdi), %rdx
notq %rdx
andq %r10, %rdx
movq %rdx, 0x18(%r8)
movb $0x1, 0x33(%r8)
andq %r15, %rdx
popcntq %rdx, %r13
movl %ebp, %r15d
subl %r13d, %r15d
jle 0x1d818
testb %cl, %cl
je 0x1d801
subl %r13d, %ebp
incl %ebp
jmp 0x1d55e
incq %r9
movb $0x1, %al
movl %eax, -0x2c(%rsp)
jmp 0x1d52e
leaq -0x1(%rdx), %rax
andq %rax, %rdx
decl %ebp
cmpl $0x2, %ebp
jge 0x1d80f
movq 0x270(%rdi), %rcx
shlq $0x6, %rcx
bsfq %rdx, %rdx
leaq (%rdx,%rcx), %rax
incq %rax
orq %rdx, %rcx
movq %rcx, (%rsi)
movzbl (%r11,%rcx), %edx
cmpq $0x20, %rdx
ja 0x1d855
btq %rdx, %r12
jae 0x1d855
incq %rcx
incq %rax
jmp 0x1d836
incq %rax
movq %rax, (%rsi)
movzbl (%r11,%rax), %ecx
cmpl $0xa, %ecx
je 0x1d852
cmpl $0xd, %ecx
je 0x1d852
cmpl $0x20, %ecx
je 0x1d852
cmpl $0x2c, %ecx
je 0x1d878
cmpl $0x5d, %ecx
jne 0x1d87e
jmp 0x1d898
incq %rax
movq %rax, (%rsi)
movzbl (%r11,%rax), %ecx
cmpq $0x20, %rcx
ja 0x1d1d8
btq %rcx, %r12
jb 0x1d878
jmp 0x1d1d8
movl $0x3ea, %eax            # imm = 0x3EA
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
vzeroupper
retq
movl $0x3e9, %eax            # imm = 0x3E9
jmp 0x1d89d