// File: /workspace/github_cpp_makefile_star2_O3/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), %r10
leaq 0x30(%rdx), %rax
movq %rax, -0x8(%rsp)
movq (%rsi), %rcx
leaq 0x20(%r10), %rax
movq %rax, -0x18(%rsp)
vpcmpeqd %xmm0, %xmm0, %xmm0
movq %r10, -0x28(%rsp)
movq %rdx, -0x10(%rsp)
movq %rsi, -0x20(%rsp)
movzbl (%r10,%rcx), %eax
cmpl $0x7b, %eax
je 0x1d7d5
cmpl $0x5b, %eax
je 0x1d4a5
cmpl $0x20, %eax
jne 0x1dbaf
incq %rcx
movq %rcx, (%rsi)
jmp 0x1d481
leaq 0x3f(%rcx), %rbx
testq %rcx, %rcx
cmovnsq %rcx, %rbx
sarq $0x6, %rbx
movl $0x1, %eax
xorl %r11d, %r11d
xorl %esi, %esi
movq 0x2e0(%rdi), %r9
cmpq %r9, %rbx
jge 0x1d4c5
leaq (%rbx,%rbx), %r15
movq %rbx, %r12
shlq $0x6, %r12
addq -0x18(%rsp), %r12
movl %eax, %r14d
cmpq 0x270(%rdi), %rbx
jle 0x1d5fd
movq -0x8(%rsp), %rax
movw $0x0, 0x4(%rax)
movl $0x0, (%rax)
movq %r15, 0x88(%rdi)
movq %rbx, 0x270(%rdi)
vmovdqu -0x20(%r12), %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, %r9d
leaq 0x1(%r15), %rax
movq %rax, 0x88(%rdi)
vmovdqu (%r12), %ymm1
vmovdqa %ymm1, 0xc0(%rdi)
vpcmpeqb %ymm1, %ymm2, %ymm2
vpmovmskb %ymm2, %eax
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %r10d
shlq $0x20, %rax
orq %r8, %rax
shlq $0x20, %r10
orq %r9, %r10
leaq (%r10,%r10), %r8
notq %r8
andq %r10, %r8
movq 0x250(%rdi), %r9
movl %r11d, %ecx
movq 0x240(%rdi), %r11
movq %r11, %r13
xorq %r9, %r13
movq %r8, %rbp
andq %r13, %rbp
notq %r13
andq %r8, %r13
addq %r10, %rbp
xorl %r8d, %r8d
addq %r10, %r13
setb %r8b
movq %r8, 0x240(%rdi)
andq 0x258(%rdi), %rbp
orq %r11, %r13
movl %ecx, %r11d
andq %r9, %r13
orq %rbp, %r13
movq -0x10(%rsp), %rdx
notq %r13
orq %r10, %r13
andq %rax, %r13
movq %r13, 0xe0(%rdi)
vmovq %r13, %xmm1
vpclmulqdq $0x0, %xmm0, %xmm1, %xmm1
vmovq %xmm1, %rax
xorq 0x248(%rdi), %rax
movq %rax, (%rdi)
sarq $0x3f, %rax
movq %rax, 0x248(%rdi)
cmpb $0x0, 0x34(%rdx)
jne 0x1d63b
vmovdqa 0x200(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %eax
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r8d
shlq $0x20, %r8
orq %rax, %r8
movq (%rdi), %rax
notq %rax
andq %r8, %rax
movq %rax, 0x20(%rdx)
movb $0x1, 0x34(%rdx)
testb $0x1, %sil
jne 0x1d664
testb $0x1, %r11b
je 0x1d695
movq 0x20(%rdx), %rax
movq %rax, %rcx
negq %rcx
setb %r10b
andq %rax, %rcx
leaq -0x1(%rcx), %rax
orq %rcx, %rax
jmp 0x1d710
movq 0x20(%rdx), %r8
movq %r8, %r13
negq %r13
andq %r8, %r13
leaq -0x1(%r8), %rax
andq %r8, %rax
movq %rax, 0x20(%rdx)
je 0x1d6e8
movq %rax, %r8
negq %r8
andq %rax, %r8
movq %r8, %rax
subq %r13, %rax
orq %r8, %rax
movb $0x1, %r10b
jmp 0x1d713
movq -0x20(%rsp), %rax
movq (%rax), %rcx
leal 0x3f(%rcx), %eax
testq %rcx, %rcx
cmovnsl %ecx, %eax
andl $0xc0, %eax
subl %eax, %ecx
movl $0x1, %r9d
shlq %cl, %r9
movq %r9, %rax
negq %rax
movq %rax, %r13
btcq %rcx, %r13
movq 0x20(%rdx), %rcx
andq %r13, %rcx
movq %rcx, 0x20(%rdx)
setne %r10b
je 0x1d700
movq %rcx, %r8
negq %r8
andq %rcx, %r8
movq %r8, %rax
subq %r9, %rax
orq %r8, %rax
jmp 0x1d70d
negq %r13
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
orq %rax, %r13
xorl %r10d, %r10d
movq %r13, %rax
jmp 0x1d713
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
orq %rcx, %rax
andq %r13, %rax
movb $0x1, %sil
cmpb $0x0, 0x35(%rdx)
je 0x1d71f
movq 0x28(%rdx), %r13
jmp 0x1d757
vmovdqa 0x220(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %r8d
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r9d
shlq $0x20, %r9
orq %r8, %r9
movq (%rdi), %r13
notq %r13
andq %r9, %r13
movq %r13, 0x28(%rdx)
movb $0x1, 0x35(%rdx)
andq %rax, %r13
popcntq %r13, %r9
movl %r14d, %eax
subl %r9d, %eax
jle 0x1d79f
testb %r10b, %r10b
jne 0x1d791
incq %rbx
addq $0x2, %r15
addq $0x40, %r12
movb $0x1, %r11b
xorl %esi, %esi
movl %eax, %r14d
cmpq 0x2e0(%rdi), %rbx
jl 0x1d4dd
jmp 0x1d4be
subl %r9d, %r14d
incl %r14d
movl %r14d, %eax
jmp 0x1d4be
cmpl $0x2, %r14d
jl 0x1daf6
incl %r14d
movq -0x28(%rsp), %r10
movabsq $0x100002400, %r11      # imm = 0x100002400
movq -0x20(%rsp), %rsi
leaq -0x1(%r13), %rax
andq %rax, %r13
decl %r14d
cmpl $0x2, %r14d
ja 0x1d7c0
jmp 0x1db1b
leaq 0x3f(%rcx), %rbx
testq %rcx, %rcx
cmovnsq %rcx, %rbx
sarq $0x6, %rbx
movl $0x1, %eax
xorl %r11d, %r11d
xorl %ecx, %ecx
movq 0x2e0(%rdi), %r9
cmpq %r9, %rbx
jge 0x1d7f5
leaq (%rbx,%rbx), %r15
movq %rbx, %r12
shlq $0x6, %r12
addq -0x18(%rsp), %r12
movl %eax, %r14d
cmpq 0x270(%rdi), %rbx
jle 0x1d931
movq -0x8(%rsp), %rax
movw $0x0, 0x4(%rax)
movl $0x0, (%rax)
movq %r15, 0x88(%rdi)
movq %rbx, 0x270(%rdi)
vmovdqu -0x20(%r12), %ymm1
vmovdqa %ymm1, 0xa0(%rdi)
vmovdqa 0x140(%rdi), %ymm2
vmovdqa 0x180(%rdi), %ymm3
vpcmpeqb %ymm1, %ymm2, %ymm4
vpmovmskb %ymm4, %r9d
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %r13d
leaq 0x1(%r15), %rax
movq %rax, 0x88(%rdi)
vmovdqu (%r12), %ymm1
vmovdqa %ymm1, 0xc0(%rdi)
vpcmpeqb %ymm1, %ymm2, %ymm2
vpmovmskb %ymm2, %eax
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %r10d
shlq $0x20, %rax
orq %r9, %rax
shlq $0x20, %r10
orq %r13, %r10
leaq (%r10,%r10), %r9
notq %r9
andq %r10, %r9
movl %ecx, %edx
movl %r11d, %ecx
movq 0x250(%rdi), %r11
movq 0x240(%rdi), %r8
movq %r8, %r13
xorq %r11, %r13
movq %r9, %rbp
andq %r13, %rbp
notq %r13
andq %r9, %r13
addq %r10, %rbp
xorl %r9d, %r9d
addq %r10, %r13
setb %r9b
movq %r9, 0x240(%rdi)
andq 0x258(%rdi), %rbp
orq %r8, %r13
andq %r11, %r13
movl %ecx, %r11d
movl %edx, %ecx
orq %rbp, %r13
movq -0x10(%rsp), %rdx
notq %r13
orq %r10, %r13
andq %rax, %r13
movq %r13, 0xe0(%rdi)
vmovq %r13, %xmm1
vpclmulqdq $0x0, %xmm0, %xmm1, %xmm1
vmovq %xmm1, %rax
xorq 0x248(%rdi), %rax
movq %rax, (%rdi)
sarq $0x3f, %rax
movq %rax, 0x248(%rdi)
cmpb $0x0, 0x32(%rdx)
jne 0x1d96f
vmovdqa 0x1a0(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %eax
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r8d
shlq $0x20, %r8
orq %rax, %r8
movq (%rdi), %rax
notq %rax
andq %r8, %rax
movq %rax, 0x10(%rdx)
movb $0x1, 0x32(%rdx)
testb $0x1, %cl
jne 0x1d997
testb $0x1, %r11b
je 0x1d9c8
movq 0x10(%rdx), %rax
movq %rax, %rcx
negq %rcx
setb %r10b
andq %rax, %rcx
leaq -0x1(%rcx), %rax
orq %rcx, %rax
jmp 0x1da3e
movq 0x10(%rdx), %r8
movq %r8, %r13
negq %r13
andq %r8, %r13
leaq -0x1(%r8), %rax
andq %r8, %rax
movq %rax, 0x10(%rdx)
je 0x1da16
movq %rax, %r8
negq %r8
andq %rax, %r8
movq %r8, %rax
subq %r13, %rax
orq %r8, %rax
movb $0x1, %r10b
jmp 0x1da40
movq (%rsi), %rcx
leal 0x3f(%rcx), %eax
testq %rcx, %rcx
cmovnsl %ecx, %eax
andl $0xc0, %eax
subl %eax, %ecx
movl $0x1, %r9d
shlq %cl, %r9
movq %r9, %rax
negq %rax
movq %rax, %r13
btcq %rcx, %r13
movq 0x10(%rdx), %rcx
andq %r13, %rcx
movq %rcx, 0x10(%rdx)
setne %r10b
je 0x1da2e
movq %rcx, %r8
negq %r8
andq %rcx, %r8
movq %r8, %rax
subq %r9, %rax
orq %r8, %rax
jmp 0x1da3b
negq %r13
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
orq %rax, %r13
xorl %r10d, %r10d
movq %r13, %rax
jmp 0x1da40
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
orq %rcx, %rax
andq %r13, %rax
movb $0x1, %cl
cmpb $0x0, 0x33(%rdx)
je 0x1da4c
movq 0x18(%rdx), %r13
jmp 0x1da84
vmovdqa 0x1c0(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %r8d
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r9d
shlq $0x20, %r9
orq %r8, %r9
movq (%rdi), %r13
notq %r13
andq %r9, %r13
movq %r13, 0x18(%rdx)
movb $0x1, 0x33(%rdx)
andq %rax, %r13
popcntq %r13, %r9
movl %r14d, %eax
subl %r9d, %eax
jle 0x1dacc
testb %r10b, %r10b
jne 0x1dabe
incq %rbx
addq $0x2, %r15
addq $0x40, %r12
movb $0x1, %r11b
xorl %ecx, %ecx
movl %eax, %r14d
cmpq 0x2e0(%rdi), %rbx
jl 0x1d80d
jmp 0x1d7ee
subl %r9d, %r14d
incl %r14d
movl %r14d, %eax
jmp 0x1d7ee
cmpl $0x2, %r14d
jl 0x1db0c
incl %r14d
movq -0x28(%rsp), %r10
movabsq $0x100002400, %r11      # imm = 0x100002400
leaq -0x1(%r13), %rax
andq %rax, %r13
decl %r14d
cmpl $0x2, %r14d
ja 0x1dae4
jmp 0x1db1b
movq -0x28(%rsp), %r10
movabsq $0x100002400, %r11      # imm = 0x100002400
movq -0x20(%rsp), %rsi
jmp 0x1db1b
movq -0x28(%rsp), %r10
movabsq $0x100002400, %r11      # imm = 0x100002400
movq 0x270(%rdi), %rax
shlq $0x6, %rax
bsfq %r13, %r8
leaq (%r8,%rax), %rcx
incq %rcx
orq %r8, %rax
movq %rax, (%rsi)
movzbl (%r10,%rax), %r9d
cmpq $0x20, %r9
ja 0x1db58
btq %r9, %r11
jae 0x1db58
incq %rax
incq %rcx
jmp 0x1db34
cmpl $0x20, %eax
jne 0x1db71
incq %rcx
movq %rcx, (%rsi)
movzbl (%r10,%rcx), %eax
cmpl $0x1f, %eax
jg 0x1db50
cmpl $0xa, %eax
je 0x1db55
cmpl $0xd, %eax
je 0x1db55
jmp 0x1db7b
cmpl $0x2c, %eax
je 0x1db94
cmpl $0x5d, %eax
je 0x1db9c
movzbl (%r10,%rcx), %eax
cmpq $0x20, %rax
ja 0x1d481
btq %rax, %r11
jae 0x1d481
incq %rcx
movq %rcx, (%rsi)
jmp 0x1db7b
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 0x1dba1