// File: /workspace/github_cpp_makefile_star2_O1/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 0x2c8(%rdi), %r9
leaq 0x30(%rdx), %rax
movq %rax, -0x8(%rsp)
vpcmpeqd %xmm0, %xmm0, %xmm0
movabsq $0x100002400, %r11      # imm = 0x100002400
movq (%rsi), %rcx
movzbl (%r9,%rcx), %eax
cmpl $0x20, %eax
jne 0x1d573
incq %rcx
movq %rcx, (%rsi)
jmp 0x1d561
cmpl $0x5b, %eax
je 0x1d584
cmpl $0x7b, %eax
jne 0x1d58b
movl $0x65, %eax
jmp 0x1d590
movl $0x66, %eax
jmp 0x1d590
movl $0x67, %eax
cmpl $0x65, %eax
je 0x1d8cb
cmpl $0x66, %eax
jne 0x1dc65
leaq 0x3f(%rcx), %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
sarq $0x6, %rax
movl $0x1, %r14d
movl $0x0, -0xc(%rsp)
xorl %ecx, %ecx
cmpq 0x2e0(%rdi), %rax
jge 0x1d5c1
cmpq 0x270(%rdi), %rax
jle 0x1d6f3
leaq (%rax,%rax), %r8
movq -0x8(%rsp), %r10
movw $0x0, 0x4(%r10)
movl $0x0, (%r10)
movq %r8, 0x88(%rdi)
movq %rax, 0x270(%rdi)
movq %rax, %r8
shlq $0x6, %r8
vmovdqu (%r9,%r8), %ymm1
vmovdqa %ymm1, 0xa0(%rdi)
vmovdqa 0x140(%rdi), %ymm2
vmovdqa 0x180(%rdi), %ymm3
vpcmpeqb %ymm1, %ymm2, %ymm4
vpmovmskb %ymm4, %r8d
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %r10d
leaq 0x1(,%rax,2), %r15
movq %r15, 0x88(%rdi)
shlq $0x5, %r15
vmovdqu (%r9,%r15), %ymm1
vmovdqa %ymm1, 0xc0(%rdi)
vpcmpeqb %ymm1, %ymm2, %ymm2
vpmovmskb %ymm2, %r15d
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %r12d
shlq $0x20, %r15
orq %r8, %r15
shlq $0x20, %r12
orq %r10, %r12
leaq (%r12,%r12), %r8
notq %r8
andq %r12, %r8
movq 0x250(%rdi), %r10
movq 0x240(%rdi), %rbp
movq %rbp, %r13
xorq %r10, %r13
movq %r8, %rbx
andq %r13, %rbx
notq %r13
andq %r8, %r13
addq %r12, %rbx
xorl %r8d, %r8d
addq %r12, %r13
setb %r8b
movq %r8, 0x240(%rdi)
andq 0x258(%rdi), %rbx
orq %rbp, %r13
andq %r10, %r13
orq %rbx, %r13
notq %r13
orq %r12, %r13
andq %r15, %r13
movq %r13, 0xe0(%rdi)
vmovq %r13, %xmm1
vpclmulqdq $0x0, %xmm0, %xmm1, %xmm1
vmovq %xmm1, %r8
xorq 0x248(%rdi), %r8
movq %r8, (%rdi)
sarq $0x3f, %r8
movq %r8, 0x248(%rdi)
cmpb $0x0, 0x34(%rdx)
jne 0x1d735
vmovdqa 0x200(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %r8d
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r10d
shlq $0x20, %r10
orq %r8, %r10
movq %r10, 0x20(%rdx)
movq (%rdi), %r8
notq %r8
andq %r10, %r8
movq %r8, 0x20(%rdx)
movb $0x1, 0x34(%rdx)
testb $0x1, %cl
jne 0x1d75e
testb $0x1, -0xc(%rsp)
je 0x1d790
movq 0x20(%rdx), %rcx
movq %rcx, %r8
negq %r8
setb %bpl
andq %rcx, %r8
leaq -0x1(%r8), %r15
orq %r8, %r15
jmp 0x1d808
movq 0x20(%rdx), %r8
movq %r8, %r12
negq %r12
andq %r8, %r12
leaq -0x1(%r8), %r15
andq %r8, %r15
movq %r15, 0x20(%rdx)
setne %bpl
je 0x1d7e3
movq %r15, %r8
negq %r8
andq %r15, %r8
movq %r8, %r15
subq %r12, %r15
orq %r8, %r15
jmp 0x1d80a
movq (%rsi), %rcx
leal 0x3f(%rcx), %r8d
testq %rcx, %rcx
cmovnsl %ecx, %r8d
andl $0xc0, %r8d
subl %r8d, %ecx
movl $0x1, %r13d
shlq %cl, %r13
movq %r13, %r15
negq %r15
movq %r15, %r12
btcq %rcx, %r12
movq 0x20(%rdx), %rcx
andq %r12, %rcx
movq %rcx, 0x20(%rdx)
setne %bpl
je 0x1d7f8
movq %rcx, %r8
negq %r8
andq %rcx, %r8
movq %r8, %r15
subq %r13, %r15
orq %r8, %r15
jmp 0x1d805
negq %r12
movabsq $-0x8000000000000000, %r8 # imm = 0x8000000000000000
orq %r8, %r12
movq %r12, %r15
jmp 0x1d80a
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
orq %rcx, %r15
andq %r12, %r15
movb $0x1, %cl
cmpb $0x0, 0x35(%rdx)
jne 0x1d84c
vmovdqa 0x220(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %r8d
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r10d
shlq $0x20, %r10
orq %r8, %r10
movq %r10, 0x28(%rdx)
movq (%rdi), %r8
notq %r8
andq %r10, %r8
movq %r8, 0x28(%rdx)
movb $0x1, 0x35(%rdx)
andq 0x28(%rdx), %r15
popcntq %r15, %r13
movl %r14d, %r12d
subl %r13d, %r12d
jle 0x1d86f
testb %bpl, %bpl
je 0x1d8a3
subl %r13d, %r14d
incl %r14d
movl $0x5, %ebp
jmp 0x1d8b5
cmpl $0x2, %r14d
jl 0x1d887
leal 0x1(%r14), %ebp
leaq -0x1(%r15), %r8
andq %r8, %r15
decl %ebp
cmpl $0x2, %ebp
jg 0x1d879
movq 0x270(%rdi), %r8
shlq $0x6, %r8
bsfq %r15, %r10
orq %r8, %r10
movq %r10, (%rsi)
movl $0x1, %ebp
jmp 0x1d8b5
incq %rax
xorl %ecx, %ecx
movb $0x1, %r8b
movl %r8d, -0xc(%rsp)
movl %r12d, %r14d
xorl %ebp, %ebp
testl %ebp, %ebp
je 0x1d5c1
cmpl $0x5, %ebp
je 0x1d5c1
jmp 0x1dbee
leaq 0x3f(%rcx), %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
sarq $0x6, %rax
movl $0x1, %r14d
movl $0x0, -0xc(%rsp)
xorl %ecx, %ecx
cmpq 0x2e0(%rdi), %rax
jge 0x1d8ea
cmpq 0x270(%rdi), %rax
jle 0x1da1b
leaq (%rax,%rax), %r15
movq -0x8(%rsp), %r8
movw $0x0, 0x4(%r8)
movl $0x0, (%r8)
movq %r15, 0x88(%rdi)
movq %rax, 0x270(%rdi)
movq %rax, %r15
shlq $0x6, %r15
vmovdqu (%r9,%r15), %ymm1
vmovdqa %ymm1, 0xa0(%rdi)
vmovdqa 0x140(%rdi), %ymm2
vmovdqa 0x180(%rdi), %ymm3
vpcmpeqb %ymm1, %ymm2, %ymm4
vpmovmskb %ymm4, %r13d
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %ebp
leaq 0x1(,%rax,2), %r15
movq %r15, 0x88(%rdi)
shlq $0x5, %r15
vmovdqu (%r9,%r15), %ymm1
vmovdqa %ymm1, 0xc0(%rdi)
vpcmpeqb %ymm1, %ymm2, %ymm2
vpmovmskb %ymm2, %r15d
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %r12d
shlq $0x20, %r15
orq %r13, %r15
shlq $0x20, %r12
orq %rbp, %r12
leaq (%r12,%r12), %rbp
notq %rbp
andq %r12, %rbp
movq 0x250(%rdi), %r8
movq 0x240(%rdi), %rbx
movq %rbx, %r13
xorq %r8, %r13
movq %rbp, %r10
andq %r13, %r10
notq %r13
andq %rbp, %r13
addq %r12, %r10
xorl %ebp, %ebp
addq %r12, %r13
setb %bpl
movq %rbp, 0x240(%rdi)
andq 0x258(%rdi), %r10
orq %rbx, %r13
andq %r8, %r13
orq %r10, %r13
notq %r13
orq %r12, %r13
andq %r15, %r13
movq %r13, 0xe0(%rdi)
vmovq %r13, %xmm1
vpclmulqdq $0x0, %xmm0, %xmm1, %xmm1
vmovq %xmm1, %r8
xorq 0x248(%rdi), %r8
movq %r8, (%rdi)
sarq $0x3f, %r8
movq %r8, 0x248(%rdi)
cmpb $0x0, 0x32(%rdx)
jne 0x1da5d
vmovdqa 0x1a0(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %r8d
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r10d
shlq $0x20, %r10
orq %r8, %r10
movq %r10, 0x10(%rdx)
movq (%rdi), %r8
notq %r8
andq %r10, %r8
movq %r8, 0x10(%rdx)
movb $0x1, 0x32(%rdx)
testb $0x1, %cl
jne 0x1da86
testb $0x1, -0xc(%rsp)
je 0x1dab8
movq 0x10(%rdx), %rcx
movq %rcx, %r8
negq %r8
setb %bpl
andq %rcx, %r8
leaq -0x1(%r8), %r15
orq %r8, %r15
jmp 0x1db30
movq 0x10(%rdx), %r8
movq %r8, %r12
negq %r12
andq %r8, %r12
leaq -0x1(%r8), %r15
andq %r8, %r15
movq %r15, 0x10(%rdx)
setne %bpl
je 0x1db0b
movq %r15, %r8
negq %r8
andq %r15, %r8
movq %r8, %r15
subq %r12, %r15
orq %r8, %r15
jmp 0x1db32
movq (%rsi), %rcx
leal 0x3f(%rcx), %r8d
testq %rcx, %rcx
cmovnsl %ecx, %r8d
andl $0xc0, %r8d
subl %r8d, %ecx
movl $0x1, %r13d
shlq %cl, %r13
movq %r13, %r15
negq %r15
movq %r15, %r12
btcq %rcx, %r12
movq 0x10(%rdx), %rcx
andq %r12, %rcx
movq %rcx, 0x10(%rdx)
setne %bpl
je 0x1db20
movq %rcx, %r8
negq %r8
andq %rcx, %r8
movq %r8, %r15
subq %r13, %r15
orq %r8, %r15
jmp 0x1db2d
negq %r12
movabsq $-0x8000000000000000, %r8 # imm = 0x8000000000000000
orq %r8, %r12
movq %r12, %r15
jmp 0x1db32
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
orq %rcx, %r15
andq %r12, %r15
movb $0x1, %cl
cmpb $0x0, 0x33(%rdx)
jne 0x1db74
vmovdqa 0x1c0(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %r8d
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r10d
shlq $0x20, %r10
orq %r8, %r10
movq %r10, 0x18(%rdx)
movq (%rdi), %r8
notq %r8
andq %r10, %r8
movq %r8, 0x18(%rdx)
movb $0x1, 0x33(%rdx)
andq 0x18(%rdx), %r15
popcntq %r15, %r13
movl %r14d, %r12d
subl %r13d, %r12d
jle 0x1db97
testb %bpl, %bpl
je 0x1dbcb
subl %r13d, %r14d
incl %r14d
movl $0x5, %ebp
jmp 0x1dbdd
cmpl $0x2, %r14d
jl 0x1dbaf
leal 0x1(%r14), %ebp
leaq -0x1(%r15), %r8
andq %r8, %r15
decl %ebp
cmpl $0x2, %ebp
jg 0x1dba1
movq 0x270(%rdi), %r8
shlq $0x6, %r8
bsfq %r15, %r10
orq %r8, %r10
movq %r10, (%rsi)
movl $0x1, %ebp
jmp 0x1dbdd
incq %rax
xorl %ecx, %ecx
movb $0x1, %r8b
movl %r8d, -0xc(%rsp)
movl %r12d, %r14d
xorl %ebp, %ebp
testl %ebp, %ebp
je 0x1d8ea
cmpl $0x5, %ebp
je 0x1d8ea
movq (%rsi), %rax
leaq 0x1(%rax), %rcx
movzbl (%r9,%rax), %ebx
cmpq $0x20, %rbx
ja 0x1dc14
btq %rbx, %r11
jae 0x1dc14
incq %rax
movq %rax, (%rsi)
incq %rcx
jmp 0x1dbf5
incq %rcx
movq %rcx, (%rsi)
movzbl (%r9,%rcx), %ebx
cmpq $0x20, %rbx
ja 0x1dc28
btq %rbx, %r11
jb 0x1dc11
movl $0x3ea, %eax            # imm = 0x3EA
cmpb $0x5d, %bl
je 0x1dc6a
cmpb $0x2c, %bl
jne 0x1dc3d
incq %rcx
movq %rcx, (%rsi)
movq (%rsi), %rcx
incq %rcx
movzbl -0x1(%r9,%rcx), %r14d
cmpq $0x20, %r14
ja 0x1dc5a
btq %r14, %r11
jae 0x1dc5a
movq %rcx, (%rsi)
jmp 0x1dc40
cmpb $0x5d, %bl
jne 0x1d55e
jmp 0x1dc6a
movl $0x3e9, %eax            # imm = 0x3E9
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
vzeroupper
retq