// File: /workspace/github_cpp_makefile_star2_O1/4shadoww[P]xwinter/xwinter.cpp
// Function: main
int main(int argc, char** argv){
    // Settings
    unsigned int count = 200;
    float speed_x = 30.f;
    float speed_y = 30.f;
    std::string particle_color = "white";
    float random_x = 20.f;
    float random_y = 20.f;
    int x_spawn = 1;
    unsigned int size = 2;
    unsigned int random_size = 2;
    unsigned int fps = 144;

    // Chech is help asked to be printed
    if(argc > 1 && (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0)){
        print_usage(argv[0]);
        return 0;
    }
    // Chech is version asked to be printed
    if(argc > 1 && (strcmp(argv[1], "-v") == 0 || strcmp(argv[1], "--version") == 0)){
        print_version();
        return 0;
    }

    // Check is argument count correct
    if(argc % 2 == 0 || argc == 2){
        std::cerr << "error: invalid argument count" << std::endl;
        return 1;
    }
    // Parse arguments
    for(int i = 1; i < argc - 1; i++){
        // Particle count
        if(strcmp(argv[i], "-c") == 0 || strcmp(argv[i], "--count") == 0){
            i++;
            count = std::stoul(argv[i]);
            continue;
        // Speed x
        }else if(strcmp(argv[i], "-sx") == 0 || strcmp(argv[i], "--speed-x") == 0){
            i++;
            speed_x = std::atof(argv[i]);
            continue;
        // Speed y
        }else if(strcmp(argv[i], "-sy") == 0 || strcmp(argv[i], "--speed-y") == 0){
            i++;
            speed_y = std::atof(argv[i]);
            continue;
        // Color
        }else if(strcmp(argv[i], "-cl") == 0 || strcmp(argv[i], "--color") == 0){
            i++;
            particle_color = argv[i];
            continue;
        // Random x
        }else if(strcmp(argv[i], "-rx") == 0 || strcmp(argv[i], "--random-x") == 0){
            i++;
            random_x = std::atof(argv[i]);
            continue;
        // Random y
        }else if(strcmp(argv[i], "-ry") == 0 || strcmp(argv[i], "--random-y") == 0){
            i++;
            random_y = std::atof(argv[i]);
            continue;
        // Spawn y
        }else if(strcmp(argv[i], "-xs") == 0 || strcmp(argv[i], "--x-spawn") == 0){
            i++;
            x_spawn = std::atoi(argv[i]);
            continue;
        // Size
        }else if(strcmp(argv[i], "-s") == 0 || strcmp(argv[i], "--size") == 0){
            i++;
            size = std::stoul(argv[i]);
            continue;
        // Random size
        }else if(strcmp(argv[i], "-rs") == 0 || strcmp(argv[i], "--random-size") == 0){
            i++;
            random_size = std::stoul(argv[i]);
            continue;
        // Framerate
        }else if(strcmp(argv[i], "-fps") == 0 || strcmp(argv[i], "--frame-rate") == 0){
            i++;
            fps = std::stoul(argv[i]);
            continue;
        }else{
            std::cerr << "error: unknown argument \"" << argv[i] << "\"" << std::endl;
            return 1;
        }
    }

    // Tick
    float tick = 1000 / fps;

    // Print license
    print_copyright();

    // Init xorg
    Display* display = XOpenDisplay (NULL);
    Window defaultroot = DefaultRootWindow(display);
    XVisualInfo vinfo;
    XMatchVisualInfo(display, DefaultScreen(display), 32, TrueColor, &vinfo);
    Screen* screen = XDefaultScreenOfDisplay(display);
    int screen_num = DefaultScreen(display);
    GC gc;
    XColor xcolor;

    // Get screen width and heigth
    int width = XWidthOfScreen(screen);
    int height = XHeightOfScreen(screen);
    // Set window attributes
    XSetWindowAttributes attr;
    attr.override_redirect = 1;
    attr.colormap = XCreateColormap(display, defaultroot, vinfo.visual, AllocNone);
    attr.border_pixel = 0;
    attr.background_pixel = 0;
    // Create window
    Window window = XCreateWindow(display, defaultroot, 0, 0, width, height, 0, vinfo.depth, InputOutput, vinfo.visual, CWColormap | CWBorderPixel | CWBackPixel | CWOverrideRedirect, &attr);

    // Event listener
    XSelectInput(display, defaultroot, ExposureMask | StructureNotifyMask);

    // Move window to background
    XLowerWindow(display, window);

    XMapWindow(display, window);
    XMapWindow(display, defaultroot);
    // Graphics context
    gc = XCreateGC(display, window, 0, 0);

    // Create the color
    if(particle_color == "red"){
        xcolor.red = 65535; xcolor.green = 0; xcolor.blue = 0;
    }else if(particle_color == "blue"){
        xcolor.red = 0; xcolor.green = 0; xcolor.blue = 65535;
    }else if(particle_color == "green"){
        xcolor.red = 0; xcolor.green = 65535; xcolor.blue = 0;
    }else{
        xcolor.red = 65535; xcolor.green = 65535; xcolor.blue = 65535;
    }
    xcolor.flags = DoRed | DoGreen | DoBlue;
    XAllocColor(display, DefaultColormap(display, screen_num), &xcolor);

    // Set snow color
    XSetForeground(display, gc, xcolor.pixel);
    // Flush
    XFlush(display);

    // Create sky
    sky skyen(width, height);
    skyen.set_count(count);
    skyen.set_speed(speed_x, speed_x + random_x, speed_y, speed_y + random_y);
    skyen.set_x_spawn_intensity(x_spawn);
    skyen.set_size(size, size + random_size);
    skyen.create_sky();

    while(true){
        // Events
        XEvent e;
        XCheckMaskEvent(display, ExposureMask | StructureNotifyMask, &e);
        // Resize window
        if (e.type == ConfigureNotify){
            XConfigureEvent xce = e.xconfigure;

            if(width != xce.width || height != xce.height){
                width = xce.width;
                height = xce.height;

                skyen.set_screen_size(width, height);
                XResizeWindow(display, window, width, height);
            }
        }
        // Draw
        XFillRectangles(display, window, gc, skyen.snowflakes, count);
        XFlush(display);
        XClearWindow(display, window);
        // Update sky
        skyen.update(tick);
        usleep(1000000 / fps);
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2958, %rsp           # imm = 0x2958
movq %rsi, %r13
movl %edi, %ebx
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x16be(%rip), %rsi      # 0x449e
leaq 0x16bc(%rip), %rdx      # 0x44a3
leaq 0x58(%rsp), %rdi
callq 0x39e8
cmpl $0x2, %ebx
jl 0x2e56
movq 0x8(%r13), %r14
leaq 0x16a3(%rip), %rsi      # 0x44a4
movq %r14, %rdi
callq 0x22a0
testl %eax, %eax
je 0x2eaf
leaq 0x168f(%rip), %rsi      # 0x44a7
movq %r14, %rdi
callq 0x22a0
testl %eax, %eax
je 0x2eaf
leaq 0x167f(%rip), %rsi      # 0x44ae
movq %r14, %rdi
callq 0x22a0
testl %eax, %eax
je 0x34ec
leaq 0x166b(%rip), %rsi      # 0x44b1
movq %r14, %rdi
callq 0x22a0
testl %eax, %eax
je 0x34ec
testb $0x1, %bl
jne 0x2ef7
movq 0x418a(%rip), %rbx      # 0x6ff0
leaq 0x164e(%rip), %rsi      # 0x44bb
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x2210
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq 0x4158(%rip), %rdi      # 0x6ff0
callq 0x2040
movl $0x1, %ebx
movq %rax, %rdi
callq 0x2160
jmp 0x34f3
movq (%r13), %rsi
leaq 0x78(%rsp), %rdi
leaq 0x208(%rsp), %rdx
callq 0x3812
leaq 0x78(%rsp), %rdi
callq 0x2c4d
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ef0
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x21f0
xorl %ebx, %ebx
jmp 0x34f3
cmpl $0x3, %ebx
setge %bpl
jl 0x3324
decl %ebx
movl $0x2, %eax
movq %rax, 0x48(%rsp)
movl $0x90, %eax
movq %rax, 0x28(%rsp)
movl $0x1, 0x18(%rsp)
movss 0x1116(%rip), %xmm0     # 0x4040
movss 0x110a(%rip), %xmm1     # 0x403c
movl $0xc8, %eax
movq %rax, 0x30(%rsp)
movss %xmm1, 0xc(%rsp)
movss %xmm1, 0x24(%rsp)
movss %xmm0, 0x20(%rsp)
movss %xmm0, 0x1c(%rsp)
movl $0x1, %r15d
movl $0x2, %eax
movq %rax, 0x50(%rsp)
movslq %r15d, %r14
movq (%r13,%r14,8), %r12
movq %r12, %rdi
leaq 0x1563(%rip), %rsi      # 0x44d9
callq 0x22a0
testl %eax, %eax
je 0x3167
movq %r12, %rdi
leaq 0x154f(%rip), %rsi      # 0x44dc
callq 0x22a0
testl %eax, %eax
je 0x3167
movq %r12, %rdi
leaq 0x1540(%rip), %rsi      # 0x44e4
callq 0x22a0
testl %eax, %eax
je 0x3202
movq %r12, %rdi
leaq 0x152d(%rip), %rsi      # 0x44e8
callq 0x22a0
testl %eax, %eax
je 0x3202
movq %r12, %rdi
leaq 0x1520(%rip), %rsi      # 0x44f2
callq 0x22a0
testl %eax, %eax
je 0x321b
movq %r12, %rdi
leaq 0x150d(%rip), %rsi      # 0x44f6
callq 0x22a0
testl %eax, %eax
je 0x321b
movq %r12, %rdi
leaq 0x1500(%rip), %rsi      # 0x4500
callq 0x22a0
testl %eax, %eax
je 0x3247
movq %r12, %rdi
leaq 0x14ed(%rip), %rsi      # 0x4504
callq 0x22a0
testl %eax, %eax
je 0x3247
movq %r12, %rdi
leaq 0x14de(%rip), %rsi      # 0x450c
callq 0x22a0
testl %eax, %eax
je 0x3270
movq %r12, %rdi
leaq 0x14cb(%rip), %rsi      # 0x4510
callq 0x22a0
testl %eax, %eax
je 0x3270
movq %r12, %rdi
leaq 0x14bf(%rip), %rsi      # 0x451b
callq 0x22a0
testl %eax, %eax
je 0x3289
movq %r12, %rdi
leaq 0x14ac(%rip), %rsi      # 0x451f
callq 0x22a0
testl %eax, %eax
je 0x3289
movq %r12, %rdi
leaq 0x14a0(%rip), %rsi      # 0x452a
callq 0x22a0
testl %eax, %eax
je 0x32a2
movq %r12, %rdi
leaq 0x148d(%rip), %rsi      # 0x452e
callq 0x22a0
testl %eax, %eax
je 0x32a2
movq %r12, %rdi
leaq 0x1480(%rip), %rsi      # 0x4538
callq 0x22a0
testl %eax, %eax
je 0x32b8
movq %r12, %rdi
leaq 0x146c(%rip), %rsi      # 0x453b
callq 0x22a0
testl %eax, %eax
je 0x32b8
movq %r12, %rdi
leaq 0x145c(%rip), %rsi      # 0x4542
callq 0x22a0
testl %eax, %eax
je 0x32ee
movq %r12, %rdi
leaq 0x1449(%rip), %rsi      # 0x4546
callq 0x22a0
testl %eax, %eax
je 0x32ee
movq %r12, %rdi
leaq 0x1440(%rip), %rsi      # 0x4554
callq 0x22a0
testl %eax, %eax
je 0x3134
movq %r12, %rdi
leaq 0x1432(%rip), %rsi      # 0x4559
callq 0x22a0
testl %eax, %eax
jne 0x351e
movq 0x8(%r13,%r14,8), %rsi
leaq 0x208(%rsp), %r14
movq %r14, %rdi
leaq 0xd8(%rsp), %rdx
callq 0x3812
movq %r14, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x395d
movq %rax, 0x28(%rsp)
jmp 0x31d8
movq 0x8(%r13,%r14,8), %rsi
leaq 0x208(%rsp), %rdi
leaq 0x198(%rsp), %rdx
callq 0x3812
movq 0x208(%rsp), %rbp
callq 0x2050
movq %rax, %r12
movl (%rax), %r14d
movl $0x0, (%rax)
movq %rbp, %rdi
leaq 0xd8(%rsp), %rsi
movl $0xa, %edx
callq 0x20c0
movq %rax, 0x30(%rsp)
cmpq %rbp, 0xd8(%rsp)
je 0x3570
movl (%r12), %eax
testl %eax, %eax
je 0x31d4
cmpl $0x22, %eax
jne 0x31d8
jmp 0x357c
movl %r14d, (%r12)
movq 0x208(%rsp), %rdi
leaq 0x218(%rsp), %rax
cmpq %rax, %rdi
je 0x31fd
movq 0x218(%rsp), %rsi
incq %rsi
callq 0x21f0
incl %r15d
jmp 0x3232
incl %r15d
movq 0x8(%r13,%r14,8), %rdi
callq 0x2230
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
jmp 0x3232
incl %r15d
movq 0x8(%r13,%r14,8), %rdi
callq 0x2230
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x24(%rsp)
incl %r15d
cmpl %ebx, %r15d
setl %bpl
jl 0x2f64
jmp 0x3380
movq 0x8(%r13,%r14,8), %r12
movq 0x60(%rsp), %rbp
movq %r12, %rdi
callq 0x20f0
leaq 0x58(%rsp), %rdi
xorl %esi, %esi
movq %rbp, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x2300
jmp 0x31fd
incl %r15d
movq 0x8(%r13,%r14,8), %rdi
callq 0x2230
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x20(%rsp)
jmp 0x3232
incl %r15d
movq 0x8(%r13,%r14,8), %rdi
callq 0x2230
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x1c(%rsp)
jmp 0x3232
incl %r15d
movq 0x8(%r13,%r14,8), %rdi
callq 0x2320
movl %eax, 0x18(%rsp)
jmp 0x3232
movq 0x8(%r13,%r14,8), %rsi
leaq 0x208(%rsp), %r14
movq %r14, %rdi
leaq 0xd8(%rsp), %rdx
callq 0x3812
movq %r14, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x395d
movq %rax, 0x50(%rsp)
jmp 0x31d8
movq 0x8(%r13,%r14,8), %rsi
leaq 0x208(%rsp), %r14
movq %r14, %rdi
leaq 0xd8(%rsp), %rdx
callq 0x3812
movq %r14, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x395d
movq %rax, 0x48(%rsp)
jmp 0x31d8
xorl %ebx, %ebx
movl $0xc8, %eax
movq %rax, 0x30(%rsp)
movss 0xd04(%rip), %xmm0      # 0x403c
movss 0xd00(%rip), %xmm1      # 0x4040
movl $0x1, 0x18(%rsp)
movl $0x90, %eax
movq %rax, 0x28(%rsp)
movl $0x2, %eax
movq %rax, 0x50(%rsp)
movl $0x2, %eax
movq %rax, 0x48(%rsp)
movss %xmm1, 0x1c(%rsp)
movss %xmm1, 0x20(%rsp)
movss %xmm0, 0x24(%rsp)
movss %xmm0, 0xc(%rsp)
jmp 0x3382
xorl %ebx, %ebx
testb $0x1, %bpl
leaq 0x68(%rsp), %r15
jne 0x34f3
movl $0x3e8, %eax            # imm = 0x3E8
xorl %edx, %edx
divl 0x28(%rsp)
movl %eax, %r12d
callq 0x2b4f
xorl %edi, %edi
callq 0x2270
movq %rax, %rbx
movq 0xe8(%rax), %rax
movslq 0xe0(%rbx), %rsi
movq %rsi, %rcx
shlq $0x7, %rcx
movq 0x10(%rax,%rcx), %r15
leaq 0x98(%rsp), %r8
movq %rbx, %rdi
movl $0x20, %edx
movl $0x4, %ecx
callq 0x2250
movq %rbx, %rdi
callq 0x2280
movq %rax, %r13
movslq 0xe0(%rbx), %r14
movq %rax, %rdi
callq 0x2380
movl %eax, 0x14(%rsp)
movq %r13, %rdi
callq 0x2220
movl %eax, 0x10(%rsp)
movl $0x1, 0x1f0(%rsp)
movq 0x98(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x2150
leaq 0x198(%rsp), %r10
movq %rax, 0x60(%r10)
xorl %eax, %eax
movq %rax, 0x18(%r10)
movq %rax, 0x8(%r10)
movl 0xac(%rsp), %eax
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movl 0x14(%rsp), %r8d
movl 0x10(%rsp), %r9d
pushq %r10
pushq $0x220a                 # imm = 0x220A
pushq 0xa8(%rsp)
pushq $0x1
pushq %rax
pushq $0x0
callq 0x2310
addq $0x30, %rsp
movq %rax, %r13
movl $0x28000, %edx          # imm = 0x28000
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2140
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2340
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2200
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2200
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x2110
movq %rax, %r15
leaq 0x10ba(%rip), %rsi      # 0x4580
leaq 0x58(%rsp), %rdi
callq 0x20a0
testl %eax, %eax
jne 0x3588
movl $0xffff, 0x40(%rsp)     # imm = 0xFFFF
movw $0x0, 0x44(%rsp)
jmp 0x35d8
xorl %ebx, %ebx
callq 0x2bf0
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x350a
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x21f0
movl %ebx, %eax
addq $0x2958, %rsp           # imm = 0x2958
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3acb(%rip), %rdi      # 0x6ff0
leaq 0x103a(%rip), %rsi      # 0x4566
movl $0x19, %edx
callq 0x2210
movq (%r13,%r14,8), %rsi
movq 0x3aae(%rip), %rdi      # 0x6ff0
callq 0x21e0
movq %rax, %r15
leaq 0x102d(%rip), %rsi      # 0x457e
movl $0x1, %edx
movq %rax, %rdi
callq 0x2210
movl $0x1, %ebx
movq %r15, %rdi
callq 0x2100
jmp 0x3382
leaq 0x1020(%rip), %rdi      # 0x4597
callq 0x2130
leaq 0x1014(%rip), %rdi      # 0x4597
callq 0x22c0
leaq 0xff5(%rip), %rsi       # 0x4584
leaq 0x58(%rsp), %rdi
callq 0x20a0
testl %eax, %eax
jne 0x35a7
movl $0x0, 0x40(%rsp)
jmp 0x35d1
leaq 0xfdb(%rip), %rsi       # 0x4589
leaq 0x58(%rsp), %rdi
callq 0x20a0
testl %eax, %eax
jne 0x35c9
movl $0xffff0000, 0x40(%rsp) # imm = 0xFFFF0000
jmp 0x34e0
movl $0xffffffff, 0x40(%rsp) # imm = 0xFFFFFFFF
movw $0xffff, 0x44(%rsp)     # imm = 0xFFFF
leaq 0x38(%rsp), %rdx
movb $0x7, 0xe(%rdx)
movq 0xe8(%rbx), %rax
shlq $0x7, %r14
movq 0x50(%rax,%r14), %rsi
movq %rbx, %rdi
callq 0x2190
movq 0x38(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x20d0
movq %rbx, %rdi
callq 0x22f0
leaq 0x208(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x250c
leaq 0x208(%rsp), %rdi
movq 0x30(%rsp), %rax
movl %eax, 0x8(%rdi)
movss 0x20(%rsp), %xmm0
movss 0xc(%rsp), %xmm1
addss %xmm1, %xmm0
movss 0x24(%rsp), %xmm2
movss 0x1c(%rsp), %xmm3
addss %xmm2, %xmm3
movss %xmm1, 0xc(%rdi)
movss %xmm0, 0x10(%rdi)
movss %xmm2, 0x14(%rdi)
movss %xmm3, 0x18(%rdi)
movl 0x18(%rsp), %eax
movl %eax, 0x1c(%rdi)
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rcx
addl %ecx, %eax
movl %ecx, 0x20(%rdi)
movl %eax, 0x24(%rdi)
callq 0x280a
xorps %xmm0, %xmm0
cvtsi2ss %r12d, %xmm0
movss %xmm0, 0xc(%rsp)
leaq 0xd8(%rsp), %r14
movl $0x28000, %esi          # imm = 0x28000
movq %rbx, %rdi
movq %r14, %rdx
callq 0x2260
cmpl $0x16, 0xd8(%rsp)
jne 0x3700
movl 0x110(%rsp), %ebp
movl 0x114(%rsp), %r12d
movl 0x14(%rsp), %eax
xorl %ebp, %eax
movl 0x10(%rsp), %ecx
xorl %r12d, %ecx
orl %eax, %ecx
je 0x3700
movl %ebp, 0x208(%rsp)
movl %r12d, 0x20c(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movl %ebp, %edx
movl %r12d, %ecx
callq 0x22d0
movl %ebp, 0x14(%rsp)
movl %r12d, 0x10(%rsp)
movq 0x2940(%rsp), %rcx
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq 0x30(%rsp), %r8
callq 0x2070
movq %rbx, %rdi
callq 0x22f0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x21c0
leaq 0x208(%rsp), %rdi
movss 0xc(%rsp), %xmm0
callq 0x29e6
movl $0xf4240, %eax          # imm = 0xF4240
xorl %edx, %edx
divl 0x28(%rsp)
movl %eax, %edi
callq 0x22b0
jmp 0x369e
jmp 0x375c
jmp 0x375c
movq %rax, %rbx
leaq 0x208(%rsp), %rdi
callq 0x261c
jmp 0x37ed
jmp 0x37b5
jmp 0x37b5
jmp 0x377e
jmp 0x37b5
jmp 0x377e
jmp 0x37b5
jmp 0x37b5
jmp 0x37b5
movq %rax, %rbx
jmp 0x37c8
jmp 0x37b5
jmp 0x37b5
jmp 0x37b5
jmp 0x37b5
jmp 0x37b5
jmp 0x37b5
jmp 0x37b5
jmp 0x37b5
movq %rax, %rbx
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37ed
movq 0x88(%rsp), %rsi
jmp 0x37e5
jmp 0x37b5
jmp 0x37b5
movq %rax, %rbx
jmp 0x37ed
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x37c8
movl %r14d, (%r12)
movq 0x208(%rsp), %rdi
leaq 0x218(%rsp), %rax
cmpq %rax, %rdi
je 0x37ed
movq 0x218(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x3809
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2360
nop