// File: /workspace/github_cpp_makefile_star2_O2/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 %rdx, %r8
movq (%rsi), %rax
movabsq $0x40, %rcx
cqto
idivq %rcx
movq %rax, %r9
leaq 0x30(%r8), %r11
movq 0x2c8(%rdi), %rax
movq 0x250(%rdi), %rbx
movq 0x258(%rdi), %rcx
movq %rcx, -0x8(%rsp)
movq 0x270(%rdi), %rbp
movq %r9, %rcx
shlq $0x6, %rcx
leaq (%rcx,%rax), %r15
addq $0x20, %r15
movq %r9, %r12
addq %r9, %r12
xorl %eax, %eax
vpcmpeqd %xmm0, %xmm0, %xmm0
cmpq %rbp, %r9
jle 0x19375
andw $0x0, 0x4(%r11)
andl $0x0, (%r11)
movq %r12, 0x88(%rdi)
movq %r9, 0x270(%rdi)
vmovdqu -0x20(%r15), %ymm1
vmovdqa %ymm1, 0xa0(%rdi)
vmovdqa 0x140(%rdi), %ymm2
vmovdqa 0x180(%rdi), %ymm3
vpcmpeqb %ymm1, %ymm2, %ymm4
vpmovmskb %ymm4, %r10d
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %r13d
leaq 0x1(%r12), %rcx
movq %rcx, 0x88(%rdi)
vmovdqu (%r15), %ymm1
vmovdqa %ymm1, 0xc0(%rdi)
vpcmpeqb %ymm1, %ymm2, %ymm2
vpmovmskb %ymm2, %ecx
vpcmpeqb %ymm1, %ymm3, %ymm1
vpmovmskb %ymm1, %edx
shlq $0x20, %rcx
orq %r10, %rcx
shlq $0x20, %rdx
orq %r13, %rdx
leaq (%rdx,%rdx), %r10
notq %r10
andq %rdx, %r10
movq 0x240(%rdi), %rbp
movq %rbp, %r13
xorq %rbx, %r13
movq %r10, %r14
andq %r13, %r14
notq %r13
andq %r10, %r13
addq %rdx, %r14
xorl %r10d, %r10d
addq %rdx, %r13
setb %r10b
orq %rbp, %r13
movq %r10, 0x240(%rdi)
andq -0x8(%rsp), %r14
andq %rbx, %r13
orq %r14, %r13
notq %r13
orq %rdx, %r13
andq %rcx, %r13
movq %r13, 0xe0(%rdi)
vmovq %r13, %xmm1
vpclmulqdq $0x0, %xmm0, %xmm1, %xmm1
vmovq %xmm1, %rcx
xorq 0x248(%rdi), %rcx
movq %rcx, (%rdi)
sarq $0x3f, %rcx
movq %rcx, 0x248(%rdi)
movq %r9, %rbp
cmpb $0x0, 0x32(%r8)
jne 0x193b5
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 0x193c2
movq 0x20(%r8), %r13
jmp 0x193fb
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), %r13
notq %r13
andq %rdx, %r13
movq %r13, 0x20(%r8)
movb $0x1, 0x34(%r8)
orq 0x10(%r8), %r13
testb $0x1, %al
je 0x19418
movq %r13, %rax
negq %rax
setb %cl
andq %r13, %rax
leaq -0x1(%rax), %rdx
orq %rax, %rdx
jmp 0x1946b
movq (%rsi), %rax
cqto
movabsq $0x40, %rcx
idivq %rcx
movq %rdx, %rcx
movabsq $0x1, %r10
shlq %cl, %r10
movq %r10, %rdx
negq %rdx
movq %rdx, %rax
btcq %rcx, %rax
andq %rax, %r13
setne %cl
je 0x19463
movq %r13, %r14
negq %r14
andq %r13, %r14
movq %r14, %rdx
subq %r10, %rdx
orq %r14, %rdx
jmp 0x19468
btsq $0x3f, %rdx
andq %rax, %rdx
cmpb $0x0, 0x33(%r8)
je 0x19478
movq 0x18(%r8), %rax
jmp 0x194b1
vmovdqa 0x1c0(%rdi), %ymm1
vpcmpeqb 0xa0(%rdi), %ymm1, %ymm2
vpmovmskb %ymm2, %eax
vpcmpeqb 0xc0(%rdi), %ymm1, %ymm1
vpmovmskb %ymm1, %r10d
shlq $0x20, %r10
orq %rax, %r10
movq (%rdi), %rax
notq %rax
andq %r10, %rax
movq %rax, 0x18(%r8)
movb $0x1, 0x33(%r8)
andq %rdx, %rax
jne 0x194e5
incq %r9
addq $0x40, %r15
addq $0x2, %r12
movb $0x1, %al
testb %cl, %cl
je 0x19272
shlq $0x6, %rbp
bsrq %rdx, %rcx
xorq $0x3f, %rcx
orq %rbp, %rcx
xorq $0x3f, %rcx
movl $0x3e9, %eax            # imm = 0x3E9
jmp 0x194f5
shlq $0x6, %rbp
bsfq %rax, %rcx
orq %rbp, %rcx
movl $0x3eb, %eax            # imm = 0x3EB
movq %rcx, (%rsi)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
vzeroupper
retq