// File: /workspace/github_cpp_makefile_star2_O1/AutomataLab[P]JSONSki/src/QueryProcessor.cpp
// Function: QueryProcessor::goOverPriAttrs(long&, bitmap&)
__attribute__((always_inline)) int QueryProcessor::goOverPriAttrs(long& pos, bitmap& bm) {
    long word_id = pos / 64;
    bool new_word = false;
    while (word_id < mNumWords) {
        if (word_id > top_word) {
            // build basic bitmaps for the next word
            resetBitmap(bm);
            start_id = word_id * 2;
            build_bitmap_basic();
        }
        get_bitmap_lbrace(bm);
        get_bitmap_lbracket(bm);
        unsigned long bitmap_bracket = bm.lbracebit | bm.lbracketbit; 
        IntervalInfo interval;
        if (new_word == true) {
            interval = get_interval_new_word(bitmap_bracket);
        } else {
            interval = get_interval(pos, bitmap_bracket);
        }
        get_bitmap_rbrace(bm);
        unsigned long bitmap_rbrace = bm.rbracebit & interval.intervalbit;
        if (bitmap_rbrace) {
            pos = get_position(bitmap_rbrace, 1);
            return OBJECT_END;
        }
        if (interval.is_complete) {
            pos = interval_end(interval.intervalbit);
            return SUCCESS;
        }
        ++word_id;
        new_word = true; 
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq (%rsi), %rax
leaq 0x3f(%rax), %r8
testq %rax, %rax
cmovnsq %rax, %r8
sarq $0x6, %r8
leaq 0x30(%rdx), %r9
movq 0x2c8(%rdi), %r10
xorl %r11d, %r11d
vpcmpeqd %xmm0, %xmm0, %xmm0
cmpq 0x270(%rdi), %r8
jle 0x1948e
leaq (%r8,%r8), %rcx
movw $0x0, 0x4(%r9)
movl $0x0, (%r9)
movq %rcx, 0x88(%rdi)
movq %r8, 0x270(%rdi)
movq %r8, %rcx
shlq $0x6, %rcx
vmovdqu (%r10,%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
leaq 0x1(,%r8,2), %rcx
movq %rcx, 0x88(%rdi)
shlq $0x5, %rcx
vmovdqu (%r10,%rcx), %ymm1
vmovdqa %ymm1, 0xc0(%rdi)
vpcmpeqb %ymm1, %ymm2, %ymm2
vpmovmskb %ymm2, %ecx
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %ebx
shlq $0x20, %rcx
orq %r14, %rcx
shlq $0x20, %rbx
orq %r15, %rbx
leaq (%rbx,%rbx), %r15
notq %r15
andq %rbx, %r15
movq 0x250(%rdi), %r12
movq 0x240(%rdi), %r13
movq %r13, %r14
xorq %r12, %r14
movq %r15, %rbp
andq %r14, %rbp
notq %r14
andq %r15, %r14
addq %rbx, %rbp
xorl %r15d, %r15d
addq %rbx, %r14
setb %r15b
movq %r15, 0x240(%rdi)
andq 0x258(%rdi), %rbp
orq %r13, %r14
andq %r12, %r14
orq %rbp, %r14
notq %r14
orq %rbx, %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(%rdx)
jne 0x194d0
vmovdqa 0x1a0(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %ecx
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %ebx
shlq $0x20, %rbx
orq %rcx, %rbx
movq %rbx, 0x10(%rdx)
movq (%rdi), %rcx
notq %rcx
andq %rbx, %rcx
movq %rcx, 0x10(%rdx)
movb $0x1, 0x32(%rdx)
cmpb $0x0, 0x34(%rdx)
jne 0x19512
vmovdqa 0x200(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %ecx
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %ebx
shlq $0x20, %rbx
orq %rcx, %rbx
movq %rbx, 0x20(%rdx)
movq (%rdi), %rcx
notq %rcx
andq %rbx, %rcx
movq %rcx, 0x20(%rdx)
movb $0x1, 0x34(%rdx)
movq 0x20(%rdx), %r14
orq 0x10(%rdx), %r14
testb $0x1, %r11b
je 0x19535
movq %r14, %r15
negq %r15
setb %cl
andq %r14, %r15
leaq -0x1(%r15), %rbx
orq %r15, %rbx
jmp 0x19583
movq (%rsi), %rcx
leal 0x3f(%rcx), %ebx
testq %rcx, %rcx
cmovnsl %ecx, %ebx
andl $0xc0, %ebx
subl %ebx, %ecx
movl $0x1, %r12d
shlq %cl, %r12
movq %r12, %rbx
negq %rbx
movq %rbx, %r15
btcq %rcx, %r15
andq %r15, %r14
setne %cl
je 0x1957b
movq %r14, %r13
negq %r13
andq %r14, %r13
movq %r13, %rbx
subq %r12, %rbx
orq %r13, %rbx
jmp 0x19580
btsq $0x3f, %rbx
andq %r15, %rbx
cmpb $0x0, 0x33(%rdx)
jne 0x195c5
vmovdqa 0x1c0(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %r14d
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r15d
shlq $0x20, %r15
orq %r14, %r15
movq %r15, 0x18(%rdx)
movq (%rdi), %r14
notq %r14
andq %r15, %r14
movq %r14, 0x18(%rdx)
movb $0x1, 0x33(%rdx)
movq 0x18(%rdx), %r14
andq %rbx, %r14
je 0x195ea
movq 0x270(%rdi), %rax
shlq $0x6, %rax
bsfq %r14, %rcx
orq %rax, %rcx
movq %rcx, (%rsi)
movl $0x3eb, %eax            # imm = 0x3EB
jmp 0x19610
testb %cl, %cl
je 0x1961c
movq 0x270(%rdi), %rax
shlq $0x6, %rax
bsrq %rbx, %rcx
xorq $0x3f, %rcx
orq %rax, %rcx
xorq $0x3f, %rcx
movq %rcx, (%rsi)
movl $0x3e9, %eax            # imm = 0x3E9
xorl %ecx, %ecx
testb %cl, %cl
jne 0x1936a
jmp 0x19626
incq %r8
movb $0x1, %r11b
movb $0x1, %cl
jmp 0x19612
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
vzeroupper
retq