// File: /workspace/github_cpp_makefile_star2_O2/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 $0x408, %rsp            # imm = 0x408
testq %rdi, %rdi
je 0xb5ea
testq %rsi, %rsi
je 0xb609
testl %r9d, %r9d
jle 0xb628
cmpl %ecx, %edx
jge 0xb647
movq 0x458(%rsp), %r13
testq %r13, %r13
je 0xb666
movq %rdi, %r12
movq 0x468(%rsp), %r14
movq 0x460(%rsp), %rbx
movb 0x450(%rsp), %r15b
movb 0x448(%rsp), %r10b
movb 0x440(%rsp), %r11b
incq 0x18(%r13)
andl $0x0, (%rsi)
testl %r8d, %r8d
setg %al
cmpl $0x64, %r9d
setb %dil
testb %dil, %al
jne 0xae7b
testb %r10b, %r10b
jne 0xb685
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 0xb7e9
addq $0x428, %rsp            # imm = 0x428
jmp 0xb400
movb %r11b, 0xe(%rsp)
movb %r10b, 0xf(%rsp)
movq %rsi, 0x88(%rsp)
movl %edx, 0x3c(%rsp)
movq %r9, 0x58(%rsp)
movq %r8, 0x40(%rsp)
movq %rcx, 0x30(%rsp)
movq 0x874a91(%rip), %rbp    # 0x87f938
cmpq $0xc350, %rbp           # imm = 0xC350
setb %al
orb 0x874a89(%rip), %al     # 0x87f940
je 0xaebe
incq %rbp
jmp 0xaed1
callq 0xd470
xorl %ebp, %ebp
cmpl 0x874a65(%rip), %eax    # 0x87f930
jge 0xafba
movq %rbp, 0x874a60(%rip)    # 0x87f938
movq %r12, %rdi
movq %r14, %rsi
callq 0x47e8
xorl %ebp, %ebp
testb %al, %al
jne 0xb3f7
movq %r12, %rdi
callq 0x490a
testb %al, %al
jne 0xb3f7
movq 0x1b8(%r12), %rsi
leaq 0xeffe4(%rip), %rdi     # 0xfaef0
callq 0x5e2e
movq %rax, %rdi
testq %rax, %rax
je 0xaf37
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
callq 0x5d10
movq 0x10(%rsp), %rdi
cmpl 0x40(%rsp), %eax
jge 0xb40b
movb 0xe(%rsp), %dl
movl %edx, %eax
orb 0xf(%rsp), %al
movq 0x40(%rsp), %rax
jne 0xaf87
cmpl $0x3, %eax
setb %al
xorb $0x1, %r15b
cmpl $0x30d40, 0x30(%rsp)    # imm = 0x30D40
setge %cl
orb %al, %cl
orb %r15b, %cl
jne 0xaf87
movq %rdi, 0x10(%rsp)
movq %r12, %rdi
callq 0xa80c
movq 0x10(%rsp), %rdi
movb 0xe(%rsp), %dl
movq 0x40(%rsp), %rcx
testb %al, %al
je 0xb452
andl $0x0, 0xe0(%rsp)
movq $0x0, 0x10(%rsp)
movq 0x58(%rsp), %rax
movl %eax, %ecx
movq %rcx, 0x68(%rsp)
testb %dl, %dl
je 0xafde
cmpl %eax, 0x28(%r13)
jle 0xafde
movq 0x68(%rsp), %rax
movq 0x30(%r13,%rax,8), %rbp
jmp 0xafe0
movb $0x1, 0x874980(%rip)    # 0x87f941
leaq 0x1f0f6(%rip), %rdi     # 0x2a0be
movq 0x40(%rsp), %rsi
movq 0x58(%rsp), %rdx
xorl %eax, %eax
callq 0x60fd
jmp 0xb3f7
xorl %ebp, %ebp
callq 0x5d41
leaq 0xeff64(%rip), %rdx     # 0xfaf50
movq 0x68(%rsp), %rcx
movq (%rdx,%rcx,8), %r8
leaq 0xf0274(%rip), %rdx     # 0xfb270
movq (%rdx,%rcx,8), %r9
subq $0x8, %rsp
leaq 0xa8(%rsp), %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq %rax, %rcx
pushq $0x0
callq 0xa96b
popq %rax
popq %rcx
movq 0x58(%rsp), %r15
leal 0x1(%r15), %eax
movl %eax, 0x4c(%rsp)
movq 0x40(%rsp), %rcx
leal -0x2(%rcx), %eax
movl %eax, 0x70(%rsp)
movq 0x30(%rsp), %rax
negl %eax
movl %eax, 0x64(%rsp)
leal -0x1(%rcx), %eax
movq %rax, 0x78(%rsp)
movb 0xe(%rsp), %cl
movl %ecx, %eax
xorb $0x1, %al
movzbl %al, %eax
movq %rax, 0x98(%rsp)
movzbl %cl, %eax
movq %rax, 0x90(%rsp)
movl $0x0, 0x50(%rsp)
movq $0x0, 0x80(%rsp)
movl 0x3c(%rsp), %ebp
movl %ebp, %edx
movl %edx, %eax
notl %eax
movl %eax, 0x74(%rsp)
movl %edx, %eax
negl %eax
movl %eax, 0x54(%rsp)
movl %edx, 0x2c(%rsp)
cmpl $0x0, 0x10(%rsp)
sete %al
andb %cl, %al
movb %al, 0x1f(%rsp)
leaq 0xa0(%rsp), %rbx
movq %r12, %rdi
leaq 0x20(%rsp), %rsi
movq %rbx, %rdx
callq 0x8490
testb %al, %al
je 0xb384
movq 0x20(%rsp), %rax
movq (%rax), %rsi
movq %r12, %rdi
callq 0x89da
testb %al, %al
je 0xb5cb
movq 0x20(%rsp), %rax
movq (%rax), %rsi
movq %r12, %rdi
movq %r14, %rdx
callq 0x2fa5
movl 0x138(%r12), %edi
callq 0xd4d8
movq %r12, %rdi
movl %eax, %esi
callq 0xa61f
testb %al, %al
je 0xb117
movq %r12, %rdi
movq %r14, %rsi
callq 0x31f8
jmp 0xb0ac
cmpb $0x0, 0x1f(%rsp)
je 0xb13e
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq 0x68(%rsp), %rcx
movq %rax, 0x358(%r13,%rcx,8)
movl 0x4c(%rsp), %eax
movl %eax, 0x350(%r13)
movl 0x138(%r12), %esi
movq %r12, %rdi
callq 0xa61f
movl %eax, %ebx
movq 0x20(%rsp), %rax
movq (%rax), %rsi
movzbl %bl, %r15d
movq %r12, %rdi
movl %r15d, %edx
callq 0x59f8
cmpl $0x2, %eax
jae 0xb6e2
movl %eax, %ebp
cmpl $0x0, 0x10(%rsp)
je 0xb1cb
movq 0x20(%rsp), %rax
movq (%rax), %rsi
movzbl 0xf(%rsp), %edx
movq %r12, %rdi
movl %r15d, %ecx
movl %ebp, %r8d
movl 0x2c(%rsp), %r9d
pushq 0x40(%rsp)
pushq 0x38(%rsp)
callq 0xa844
popq %rcx
popq %rdx
testb %al, %al
je 0xb20a
movq %r12, %rdi
movq %r14, %rsi
callq 0x31f8
incq 0x678(%r13)
incl 0x50(%rsp)
movq 0x58(%rsp), %r15
movl 0x3c(%rsp), %ebp
jmp 0xb0a4
addl 0x78(%rsp), %ebp
movq %r12, %rdi
leaq 0xe0(%rsp), %rsi
movl 0x64(%rsp), %edx
movl 0x54(%rsp), %ecx
movl %ebp, %r8d
movl 0x4c(%rsp), %r9d
pushq %r14
pushq 0xd8(%rsp)
pushq %r13
pushq 0xb0(%rsp)
pushq %r15
pushq 0xb8(%rsp)
jmp 0xb28d
cmpl $0x3, 0x40(%rsp)
setb %al
cmpl $0x4, 0x10(%rsp)
setb %cl
orb %al, %cl
testl %ebp, %ebp
setne %al
orb %al, %bl
orb 0xe(%rsp), %cl
orb 0xf(%rsp), %cl
orb %bl, %cl
jne 0xb255
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x739a
testb %al, %al
jne 0xb255
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x7386
testl %eax, %eax
je 0xb2de
movq 0x78(%rsp), %rax
leal (%rax,%rbp), %r8d
xorl %eax, %eax
testl %ebp, %ebp
sete %al
movq %r12, %rdi
leaq 0xe0(%rsp), %rsi
movl 0x64(%rsp), %edx
movl 0x54(%rsp), %ecx
movl 0x4c(%rsp), %r9d
pushq %r14
pushq 0xd8(%rsp)
pushq %r13
pushq %rax
pushq %r15
pushq $0x0
callq 0xadbe
addq $0x30, %rsp
movl %eax, %ebx
negl %ebx
movq %r12, %rdi
movq %r14, %rsi
callq 0x31f8
cmpb $0x0, 0x874695(%rip)    # 0x87f941
jne 0xb52b
movq 0x10(%rsp), %rax
incl %eax
movq %rax, 0x10(%rsp)
movl 0x2c(%rsp), %edx
cmpl %edx, %ebx
movq 0x30(%rsp), %rax
movq 0x58(%rsp), %r15
movl 0x3c(%rsp), %ebp
movb 0xe(%rsp), %cl
jle 0xb096
jmp 0xb34c
movq 0x20(%rsp), %rax
movq (%rax), %rax
cmpq 0xb8(%rsp), %rax
je 0xb255
cmpq 0xc0(%rsp), %rax
je 0xb255
movq %r12, %rdi
leaq 0xe0(%rsp), %rsi
movl 0x74(%rsp), %edx
movl 0x54(%rsp), %ecx
movl 0x70(%rsp), %r8d
movl 0x4c(%rsp), %r9d
pushq %r14
pushq 0xd8(%rsp)
pushq %r13
pushq $0x1
pushq $0x0
pushq $0x0
callq 0xadbe
addq $0x30, %rsp
movl %eax, %ebx
negl %ebx
cmpl %ebx, 0x2c(%rsp)
jl 0xb255
jmp 0xb29a
cmpl %eax, %ebx
jge 0xb532
movq 0x20(%rsp), %rax
movq (%rax), %rdx
movq 0x88(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
movq %rdx, 0x80(%rsp)
callq 0xb720
movl %ebx, %edx
movb 0xe(%rsp), %cl
jmp 0xb082
movl 0x50(%rsp), %ebx
addl 0x10(%rsp), %ebx
pushq $0x1
popq %rdx
movq %r12, %rdi
movl %edx, %esi
callq 0xdb11
cmpl %eax, %ebx
jne 0xb6a4
movl 0x2c(%rsp), %esi
cmpl %ebp, %esi
jl 0xb6c3
movq %r12, %rdi
movq 0x10(%rsp), %rdx
movl %r15d, %ecx
callq 0xbbaa
movl %eax, %ebp
movq 0x80(%rsp), %rcx
cmpq $0x1, %rcx
pushq $0x3
popq %rdi
sbbl $0x0, %edi
movq 0x1b8(%r12), %rbx
movq 0x40(%rsp), %rsi
movl %eax, %edx
callq 0x5b8a
leaq 0xefb04(%rip), %rdi     # 0xfaef0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x5e8b
movl %ebp, %eax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5d09
cmpl $0x3, %eax
je 0xb50c
cmpl $0x2, %eax
je 0xb4e4
cmpl $0x1, %eax
movq 0x10(%rsp), %rdi
jne 0xaf37
movq 0x10(%rsp), %rdi
callq 0x5d17
movq 0x10(%rsp), %rdi
cmpl 0x30(%rsp), %eax
jl 0xaf37
incq (%r13)
jmp 0xb4da
movq %r12, %rdi
movq %rcx, %r15
callq 0x344b
movl %eax, 0x2c(%rsp)
cmpl $0x6, %r15d
pushq $0x5
popq %r8
cmovael %r15d, %r8d
addl $-0x4, %r8d
movq 0x30(%rsp), %r15
movl %r15d, %edx
negl %edx
pushq $0x1
popq %rcx
subl %r15d, %ecx
movq %r12, %rdi
movq 0x88(%rsp), %rsi
movq 0x58(%rsp), %r9
pushq %r14
pushq %rbx
pushq %r13
pushq $0x0
pushq $0x0
pushq $0x0
callq 0xadbe
addq $0x30, %rsp
movl %eax, 0x50(%rsp)
movq %r12, %rdi
movl 0x2c(%rsp), %esi
callq 0x34d0
cmpb $0x0, 0x874485(%rip)    # 0x87f941
jne 0xb3f7
movl 0x50(%rsp), %eax
negl %eax
cmpl %r15d, %eax
movb 0xe(%rsp), %dl
movq 0x10(%rsp), %rdi
jl 0xaf87
movq 0x30(%rsp), %rbp
jmp 0xb3f7
movq 0x10(%rsp), %rdi
callq 0x5d17
movq 0x10(%rsp), %rdi
cmpl 0x3c(%rsp), %eax
jg 0xaf37
incq 0x8(%r13)
movl 0x3c(%rsp), %eax
movl %eax, %ebp
jmp 0xb3f7
incq 0x10(%r13)
movq 0x10(%rsp), %rdi
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5d17
xorl %ebp, %ebp
jmp 0xb3f7
movq 0x1b8(%r12), %r14
movq 0x20(%rsp), %rax
movq (%rax), %rcx
pushq $0x1
popq %rdi
movq 0x40(%rsp), %rsi
movl %ebx, %edx
callq 0x5b8a
leaq 0xef998(%rip), %rdi     # 0xfaef0
movq %r14, %rsi
movq %rax, %rdx
callq 0x5e8b
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x739a
testb %al, %al
jne 0xb4da
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x7386
testl %eax, %eax
jne 0xb4da
movq 0x20(%rsp), %rdi
callq 0x73b8
testl %eax, %eax
jne 0xb701
movq 0x68(%rsp), %rcx
leaq 0xef9a5(%rip), %rdx     # 0xfaf50
movq (%rdx,%rcx,8), %rax
leaq 0xefcba(%rip), %rsi     # 0xfb270
movq %rax, (%rsi,%rcx,8)
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq %rax, (%rdx,%rcx,8)
jmp 0xb4da
leaq 0x1ea40(%rip), %rdi     # 0x2a012
leaq 0x1e93d(%rip), %rsi     # 0x29f16
leaq 0x1ea45(%rip), %rcx     # 0x2a025
movl $0xdd, %edx
callq 0x20c0
leaq 0x1bf68(%rip), %rdi     # 0x27559
leaq 0x1e91e(%rip), %rsi     # 0x29f16
leaq 0x1ea26(%rip), %rcx     # 0x2a025
movl $0x8a, %edx
callq 0x20c0
leaq 0x1e9db(%rip), %rdi     # 0x29feb
leaq 0x1e8ff(%rip), %rsi     # 0x29f16
leaq 0x1ea07(%rip), %rcx     # 0x2a025
movl $0x8b, %edx
callq 0x20c0
leaq 0x1ea71(%rip), %rdi     # 0x2a0a0
leaq 0x1e8e0(%rip), %rsi     # 0x29f16
leaq 0x1e9e8(%rip), %rcx     # 0x2a025
movl $0x8c, %edx
callq 0x20c0
leaq 0x1ea5a(%rip), %rdi     # 0x2a0a8
leaq 0x1e8c1(%rip), %rsi     # 0x29f16
leaq 0x1e9c9(%rip), %rcx     # 0x2a025
movl $0x8d, %edx
callq 0x20c0
leaq 0x1e988(%rip), %rdi     # 0x29ff5
leaq 0x1e8a2(%rip), %rsi     # 0x29f16
leaq 0x1e9aa(%rip), %rcx     # 0x2a025
movl $0x8e, %edx
callq 0x20c0
leaq 0x1ea29(%rip), %rdi     # 0x2a0b5
leaq 0x1e883(%rip), %rsi     # 0x29f16
leaq 0x1e98b(%rip), %rcx     # 0x2a025
movl $0x96, %edx
callq 0x20c0
leaq 0x1ea6d(%rip), %rdi     # 0x2a118
leaq 0x1e864(%rip), %rsi     # 0x29f16
leaq 0x1e96c(%rip), %rcx     # 0x2a025
movl $0x138, %edx            # imm = 0x138
callq 0x20c0
leaq 0x1ea84(%rip), %rdi     # 0x2a14e
leaq 0x1e845(%rip), %rsi     # 0x29f16
leaq 0x1e94d(%rip), %rcx     # 0x2a025
movl $0x139, %edx            # imm = 0x139
callq 0x20c0
leaq 0x1ea04(%rip), %rdi     # 0x2a0ed
leaq 0x1e826(%rip), %rsi     # 0x29f16
leaq 0x1e92e(%rip), %rcx     # 0x2a025
movl $0xea, %edx
callq 0x20c0
leaq 0x1e9fa(%rip), %rdi     # 0x2a102
leaq 0x1e807(%rip), %rsi     # 0x29f16
leaq 0x1e90f(%rip), %rcx     # 0x2a025
movl $0x12c, %edx            # imm = 0x12C
callq 0x20c0