// File: /workspace/github_cpp_makefile_star2_O2/obliviousram[P]oblivious-avl-tree/src/OAVLTreeDeterministicEviction.cpp
// Function: OAVLTreeDeterministicEviction::insert(int, int)
void OAVLTreeDeterministicEviction::insert(int key, int val) {
    Block to_insert;
    to_insert.leaf_id = rand_gen->getRandomLeaf();
    to_insert.id = id_gen->getNextId();
    to_insert.data[0] = key;
    to_insert.data[1] = val;
    to_insert.data[2] = 0;
    to_insert.data[3] = 0;
    if (root.id == -1) {
        stash.push_back(to_insert);
        root.leaf_id = to_insert.leaf_id;
        root.id = to_insert.id;
        performDummyFinds(num_levels);
        evictTwoPaths();
        performDummyEvictions(num_levels - 1);
        return;
    }
    moveToLocal(root.leaf_id, root.id);
    int b = 0;
    while (true) {
        if (local[b].data[0] < key) {
            if (local[b].rightChildId != -1) {
                moveToLocal(local[b].rightChildPos, local[b].rightChildId);
            } else {
                local[b].rightChildId = to_insert.id;
                local[b].rightChildPos = to_insert.leaf_id;
                local.push_back(to_insert);
                break;
            }
        } else {
            if (local[b].leftChildId != -1) {
                moveToLocal(local[b].leftChildPos, local[b].leftChildId);
            } else {
                local[b].leftChildId = to_insert.id;
                local[b].leftChildPos = to_insert.leaf_id;
                local.push_back(to_insert);
                break;
            }
        }
        b = (int)local.size() - 1;
    }
    for (int i = (int)local.size() - 2; i >= 0; i--) {
        local[i].leaf_id = rand_gen->getRandomLeaf();
        if (local[i].leftChildId == local[i + 1].id) {
            local[i].leftChildPos = local[i + 1].leaf_id;
        } else local[i].rightChildPos = local[i + 1].leaf_id;
    }
    updateHeight();
    root.id = local[0].id;
    root.leaf_id = local[0].leaf_id;

    for (int i = (int)local.size() - 3; i > 0; i--) {
        if (local[i].getBalance() > 1) {
            if (local[i+1].getBalance() >= 0) {
                bool isLeftChild = false;
                if (local[i-1].leftChildId == local[i].id) isLeftChild = true;
                local[i].leftChildId = local[i+1].rightChildId;
                local[i].leftChildPos = local[i+1].rightChildPos;
                local[i+1].rightChildId = local[i].id;
                local[i+1].rightChildPos = local[i].leaf_id;
                if (isLeftChild) {
                    local[i-1].leftChildId = local[i+1].id;
                    local[i-1].leftChildPos = local[i+1].leaf_id;
                } else {
                    local[i-1].rightChildId = local[i+1].id;
                    local[i-1].rightChildPos = local[i+1].leaf_id;
                }
                local[i].data[2] = local[i+1].data[3];
                local[i+1].data[3] = 1+ max(local[i].data[2],local[i].data[3]);
                if (isLeftChild) local[i-1].data[2] = 1+ max(local[i+1].data[2],local[i+1].data[3]);
                else local[i-1].data[3] = 1+ max(local[i+1].data[2],local[i+1].data[3]);
                for (int j = i-2; j >= 0; j--) {
                    if (local[j].leftChildId == local[j+1].id) {
                        local[j].data[2] = 1 + max(local[j+1].data[2], local[j+1].data[3]);
                    } else local[j].data[3] = 1 + max(local[j+1].data[2], local[j+1].data[3]);
                }
                root.id = local[0].id;
                root.leaf_id = local[0].leaf_id;
            } else { //double rotation
               bool isLeftChild = false;
               if (local[i-1].leftChildId == local[i].id) isLeftChild = true;
               local[i].leftChildId = local[i+2].rightChildId;
               local[i].leftChildPos = local[i+2].rightChildPos;
               local[i].data[2] = local[i+2].data[3];
               local[i+1].rightChildId = local[i+2].leftChildId;
               local[i+1].rightChildPos = local[i+2].leftChildPos;
               local[i+1].data[3] = local[i+2].data[2];
               local[i+2].rightChildId = local[i].id;
               local[i+2].rightChildPos = local[i].leaf_id;
               local[i+2].data[3] = 1 + max(local[i].data[2], local[i].data[3]);
               local[i+2].leftChildId = local[i+1].id;
               local[i+2].leftChildPos = local[i+1].leaf_id;
               local[i+2].data[2] = 1 + max(local[i+1].data[2], local[i+1].data[3]);
               if (isLeftChild) {
                   local[i-1].leftChildId = local[i+2].id;
                   local[i-1].leftChildPos = local[i+2].leaf_id;
                   local[i-1].data[2] = 1+ max(local[i+2].data[2],local[i+2].data[3]);
               } else {
                   local[i-1].rightChildId = local[i+2].id;
                   local[i-1].rightChildPos = local[i+2].leaf_id;
                   local[i-1].data[3] = 1+ max(local[i+2].data[2],local[i+2].data[3]);
               }
               for (int j = i-2; j >= 0; j--) {
                   if (local[j].leftChildId == local[j+1].id) {
                       local[j].data[2] = 1 + max(local[j+1].data[2], local[j+1].data[3]);
                   } else local[j].data[3] = 1 + max(local[j+1].data[2], local[j+1].data[3]);
               }
               root.id = local[0].id;
               root.leaf_id = local[0].leaf_id;
           }
        }
        
        
        if (local[i].getBalance() < -1) {
            if (local[i+1].getBalance() <= 0) {
                bool isLeftChild = false;
                if (local[i-1].leftChildId == local[i].id) isLeftChild = true;
                local[i].rightChildId = local[i+1].leftChildId;
                local[i].rightChildPos = local[i+1].leftChildPos;
                local[i+1].leftChildId = local[i].id;
                local[i+1].leftChildPos = local[i].leaf_id;
                if (isLeftChild) {
                    local[i-1].leftChildId = local[i+1].id;
                    local[i-1].leftChildPos = local[i+1].leaf_id;
                } else {
                    local[i-1].rightChildId = local[i+1].id;
                    local[i-1].rightChildPos = local[i+1].leaf_id;
                }
                local[i].data[3] = local[i+1].data[2];
                local[i+1].data[2] = 1+ max(local[i].data[2],local[i].data[3]);
                if (isLeftChild) local[i-1].data[2] = 1+ max(local[i+1].data[2],local[i+1].data[3]);
                else local[i-1].data[3] = 1+ max(local[i+1].data[2],local[i+1].data[3]);
                for (int j = i-2; j >= 0; j--) {
                    if (local[j].leftChildId == local[j+1].id) {
                        local[j].data[2] = 1 + max(local[j+1].data[2], local[j+1].data[3]);
                    } else local[j].data[3] = 1 + max(local[j+1].data[2], local[j+1].data[3]);
                }
                root.id = local[0].id;
                root.leaf_id = local[0].leaf_id;
            } else { //double rotation
                bool isLeftChild = false;
                if (local[i-1].leftChildId == local[i].id) isLeftChild = true;
                local[i].rightChildId = local[i+2].leftChildId;
                local[i].rightChildPos = local[i+2].leftChildPos;
                local[i].data[3] = local[i+2].data[2];
                local[i+1].leftChildId = local[i+2].rightChildId;
                local[i+1].leftChildPos = local[i+2].rightChildPos;
                local[i+1].data[2] = local[i+2].data[3];
                local[i+2].leftChildId = local[i].id;
                local[i+2].leftChildPos = local[i].leaf_id;
                local[i+2].data[2] = 1 + max(local[i].data[2], local[i].data[3]);
                local[i+2].rightChildId = local[i+1].id;
                local[i+2].rightChildPos = local[i+1].leaf_id;
                local[i+2].data[3] = 1 + max(local[i+1].data[2], local[i+1].data[3]);
                if (isLeftChild) {
                    local[i-1].leftChildId = local[i+2].id;
                    local[i-1].leftChildPos = local[i+2].leaf_id;
                    local[i-1].data[2] = 1+ max(local[i+2].data[2],local[i+2].data[3]);
                } else {
                    local[i-1].rightChildId = local[i+2].id;
                    local[i-1].rightChildPos = local[i+2].leaf_id;
                    local[i-1].data[3] = 1+ max(local[i+2].data[2],local[i+2].data[3]);
                }
                for (int j = i-2; j >= 0; j--) {
                    if (local[j].leftChildId == local[j+1].id) {
                        local[j].data[2] = 1 + max(local[j+1].data[2], local[j+1].data[3]);
                    } else local[j].data[3] = 1 + max(local[j+1].data[2], local[j+1].data[3]);
                }
                root.id = local[0].id;
                root.leaf_id = local[0].leaf_id;
            }
        }
    }

    //rotate root
    if (local[0].getBalance() > 1) {
        if (local[1].getBalance() >= 0) {
            local[0].leftChildId = local[1].rightChildId;
            local[0].leftChildPos = local[1].rightChildPos;
            local[1].rightChildId = local[0].id;
            local[1].rightChildPos = local[0].leaf_id;
            local[0].data[2] = local[1].data[3];
            local[1].data[3] = 1+ max(local[0].data[2],local[0].data[3]);
            root.id = local[1].id;
            root.leaf_id = local[1].leaf_id;
        } else { //double rotation
            local[0].leftChildId = local[2].rightChildId;
            local[0].leftChildPos = local[2].rightChildPos;
            local[0].data[2] = local[2].data[3];
            local[1].rightChildId = local[2].leftChildId;
            local[1].rightChildPos = local[2].leftChildPos;
            local[1].data[3] = local[2].data[2];
            local[2].rightChildId = local[0].id;
            local[2].rightChildPos = local[0].leaf_id;
            local[2].data[3] = 1 + max(local[0].data[2], local[0].data[3]);
            local[2].leftChildId = local[1].id;
            local[2].leftChildPos = local[1].leaf_id;
            local[2].data[2] = 1 + max(local[1].data[2], local[1].data[3]);
            root.id = local[2].id;
            root.leaf_id = local[2].leaf_id;
        }
    }
    if (local[0].getBalance() < -1) {
        if (local[1].getBalance() <= 0) {
            local[0].rightChildId = local[1].leftChildId;
            local[0].rightChildPos = local[1].leftChildPos;
            local[1].leftChildId = local[0].id;
            local[1].leftChildPos = local[0].leaf_id;
            local[0].data[3] = local[1].data[2];
            local[1].data[2] = 1+ max(local[0].data[2],local[0].data[3]);
            root.id = local[1].id;
            root.leaf_id = local[1].leaf_id;
        } else { //double rotation
            local[0].rightChildId = local[2].leftChildId;
            local[0].rightChildPos = local[2].leftChildPos;
            local[0].data[3] = local[2].data[2];
            local[1].leftChildId = local[2].rightChildId;
            local[1].leftChildPos = local[2].rightChildPos;
            local[1].data[2] = local[2].data[3];
            local[2].leftChildId = local[0].id;
            local[2].leftChildPos = local[0].leaf_id;
            local[2].data[2] = 1 + max(local[0].data[2], local[0].data[3]);
            local[2].rightChildId = local[1].id;
            local[2].rightChildPos = local[1].leaf_id;
            local[2].data[3] = 1 + max(local[1].data[2], local[1].data[3]);
            root.id = local[2].id;
            root.leaf_id = local[2].leaf_id;
        }
    }
    int l = local.size();
    performDummyFinds(num_levels - l);
    while (!local.empty())
    {
        stash.push_back(local[local.size()-1]);
        local.pop_back();
        evictTwoPaths();
    }
    performDummyEvictions(num_levels - l);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x257a
movq 0x10(%rbx), %rdi
movq (%rdi), %rax
callq *(%rax)
movl %eax, 0x10(%rsp)
movq 0x60(%rbx), %rax
movl (%rax), %ecx
leal 0x1(%rcx), %edx
movl %edx, (%rax)
movl %ecx, 0x14(%rsp)
movl %ebp, 0x18(%rsp)
movl %r14d, 0x1c(%rsp)
andq $0x0, 0x20(%rsp)
movl 0x68(%rbx), %edx
cmpl $-0x1, %edx
je 0x3ff7
movl 0x6c(%rbx), %esi
movq %rbx, %rdi
callq 0x3d28
leaq 0x48(%rbx), %r14
movq 0x48(%rbx), %rcx
xorl %eax, %eax
pushq $0x28
popq %r12
pushq $0x20
popq %r15
pushq $0x24
popq %r13
cltq
imulq $0x30, %rax, %rdx
leaq (%rcx,%rdx), %rax
cmpl %ebp, 0x10(%rcx,%rdx)
jge 0x3fc9
movl 0x2c(%rax), %edx
movq %r12, %rcx
cmpl $-0x1, %edx
jne 0x3fd4
jmp 0x403a
movl 0x24(%rax), %edx
movq %r15, %rcx
cmpl $-0x1, %edx
je 0x4041
movl (%rax,%rcx), %esi
movq %rbx, %rdi
callq 0x3d28
movq 0x48(%rbx), %rcx
movq 0x50(%rbx), %rax
subq %rcx, %rax
cqto
pushq $0x30
popq %rsi
idivq %rsi
decq %rax
jmp 0x3fac
leaq 0x30(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2d80
movq 0x10(%rsp), %xmm0
pshufd $0xe1, %xmm0, %xmm0     # xmm0 = xmm0[1,0,2,3]
movq %xmm0, 0x68(%rbx)
movl 0x20(%rbx), %esi
movq %rbx, %rdi
callq 0x46c8
movq %rbx, %rdi
callq 0x481c
movl 0x20(%rbx), %esi
decl %esi
movq %rbx, %rdi
callq 0x4868
jmp 0x468d
pushq $0x2c
popq %r13
movq %r12, %r15
leaq 0x8(%rsp), %rsi
movl 0xc(%rsi), %ecx
movl %ecx, (%rax,%r13)
movl 0x8(%rsi), %ecx
movl %ecx, (%rax,%r15)
movq %r14, %rdi
callq 0x2d80
movq 0x50(%rbx), %rax
subq 0x48(%rbx), %rax
cqto
pushq $0x30
popq %rcx
idivq %rcx
movq %rax, %r15
addl $-0x2, %r15d
testl %r15d, %r15d
js 0x40ae
movq 0x10(%rbx), %rdi
movq (%rdi), %rax
callq *(%rax)
movl %r15d, %ecx
movq (%r14), %rdx
imulq $0x30, %rcx, %rcx
leaq (%rdx,%rcx), %rsi
movl %eax, 0x8(%rdx,%rcx)
movl 0x24(%rdx,%rcx), %eax
xorl %edi, %edi
cmpl 0x3c(%rdx,%rcx), %eax
movl 0x38(%rdx,%rcx), %eax
setne %dil
movl %eax, 0x20(%rsi,%rdi,8)
decl %r15d
jmp 0x4073
movq %rbx, %rdi
callq 0x488c
movq 0x48(%rbx), %rcx
movq 0x50(%rbx), %rax
movq 0x8(%rcx), %xmm0
pshufd $0xe1, %xmm0, %xmm0     # xmm0 = xmm0[1,0,2,3]
movq %xmm0, 0x68(%rbx)
subq %rcx, %rax
cqto
pushq $0x30
popq %rcx
idivq %rcx
movq %rax, %r15
addl $-0x3, %r15d
movq (%r14), %rdi
testl %r15d, %r15d
jle 0x44c2
imulq $0x30, %r15, %r13
addq %r13, %rdi
callq 0x2718
cmpl $0x2, %eax
jl 0x42d3
leaq 0x1(%r15), %rax
imulq $0x30, %rax, %rbp
movq (%r14), %rdi
addq %rbp, %rdi
callq 0x2718
movq (%r14), %rcx
leaq (%rcx,%r13), %rdx
movl -0xc(%rcx,%r13), %esi
movl 0xc(%rcx,%r13), %edi
testl %eax, %eax
js 0x419d
xorl %eax, %eax
cmpl %edi, %esi
setne %al
movq 0x28(%rcx,%rbp), %r8
movq %r8, 0x20(%rdx)
movl %edi, 0x2c(%rcx,%rbp)
movl 0x8(%rdx), %r8d
movl %r8d, 0x28(%rcx,%rbp)
movl 0xc(%rcx,%rbp), %r8d
shll $0x3, %eax
movq %rax, %r9
orq $-0xc, %r9
orq $-0x10, %rax
movl %r8d, (%rdx,%r9)
movl 0x8(%rcx,%rbp), %r8d
movl %r8d, (%rdx,%rax)
movl 0x1c(%rcx,%rbp), %eax
movl %eax, 0x18(%rdx)
movl 0x1c(%rdx), %r8d
cmpl %r8d, %eax
cmovgl %eax, %r8d
leal 0x1(%r8), %r9d
movl 0x18(%rcx,%rbp), %eax
cmpl %r8d, %eax
cmovlel %r9d, %eax
incl %eax
movl %r9d, 0x1c(%rcx,%rbp)
cmpl %edi, %esi
jne 0x422d
movl %eax, -0x18(%rdx)
jmp 0x4230
movq 0x88(%rdx), %rax
movq %rax, 0x20(%rdx)
movl 0x7c(%rdx), %r9d
movl %r9d, 0x18(%rdx)
movq 0x80(%rdx), %rax
movq %rax, 0x28(%rcx,%rbp)
movl 0x78(%rdx), %eax
movl %eax, 0x1c(%rcx,%rbp)
movl %edi, 0x8c(%rdx)
movl 0x8(%rdx), %r10d
movl 0x1c(%rdx), %r8d
movl %r10d, 0x88(%rdx)
cmpl %r8d, %r9d
cmovgl %r9d, %r8d
leal 0x1(%r8), %r9d
movl %r9d, 0x7c(%rdx)
movq 0x8(%rcx,%rbp), %r10
movq %r10, 0x80(%rdx)
movl 0x18(%rcx,%rbp), %r10d
cmpl %eax, %r10d
cmovgl %r10d, %eax
leal 0x1(%rax), %r10d
movl %r10d, 0x78(%rdx)
movl 0x6c(%rdx), %r11d
cmpl %edi, %esi
jne 0x4270
movl %r11d, -0xc(%rdx)
movl 0x68(%rdx), %esi
movl %esi, -0x10(%rdx)
xorl %esi, %esi
cmpl %r8d, %eax
setl %sil
movl 0x78(%rdx,%rsi,4), %eax
incl %eax
movl %eax, -0x18(%rdx)
jmp 0x4288
movl %eax, -0x14(%rdx)
leal -0x2(%r15), %eax
testl %eax, %eax
js 0x42c4
movl %eax, %edx
imulq $0x30, %rdx, %rdi
leaq (%rcx,%rdi), %rdx
movl 0x48(%rcx,%rdi), %r8d
movl 0x4c(%rcx,%rdi), %esi
cmpl %esi, %r8d
cmovgl %r8d, %esi
movl 0x24(%rcx,%rdi), %r8d
incl %esi
cmpl 0x3c(%rcx,%rdi), %r8d
jne 0x4269
movl %esi, 0x18(%rdx)
jmp 0x426c
movl %esi, 0x1c(%rdx)
decl %eax
jmp 0x4234
movl %r11d, -0x4(%rdx)
movl 0x68(%rdx), %eax
movl %eax, -0x8(%rdx)
cmpl %r9d, %r10d
cmovgl %r10d, %r9d
incl %r9d
movl %r9d, -0x14(%rdx)
leal -0x2(%r15), %eax
testl %eax, %eax
js 0x42c4
movl %eax, %edx
imulq $0x30, %rdx, %rdi
leaq (%rcx,%rdi), %rdx
movl 0x48(%rcx,%rdi), %r8d
movl 0x4c(%rcx,%rdi), %esi
cmpl %esi, %r8d
cmovgl %r8d, %esi
movl 0x24(%rcx,%rdi), %r8d
incl %esi
cmpl 0x3c(%rcx,%rdi), %r8d
jne 0x42bd
movl %esi, 0x18(%rdx)
jmp 0x42c0
movl %esi, 0x1c(%rdx)
decl %eax
jmp 0x428c
movq 0x8(%rcx), %xmm0
pshufd $0xe1, %xmm0, %xmm0     # xmm0 = xmm0[1,0,2,3]
movq %xmm0, 0x68(%rbx)
movq (%r14), %rdi
addq %r13, %rdi
callq 0x2718
cmpl $-0x2, %eax
jg 0x44ba
leaq 0x1(%r15), %rax
imulq $0x30, %rax, %rbp
movq (%r14), %rdi
addq %rbp, %rdi
callq 0x2718
movq (%r14), %rcx
leaq (%rcx,%r13), %rdx
movl -0xc(%rcx,%r13), %esi
movl 0xc(%rcx,%r13), %edi
testl %eax, %eax
jle 0x43aa
movq 0x80(%rdx), %rax
movq %rax, 0x28(%rdx)
movl 0x78(%rdx), %eax
movl %eax, 0x1c(%rdx)
movq 0x88(%rdx), %r8
movq %r8, 0x20(%rcx,%rbp)
movl 0x7c(%rdx), %r10d
movl %r10d, 0x18(%rcx,%rbp)
movl %edi, 0x84(%rdx)
movl 0x8(%rdx), %r8d
movl 0x18(%rdx), %r9d
movl %r8d, 0x80(%rdx)
cmpl %eax, %r9d
cmovgl %r9d, %eax
leal 0x1(%rax), %r8d
movl %r8d, 0x78(%rdx)
movq 0x8(%rcx,%rbp), %r9
movq %r9, 0x88(%rdx)
movl 0x1c(%rcx,%rbp), %r9d
cmpl %r9d, %r10d
cmovgl %r10d, %r9d
leal 0x1(%r9), %r10d
movl %r10d, 0x7c(%rdx)
movl 0x6c(%rdx), %r11d
cmpl %edi, %esi
jne 0x4418
movl %r11d, -0xc(%rdx)
movl 0x68(%rdx), %esi
movl %esi, -0x10(%rdx)
xorl %esi, %esi
cmpl %r9d, %eax
setl %sil
movl 0x78(%rdx,%rsi,4), %eax
incl %eax
movl %eax, -0x18(%rdx)
jmp 0x4430
xorl %eax, %eax
cmpl %edi, %esi
setne %al
movq 0x20(%rcx,%rbp), %r8
movq %r8, 0x28(%rdx)
movl %edi, 0x24(%rcx,%rbp)
movl 0x8(%rdx), %r8d
movl %r8d, 0x20(%rcx,%rbp)
movl 0xc(%rcx,%rbp), %r8d
shll $0x3, %eax
movq %rax, %r9
orq $-0xc, %r9
orq $-0x10, %rax
movl %r8d, (%rdx,%r9)
movl 0x8(%rcx,%rbp), %r8d
movl %r8d, (%rdx,%rax)
movl 0x18(%rcx,%rbp), %r8d
movl %r8d, 0x1c(%rdx)
movl 0x18(%rdx), %eax
cmpl %r8d, %eax
cmovgl %eax, %r8d
incl %r8d
movl 0x1c(%rcx,%rbp), %eax
cmpl %eax, %r8d
cmovgl %r8d, %eax
incl %eax
movl %r8d, 0x18(%rcx,%rbp)
cmpl %edi, %esi
jne 0x446c
movl %eax, -0x18(%rdx)
jmp 0x446f
movl %r11d, -0x4(%rdx)
movl 0x68(%rdx), %eax
movl %eax, -0x8(%rdx)
cmpl %r10d, %r8d
cmovgl %r8d, %r10d
incl %r10d
movl %r10d, -0x14(%rdx)
leal -0x2(%r15), %eax
testl %eax, %eax
js 0x44ab
movl %eax, %edx
imulq $0x30, %rdx, %rdi
leaq (%rcx,%rdi), %rdx
movl 0x48(%rcx,%rdi), %r8d
movl 0x4c(%rcx,%rdi), %esi
cmpl %esi, %r8d
cmovgl %r8d, %esi
movl 0x24(%rcx,%rdi), %r8d
incl %esi
cmpl 0x3c(%rcx,%rdi), %r8d
jne 0x4465
movl %esi, 0x18(%rdx)
jmp 0x4468
movl %esi, 0x1c(%rdx)
decl %eax
jmp 0x4434
movl %eax, -0x14(%rdx)
leal -0x2(%r15), %eax
testl %eax, %eax
js 0x44ab
movl %eax, %edx
imulq $0x30, %rdx, %rdi
leaq (%rcx,%rdi), %rdx
movl 0x48(%rcx,%rdi), %r8d
movl 0x4c(%rcx,%rdi), %esi
cmpl %esi, %r8d
cmovgl %r8d, %esi
movl 0x24(%rcx,%rdi), %r8d
incl %esi
cmpl 0x3c(%rcx,%rdi), %r8d
jne 0x44a4
movl %esi, 0x18(%rdx)
jmp 0x44a7
movl %esi, 0x1c(%rdx)
decl %eax
jmp 0x4473
movq 0x8(%rcx), %xmm0
pshufd $0xe1, %xmm0, %xmm0     # xmm0 = xmm0[1,0,2,3]
movq %xmm0, 0x68(%rbx)
decq %r15
jmp 0x40df
callq 0x2718
movq (%r14), %rdi
cmpl $0x2, %eax
jl 0x4571
addq $0x30, %rdi
callq 0x2718
movq (%r14), %rdi
testl %eax, %eax
js 0x450d
movq 0x58(%rdi), %rax
movq %rax, 0x20(%rdi)
movq 0x8(%rdi), %rax
movq %rax, 0x58(%rdi)
movl 0x4c(%rdi), %eax
movl %eax, 0x18(%rdi)
movl 0x1c(%rdi), %ecx
cmpl %ecx, %eax
cmovgl %eax, %ecx
incl %ecx
movl %ecx, 0x4c(%rdi)
pushq $0x38
popq %rax
pushq $0x3c
jmp 0x4564
movq 0x88(%rdi), %rax
movq %rax, 0x20(%rdi)
movl 0x7c(%rdi), %eax
movl %eax, 0x18(%rdi)
movq 0x80(%rdi), %rcx
movq %rcx, 0x58(%rdi)
movl 0x78(%rdi), %ecx
movl %ecx, 0x4c(%rdi)
movl 0x1c(%rdi), %edx
movl 0x48(%rdi), %esi
cmpl %edx, %eax
cmovgl %eax, %edx
incl %edx
movl %edx, 0x7c(%rdi)
movq 0x8(%rdi), %xmm0
movq 0x38(%rdi), %xmm1
punpcklqdq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0]
movdqu %xmm1, 0x80(%rdi)
cmpl %ecx, %esi
cmovgl %esi, %ecx
incl %ecx
movl %ecx, 0x78(%rdi)
pushq $0x68
popq %rax
pushq $0x6c
popq %rcx
movl (%rdi,%rcx), %ecx
movl %ecx, 0x68(%rbx)
movl (%rdi,%rax), %eax
movl %eax, 0x6c(%rbx)
callq 0x2718
movq (%r14), %rdi
cmpl $-0x2, %eax
jg 0x4629
addq $0x30, %rdi
callq 0x2718
movq (%r14), %rdi
testl %eax, %eax
jle 0x45f4
pushq $0x68
popq %rax
pushq $0x6c
popq %rcx
movq 0x80(%rdi), %rdx
movq %rdx, 0x28(%rdi)
movl 0x78(%rdi), %edx
movl %edx, 0x1c(%rdi)
movq 0x88(%rdi), %rsi
movq %rsi, 0x50(%rdi)
movl 0x7c(%rdi), %esi
movl %esi, 0x48(%rdi)
movl 0x18(%rdi), %r8d
cmpl %edx, %r8d
cmovgl %r8d, %edx
movl 0x4c(%rdi), %r8d
incl %edx
movl %edx, 0x78(%rdi)
movq 0x38(%rdi), %xmm0
movq 0x8(%rdi), %xmm1
punpcklqdq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0]
movdqu %xmm1, 0x80(%rdi)
cmpl %r8d, %esi
cmovgl %esi, %r8d
incl %r8d
movl %r8d, 0x7c(%rdi)
jmp 0x461d
pushq $0x38
popq %rax
pushq $0x3c
popq %rcx
movq 0x50(%rdi), %rdx
movq %rdx, 0x28(%rdi)
movq 0x8(%rdi), %rdx
movq %rdx, 0x50(%rdi)
movl 0x48(%rdi), %edx
movl %edx, 0x1c(%rdi)
movl 0x18(%rdi), %esi
cmpl %edx, %esi
cmovgl %esi, %edx
incl %edx
movl %edx, 0x48(%rdi)
movl (%rdi,%rcx), %ecx
movl %ecx, 0x68(%rbx)
movl (%rdi,%rax), %eax
movl %eax, 0x6c(%rbx)
movq 0x50(%rbx), %rax
subq %rdi, %rax
cqto
pushq $0x30
popq %rcx
idivq %rcx
movq %rax, %r14
movl 0x20(%rbx), %esi
subl %r14d, %esi
movq %rbx, %rdi
callq 0x46c8
leaq 0x30(%rbx), %r15
movq 0x50(%rbx), %rsi
cmpq %rsi, 0x48(%rbx)
je 0x467f
addq $-0x30, %rsi
movq %r15, %rdi
callq 0x2d80
movq 0x50(%rbx), %rax
leaq -0x30(%rax), %rdi
movq %rdi, 0x50(%rbx)
movq -0x30(%rax), %rax
callq *(%rax)
movq %rbx, %rdi
callq 0x481c
jmp 0x464d
movl 0x20(%rbx), %esi
subl %r14d, %esi
movq %rbx, %rdi
callq 0x4868
leaq 0x8(%rsp), %rdi
callq 0x2594
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x46b2
jmp 0x46b2
jmp 0x46b2
jmp 0x46b2
jmp 0x46b2
jmp 0x46b2
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2594
movq %rbx, %rdi
callq 0x22b0
nop