// File: /workspace/github_cpp_makefile_star2_O3/salda[P]convex_hull_of_intersections/convex_hull_of_intersections.cpp
// Function: main
int main() {
    /*auto start = chrono::high_resolution_clock::now();*/
    /*ofstream worst_case_input("worst_case_input.txt");
    worst_case_input << "1000" << endl;
    for (int i = 0; i != 1000; ++i)
        worst_case_input << "C " << (-499 + i) * 2000 << " " << (499 - i) * 2000 << " " << "1000000" << endl;
    return 0;*/

    std::size_t element_count;
    //ifstream input("worst_case_input.txt");
    /*ifstream input("example_input.txt");
    string helper;
    getline(input, helper);
    element_count = stoi(helper);*/
    cin >> element_count;
    cin.sync();

    vector<square_area> elements(element_count);
    vector<pair<double, double>> collisions;

    for (auto& element : elements) {
        string line;
        getline(cin, line);
        //getline(input, line);
        istringstream stream(&line.c_str()[2]);

        if (line.front() == 'L') {
            element.type = square_area::square_area_line;
            stream >> element.first_x;
            stream >> element.first_y;
            stream >> element.second_x;
            stream >> element.second_y;            
            element.lower_left_x = min(element.first_x, element.second_x);
            element.lower_left_y = min(element.first_y, element.second_y);
            element.top_right_x = max(element.first_x, element.second_x);
            element.top_right_y = max(element.first_y, element.second_y);
        }
        else {
            element.type = square_area::square_area_circle;
            stream >> element.center_x;
            stream >> element.center_y;
            stream >> element.radius;
            element.lower_left_x = element.center_x - element.radius;
            element.lower_left_y = element.center_y - element.radius;
            element.top_right_x = element.center_x + element.radius;
            element.top_right_y = element.center_y + element.radius;
        }

        for (auto& element_to_check_intersection : elements) {
            if (&element_to_check_intersection == &element)
                break;
            if (((element.lower_left_x >= element_to_check_intersection.lower_left_x && element.lower_left_x <= element_to_check_intersection.top_right_x) || // TODO try to remove
                (element_to_check_intersection.lower_left_x >= element.lower_left_x && element_to_check_intersection.lower_left_x <= element.top_right_x))
                && ((element.lower_left_y >= element_to_check_intersection.lower_left_y && element.lower_left_y <= element_to_check_intersection.top_right_y) ||
                (element_to_check_intersection.lower_left_y >= element.lower_left_y && element_to_check_intersection.lower_left_y <= element.top_right_y)))
            {
                if (element.type == square_area::square_area_line && element_to_check_intersection.type == square_area::square_area_line) { // TODO caching + optimize
                    long long int element_square_x_length = element.second_x - element.first_x;
                    long long int element_square_y_length = element.second_y - element.first_y;
                    long long int element_to_check_intersection_square_x_length = element_to_check_intersection.second_x - element_to_check_intersection.first_x;
                    long long int element_to_check_intersection_square_y_length = element_to_check_intersection.second_y - element_to_check_intersection.first_y;
                    
                    int starting_x_difference = element.first_x - element_to_check_intersection.first_x;
                    int starting_y_difference = element.first_y - element_to_check_intersection.first_y;

                    double r = element_square_x_length * element_to_check_intersection_square_y_length - element_to_check_intersection_square_x_length * element_square_y_length;
                    double s = (element_square_x_length * starting_y_difference - element_square_y_length * starting_x_difference) / r;
                    if (s < 0 || s > 1)
                        continue;

                    double t = (element_to_check_intersection_square_x_length * starting_y_difference - element_to_check_intersection_square_y_length * starting_x_difference) / r;
                    if (t < 0 || t > 1)
                        continue;

                    collisions.emplace_back(element.first_x + t * element_square_x_length, element.first_y + t * element_square_y_length);
                }
                else if (element.type == square_area::square_area_circle && element_to_check_intersection.type == square_area::square_area_circle) { // TODO caching + optimize
                    double distance_between_centers_x = element_to_check_intersection.center_x - element.center_x;
                    double distance_between_centers_y = element_to_check_intersection.center_y - element.center_y;
                    double distance_between_centers = hypot(distance_between_centers_x, distance_between_centers_y);
                    if (distance_between_centers > element.radius + element_to_check_intersection.radius || distance_between_centers < abs(element.radius - element_to_check_intersection.radius))
                        continue;

                    long long int element_radius_square = (long long int)element.radius * element.radius;
                    double a = (element_radius_square - (long long int)element_to_check_intersection.radius * element_to_check_intersection.radius + distance_between_centers * distance_between_centers) / (2 * distance_between_centers);
                    double h = sqrt(element_radius_square - a * a);

                    double helper1 = distance_between_centers_x / distance_between_centers;
                    double helper2 = distance_between_centers_y / distance_between_centers;
                    double helper3 = h * helper1;
                    double helper4 = h * helper2;

                    double intersection_area_center_x = element.center_x + a * helper1;
                    double intersection_area_center_y = element.center_y + a * helper2;

                    collisions.emplace_back(intersection_area_center_x + helper4,  intersection_area_center_y - helper3);
                    collisions.emplace_back(intersection_area_center_x - helper4,  intersection_area_center_y + helper3);
                }
                else { // TODO caching + optimize
                    square_area& line = element.type == square_area::square_area_line ? element : element_to_check_intersection;
                    square_area& circle = element.type == square_area::square_area_circle ? element : element_to_check_intersection;
                    
                    long long int line_x_length = line.second_x - line.first_x;
                    long long int line_y_length = line.second_y - line.first_y;

                    int distance_between_circle_center_and_line_first_x = circle.center_x - line.first_x;
                    int distance_between_circle_center_and_line_first_y = circle.center_y - line.first_y;
                    
                    double line_length = hypot(line_x_length, line_y_length);
                    double distance_between_center_and_line = abs(line_x_length * distance_between_circle_center_and_line_first_y - line_y_length * distance_between_circle_center_and_line_first_x) / line_length;
                    if (distance_between_center_and_line > circle.radius)
                        continue;
                    
                    double Dx = line_x_length / line_length;
                    double Dy = line_y_length / line_length;
                    
                    double distance_from_A_to_closest_point_to_circle_center_on_line = Dx * distance_between_circle_center_and_line_first_x + Dy * distance_between_circle_center_and_line_first_y;
                    double distance_from_circle_center_to_line = sqrt((long long int)circle.radius * circle.radius - distance_between_center_and_line * distance_between_center_and_line);
                    
                    double helper1 = distance_from_A_to_closest_point_to_circle_center_on_line - distance_from_circle_center_to_line;
                    double helper3 = helper1 / line_length;
                    if (helper3 >= 0 && helper3 <= 1)
                        collisions.emplace_back(line.first_x + helper1 * Dx,  line.first_y + helper1 * Dy);

                    if (distance_between_center_and_line != circle.radius) {
                        double helper2 = distance_from_A_to_closest_point_to_circle_center_on_line + distance_from_circle_center_to_line;
                        double helper4 = helper2 / line_length;
                        if (helper4 >= 0 && helper4 <= 1)
                            collisions.emplace_back(line.first_x + helper2 * Dx,  line.first_y + helper2 * Dy);
                    }
                }
            }
        }
    }

    sort(collisions.begin(), collisions.end());
    collisions.erase(unique(collisions.begin(), collisions.end()), collisions.end());
    cout << collisions.size() << endl << fixed << setprecision(4);

    for (auto& collision : collisions)
        cout << collision.first << " " << collision.second << endl;

    Ouellet_hull convex_hull_class(move(collisions));
    vector<pair<double, double>> convex_hull = convex_hull_class.get_result();
    cout << convex_hull.size() << endl;        

    double convex_hull_area_twice = 0.0;
    size_t j = convex_hull.size() - 1;
    for (size_t i = 0; i != convex_hull.size(); ++i) {
        cout << convex_hull[i].first << " " << convex_hull[i].second << endl;
        convex_hull_area_twice += (convex_hull[j].first + convex_hull[i].first) * (convex_hull[j].second - convex_hull[i].second);
        j = i;
    }
    cout << abs(convex_hull_area_twice / 2);

    /*cout << endl << "Elapsed time: " << chrono::duration<double>(chrono::high_resolution_clock::now() - start).count() << endl;
    cin.sync();
    cin.ignore();*/
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movq 0x4c4c(%rip), %r12      # 0x6fe0
leaq 0xf0(%rsp), %rbx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x2090
movq %r12, %rdi
callq 0x2140
movq (%rbx), %rsi
leaq 0xb0(%rsp), %rbx
leaq 0xf8(%rsp), %rdx
movq %rbx, %rdi
callq 0x3060
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq (%rbx), %r14
movq 0x8(%rbx), %rax
movq %rax, 0xc8(%rsp)
cmpq %rax, %r14
je 0x2bd1
leaq 0x50(%rsp), %r15
leaq 0x80(%rsp), %r13
movq %r15, 0x40(%rsp)
movq $0x0, 0x48(%rsp)
movb $0x0, 0x50(%rsp)
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %edx
movq %r12, %rdi
leaq 0x40(%rsp), %rsi
callq 0x21d0
movq 0x40(%rsp), %rbx
leaq 0x2(%rbx), %rbp
movq %r13, 0x70(%rsp)
movq %rbp, %rdi
callq 0x2070
leaq (%rbx,%rax), %rdx
addq $0x2, %rdx
leaq 0x70(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x3198
leaq 0xf8(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x21a0
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x249a
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2150
movq 0x40(%rsp), %rax
cmpb $0x4c, (%rax)
jne 0x2511
movl $0x0, 0x2c(%r14)
leaq 0x10(%r14), %rsi
movq %r12, %rdi
callq 0x20a0
leaq 0x14(%r14), %rsi
movq %r12, %rdi
callq 0x20a0
leaq 0x18(%r14), %rsi
movq %r12, %rdi
callq 0x20a0
leaq 0x1c(%r14), %rsi
movq %r12, %rdi
callq 0x20a0
movl 0x18(%r14), %ecx
movl 0x10(%r14), %edx
movl 0x14(%r14), %esi
cmpl %edx, %ecx
movl %edx, %eax
cmovll %ecx, %eax
movl %eax, (%r14)
movl 0x1c(%r14), %eax
cmpl %esi, %eax
movl %esi, %edi
cmovll %eax, %edi
movl %edi, 0x4(%r14)
cmpl %ecx, %edx
cmovgl %edx, %ecx
movl %ecx, 0x8(%r14)
cmpl %eax, %esi
cmovgl %esi, %eax
jmp 0x255f
movl $0x1, 0x2c(%r14)
leaq 0x20(%r14), %rsi
movq %r12, %rdi
callq 0x20a0
leaq 0x24(%r14), %rsi
movq %r12, %rdi
callq 0x20a0
leaq 0x28(%r14), %rsi
movq %r12, %rdi
callq 0x20a0
movl 0x28(%r14), %ecx
movl 0x20(%r14), %edx
movl 0x24(%r14), %eax
leal (%rcx,%rdx), %esi
subl %ecx, %edx
movl %edx, (%r14)
movl %eax, %edx
subl %ecx, %edx
movl %edx, 0x4(%r14)
movl %esi, 0x8(%r14)
addl %ecx, %eax
movl %eax, 0xc(%r14)
movq 0xb0(%rsp), %rbp
movq 0xb8(%rsp), %r15
cmpq %r15, %rbp
sete %al
cmpq %r14, %rbp
sete %cl
orb %al, %cl
jne 0x2b2b
movq %r15, 0xa8(%rsp)
movq %r14, 0xd0(%rsp)
movl (%r14), %ecx
movl (%rbp), %eax
cmpl %eax, %ecx
jl 0x25a6
cmpl 0x8(%rbp), %ecx
jle 0x25b8
cmpl %ecx, %eax
jl 0x2b19
cmpl 0x8(%r14), %eax
jg 0x2b19
movl 0x4(%r14), %ecx
movl 0x4(%rbp), %eax
cmpl %eax, %ecx
jl 0x25c8
cmpl 0xc(%rbp), %ecx
jle 0x25da
cmpl %ecx, %eax
jl 0x2b19
cmpl 0xc(%r14), %eax
jg 0x2b19
movl 0x2c(%r14), %eax
movl 0x2c(%rbp), %ecx
movl %eax, %edx
orl %ecx, %edx
jne 0x26f6
movslq 0x18(%r14), %rdx
movslq 0x10(%r14), %rsi
subq %rsi, %rdx
movslq 0x1c(%r14), %rax
movslq 0x14(%r14), %rcx
subq %rcx, %rax
movslq 0x18(%rbp), %rdi
movslq 0x10(%rbp), %r10
subq %r10, %rdi
movslq 0x1c(%rbp), %r8
movslq 0x14(%rbp), %r11
subq %r11, %r8
movq %rsi, %r9
subq %r10, %r9
movq %r8, %rbx
imulq %rdx, %rbx
movq %rdi, %r10
imulq %rax, %r10
subq %r10, %rbx
movq %rcx, %r10
xorps %xmm0, %xmm0
cvtsi2sd %rbx, %xmm0
subq %r11, %r10
movq %r10, %r11
imulq %rdx, %r11
movq %r9, %rbx
imulq %rax, %rbx
subq %rbx, %r11
xorps %xmm1, %xmm1
cvtsi2sd %r11, %xmm1
divsd %xmm0, %xmm1
xorpd %xmm2, %xmm2
ucomisd %xmm1, %xmm2
ja 0x2b19
ucomisd 0x2999(%rip), %xmm1     # 0x5008
ja 0x2b19
imulq %rdi, %r10
imulq %r9, %r8
subq %r8, %r10
xorps %xmm1, %xmm1
cvtsi2sd %r10, %xmm1
divsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
ja 0x2b19
ucomisd 0x2966(%rip), %xmm1     # 0x5008
ja 0x2b19
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
xorps %xmm2, %xmm2
cvtsi2sd %edx, %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
cvtsi2sd %eax, %xmm3
movsd %xmm2, 0x70(%rsp)
mulsd %xmm1, %xmm3
addsd %xmm0, %xmm3
movsd %xmm3, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x70(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x312e
jmp 0x2b19
movl %eax, %edx
xorl $0x1, %edx
xorl $0x1, %ecx
orl %edx, %ecx
jne 0x27c4
movl 0x20(%rbp), %eax
movl 0x24(%rbp), %ecx
subl 0x20(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
subl 0x24(%r14), %ecx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
movsd %xmm0, 0x60(%rsp)
movsd %xmm1, (%rsp)
callq 0x2040
movapd %xmm0, %xmm3
movslq 0x28(%r14), %rax
movslq 0x28(%rbp), %rcx
leal (%rcx,%rax), %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
ucomisd %xmm0, %xmm3
ja 0x2b19
movl %eax, %edx
subl %ecx, %edx
movl %edx, %esi
negl %esi
cmovsl %edx, %esi
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
ucomisd %xmm3, %xmm0
ja 0x2b19
imulq %rax, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
imulq %rcx, %rcx
subq %rcx, %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movapd %xmm3, %xmm4
mulsd %xmm3, %xmm4
addsd %xmm1, %xmm4
movapd %xmm3, %xmm1
addsd %xmm3, %xmm1
divsd %xmm1, %xmm4
movapd %xmm4, %xmm1
mulsd %xmm4, %xmm1
subsd %xmm1, %xmm0
ucomisd 0x2863(%rip), %xmm0     # 0x5018
jb 0x2a39
sqrtsd %xmm0, %xmm0
jmp 0x2a56
testl %eax, %eax
movq %rbp, %rcx
cmoveq %r14, %rcx
cmpl $0x1, %eax
movq %rbp, %r13
cmoveq %r14, %r13
movslq 0x18(%rcx), %r12
movslq 0x10(%rcx), %rax
subq %rax, %r12
movslq 0x1c(%rcx), %r15
movq %rcx, 0xa0(%rsp)
movslq 0x14(%rcx), %rcx
subq %rcx, %r15
movslq 0x20(%r13), %rbx
subq %rax, %rbx
movslq 0x24(%r13), %r14
subq %rcx, %r14
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %r15d, %xmm1
movsd %xmm0, (%rsp)
movsd %xmm1, 0x60(%rsp)
callq 0x2040
movapd %xmm0, %xmm3
movq %r14, 0x30(%rsp)
imulq %r14, %r12
movq 0xd0(%rsp), %r14
movq %rbx, 0x38(%rsp)
imulq %rbx, %r15
subq %r15, %r12
movq 0xa8(%rsp), %r15
movq %r12, %rax
negq %rax
cmovsq %r12, %rax
cvtsi2sd %rax, %xmm4
divsd %xmm0, %xmm4
movslq 0x28(%r13), %rax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
ucomisd %xmm0, %xmm4
ja 0x2b19
imulq %rax, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movapd %xmm4, %xmm1
mulsd %xmm4, %xmm1
subsd %xmm1, %xmm0
ucomisd 0x2784(%rip), %xmm0     # 0x5018
movsd %xmm3, 0x98(%rsp)
movsd %xmm4, 0x90(%rsp)
jb 0x28ae
sqrtsd %xmm0, %xmm0
jmp 0x28c5
callq 0x20f0
movsd 0x90(%rsp), %xmm4
movsd 0x98(%rsp), %xmm3
movsd (%rsp), %xmm2
divsd %xmm3, %xmm2
cvtsi2sdl 0x38(%rsp), %xmm5
movsd 0x60(%rsp), %xmm1
divsd %xmm3, %xmm1
cvtsi2sdl 0x30(%rsp), %xmm6
movsd %xmm1, 0x60(%rsp)
mulsd %xmm1, %xmm6
movsd %xmm2, (%rsp)
mulsd %xmm2, %xmm5
addsd %xmm6, %xmm5
movapd %xmm5, %xmm6
subsd %xmm0, %xmm6
movapd %xmm6, %xmm1
divsd %xmm3, %xmm1
ucomisd 0x2705(%rip), %xmm1     # 0x5018
jb 0x29a0
movsd 0x26e7(%rip), %xmm2     # 0x5008
ucomisd %xmm1, %xmm2
jb 0x29a0
movsd %xmm0, 0x30(%rsp)
movsd %xmm5, 0x38(%rsp)
movq 0xa0(%rsp), %rax
xorps %xmm1, %xmm1
cvtsi2sdl 0x10(%rax), %xmm1
movapd %xmm6, %xmm2
mulsd (%rsp), %xmm2
addsd %xmm1, %xmm2
movsd %xmm2, 0x70(%rsp)
xorps %xmm1, %xmm1
cvtsi2sdl 0x14(%rax), %xmm1
mulsd 0x60(%rsp), %xmm6
addsd %xmm1, %xmm6
movsd %xmm6, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x70(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x312e
movsd 0x98(%rsp), %xmm3
movsd 0x90(%rsp), %xmm4
movsd 0x38(%rsp), %xmm5
movsd 0x30(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x28(%r13), %xmm1
ucomisd %xmm1, %xmm4
jne 0x29b5
jnp 0x2b19
addsd %xmm0, %xmm5
movapd %xmm5, %xmm0
divsd %xmm3, %xmm0
ucomisd 0x264f(%rip), %xmm0     # 0x5018
jb 0x2b19
movsd 0x2631(%rip), %xmm1     # 0x5008
ucomisd %xmm0, %xmm1
jb 0x2b19
movq 0xa0(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sdl 0x10(%rax), %xmm0
movsd (%rsp), %xmm1
mulsd %xmm5, %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x70(%rsp)
xorps %xmm0, %xmm0
cvtsi2sdl 0x14(%rax), %xmm0
movsd 0x60(%rsp), %xmm1
mulsd %xmm5, %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x70(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x312e
jmp 0x2b19
movsd %xmm3, 0x38(%rsp)
movsd %xmm4, 0x30(%rsp)
callq 0x20f0
movsd 0x30(%rsp), %xmm4
movsd 0x38(%rsp), %xmm3
leaq 0x70(%rsp), %rbx
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %r12
movsd 0x60(%rsp), %xmm1
movsd (%rsp), %xmm2
divsd %xmm3, %xmm1
divsd %xmm3, %xmm2
movapd %xmm4, %xmm3
mulsd %xmm1, %xmm3
mulsd %xmm0, %xmm1
movsd %xmm1, 0x60(%rsp)
cvtsi2sdl 0x20(%r14), %xmm5
mulsd %xmm2, %xmm0
addsd %xmm3, %xmm5
xorps %xmm3, %xmm3
cvtsi2sdl 0x24(%r14), %xmm3
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
movsd %xmm2, (%rsp)
movsd %xmm0, 0x38(%rsp)
movsd %xmm5, 0x30(%rsp)
addsd %xmm5, %xmm0
movsd %xmm0, 0x70(%rsp)
movapd %xmm2, %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x312e
movsd 0x30(%rsp), %xmm0
subsd 0x38(%rsp), %xmm0
movsd %xmm0, 0x70(%rsp)
movsd 0x60(%rsp), %xmm0
addsd (%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x312e
movq 0xa8(%rsp), %r15
addq $0x30, %rbp
cmpq %r15, %rbp
je 0x2b2b
cmpq %r14, %rbp
jne 0x2597
leaq 0xf8(%rsp), %rdi
movq 0x448e(%rip), %rsi      # 0x6fc8
callq 0x2170
leaq 0x170(%rsp), %rdi
callq 0x2050
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %r15
cmpq %r15, %rdi
je 0x2b68
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2150
addq $0x30, %r14
cmpq 0xc8(%rsp), %r14
movq 0x4465(%rip), %r12      # 0x6fe0
leaq 0x80(%rsp), %r13
jne 0x2402
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %rbx
cmpq %rbx, %r14
je 0x2bd6
movq %rbx, %rax
subq %r14, %rax
sarq $0x4, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3389
movq %r14, %rdi
movq %rbx, %rsi
callq 0x343c
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %rbx
jmp 0x2bd6
xorl %ebx, %ebx
xorl %r14d, %r14d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3911
movq 0x10(%rsp), %rcx
cmpq %rax, 0x18(%rsp)
je 0x2bf2
movq %rax, 0x18(%rsp)
subq %rcx, %rax
sarq $0x4, %rax
movq 0x43d0(%rip), %rdi      # 0x6fd0
movq %rax, %rsi
callq 0x20b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movq (%rax), %rcx
movq -0x18(%rcx), %rdx
movl $0xfffffefb, %esi       # imm = 0xFFFFFEFB
andl 0x18(%rax,%rdx), %esi
orl $0x4, %esi
movl %esi, 0x18(%rax,%rdx)
movq -0x18(%rcx), %rcx
movq $0x4, 0x8(%rax,%rcx)
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %r13
cmpq %r13, %r12
je 0x2ce0
movq 0x4364(%rip), %rbx      # 0x6fd0
leaq 0x23bd(%rip), %r14      # 0x5030
movsd (%r12), %xmm0
movq %rbx, %rdi
callq 0x2190
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2160
movsd 0x8(%r12), %xmm0
movq %r15, %rdi
callq 0x2190
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
addq $0x10, %r12
cmpq %r13, %r12
jne 0x2c73
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %r13
leaq 0xd8(%rsp), %rsi
movq %r12, (%rsi)
movq %r13, 0x8(%rsi)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsi)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
leaq 0xf8(%rsp), %rdi
callq 0x4144
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x2d35
movq 0xe8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2150
leaq 0x40(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0x41e8
movq 0x48(%rsp), %rsi
subq 0x40(%rsp), %rsi
sarq $0x4, %rsi
movq 0x4274(%rip), %rdi      # 0x6fd0
callq 0x20b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %r13
subq %rax, %r13
je 0x2e7f
sarq $0x4, %r13
decq %r13
xorpd %xmm0, %xmm0
xorl %r12d, %r12d
movq 0x421d(%rip), %rbx      # 0x6fd0
leaq 0x2276(%rip), %r14      # 0x5030
xorl %ecx, %ecx
movapd %xmm0, 0x60(%rsp)
movq %rcx, %rbp
movsd (%rax,%r12), %xmm0
movq %rbx, %rdi
callq 0x2190
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2160
movq 0x40(%rsp), %rax
movsd 0x8(%rax,%r12), %xmm0
movq %r15, %rdi
callq 0x2190
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rdx
shlq $0x4, %r13
movsd (%rax,%r13), %xmm0
movsd 0x8(%rax,%r13), %xmm1
addsd (%rax,%r12), %xmm0
subsd 0x8(%rax,%r12), %xmm1
mulsd %xmm0, %xmm1
movapd 0x60(%rsp), %xmm0
addsd %xmm1, %xmm0
leaq 0x1(%rbp), %rcx
subq %rax, %rdx
sarq $0x4, %rdx
addq $0x10, %r12
movq %rbp, %r13
cmpq %rdx, %rcx
jne 0x2dbc
mulsd 0x2193(%rip), %xmm0     # 0x5010
jmp 0x2e83
xorpd %xmm0, %xmm0
andpd 0x2195(%rip), %xmm0     # 0x5020
movq 0x413e(%rip), %rdi      # 0x6fd0
callq 0x2190
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2eae
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2150
movl $0x60, %ebx
movq 0xe0(%rsp,%rbx), %rdi
testq %rdi, %rdi
je 0x2ed0
movq 0xf0(%rsp,%rbx), %rsi
subq %rdi, %rsi
callq 0x2150
addq $-0x18, %rbx
jne 0x2eb3
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2eed
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2150
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x2f0a
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2150
xorl %eax, %eax
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2fdb
movq %rax, %rbx
jmp 0x2ff5
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x3023
movq 0xe8(%rsp), %rsi
subq %rdi, %rsi
jmp 0x2fd4
jmp 0x3020
jmp 0x2fdb
jmp 0x3020
jmp 0x2f8f
jmp 0x2f8f
jmp 0x2f8f
jmp 0x2f8f
movq %rax, %rbx
jmp 0x2f88
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x2f88
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2150
leaq 0x50(%rsp), %r15
jmp 0x2fc2
movq %rax, %rbx
leaq 0x50(%rsp), %r15
jmp 0x2fa1
movq %rax, %rbx
jmp 0x2fc2
movq %rax, %rbx
movq 0x4020(%rip), %rsi      # 0x6fc8
leaq 0xf8(%rsp), %rdi
callq 0x2170
leaq 0x170(%rsp), %rdi
callq 0x2050
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x3023
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2150
jmp 0x3023
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2ff5
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2150
movl $0x60, %r14d
movq 0xe0(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x3018
movq 0xf0(%rsp,%r14), %rsi
subq %rdi, %rsi
callq 0x2150
addq $-0x18, %r14
jne 0x2ffb
jmp 0x3023
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x303a
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2150
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x3057
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2150
movq %rbx, %rdi
callq 0x21b0
nop