// File: /workspace/github_cpp_makefile_star2_O2/AutomataLab[P]JSONSki/src/QueryProcessor.cpp
// Function: QueryProcessor::goOverElem(long&, int, bitmap&)
__attribute__((always_inline)) int QueryProcessor::goOverElem(long& pos, int num_elements, bitmap& bm) {
    while (num_elements > 0) {
        if (!hasMoreElements(pos)) {
            return ARRAY_END;
        }
        int element_type = getElementType(pos);
        int result = 0;
        switch(element_type) {
            case PRIMITIVE: {
                JumpInfo res = goOverPrimElemsInRange(pos, num_elements, bm);
                if (res.status == ARRAY_END || res.status == SUCCESS) {
                    return res.status;
                }
                if (res.status == PARTIAL_SKIP) {
                    num_elements = num_elements - res.num_comma + 1;
                }
                break;
            }
            case OBJECT:
                goOverObj(pos, bm);
                break;
            case ARRAY:
                goOverAry(pos, bm);
                break;
        }
        --num_elements;
    }
    return SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r8
movl %edx, %r12d
movq 0x2c8(%rdi), %rbx
leaq 0x30(%rcx), %rax
movq %rax, -0x18(%rsp)
leaq 0x20(%rbx), %rax
movq %rax, -0x10(%rsp)
vpcmpeqd %xmm0, %xmm0, %xmm0
movabsq $0x100002400, %r9       # imm = 0x100002400
testl %r12d, %r12d
jle 0x1ba88
movq (%rsi), %rcx
leaq 0x1(%rcx), %rax
movzbl (%rbx,%rcx), %edx
cmpq $0x20, %rdx
ja 0x1afff
btq %rdx, %r9
jae 0x1afff
incq %rcx
movq %rcx, (%rsi)
incq %rax
jmp 0x1afe1
incq %rax
movq %rax, (%rsi)
movzbl (%rbx,%rax), %ecx
cmpl $0xa, %ecx
je 0x1affc
cmpl $0xd, %ecx
je 0x1affc
cmpl $0x20, %ecx
je 0x1affc
cmpl $0x2c, %ecx
je 0x1b024
cmpl $0x5d, %ecx
jne 0x1b02a
jmp 0x1ba75
incq %rax
movq %rax, (%rsi)
movzbl (%rbx,%rax), %ecx
cmpq $0x20, %rcx
ja 0x1b04a
btq %rcx, %r9
jb 0x1b024
jmp 0x1b04a
leaq 0x1(%rax), %rdx
movq %rdx, (%rsi)
movb 0x1(%rbx,%rax), %cl
movq %rdx, %rax
cmpb $0x20, %cl
je 0x1b03c
movzbl %cl, %ecx
cmpl $0x5b, %ecx
movl %r12d, -0x1c(%rsp)
cqto
je 0x1b37f
cmpl $0x7b, %ecx
jne 0x1b6ae
movabsq $0x40, %rcx
idivq %rcx
movq %rax, %r10
movl $0x0, -0x40(%rsp)
movl $0x1, %r14d
leaq (%r10,%r10), %rax
movq %rax, -0x38(%rsp)
movq %r10, %rax
shlq $0x6, %rax
movq %rax, -0x28(%rsp)
leaq 0x1(,%r10,2), %rbp
movq %rbp, -0x30(%rsp)
shlq $0x5, %rbp
xorl %eax, %eax
movl %r14d, %r11d
movq 0x2e0(%rdi), %rcx
cmpq %rcx, %r10
jge 0x1b0bb
cmpq 0x270(%rdi), %r10
jle 0x1b1d9
movq -0x18(%rsp), %rcx
andw $0x0, 0x4(%rcx)
andl $0x0, (%rcx)
movq -0x38(%rsp), %rcx
movq %rcx, 0x88(%rdi)
movq %r10, 0x270(%rdi)
movq -0x28(%rsp), %rcx
vmovdqu (%rbx,%rcx), %ymm1
vmovdqa %ymm1, 0xa0(%rdi)
vmovdqa 0x140(%rdi), %ymm2
vmovdqa 0x180(%rdi), %ymm3
vpcmpeqb %ymm1, %ymm2, %ymm4
vpmovmskb %ymm4, %r14d
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %r15d
movq -0x30(%rsp), %rcx
movq %rcx, 0x88(%rdi)
vmovdqu (%rbx,%rbp), %ymm1
vmovdqa %ymm1, 0xc0(%rdi)
vpcmpeqb %ymm1, %ymm2, %ymm2
vpmovmskb %ymm2, %ecx
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %edx
shlq $0x20, %rcx
orq %r14, %rcx
shlq $0x20, %rdx
orq %r15, %rdx
leaq (%rdx,%rdx), %r15
notq %r15
andq %rdx, %r15
movq 0x250(%rdi), %r9
movq 0x240(%rdi), %r12
movq %r12, %r14
xorq %r9, %r14
movq %r15, %r13
andq %r14, %r13
notq %r14
andq %r15, %r14
addq %rdx, %r13
xorl %r15d, %r15d
addq %rdx, %r14
setb %r15b
movq %r15, 0x240(%rdi)
andq 0x258(%rdi), %r13
orq %r12, %r14
andq %r9, %r14
orq %r13, %r14
notq %r14
orq %rdx, %r14
andq %rcx, %r14
movq %r14, 0xe0(%rdi)
vmovq %r14, %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 0x1b219
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 0x1b240
testb $0x1, -0x40(%rsp)
je 0x1b270
movq 0x10(%r8), %rax
movq %rax, %rdx
negq %rdx
setb %cl
andq %rax, %rdx
leaq -0x1(%rdx), %r15
orq %rdx, %r15
jmp 0x1b2ea
movq 0x10(%r8), %r9
movq %r9, %rdx
negq %rdx
andq %r9, %rdx
leaq -0x1(%r9), %rcx
andq %r9, %rcx
movq %rcx, 0x10(%r8)
je 0x1b2c3
movq %rcx, %r9
negq %r9
andq %rcx, %r9
movq %r9, %r15
subq %rdx, %r15
orq %r9, %r15
movb $0x1, %cl
jmp 0x1b2ec
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), %r14
andq %rax, %r14
movq %r14, 0x10(%r8)
setne %cl
je 0x1b2da
movq %r14, %r9
negq %r9
andq %r14, %r9
movq %r9, %r15
subq %rdx, %r15
orq %r9, %r15
jmp 0x1b2e7
negq %rdx
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
orq %rcx, %rdx
xorl %ecx, %ecx
movq %rdx, %r15
jmp 0x1b2ec
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
orq %rdx, %r15
andq %rax, %r15
movb $0x1, %al
cmpb $0x0, 0x33(%r8)
je 0x1b2f9
movq 0x18(%r8), %rdx
jmp 0x1b332
vmovdqa 0x1c0(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %edx
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r9d
shlq $0x20, %r9
orq %rdx, %r9
movq (%rdi), %rdx
notq %rdx
andq %r9, %rdx
movq %rdx, 0x18(%r8)
movb $0x1, 0x33(%r8)
andq %r15, %rdx
popcntq %rdx, %r15
movl %r11d, %r14d
subl %r15d, %r14d
jle 0x1b35f
testb %cl, %cl
je 0x1b351
subl %r15d, %r11d
incl %r11d
jmp 0x1b0b4
incq %r10
movb $0x1, %al
movl %eax, -0x40(%rsp)
jmp 0x1b089
movabsq $0x100002400, %r9       # imm = 0x100002400
cmpl $0x2, %r11d
jl 0x1b68f
leaq -0x1(%rdx), %rax
andq %rax, %rdx
decl %r11d
jmp 0x1b369
movabsq $0x40, %rcx
idivq %rcx
movq %rax, %r10
movl $0x0, -0x38(%rsp)
movl $0x1, %r14d
leaq (%r10,%r10), %rax
movq %rax, -0x40(%rsp)
movq %r10, %rax
shlq $0x6, %rax
movq %rax, -0x28(%rsp)
leaq 0x1(,%r10,2), %rbp
movq %rbp, -0x30(%rsp)
shlq $0x5, %rbp
xorl %eax, %eax
movl %r14d, %r11d
movq 0x2e0(%rdi), %rcx
cmpq %rcx, %r10
jge 0x1b3cf
cmpq 0x270(%rdi), %r10
jle 0x1b4ed
movq -0x18(%rsp), %rcx
andw $0x0, 0x4(%rcx)
andl $0x0, (%rcx)
movq -0x40(%rsp), %rcx
movq %rcx, 0x88(%rdi)
movq %r10, 0x270(%rdi)
movq -0x28(%rsp), %rcx
vmovdqu (%rbx,%rcx), %ymm1
vmovdqa %ymm1, 0xa0(%rdi)
vmovdqa 0x140(%rdi), %ymm2
vmovdqa 0x180(%rdi), %ymm3
vpcmpeqb %ymm1, %ymm2, %ymm4
vpmovmskb %ymm4, %r14d
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %r15d
movq -0x30(%rsp), %rcx
movq %rcx, 0x88(%rdi)
vmovdqu (%rbx,%rbp), %ymm1
vmovdqa %ymm1, 0xc0(%rdi)
vpcmpeqb %ymm1, %ymm2, %ymm2
vpmovmskb %ymm2, %ecx
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %edx
shlq $0x20, %rcx
orq %r14, %rcx
shlq $0x20, %rdx
orq %r15, %rdx
leaq (%rdx,%rdx), %r15
notq %r15
andq %rdx, %r15
movq 0x250(%rdi), %r9
movq 0x240(%rdi), %r12
movq %r12, %r14
xorq %r9, %r14
movq %r15, %r13
andq %r14, %r13
notq %r14
andq %r15, %r14
addq %rdx, %r13
xorl %r15d, %r15d
addq %rdx, %r14
setb %r15b
movq %r15, 0x240(%rdi)
andq 0x258(%rdi), %r13
orq %r12, %r14
andq %r9, %r14
orq %r13, %r14
notq %r14
orq %rdx, %r14
andq %rcx, %r14
movq %r14, 0xe0(%rdi)
vmovq %r14, %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 0x1b52d
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 0x1b554
testb $0x1, -0x38(%rsp)
je 0x1b584
movq 0x20(%r8), %rax
movq %rax, %rdx
negq %rdx
setb %cl
andq %rax, %rdx
leaq -0x1(%rdx), %r15
orq %rdx, %r15
jmp 0x1b5fe
movq 0x20(%r8), %r9
movq %r9, %rdx
negq %rdx
andq %r9, %rdx
leaq -0x1(%r9), %rcx
andq %r9, %rcx
movq %rcx, 0x20(%r8)
je 0x1b5d7
movq %rcx, %r9
negq %r9
andq %rcx, %r9
movq %r9, %r15
subq %rdx, %r15
orq %r9, %r15
movb $0x1, %cl
jmp 0x1b600
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), %r14
andq %rax, %r14
movq %r14, 0x20(%r8)
setne %cl
je 0x1b5ee
movq %r14, %r9
negq %r9
andq %r14, %r9
movq %r9, %r15
subq %rdx, %r15
orq %r9, %r15
jmp 0x1b5fb
negq %rdx
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
orq %rcx, %rdx
xorl %ecx, %ecx
movq %rdx, %r15
jmp 0x1b600
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
orq %rdx, %r15
andq %rax, %r15
movb $0x1, %al
cmpb $0x0, 0x35(%r8)
je 0x1b60d
movq 0x28(%r8), %rdx
jmp 0x1b646
vmovdqa 0x220(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %edx
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r9d
shlq $0x20, %r9
orq %rdx, %r9
movq (%rdi), %rdx
notq %rdx
andq %r9, %rdx
movq %rdx, 0x28(%r8)
movb $0x1, 0x35(%r8)
andq %r15, %rdx
popcntq %rdx, %r15
movl %r11d, %r14d
subl %r15d, %r14d
jle 0x1b673
testb %cl, %cl
je 0x1b665
subl %r15d, %r11d
incl %r11d
jmp 0x1b3c8
incq %r10
movb $0x1, %al
movl %eax, -0x38(%rsp)
jmp 0x1b39d
movabsq $0x100002400, %r9       # imm = 0x100002400
cmpl $0x2, %r11d
jl 0x1b68f
leaq -0x1(%rdx), %rax
andq %rax, %rdx
decl %r11d
jmp 0x1b67d
movq 0x270(%rdi), %rax
shlq $0x6, %rax
bsfq %rdx, %rcx
orq %rax, %rcx
movq %rcx, (%rsi)
movl -0x1c(%rsp), %r12d
jmp 0x1ba6d
movabsq $0x40, %rcx
idivq %rcx
movq 0x250(%rdi), %rcx
movq %rcx, -0x30(%rsp)
movq 0x258(%rdi), %rcx
movq %rcx, -0x8(%rsp)
movslq %eax, %r13
movq 0x270(%rdi), %rax
movq %rax, -0x40(%rsp)
movq %r13, %rax
shlq $0x6, %rax
addq -0x10(%rsp), %rax
movq %rax, -0x38(%rsp)
leaq (,%r13,2), %rbp
xorl %r10d, %r10d
xorl %r9d, %r9d
cmpq %r13, -0x40(%rsp)
jge 0x1b828
movq -0x18(%rsp), %rcx
andw $0x0, 0x4(%rcx)
andl $0x0, (%rcx)
movq %rbp, 0x88(%rdi)
movq %r13, 0x270(%rdi)
movq -0x38(%rsp), %rax
vmovdqu -0x20(%rax), %ymm1
vmovdqa %ymm1, 0xa0(%rdi)
vmovdqa 0x140(%rdi), %ymm2
vmovdqa 0x180(%rdi), %ymm3
vpcmpeqb %ymm1, %ymm2, %ymm4
vpmovmskb %ymm4, %r14d
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %r15d
leaq 0x1(%rbp), %rcx
movq %rcx, 0x88(%rdi)
vmovdqu (%rax), %ymm1
vmovdqa %ymm1, 0xc0(%rdi)
vpcmpeqb %ymm1, %ymm2, %ymm2
vpmovmskb %ymm2, %ecx
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %edx
shlq $0x20, %rcx
orq %r14, %rcx
shlq $0x20, %rdx
orq %r15, %rdx
leaq (%rdx,%rdx), %r15
notq %r15
andq %rdx, %r15
movl %r10d, %r11d
movl %r9d, %r10d
movq 0x240(%rdi), %r9
movq %r9, %r14
movq -0x30(%rsp), %rax
xorq %rax, %r14
movl %r12d, -0x28(%rsp)
movq %r15, %r12
andq %r14, %r12
notq %r14
andq %r15, %r14
addq %rdx, %r12
xorl %r15d, %r15d
addq %rdx, %r14
setb %r15b
orq %r9, %r14
movl %r10d, %r9d
movl %r11d, %r10d
movq %r15, 0x240(%rdi)
andq -0x8(%rsp), %r12
andq %rax, %r14
orq %r12, %r14
movl -0x28(%rsp), %r12d
notq %r14
orq %rdx, %r14
andq %rcx, %r14
movq %r14, 0xe0(%rdi)
vmovq %r14, %xmm1
vpclmulqdq $0x0, %xmm0, %xmm1, %xmm1
vmovq %xmm1, %rcx
xorq 0x248(%rdi), %rcx
movq %rcx, (%rdi)
sarq $0x3f, %rcx
movq %rcx, 0x248(%rdi)
movq %r13, -0x40(%rsp)
cmpb $0x0, 0x32(%r8)
jne 0x1b868
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)
cmpb $0x0, 0x34(%r8)
je 0x1b875
movq 0x20(%r8), %r14
jmp 0x1b8ae
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), %r14
notq %r14
andq %rdx, %r14
movq %r14, 0x20(%r8)
movb $0x1, 0x34(%r8)
orq 0x10(%r8), %r14
testb $0x1, %r9b
je 0x1b8cd
movq %r14, %rdx
negq %rdx
setb %cl
andq %r14, %rdx
leaq -0x1(%rdx), %rax
orq %rdx, %rax
jmp 0x1b925
movq (%rsi), %rax
cqto
movabsq $0x40, %rcx
idivq %rcx
movq %rdx, %rcx
movabsq $0x1, %r15
shlq %cl, %r15
movq %r15, %rax
negq %rax
movq %rax, %rdx
btcq %rcx, %rdx
andq %rdx, %r14
setne %cl
je 0x1b915
movq %r14, %r9
negq %r9
andq %r14, %r9
movq %r9, %rax
subq %r15, %rax
jmp 0x1b91f
movabsq $-0x8000000000000000, %r9 # imm = 0x8000000000000000
orq %r9, %rax
andq %rdx, %rax
vmovdqa 0x220(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %edx
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r15d
shlq $0x20, %r15
orq %rdx, %r15
movq (%rdi), %r14
notq %r14
andq %r14, %r15
movq %r15, 0x28(%r8)
cmpb $0x0, 0x31(%r8)
je 0x1b966
movq 0x8(%r8), %rdx
jmp 0x1b999
vmovdqa 0x1e0(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %r9d
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %edx
shlq $0x20, %rdx
orq %r9, %rdx
andq %r14, %rdx
movq %rdx, 0x8(%r8)
movb $0x1, 0x31(%r8)
movq %r15, %r14
andq %rax, %r14
leaq -0x1(%r14), %r9
xorq %r15, %r9
andq %rax, %rdx
andq %r9, %rdx
popcntq %rdx, %r9
addl %r9d, %r10d
movl %r12d, %r15d
subl %r10d, %r15d
jle 0x1b9e7
testq %r14, %r14
jne 0x1ba06
testb %cl, %cl
jne 0x1ba22
incq %r13
addq $0x40, -0x38(%rsp)
addq $0x2, %rbp
movb $0x1, %r9b
movl %r15d, %r12d
jmp 0x1b701
leaq -0x1(%rdx), %rax
andq %rax, %rdx
decl %r12d
cmpl $0x2, %r12d
jge 0x1b9dd
movq -0x40(%rsp), %rax
shlq $0x6, %rax
bsfq %rdx, %rcx
orq %rax, %rcx
xorl %edx, %edx
movl $0x3e9, %eax            # imm = 0x3E9
jmp 0x1ba1d
movq -0x40(%rsp), %rax
shlq $0x6, %rax
bsfq %r14, %rcx
orq %rax, %rcx
xorl %edx, %edx
movl $0x3ea, %eax            # imm = 0x3EA
xorl %r10d, %r10d
jmp 0x1ba41
movq -0x40(%rsp), %rdx
shlq $0x6, %rdx
bsrq %rax, %rcx
xorq $0x3f, %rcx
orq %rdx, %rcx
xorq $0x3f, %rcx
movl $0x3ed, %eax            # imm = 0x3ED
movb $0x1, %dl
movq %rcx, (%rsi)
leal -0x3eb(%rax), %ecx
movl -0x1c(%rsp), %r12d
movl %r12d, %r9d
subl %r10d, %r9d
incl %r9d
testb %dl, %dl
cmovnel %r9d, %r12d
cmpl $-0x2, %ecx
movabsq $0x100002400, %r9       # imm = 0x100002400
jae 0x1ba7a
decl %r12d
jmp 0x1afd1
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 0x1ba7a
nop