// File: /workspace/github_cpp_makefile_star2_O1/tyhsu[P]Ewn/play.cpp
// Function: Play::compare_AI_mode()
void Play::compare_AI_mode()
{
    char mode_name[9][25] = { "evaluate_feature", \
                            "simulate_rand_type1", \
                            "simulate_rand_type2", \
                            "simulate_rand_type3", \
                            "simulate_rand_type4", \
                            "MCTS", \
                            "Random", \
                            "MCTS_simulate_rand_type3", \
                            "MCTS_simulate_rand_type4"};

    int mode_A, mode_B;
    int game_cnt;
    int win_cnt_A1 = 0, win_cnt_A2 = 0, win_cnt_B1 = 0, win_cnt_B2 = 0;
    double max_time_cost_A = 0, max_time_cost_B = 0;
    double total_time_cost_A = 0, total_time_cost_B = 0;
    double avg_move_timer_A1 = 0, avg_move_timer_B1 = 0, avg_move_timer_A2 = 0, avg_move_timer_B2 = 0;
    cout << "Please choose two AIs:" << endl;
    cout << "0)Minimax evaluating with feature" << endl;
    cout << "1)Minimax evaluating with simulation 1" << endl;
    cout << "2)Minimax evaluating with simulation 2" << endl;
    cout << "3)Minimax evaluating with simulation 3" << endl;
    cout << "4)Minimax evaluating with simulation 4" << endl;
    cout << "5)MCTS" << endl;
    cout << "6)Random" << endl;
    cout << "Choose: ";
    cout << "modeA choose: ";
    cin >> mode_A;
    cout << "modeB choose: ";
    cin >> mode_B;
    cout << "Please enter the count of the games: ";
    cin >> game_cnt;

    // modeA plays first, then modeB
    cout << "========== modeA then modeB ==========" << endl;
    for(int i = 0; i < game_cnt ; i++){
        Game init_game = this->game;
        EwnAI ewnAI1(mode_A);
        EwnAI ewnAI2(mode_B);
        while (1) {
            int debug = 0;
            int dice = init_game.roll_dice();

            int game_status;
            if (!init_game.get_is_switch()) {	// the first AI (A)
                cerr << "-";
                cerr.flush();
                clock_t init_time = clock();
                Movement mvmt = ewnAI1.AI_move(init_game, dice);
                game_status = init_game.update_game_status(mvmt);
                double time_cost = (double)(clock() - init_time) / CLOCKS_PER_SEC;
                max_time_cost_A = max(max_time_cost_A, time_cost);
                total_time_cost_A += time_cost;
                avg_move_timer_A1 += 1;
            }
            else {								// the second AI (B)
                cerr << "-";
                cerr.flush();
                clock_t init_time = clock();
                Movement mvmt = ewnAI2.AI_move(init_game, dice);
                game_status = init_game.update_game_status(mvmt);
                double time_cost = (double)(clock() - init_time) / CLOCKS_PER_SEC;
                max_time_cost_B = max(max_time_cost_B, time_cost);
                total_time_cost_B += time_cost;
                avg_move_timer_B1 += 1;
            }
            //update: 0(game continues), 1(A wins), 2(B wins)
            if (game_status!=0) {
                if (game_status==1) {
                    win_cnt_A1 ++ ;
                    cout << "A wins.  " << win_cnt_A1 + win_cnt_B1 << " games." << endl;
                }

                else {
                    win_cnt_B1 ++;
                    cout << "B wins.  " << win_cnt_A1 + win_cnt_B1 << " games." << endl;
                }
                break;
            }
            init_game.switch_player();
        }
    }
    printf("%-25s%-10s%-10s%-10s\n", "mode", "wins", "max_time_cost", "total_time_cost");
    printf("%-25s%-10d%-10lf%-10lf\n", mode_name[mode_A], win_cnt_A1, max_time_cost_A, total_time_cost_A);
    printf("%-25s%-10d%-10lf%-10lf\n", mode_name[mode_B], win_cnt_B1, max_time_cost_B, total_time_cost_B);

    // modeB plays first, then modeA
    cout << "========== modeB then modeA ==========" << endl;
    for (int i = 0; i < game_cnt ; i++){
        Game init_game = this->game;
        EwnAI ewnAI1(mode_B);
        EwnAI ewnAI2(mode_A);
        while (1) {
            int debug = 0;
            int dice = init_game.roll_dice();

            int game_status;
            if (!init_game.get_is_switch()) {	// the first AI (B)
                cerr << "-";
                cerr.flush();
                clock_t init_time = clock();
                Movement mvmt = ewnAI1.AI_move(init_game, dice);
                game_status = init_game.update_game_status(mvmt);
                double time_cost = (double)(clock() - init_time) / CLOCKS_PER_SEC;
                max_time_cost_B = max(max_time_cost_B, time_cost);
                avg_move_timer_B2 += 1;
            }
            else {							// the second AI (A)
                cerr << "-";
                cerr.flush();
                clock_t init_time = clock();
                Movement mvmt = ewnAI2.AI_move(init_game, dice);
                game_status = init_game.update_game_status(mvmt);
                double time_cost = (double)(clock() - init_time) / CLOCKS_PER_SEC;
                max_time_cost_A = max(max_time_cost_A, time_cost);
                avg_move_timer_A2 += 1;
            }
            //update: 0(game continues), 1(B wins), 2(A wins)
            if (game_status!=0) {
                if (game_status==1) {
                    win_cnt_B2 ++ ;
                    cout << "B wins.  " << win_cnt_A2 + win_cnt_B2 << " games." << endl;
                }

                else {
                    win_cnt_A2 ++;
                    cout << "A win.  " << win_cnt_A2 + win_cnt_B2 << " games." <<endl;
                }
                break;
            }
            init_game.switch_player();
        }
    }
    cout << endl << "==================================================" << endl;
    cout << "========== modeA then modeB ==========" << endl;
    printf("%-30s%-10s%-15s%-20s%-20s%s\n", "mode", "wins", "max_time_cost", "total_time_cost", "move_count", "time_cost_per_move(avg)");
    printf("%-30s%-10d%-15lf%-20lf%-20lf%lf\n", mode_name[mode_A], win_cnt_A1, max_time_cost_A, total_time_cost_A, avg_move_timer_A1, total_time_cost_A/avg_move_timer_A1);
    printf("%-30s%-10d%-15lf%-20lf%-20lf%lf\n", mode_name[mode_B], win_cnt_B1, max_time_cost_B, total_time_cost_B, avg_move_timer_B1, total_time_cost_B/avg_move_timer_B1);

    cout << "========== modeB then modeA ==========" << endl;
    printf("%-30s%-10s%-15s%-20s%-20s%s\n", "mode", "wins", "max_time_cost", "total_time_cost", "move_count", "time_cost_per_move(avg)");
    printf("%-30s%-10d%-15lf%-20lf%-20lf%lf\n", mode_name[mode_A], win_cnt_A2, max_time_cost_A, total_time_cost_A, avg_move_timer_A2, total_time_cost_A/avg_move_timer_A2);
    printf("%-30s%-10d%-15lf%-20lf%-20lf%lf\n", mode_name[mode_B], win_cnt_B2, max_time_cost_B, total_time_cost_B, avg_move_timer_B2, total_time_cost_B/avg_move_timer_B2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xbc8, %rsp            # imm = 0xBC8
movq %rdi, -0x128(%rbp)
leaq 0x596e(%rip), %rsi      # 0x95c0
leaq -0x760(%rbp), %rdi
movl $0xe1, %edx
callq 0x20f0
movq 0x935e(%rip), %r15      # 0xcfc8
leaq 0x56c3(%rip), %rsi      # 0x9334
movl $0x16, %edx
movq %r15, %rdi
callq 0x2170
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x569f(%rip), %rsi      # 0x934b
movl $0x21, %edx
movq %r15, %rdi
callq 0x2170
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x5686(%rip), %rsi      # 0x936d
movl $0x26, %edx
movq %r15, %rdi
callq 0x2170
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x5672(%rip), %rsi      # 0x9394
movl $0x26, %edx
movq %r15, %rdi
callq 0x2170
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x565e(%rip), %rsi      # 0x93bb
movl $0x26, %edx
movq %r15, %rdi
callq 0x2170
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x564a(%rip), %rsi      # 0x93e2
movl $0x26, %edx
movq %r15, %rdi
callq 0x2170
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x5636(%rip), %rsi      # 0x9409
movl $0x6, %edx
movq %r15, %rdi
callq 0x2170
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x5602(%rip), %rsi      # 0x9410
movl $0x8, %edx
movq %r15, %rdi
callq 0x2170
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x5258(%rip), %rsi      # 0x90a1
movl $0x8, %edx
movq %r15, %rdi
callq 0x2170
leaq 0x55bc(%rip), %rsi      # 0x9419
movl $0xe, %edx
movq %r15, %rdi
callq 0x2170
movq 0x9167(%rip), %r14      # 0xcfd8
leaq -0x30(%rbp), %rsi
movq %r14, %rdi
callq 0x20a0
leaq 0x55a4(%rip), %rsi      # 0x9428
movl $0xe, %edx
movq %r15, %rdi
callq 0x2170
leaq -0x2c(%rbp), %rsi
movq %r14, %rdi
callq 0x20a0
leaq 0x5593(%rip), %rsi      # 0x9437
movl $0x25, %edx
movq %r15, %rdi
callq 0x2170
leaq -0x4c(%rbp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20a0
leaq 0x5596(%rip), %rsi      # 0x945d
movl $0x26, %edx
movq %r15, %rdi
callq 0x2170
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movq $0x0, -0x78(%rbp)
xorpd %xmm0, %xmm0
movsd %xmm0, -0x80(%rbp)
cmpl $0x0, (%rbx)
movsd %xmm0, -0x40(%rbp)
movsd %xmm0, -0x38(%rbp)
movsd %xmm0, -0x90(%rbp)
movsd %xmm0, -0x88(%rbp)
movsd %xmm0, -0x68(%rbp)
movsd %xmm0, -0x70(%rbp)
movl $0x0, %eax
movq %rax, -0x60(%rbp)
movl $0x0, %r13d
jle 0x448b
movl $0x288, %ecx            # imm = 0x288
leaq -0x3d8(%rbp), %rax
leaq (%rax,%rcx), %rdx
movq %rdx, -0x118(%rbp)
movl $0x250, %edx            # imm = 0x250
leaq (%rax,%rdx), %rsi
movq %rsi, -0x108(%rbp)
movl $0x220, %esi            # imm = 0x220
leaq (%rax,%rsi), %rdi
movq %rdi, -0xf8(%rbp)
movl $0x1d0, %edi            # imm = 0x1D0
leaq (%rax,%rdi), %r8
movq %r8, -0xe8(%rbp)
movl $0x1a0, %r8d            # imm = 0x1A0
leaq (%rax,%r8), %r9
movq %r9, -0xd8(%rbp)
movl $0x150, %r9d            # imm = 0x150
leaq (%rax,%r9), %r10
movq %r10, -0xc8(%rbp)
leaq -0x678(%rbp), %r10
addq %r10, %rcx
movq %rcx, -0x120(%rbp)
addq %r10, %rdx
movq %rdx, -0x110(%rbp)
addq %r10, %rsi
movq %rsi, -0x100(%rbp)
addq %r10, %rdi
movq %rdi, -0xf0(%rbp)
addq %r10, %r8
movq %r8, -0xe0(%rbp)
addq %r10, %r9
movq %r9, -0xd0(%rbp)
movl $0x120, %ecx            # imm = 0x120
leaq (%rax,%rcx), %rdx
movq %rdx, -0xb8(%rbp)
addq %r10, %rcx
movq %rcx, -0xc0(%rbp)
movl $0xd0, %ecx
leaq (%rax,%rcx), %rdx
movq %rdx, -0xa8(%rbp)
addq %r10, %rcx
movq %rcx, -0xb0(%rbp)
movl $0xa0, %ecx
addq %rcx, %rax
movq %rax, -0x98(%rbp)
addq %r10, %rcx
movq %rcx, -0xa0(%rbp)
movsd %xmm0, -0x70(%rbp)
leaq 0x8d2b(%rip), %r12      # 0xcd78
addq $0x10, %r12
movsd %xmm0, -0x68(%rbp)
movsd %xmm0, -0x88(%rbp)
movsd %xmm0, -0x90(%rbp)
movsd %xmm0, -0x38(%rbp)
movsd %xmm0, -0x40(%rbp)
xorl %r13d, %r13d
leaq -0xbe8(%rbp), %rbx
movq $0x0, -0x60(%rbp)
xorl %eax, %eax
movl %eax, -0x58(%rbp)
movq %rbx, %rdi
movq -0x128(%rbp), %rsi
callq 0x7a74
movl -0x30(%rbp), %esi
leaq -0x678(%rbp), %rdi
callq 0x5292
movl -0x2c(%rbp), %esi
leaq -0x3d8(%rbp), %rdi
callq 0x5292
movq %rbx, %rdi
callq 0x7fe4
movl %eax, %r15d
movq %rbx, %rdi
callq 0x872e
testb %al, %al
je 0x4180
movl $0x1, %edx
movq 0x8f15(%rip), %rdi      # 0xcff0
leaq 0x4f59(%rip), %rsi      # 0x903b
callq 0x2170
movq 0x8f02(%rip), %rdi      # 0xcff0
callq 0x20c0
callq 0x20b0
movq %rax, %r14
leaq -0xa18(%rbp), %rdi
movq %rbx, %rsi
callq 0x7a74
leaq -0x3d8(%rbp), %rdi
leaq -0xa18(%rbp), %rsi
movl %r15d, %edx
callq 0x5478
movq %rax, -0x48(%rbp)
movq %rbx, %rdi
leaq -0x48(%rbp), %rsi
callq 0x818e
movl %eax, %r15d
callq 0x20b0
subq %r14, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x4f75(%rip), %xmm0     # 0x90c0
movsd -0x68(%rbp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, -0x68(%rbp)
maxsd -0x40(%rbp), %xmm0
movsd -0x90(%rbp), %xmm1
addsd 0x4f5a(%rip), %xmm1     # 0x90c8
movsd %xmm1, -0x90(%rbp)
movsd %xmm0, -0x40(%rbp)
jmp 0x422c
movl $0x1, %edx
movq 0x8e64(%rip), %rdi      # 0xcff0
leaq 0x4ea8(%rip), %rsi      # 0x903b
callq 0x2170
movq 0x8e51(%rip), %rdi      # 0xcff0
callq 0x20c0
callq 0x20b0
movq %rax, %r14
leaq -0xb00(%rbp), %rdi
movq %rbx, %rsi
callq 0x7a74
leaq -0x678(%rbp), %rdi
leaq -0xb00(%rbp), %rsi
movl %r15d, %edx
callq 0x5478
movq %rax, -0x48(%rbp)
movq %rbx, %rdi
leaq -0x48(%rbp), %rsi
callq 0x818e
movl %eax, %r15d
callq 0x20b0
subq %r14, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x4ec4(%rip), %xmm0     # 0x90c0
movsd -0x70(%rbp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, -0x70(%rbp)
maxsd -0x38(%rbp), %xmm0
movsd -0x88(%rbp), %xmm1
addsd 0x4ea9(%rip), %xmm1     # 0x90c8
movsd %xmm1, -0x88(%rbp)
movsd %xmm0, -0x38(%rbp)
testl %r15d, %r15d
je 0x42a6
cmpl $0x1, %r15d
jne 0x42b3
movl $0x9, %edx
movq 0x8d85(%rip), %rdi      # 0xcfc8
leaq 0x523a(%rip), %rsi      # 0x9484
callq 0x2170
incl %r13d
movq -0x60(%rbp), %rax
leal (%rax,%r13), %esi
movq 0x8d67(%rip), %rdi      # 0xcfc8
callq 0x21f0
movq %rax, %r14
movl $0x7, %edx
movq %rax, %rdi
leaq 0x5216(%rip), %rsi      # 0x948e
callq 0x2170
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
jmp 0x4323
movb $0x1, %r14b
movq %rbx, %rdi
callq 0x8316
jmp 0x4326
movl $0x9, %edx
movq 0x8d09(%rip), %rdi      # 0xcfc8
leaq 0x51d0(%rip), %rsi      # 0x9496
callq 0x2170
movq -0x60(%rbp), %rax
incl %eax
movq %rax, -0x60(%rbp)
leal (%rax,%r13), %esi
movq 0x8ce8(%rip), %rdi      # 0xcfc8
callq 0x21f0
movq %rax, %r14
movl $0x7, %edx
movq %rax, %rdi
leaq 0x5197(%rip), %rsi      # 0x948e
callq 0x2170
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
xorl %r14d, %r14d
testb %r14b, %r14b
jne 0x40b4
movq -0x118(%rbp), %rdi
callq 0x6090
movq %r12, -0x1d0(%rbp)
movq -0x108(%rbp), %rdi
callq 0x4de6
movq -0xf8(%rbp), %rdi
callq 0x4de6
movq %r12, -0x250(%rbp)
movq -0xe8(%rbp), %rdi
callq 0x4de6
movq -0xd8(%rbp), %rdi
callq 0x4de6
movq %r12, -0x2d0(%rbp)
movq -0xc8(%rbp), %rdi
callq 0x4de6
movq -0xb8(%rbp), %rdi
callq 0x4de6
movq %r12, -0x350(%rbp)
movq -0xa8(%rbp), %rdi
callq 0x4de6
movq -0x98(%rbp), %rdi
callq 0x4de6
movq %r12, -0x3d0(%rbp)
leaq -0x388(%rbp), %rdi
callq 0x4de6
leaq -0x3b8(%rbp), %rdi
callq 0x4de6
movq -0x120(%rbp), %rdi
callq 0x6090
movq %r12, -0x470(%rbp)
movq -0x110(%rbp), %rdi
callq 0x4de6
movq -0x100(%rbp), %rdi
callq 0x4de6
movq %r12, -0x4f0(%rbp)
movq -0xf0(%rbp), %rdi
callq 0x4de6
movq -0xe0(%rbp), %rdi
callq 0x4de6
movq %r12, -0x570(%rbp)
movq -0xd0(%rbp), %rdi
callq 0x4de6
movq -0xc0(%rbp), %rdi
callq 0x4de6
movq %r12, -0x5f0(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x4de6
movq -0xa0(%rbp), %rdi
callq 0x4de6
movq %r12, -0x670(%rbp)
leaq -0x628(%rbp), %rdi
callq 0x4de6
leaq -0x658(%rbp), %rdi
callq 0x4de6
movl -0x58(%rbp), %eax
incl %eax
cmpl -0x4c(%rbp), %eax
jl 0x4084
leaq 0x500e(%rip), %rdi      # 0x94a0
leaq 0x4c03(%rip), %rsi      # 0x909c
leaq 0x5016(%rip), %rdx      # 0x94b6
leaq 0x5014(%rip), %rcx      # 0x94bb
leaq 0x501b(%rip), %r8       # 0x94c9
xorl %eax, %eax
callq 0x2040
movslq -0x30(%rbp), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rbp), %rsi
addq $-0x760, %rsi           # imm = 0xF8A0
leaq 0x5006(%rip), %rbx      # 0x94d9
movq %rbx, %rdi
movl %r13d, %edx
movsd -0x38(%rbp), %xmm0
movsd -0x70(%rbp), %xmm1
movb $0x2, %al
callq 0x2040
movslq -0x2c(%rbp), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rbp), %rsi
addq $-0x760, %rsi           # imm = 0xF8A0
movq %rbx, %rdi
movq -0x60(%rbp), %rdx
movsd -0x40(%rbp), %xmm0
movsd -0x68(%rbp), %xmm1
movb $0x2, %al
callq 0x2040
leaq 0x4fd1(%rip), %rsi      # 0x94f1
movl $0x26, %edx
movq 0x8a9c(%rip), %rbx      # 0xcfc8
movq %rbx, %rdi
callq 0x2170
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
cmpl $0x0, -0x4c(%rbp)
jle 0x4a7e
movl $0x288, %ecx            # imm = 0x288
leaq -0x3d8(%rbp), %rax
leaq (%rax,%rcx), %rdx
movq %rdx, -0x110(%rbp)
movl $0x250, %edx            # imm = 0x250
leaq (%rax,%rdx), %rsi
movq %rsi, -0x100(%rbp)
movl $0x220, %esi            # imm = 0x220
leaq (%rax,%rsi), %rdi
movq %rdi, -0xf0(%rbp)
movl $0x1d0, %edi            # imm = 0x1D0
leaq (%rax,%rdi), %r8
movq %r8, -0xe0(%rbp)
movl $0x1a0, %r8d            # imm = 0x1A0
leaq (%rax,%r8), %r9
movq %r9, -0xd0(%rbp)
movl $0x150, %r9d            # imm = 0x150
leaq (%rax,%r9), %r10
movq %r10, -0xc0(%rbp)
leaq -0x678(%rbp), %r10
addq %r10, %rcx
movq %rcx, -0x118(%rbp)
addq %r10, %rdx
movq %rdx, -0x108(%rbp)
addq %r10, %rsi
movq %rsi, -0xf8(%rbp)
addq %r10, %rdi
movq %rdi, -0xe8(%rbp)
addq %r10, %r8
movq %r8, -0xd8(%rbp)
addq %r10, %r9
movq %r9, -0xc8(%rbp)
movl $0x120, %ecx            # imm = 0x120
leaq (%rax,%rcx), %rdx
movq %rdx, -0xb0(%rbp)
addq %r10, %rcx
movq %rcx, -0xb8(%rbp)
movl $0xd0, %ecx
leaq (%rax,%rcx), %rdx
movq %rdx, -0xa0(%rbp)
addq %r10, %rcx
movq %rcx, -0xa8(%rbp)
movl $0xa0, %ecx
addq %rcx, %rax
movq %rax, -0x138(%rbp)
addq %r10, %rcx
movq %rcx, -0x98(%rbp)
xorpd %xmm0, %xmm0
movsd %xmm0, -0x58(%rbp)
leaq 0x870a(%rip), %rax      # 0xcd78
addq $0x10, %rax
movq %rax, -0x130(%rbp)
movsd %xmm0, -0x80(%rbp)
xorl %r14d, %r14d
leaq -0xbe8(%rbp), %rbx
movq 0x8961(%rip), %r12      # 0xcff0
movq $0x0, -0x78(%rbp)
xorl %eax, %eax
movl %eax, -0x120(%rbp)
movq %rbx, %rdi
movq -0x128(%rbp), %rsi
callq 0x7a74
movl -0x2c(%rbp), %esi
leaq -0x678(%rbp), %rdi
callq 0x5292
movl -0x30(%rbp), %esi
leaq -0x3d8(%rbp), %rdi
callq 0x5292
movq %rbx, %rdi
callq 0x7fe4
movl %eax, %r15d
movq %rbx, %rdi
callq 0x872e
testb %al, %al
je 0x477c
movl $0x1, %edx
movq %r12, %rdi
leaq 0x4945(%rip), %rsi      # 0x903b
callq 0x2170
movq %r12, %rdi
callq 0x20c0
callq 0x20b0
movq %rax, %r12
leaq -0x848(%rbp), %rdi
movq %rbx, %rsi
callq 0x7a74
leaq -0x3d8(%rbp), %rdi
leaq -0x848(%rbp), %rsi
movl %r15d, %edx
callq 0x5478
movq %rax, -0x48(%rbp)
movq %rbx, %rdi
leaq -0x48(%rbp), %rsi
callq 0x818e
movl %eax, %r15d
callq 0x20b0
subq %r12, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x4965(%rip), %xmm0     # 0x90c0
maxsd -0x38(%rbp), %xmm0
movsd -0x80(%rbp), %xmm1
addsd 0x495b(%rip), %xmm1     # 0x90c8
movsd %xmm1, -0x80(%rbp)
movsd %xmm0, -0x38(%rbp)
jmp 0x480c
movl $0x1, %edx
movq %r12, %rdi
leaq 0x48b0(%rip), %rsi      # 0x903b
callq 0x2170
movq %r12, %rdi
callq 0x20c0
callq 0x20b0
movq %rax, %r12
leaq -0x930(%rbp), %rdi
movq %rbx, %rsi
callq 0x7a74
leaq -0x678(%rbp), %rdi
leaq -0x930(%rbp), %rsi
movl %r15d, %edx
callq 0x5478
movq %rax, -0x48(%rbp)
movq %rbx, %rdi
leaq -0x48(%rbp), %rsi
callq 0x818e
movl %eax, %r15d
callq 0x20b0
subq %r12, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x48d0(%rip), %xmm0     # 0x90c0
maxsd -0x40(%rbp), %xmm0
movsd -0x58(%rbp), %xmm1
addsd 0x48c6(%rip), %xmm1     # 0x90c8
movsd %xmm1, -0x58(%rbp)
movsd %xmm0, -0x40(%rbp)
testl %r15d, %r15d
movq 0x87da(%rip), %r12      # 0xcff0
je 0x4890
cmpl $0x1, %r15d
jne 0x489d
movl $0x9, %edx
movq 0x879e(%rip), %rdi      # 0xcfc8
leaq 0x4c65(%rip), %rsi      # 0x9496
callq 0x2170
movq -0x78(%rbp), %rax
incl %eax
movq %rax, -0x78(%rbp)
leal (%r14,%rax), %esi
movq 0x877d(%rip), %rdi      # 0xcfc8
callq 0x21f0
movq %rax, %r15
movl $0x7, %edx
movq %rax, %rdi
leaq 0x4c2c(%rip), %rsi      # 0x948e
callq 0x2170
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
jmp 0x490a
movb $0x1, %r15b
movq %rbx, %rdi
callq 0x8316
jmp 0x490d
movl $0x8, %edx
movq 0x871f(%rip), %rdi      # 0xcfc8
leaq 0x4c68(%rip), %rsi      # 0x9518
callq 0x2170
incl %r14d
movq -0x78(%rbp), %rax
leal (%r14,%rax), %esi
movq 0x8701(%rip), %rdi      # 0xcfc8
callq 0x21f0
movq %rax, %r15
movl $0x7, %edx
movq %rax, %rdi
leaq 0x4bb0(%rip), %rsi      # 0x948e
callq 0x2170
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
xorl %r15d, %r15d
testb %r15b, %r15b
jne 0x46cc
movq -0x110(%rbp), %rdi
callq 0x6090
movq -0x130(%rbp), %r15
movq %r15, -0x1d0(%rbp)
movq -0x100(%rbp), %rdi
callq 0x4de6
movq -0xf0(%rbp), %rdi
callq 0x4de6
movq %r15, -0x250(%rbp)
movq -0xe0(%rbp), %rdi
callq 0x4de6
movq -0xd0(%rbp), %rdi
callq 0x4de6
movq %r15, -0x2d0(%rbp)
movq -0xc0(%rbp), %rdi
callq 0x4de6
movq -0xb0(%rbp), %rdi
callq 0x4de6
movq %r15, -0x350(%rbp)
movq -0xa0(%rbp), %rdi
callq 0x4de6
movq -0x138(%rbp), %rdi
callq 0x4de6
movq %r15, -0x3d0(%rbp)
leaq -0x388(%rbp), %rdi
callq 0x4de6
leaq -0x3b8(%rbp), %rdi
callq 0x4de6
movq -0x118(%rbp), %rdi
callq 0x6090
movq %r15, -0x470(%rbp)
movq -0x108(%rbp), %rdi
callq 0x4de6
movq -0xf8(%rbp), %rdi
callq 0x4de6
movq %r15, -0x4f0(%rbp)
movq -0xe8(%rbp), %rdi
callq 0x4de6
movq -0xd8(%rbp), %rdi
callq 0x4de6
movq %r15, -0x570(%rbp)
movq -0xc8(%rbp), %rdi
callq 0x4de6
movq -0xb8(%rbp), %rdi
callq 0x4de6
movq %r15, -0x5f0(%rbp)
movq -0xa8(%rbp), %rdi
callq 0x4de6
movq -0x98(%rbp), %rdi
callq 0x4de6
movq %r15, -0x670(%rbp)
leaq -0x628(%rbp), %rdi
callq 0x4de6
leaq -0x658(%rbp), %rdi
callq 0x4de6
movl -0x120(%rbp), %eax
incl %eax
cmpl -0x4c(%rbp), %eax
jl 0x4699
jmp 0x4a8a
xorpd %xmm0, %xmm0
movsd %xmm0, -0x58(%rbp)
xorl %r14d, %r14d
movq 0x8537(%rip), %r12      # 0xcfc8
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movq %rax, %rbx
leaq 0x4a5e(%rip), %rsi      # 0x9521
movl $0x32, %edx
movq %rax, %rdi
callq 0x2170
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x495f(%rip), %rsi      # 0x945d
movl $0x26, %edx
movq %r12, %rdi
callq 0x2170
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x4a42(%rip), %rax      # 0x957c
movq %rax, (%rsp)
leaq 0x4a0f(%rip), %r15      # 0x9554
leaq 0x4550(%rip), %rsi      # 0x909c
leaq 0x4963(%rip), %rdx      # 0x94b6
leaq 0x4961(%rip), %rcx      # 0x94bb
leaq 0x4968(%rip), %r8       # 0x94c9
leaq 0x4a09(%rip), %r9       # 0x9571
movq %r15, %rdi
xorl %eax, %eax
callq 0x2040
movslq -0x30(%rbp), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rbp), %rsi
addq $-0x760, %rsi           # imm = 0xF8A0
movsd -0x70(%rbp), %xmm1
movapd %xmm1, %xmm3
movsd -0x88(%rbp), %xmm2
divsd %xmm2, %xmm3
leaq 0x49ef(%rip), %rbx      # 0x9594
movq %rbx, %rdi
movl %r13d, %edx
movsd -0x38(%rbp), %xmm0
movb $0x4, %al
callq 0x2040
movslq -0x2c(%rbp), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rbp), %rsi
addq $-0x760, %rsi           # imm = 0xF8A0
movsd -0x68(%rbp), %xmm1
movapd %xmm1, %xmm3
movsd -0x90(%rbp), %xmm2
divsd %xmm2, %xmm3
movq %rbx, %rdi
movq -0x60(%rbp), %rdx
movsd -0x40(%rbp), %xmm0
movb $0x4, %al
callq 0x2040
leaq 0x48f4(%rip), %rsi      # 0x94f1
movl $0x26, %edx
movq %r12, %rdi
callq 0x2170
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x4943(%rip), %rax      # 0x957c
movq %rax, (%rsp)
movq %r15, %rdi
leaq 0x4455(%rip), %rsi      # 0x909c
leaq 0x4868(%rip), %rdx      # 0x94b6
leaq 0x4866(%rip), %rcx      # 0x94bb
leaq 0x486d(%rip), %r8       # 0x94c9
leaq 0x490e(%rip), %r9       # 0x9571
xorl %eax, %eax
callq 0x2040
movslq -0x30(%rbp), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rbp), %rsi
addq $-0x760, %rsi           # imm = 0xF8A0
movsd -0x70(%rbp), %xmm1
movapd %xmm1, %xmm3
movsd -0x80(%rbp), %xmm2
divsd %xmm2, %xmm3
movq %rbx, %rdi
movl %r14d, %edx
movsd -0x38(%rbp), %xmm0
movb $0x4, %al
callq 0x2040
movslq -0x2c(%rbp), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rbp), %rsi
addq $-0x760, %rsi           # imm = 0xF8A0
movsd -0x68(%rbp), %xmm1
movapd %xmm1, %xmm3
movsd -0x58(%rbp), %xmm2
divsd %xmm2, %xmm3
movq %rbx, %rdi
movq -0x78(%rbp), %rdx
movsd -0x40(%rbp), %xmm0
movb $0x4, %al
callq 0x2040
addq $0xbc8, %rsp            # imm = 0xBC8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4cf5
movq %rax, %rbx
jmp 0x4d17
jmp 0x4d08
jmp 0x4d08
jmp 0x4d08
jmp 0x4d08
jmp 0x4d08
jmp 0x4d08
jmp 0x4d08
movq %rax, %rbx
leaq -0x3d8(%rbp), %rdi
callq 0x4d2c
leaq -0x678(%rbp), %rdi
callq 0x4d2c
movq %rbx, %rdi
callq 0x2200
nop