// File: /workspace/github_cpp_makefile_star2_O3/jswaff[P]prophet3/src/search.cpp
// Function: search_helper(position*, move_line*, int, int, int, int, bool, bool, bool, search_stats*, unsigned long long*, undo*)
int32 search_helper(position *pos,move_line *parent_pv,
        int32 alpha,int32 beta,int32 depth,int32 ply,
        bool pv_node,bool incheck,bool null_ok,
        search_stats *stats,move *startp,undo *undo_stack) {

    assert(pos);
    assert(parent_pv);
    assert(ply > 0);
    assert(alpha < beta);
    assert(stats);

    stats->nodes++; // should include leaf nodes
    int32 orig_alpha = alpha;
    parent_pv->n=0;

    // leaf node?
    if (depth < 1 || ply >= MAX_PLY) {
        assert(!incheck);
        return qsearch(pos,alpha,beta,ply,0,incheck,stats,startp,undo_stack);
    }

    // time check
    if (!analysis_mode && nodes_last_time_check >= 50000) {
        if (milli_timer() >= stop_time) {
            abort_search = true;
            printd("# Aborting search depth=%d, ply=%d on time...\n",depth,ply);
            return 0;
        }
        nodes_last_time_check = 0;
    } else {
        nodes_last_time_check++;
    }

    // draw check.  Note: not doing insufficient material (too expensive?)
    if (is_draw_by_rep(pos,undo_stack) || is_draw_by_50(pos)) {
        return DRAWSCORE;
    }

    // check hash table for score and/or move
    uint64 hash_val = get_hash_entry(&htbl,pos->hash_key);
    if (hash_val != 0 && get_hash_entry_depth(hash_val) >= depth) {
        hash_entry_t hash_entry_type = get_hash_entry_type(hash_val);
        if (hash_entry_type==LOWER_BOUND) {
            if (get_hash_entry_score(hash_val) >= beta) {
                stats->fail_highs++;
                return beta;
            }
        } else if (hash_entry_type==UPPER_BOUND) {
            if (get_hash_entry_score(hash_val) <= alpha) {
                stats->fail_lows++;
                return alpha;
            }
        } else if (hash_entry_type==EXACT_SCORE) {
            stats->hash_exact_scores++;
            return get_hash_entry_score(hash_val);
        }
    }

    // Null Move
    // The idea here is that if my position is so good that, if by giving the opponent
    // an extra turn they can't raise their score to alpha, then when I actually do make
    // a move I will almost surely fail high.
    if (!pv_node && !incheck && null_ok && depth >= 3 && beta < INF && !is_zugzwang(pos)) {
        square_t ep_sq = apply_null_move(pos);
        int nullDepth = depth - 4; // R=3
        if (nullDepth < 1) { nullDepth = 1; } // don't drop into q-search
        int32 null_score = -search_helper(pos,parent_pv,-beta,-beta+1,nullDepth,ply,
                false,false,false,stats,startp,undo_stack);
        undo_null_move(pos,ep_sq);
        if (abort_search) {
            return 0;
        }
        if (null_score >= beta) {
            return beta;
        }
    }

    // get ready to search
    move_line pv; pv.n=0;
    uint32 moves_searched=0,moves_pruned=0;
    move best_mv = 0;
    move_order_dto mo_dto = build_move_order_dto(startp,
            (pv_node && stats->last_pv.n > ply ? stats->last_pv.mv[ply] : 0),
            get_hash_entry_move(hash_val),
            killer1[ply],killer2[ply],false);

    move *mp;
    while (next(pos,&mp,&mo_dto)) {
        assert(good_move(pos,*mp));
        apply_move(pos,*mp,undo_stack);
        if (in_check(pos,opposite_player(pos->player))) {
            undo_last_move(pos,undo_stack);
            continue;
        }

        if (pv_node && moves_searched==0) {
            stats->first_line_searched.mv[ply] = *mp;
            stats->first_line_searched.n = ply+1;
        }
        bool gives_check = in_check(pos,pos->player);
        int32 ext = extend(pos,*mp,gives_check);
        assert(ext >= 0 && ext <= 1);

        int32 score;

        // TODO: refactor so that pruning decision is here.  (So it will need to consider moves_searched.)

        // TODO: after that call a 'reduce()' function that returns an integer
        // Initially that would include the LMR tests.
        // Later add in the razoring tests: https://chessprogramming.wikispaces.com/Razoring

        // call to search should be depth-1+ext-red
        // Try PVS again!


        if (moves_searched==0) {
            score = -search_helper(pos,&pv,-beta,-alpha,depth-1+ext,ply+1,
                pv_node,gives_check,!pv_node,stats,mo_dto.endp,undo_stack);
        } else {

            // if this position is looking unpromising, just skip it
            if (prune(pos,*mp,incheck,gives_check,ext,alpha,beta,depth)) {
                undo_last_move(pos,undo_stack);
                stats->prunes++;
                moves_pruned++;
                continue;
            }

            // if we've searched enough moves and haven't gotten a fail high yet, this is likely
            // a fail-low node.  reduce the remaining moves.  if the score comes back above alpha,
            // then our assumption was wrong and we need to research at full depth.
            if (moves_searched >= 4 && depth >= 3
                    && !pv_node && !incheck && !gives_check && ext==0
                    && !is_capture(*mp) && !get_promopiece(*mp)
                    && *mp != mo_dto.killer1 && *mp != mo_dto.killer2)
            {
                score = -search_helper(pos,&pv,-(alpha+1),-alpha,depth-2,ply+1,
                    false,false,true,stats,mo_dto.endp,undo_stack);
            } else {
                score = alpha + 1; // ensure a full depth search
            }

            if (score > alpha) {
                // try a PVS search.  since this is not the PV node, our expectation is that it will not improve
                // alpha.  If it does, then we need to research with a full window to establish the real score.
                //score = -search_helper(pos,&pv,-(alpha+1),-alpha,depth-1+ext,ply+1,
                //  false,gives_check,(ext==0),stats,endp,undo_stack);

                //if (score > alpha && score < beta) {
                    score = -search_helper(pos,&pv,-beta,-alpha,depth-1+ext,ply+1,
                            false,gives_check,(ext==0),stats,mo_dto.endp,undo_stack);
                //}
            }
        }
        moves_searched++;

        // restore the position
        undo_last_move(pos,undo_stack);

        if (abort_search) {
            return 0;
        }

        if (score > alpha) {
            if (score >= beta) {
                store_hash_entry(&htbl,pos->hash_key,build_hash_val(LOWER_BOUND,depth,score,*mp));
                if (!is_capture(*mp) && !get_promopiece(*mp)) {
                    assert(get_move_score(mp)==0);
                    killer2[ply] = killer1[ply];
                    killer1[ply] = *mp;
                }
                return beta;
            }
            alpha = score;
            best_mv = *mp;
            update_parent_pv(parent_pv,&pv,*mp);
        }
    }

    assert(moves_searched+moves_pruned==num_moves(pos,true,true));
    assert(alpha >= orig_alpha);

    alpha = adjust_final_score_for_mates(pos,alpha,moves_searched,ply);

    hash_entry_t het = best_mv==0 ? UPPER_BOUND : EXACT_SCORE;
    store_hash_entry(&htbl,pos->hash_key,build_hash_val(het,depth,alpha,best_mv));


    return alpha;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3f8, %rsp            # imm = 0x3F8
testq %rdi, %rdi
je 0xbfb7
testq %rsi, %rsi
je 0xbfd6
testl %r9d, %r9d
jle 0xbff5
cmpl %ecx, %edx
jge 0xc014
movq 0x448(%rsp), %r13
testq %r13, %r13
je 0xc033
movq %rdi, %r12
movq 0x458(%rsp), %r14
movq 0x450(%rsp), %rbx
movb 0x440(%rsp), %r15b
movb 0x438(%rsp), %r10b
movb 0x430(%rsp), %r11b
incq 0x18(%r13)
movl $0x0, (%rsi)
testl %r8d, %r8d
setg %al
cmpl $0x64, %r9d
setb %dil
testb %dil, %al
jne 0xb821
testb %r10b, %r10b
jne 0xc052
subq $0x8, %rsp
movq %r12, %rdi
movl %edx, %esi
movl %ecx, %edx
movl %r9d, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r14
pushq %rbx
pushq %r13
callq 0xc1b8
addq $0x418, %rsp            # imm = 0x418
jmp 0xbdde
movb %r11b, 0x2(%rsp)
movb %r10b, 0x3(%rsp)
movq %rsi, 0x78(%rsp)
movl %edx, 0x1c(%rsp)
movq %r8, 0x20(%rsp)
movq %rcx, 0x10(%rsp)
movq 0x8710f3(%rip), %rbp    # 0x87c938
cmpq $0xc350, %rbp           # imm = 0xC350
setb %al
orb 0x8710eb(%rip), %al     # 0x87c940
movq %r9, 0x40(%rsp)
je 0xb861
incq %rbp
jmp 0xb874
callq 0xdf08
xorl %ebp, %ebp
cmpl 0x8710c2(%rip), %eax    # 0x87c930
jge 0xb939
movq %rbp, 0x8710bd(%rip)    # 0x87c938
movq %r12, %rdi
movq %r14, %rsi
callq 0x4a6d
xorl %ebp, %ebp
testb %al, %al
jne 0xbdd5
movq %r12, %rdi
callq 0x4ba8
testb %al, %al
jne 0xbdd5
movq 0x1b8(%r12), %rsi
leaq 0xec641(%rip), %rdi     # 0xf7ef0
callq 0x6312
movq %rax, %rdi
testq %rax, %rax
je 0xb8d1
movq %rdi, %rbp
callq 0x61eb
movq %rbp, %rdi
cmpl 0x20(%rsp), %eax
jge 0xbde9
movb 0x2(%rsp), %dl
movl %edx, %eax
orb 0x3(%rsp), %al
jne 0xb915
cmpl $0x3, 0x20(%rsp)
setb %al
xorb $0x1, %r15b
cmpl $0x30d40, 0x10(%rsp)    # imm = 0x30D40
setge %cl
orb %al, %cl
orb %r15b, %cl
jne 0xb915
movq %rdi, %r15
movq %r12, %rdi
callq 0xb178
movq %r15, %rdi
movb 0x2(%rsp), %dl
testb %al, %al
je 0xbe2c
movl $0x0, 0xd0(%rsp)
movq 0x40(%rsp), %rax
movl %eax, %r15d
testb %dl, %dl
je 0xb95d
cmpl %eax, 0x28(%r13)
jle 0xb95d
movq 0x30(%r13,%r15,8), %rbp
jmp 0xb95f
movb $0x1, 0x871001(%rip)    # 0x87c941
leaq 0x207c7(%rip), %rdi     # 0x2c10e
movq 0x20(%rsp), %rsi
movq 0x40(%rsp), %rdx
xorl %eax, %eax
callq 0x65d9
jmp 0xbdd5
xorl %ebp, %ebp
callq 0x621c
leaq 0xec5e5(%rip), %rcx     # 0xf7f50
movq (%rcx,%r15,8), %r8
leaq 0xec8fa(%rip), %rcx     # 0xf8270
movq (%rcx,%r15,8), %r9
subq $0x8, %rsp
leaq 0x98(%rsp), %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq %rax, %rcx
pushq $0x0
callq 0xb2d7
addq $0x10, %rsp
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
leaq 0x90(%rsp), %rdx
callq 0x8b70
testb %al, %al
je 0xbd23
movq %r15, 0x70(%rsp)
movq 0x40(%rsp), %rax
incl %eax
movl %eax, 0x2c(%rsp)
movq 0x20(%rsp), %r15
leal -0x2(%r15), %eax
movl %eax, 0x64(%rsp)
movq 0x10(%rsp), %rax
negl %eax
movl %eax, 0x4c(%rsp)
leal -0x1(%r15), %eax
movq %rax, 0x68(%rsp)
movb 0x2(%rsp), %cl
movl %ecx, %eax
xorb $0x1, %al
movzbl %al, %eax
movq %rax, 0x88(%rsp)
movzbl %cl, %eax
movq %rax, 0x80(%rsp)
movl 0x1c(%rsp), %ebx
movl %ebx, 0x4(%rsp)
movq $0x0, 0x58(%rsp)
movl $0x0, 0x3c(%rsp)
xorl %ebp, %ebp
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq %r12, %rdi
callq 0x910b
testb %al, %al
je 0xbf98
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq %r12, %rdi
movq %r14, %rdx
callq 0x30e1
movl 0x138(%r12), %edi
callq 0xdf74
movq %r12, %rdi
movl %eax, %esi
callq 0xaf41
testb %al, %al
je 0xba90
movq %r12, %rdi
movq %r14, %rsi
callq 0x334b
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0x8b70
testb %al, %al
jne 0xba21
jmp 0xbd43
movq %rbp, 0x30(%rsp)
testl %ebp, %ebp
sete %al
andb 0x2(%rsp), %al
cmpb $0x1, %al
movq 0x70(%rsp), %r15
jne 0xbac2
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x358(%r13,%r15,8)
movl 0x2c(%rsp), %eax
movl %eax, 0x350(%r13)
movl 0x138(%r12), %esi
movq %r12, %rdi
callq 0xaf41
movl %eax, %ebp
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movzbl %bpl, %edx
movq %r12, %rdi
movq %rdx, 0x50(%rsp)
callq 0x5e8c
cmpl $0x2, %eax
jae 0xc0af
movl %eax, %ebx
cmpl $0x0, 0x30(%rsp)
je 0xbb4f
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movzbl 0x3(%rsp), %edx
movq %r12, %rdi
movq 0x50(%rsp), %rcx
movl %ebx, %r8d
movl 0x4(%rsp), %r9d
movq 0x20(%rsp), %r15
pushq %r15
pushq 0x18(%rsp)
callq 0xb1b0
addq $0x10, %rsp
testb %al, %al
je 0xbb92
movq %r12, %rdi
movq %r14, %rsi
callq 0x334b
incq 0x678(%r13)
incl 0x3c(%rsp)
jmp 0xbc83
movl 0x4(%rsp), %ecx
negl %ecx
addl 0x68(%rsp), %ebx
movq %r12, %rdi
leaq 0xd0(%rsp), %rsi
movl 0x4c(%rsp), %edx
movl %ebx, %r8d
movl 0x2c(%rsp), %r9d
pushq %r14
pushq 0xc8(%rsp)
pushq %r13
pushq 0xa0(%rsp)
pushq 0x70(%rsp)
pushq 0xa8(%rsp)
jmp 0xbc1f
cmpl $0x3, %r15d
setb %al
cmpl $0x4, 0x30(%rsp)
setb %cl
orb %al, %cl
testl %ebx, %ebx
setne %al
orb %al, %bpl
orb 0x2(%rsp), %cl
orb 0x3(%rsp), %cl
orb %bpl, %cl
movq 0x70(%rsp), %r15
jne 0xbbe3
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x7883
testb %al, %al
jne 0xbbe3
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x786f
testl %eax, %eax
je 0xbcb3
movl 0x4(%rsp), %ecx
negl %ecx
movq 0x68(%rsp), %rax
leal (%rax,%rbx), %r8d
xorl %eax, %eax
testl %ebx, %ebx
sete %al
movq %r12, %rdi
leaq 0xd0(%rsp), %rsi
movl 0x4c(%rsp), %edx
movl 0x2c(%rsp), %r9d
pushq %r14
pushq 0xc8(%rsp)
pushq %r13
pushq %rax
pushq 0x70(%rsp)
pushq $0x0
callq 0xb761
addq $0x30, %rsp
movl %eax, %ebp
negl %ebp
movq %r12, %rdi
movq %r14, %rsi
callq 0x334b
cmpb $0x0, 0x870d03(%rip)    # 0x87c941
jne 0xbefb
movq 0x30(%rsp), %rax
incl %eax
movq %rax, 0x30(%rsp)
cmpl 0x4(%rsp), %ebp
jle 0xbc83
cmpl 0x10(%rsp), %ebp
jge 0xbf02
movq 0x8(%rsp), %rax
movq (%rax), %rdx
movq 0x78(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
movq %rdx, 0x58(%rsp)
callq 0xc0ed
movl %ebp, 0x4(%rsp)
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0x8b70
testb %al, %al
movq 0x20(%rsp), %r15
movl 0x1c(%rsp), %ebx
movq 0x30(%rsp), %rbp
jne 0xba21
jmp 0xbd43
movq 0x8(%rsp), %rax
movq (%rax), %rax
cmpq 0xa8(%rsp), %rax
je 0xbbe3
cmpq 0xb0(%rsp), %rax
je 0xbbe3
movl 0x4(%rsp), %ecx
movl %ecx, %edx
notl %edx
negl %ecx
movq %r12, %rdi
leaq 0xd0(%rsp), %rsi
movl 0x64(%rsp), %r8d
movl 0x2c(%rsp), %r9d
pushq %r14
pushq 0xc8(%rsp)
pushq %r13
pushq $0x1
xorl %eax, %eax
pushq %rax
pushq %rax
callq 0xb761
addq $0x30, %rsp
movl %eax, %ebp
negl %ebp
cmpl %ebp, 0x4(%rsp)
jl 0xbbe3
jmp 0xbc2c
movl $0x0, 0x3c(%rsp)
movq $0x0, 0x58(%rsp)
movl 0x1c(%rsp), %ebx
movl %ebx, 0x4(%rsp)
movq 0x20(%rsp), %r15
xorl %ebp, %ebp
movl 0x3c(%rsp), %r14d
addl %ebp, %r14d
movq %r12, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0xe6d3
cmpl %eax, %r14d
jne 0xc071
movl 0x4(%rsp), %r14d
cmpl %ebx, %r14d
jl 0xc090
testl %ebp, %ebp
jne 0xbd9c
movl 0x138(%r12), %esi
movq %r12, %rdi
callq 0xaf41
movq 0x40(%rsp), %rcx
addl $0xffff0001, %ecx       # imm = 0xFFFF0001
xorl %r14d, %r14d
testb %al, %al
cmovnel %ecx, %r14d
movq 0x58(%rsp), %rcx
cmpq $0x1, %rcx
movl $0x3, %edi
sbbl $0x0, %edi
movq 0x1b8(%r12), %rbx
movl %r15d, %esi
movl %r14d, %edx
callq 0x604f
leaq 0xec129(%rip), %rdi     # 0xf7ef0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x636f
movl %r14d, %ebp
movl %ebp, %eax
addq $0x3f8, %rsp            # imm = 0x3F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x61e4
cmpl $0x3, %eax
je 0xbede
cmpl $0x2, %eax
je 0xbeba
cmpl $0x1, %eax
movq %rbp, %rdi
jne 0xb8d1
movq %rbp, %rdi
callq 0x61f2
movq %rbp, %rdi
cmpl 0x10(%rsp), %eax
jl 0xb8d1
incq (%r13)
movq 0x10(%rsp), %rbp
jmp 0xbdd5
movq %r12, %rdi
callq 0x35c8
movl %eax, 0x4(%rsp)
movq 0x20(%rsp), %rax
cmpl $0x6, %eax
movl $0x5, %r8d
cmovael %eax, %r8d
addl $-0x4, %r8d
movq 0x10(%rsp), %rax
movl %eax, %edx
negl %edx
movl $0x1, %ecx
subl %eax, %ecx
xorl %ebp, %ebp
movq %r12, %rdi
movq 0x78(%rsp), %rsi
movq 0x40(%rsp), %r9
pushq %r14
pushq %rbx
pushq %r13
pushq %rbp
pushq %rbp
pushq %rbp
callq 0xb761
addq $0x30, %rsp
movl %eax, 0x30(%rsp)
movq %r12, %rdi
movl 0x4(%rsp), %esi
callq 0x364d
cmpb $0x0, 0x870aac(%rip)    # 0x87c941
jne 0xbdd5
movl 0x30(%rsp), %eax
negl %eax
movq 0x10(%rsp), %rbp
cmpl %ebp, %eax
movb 0x2(%rsp), %dl
movq %r15, %rdi
jl 0xb915
jmp 0xbdd5
movq %rbp, %rdi
callq 0x61f2
movq %rbp, %rdi
cmpl 0x1c(%rsp), %eax
jg 0xb8d1
incq 0x8(%r13)
movl 0x1c(%rsp), %eax
movl %eax, %ebp
jmp 0xbdd5
incq 0x10(%r13)
movq %rbp, %rdi
addq $0x3f8, %rsp            # imm = 0x3F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x61f2
xorl %ebp, %ebp
jmp 0xbdd5
movq 0x1b8(%r12), %rbx
movq 0x8(%rsp), %rax
movq (%rax), %rcx
movl $0x1, %edi
movq 0x20(%rsp), %rsi
movl %ebp, %edx
callq 0x604f
leaq 0xebfc6(%rip), %rdi     # 0xf7ef0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x636f
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x7883
testb %al, %al
jne 0xbe25
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x786f
testl %eax, %eax
jne 0xbe25
movq 0x8(%rsp), %rdi
callq 0x78a1
testl %eax, %eax
jne 0xc0ce
leaq 0xebfd8(%rip), %rcx     # 0xf7f50
movq (%rcx,%r15,8), %rax
leaq 0xec2ed(%rip), %rdx     # 0xf8270
movq %rax, (%rdx,%r15,8)
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq %rax, (%rcx,%r15,8)
jmp 0xbe25
leaq 0x200c3(%rip), %rdi     # 0x2c062
leaq 0x1ffc0(%rip), %rsi     # 0x2bf66
leaq 0x200c8(%rip), %rcx     # 0x2c075
movl $0xdd, %edx
callq 0x20d0
leaq 0x1d5cb(%rip), %rdi     # 0x29589
leaq 0x1ffa1(%rip), %rsi     # 0x2bf66
leaq 0x200a9(%rip), %rcx     # 0x2c075
movl $0x8a, %edx
callq 0x20d0
leaq 0x2005e(%rip), %rdi     # 0x2c03b
leaq 0x1ff82(%rip), %rsi     # 0x2bf66
leaq 0x2008a(%rip), %rcx     # 0x2c075
movl $0x8b, %edx
callq 0x20d0
leaq 0x200f4(%rip), %rdi     # 0x2c0f0
leaq 0x1ff63(%rip), %rsi     # 0x2bf66
leaq 0x2006b(%rip), %rcx     # 0x2c075
movl $0x8c, %edx
callq 0x20d0
leaq 0x200dd(%rip), %rdi     # 0x2c0f8
leaq 0x1ff44(%rip), %rsi     # 0x2bf66
leaq 0x2004c(%rip), %rcx     # 0x2c075
movl $0x8d, %edx
callq 0x20d0
leaq 0x2000b(%rip), %rdi     # 0x2c045
leaq 0x1ff25(%rip), %rsi     # 0x2bf66
leaq 0x2002d(%rip), %rcx     # 0x2c075
movl $0x8e, %edx
callq 0x20d0
leaq 0x200ac(%rip), %rdi     # 0x2c105
leaq 0x1ff06(%rip), %rsi     # 0x2bf66
leaq 0x2000e(%rip), %rcx     # 0x2c075
movl $0x96, %edx
callq 0x20d0
leaq 0x200f0(%rip), %rdi     # 0x2c168
leaq 0x1fee7(%rip), %rsi     # 0x2bf66
leaq 0x1ffef(%rip), %rcx     # 0x2c075
movl $0x138, %edx            # imm = 0x138
callq 0x20d0
leaq 0x20107(%rip), %rdi     # 0x2c19e
leaq 0x1fec8(%rip), %rsi     # 0x2bf66
leaq 0x1ffd0(%rip), %rcx     # 0x2c075
movl $0x139, %edx            # imm = 0x139
callq 0x20d0
leaq 0x20087(%rip), %rdi     # 0x2c13d
leaq 0x1fea9(%rip), %rsi     # 0x2bf66
leaq 0x1ffb1(%rip), %rcx     # 0x2c075
movl $0xea, %edx
callq 0x20d0
leaq 0x2007d(%rip), %rdi     # 0x2c152
leaq 0x1fe8a(%rip), %rsi     # 0x2bf66
leaq 0x1ff92(%rip), %rcx     # 0x2c075
movl $0x12c, %edx            # imm = 0x12C
callq 0x20d0