// File: /workspace/github_c_makefile_star2_O0/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_data_validation_range
lxw_error
worksheet_data_validation_range(lxw_worksheet *self, lxw_row_t first_row,
                                lxw_col_t first_col,
                                lxw_row_t last_row,
                                lxw_col_t last_col,
                                lxw_data_validation *validation)
{
    lxw_data_val_obj *copy;
    uint8_t is_between = LXW_FALSE;
    uint8_t is_formula = LXW_FALSE;
    uint8_t has_criteria = LXW_TRUE;
    lxw_error err;
    lxw_row_t tmp_row;
    lxw_col_t tmp_col;
    size_t length;

    /* No action is required for validation type 'any' unless there are
     * input messages to display.*/
    if (validation->validate == LXW_VALIDATION_TYPE_ANY
        && !(validation->input_title || validation->input_message)) {

        return LXW_NO_ERROR;
    }

    /* Check for formula types. */
    switch (validation->validate) {
        case LXW_VALIDATION_TYPE_INTEGER_FORMULA:
        case LXW_VALIDATION_TYPE_DECIMAL_FORMULA:
        case LXW_VALIDATION_TYPE_LIST_FORMULA:
        case LXW_VALIDATION_TYPE_LENGTH_FORMULA:
        case LXW_VALIDATION_TYPE_DATE_FORMULA:
        case LXW_VALIDATION_TYPE_TIME_FORMULA:
        case LXW_VALIDATION_TYPE_CUSTOM_FORMULA:
            is_formula = LXW_TRUE;
            break;
    }

    /* Check for types without a criteria. */
    switch (validation->validate) {
        case LXW_VALIDATION_TYPE_LIST:
        case LXW_VALIDATION_TYPE_LIST_FORMULA:
        case LXW_VALIDATION_TYPE_ANY:
        case LXW_VALIDATION_TYPE_CUSTOM_FORMULA:
            has_criteria = LXW_FALSE;
            break;
    }

    /* Check that a validation parameter has been specified
     * except for 'list', 'any' and 'custom'. */
    if (has_criteria && validation->criteria == LXW_VALIDATION_CRITERIA_NONE) {

        LXW_WARN_FORMAT("worksheet_data_validation_cell()/_range(): "
                        "criteria parameter must be specified.");
        return LXW_ERROR_PARAMETER_VALIDATION;
    }

    /* Check for "between" criteria so we can do additional checks. */
    if (has_criteria
        && (validation->criteria == LXW_VALIDATION_CRITERIA_BETWEEN
            || validation->criteria == LXW_VALIDATION_CRITERIA_NOT_BETWEEN)) {

        is_between = LXW_TRUE;
    }

    /* Check that formula values are non NULL. */
    if (is_formula) {
        if (is_between) {
            if (!validation->minimum_formula) {
                LXW_WARN_FORMAT("worksheet_data_validation_cell()/_range(): "
                                "minimum_formula parameter cannot be NULL.");
                return LXW_ERROR_PARAMETER_VALIDATION;
            }
            if (!validation->maximum_formula) {
                LXW_WARN_FORMAT("worksheet_data_validation_cell()/_range(): "
                                "maximum_formula parameter cannot be NULL.");
                return LXW_ERROR_PARAMETER_VALIDATION;
            }
        }
        else {
            if (!validation->value_formula) {
                LXW_WARN_FORMAT("worksheet_data_validation_cell()/_range(): "
                                "formula parameter cannot be NULL.");
                return LXW_ERROR_PARAMETER_VALIDATION;
            }
        }
    }

    /* Check Excel limitations on input strings. */
    if (validation->input_title) {
        length = lxw_utf8_strlen(validation->input_title);
        if (length > LXW_VALIDATION_MAX_TITLE_LENGTH) {
            LXW_WARN_FORMAT1("worksheet_data_validation_cell()/_range(): "
                             "input_title length > Excel limit of %d.",
                             LXW_VALIDATION_MAX_TITLE_LENGTH);
            return LXW_ERROR_32_STRING_LENGTH_EXCEEDED;
        }
    }

    if (validation->error_title) {
        length = lxw_utf8_strlen(validation->error_title);
        if (length > LXW_VALIDATION_MAX_TITLE_LENGTH) {
            LXW_WARN_FORMAT1("worksheet_data_validation_cell()/_range(): "
                             "error_title length > Excel limit of %d.",
                             LXW_VALIDATION_MAX_TITLE_LENGTH);
            return LXW_ERROR_32_STRING_LENGTH_EXCEEDED;
        }
    }

    if (validation->input_message) {
        length = lxw_utf8_strlen(validation->input_message);
        if (length > LXW_VALIDATION_MAX_STRING_LENGTH) {
            LXW_WARN_FORMAT1("worksheet_data_validation_cell()/_range(): "
                             "input_message length > Excel limit of %d.",
                             LXW_VALIDATION_MAX_STRING_LENGTH);
            return LXW_ERROR_255_STRING_LENGTH_EXCEEDED;
        }
    }

    if (validation->error_message) {
        length = lxw_utf8_strlen(validation->error_message);
        if (length > LXW_VALIDATION_MAX_STRING_LENGTH) {
            LXW_WARN_FORMAT1("worksheet_data_validation_cell()/_range(): "
                             "error_message length > Excel limit of %d.",
                             LXW_VALIDATION_MAX_STRING_LENGTH);
            return LXW_ERROR_255_STRING_LENGTH_EXCEEDED;
        }
    }

    if (validation->validate == LXW_VALIDATION_TYPE_LIST) {
        length = _validation_list_length(validation->value_list);

        if (length == 0) {
            LXW_WARN_FORMAT("worksheet_data_validation_cell()/_range(): "
                            "list parameters cannot be zero.");
            return LXW_ERROR_PARAMETER_VALIDATION;
        }

        if (length > LXW_VALIDATION_MAX_STRING_LENGTH) {
            LXW_WARN_FORMAT1("worksheet_data_validation_cell()/_range(): "
                             "list length with commas > Excel limit of %d.",
                             LXW_VALIDATION_MAX_STRING_LENGTH);
            return LXW_ERROR_255_STRING_LENGTH_EXCEEDED;
        }
    }

    /* Swap last row/col with first row/col as necessary */
    if (first_row > last_row) {
        tmp_row = last_row;
        last_row = first_row;
        first_row = tmp_row;
    }
    if (first_col > last_col) {
        tmp_col = last_col;
        last_col = first_col;
        first_col = tmp_col;
    }

    /* Check that dimensions are valid but don't store them. */
    err = _check_dimensions(self, last_row, last_col, LXW_TRUE, LXW_TRUE);
    if (err)
        return err;

    /* Create a copy of the parameters from the user data validation. */
    copy = calloc(1, sizeof(lxw_data_val_obj));
    GOTO_LABEL_ON_MEM_ERROR(copy, mem_error);

    /* Create the data validation range. */
    if (first_row == last_row && first_col == last_col)
        lxw_rowcol_to_cell(copy->sqref, first_row, first_col);
    else
        lxw_rowcol_to_range(copy->sqref, first_row, first_col, last_row,
                            last_col);

    /* Copy the parameters from the user data validation. */
    copy->validate = validation->validate;
    copy->value_number = validation->value_number;
    copy->error_type = validation->error_type;
    copy->dropdown = validation->dropdown;

    if (has_criteria)
        copy->criteria = validation->criteria;

    if (is_between) {
        copy->value_number = validation->minimum_number;
        copy->maximum_number = validation->maximum_number;
    }

    /* Copy the input/error titles and messages. */
    if (validation->input_title) {
        copy->input_title = lxw_strdup_formula(validation->input_title);
        GOTO_LABEL_ON_MEM_ERROR(copy->input_title, mem_error);
    }

    if (validation->input_message) {
        copy->input_message = lxw_strdup_formula(validation->input_message);
        GOTO_LABEL_ON_MEM_ERROR(copy->input_message, mem_error);
    }

    if (validation->error_title) {
        copy->error_title = lxw_strdup_formula(validation->error_title);
        GOTO_LABEL_ON_MEM_ERROR(copy->error_title, mem_error);
    }

    if (validation->error_message) {
        copy->error_message = lxw_strdup_formula(validation->error_message);
        GOTO_LABEL_ON_MEM_ERROR(copy->error_message, mem_error);
    }

    /* Copy the formula strings. */
    if (is_formula) {
        if (is_between) {
            copy->value_formula =
                lxw_strdup_formula(validation->minimum_formula);
            GOTO_LABEL_ON_MEM_ERROR(copy->value_formula, mem_error);
            copy->maximum_formula =
                lxw_strdup_formula(validation->maximum_formula);
            GOTO_LABEL_ON_MEM_ERROR(copy->maximum_formula, mem_error);
        }
        else {
            copy->value_formula =
                lxw_strdup_formula(validation->value_formula);
            GOTO_LABEL_ON_MEM_ERROR(copy->value_formula, mem_error);
        }
    }

    /* Copy the validation list as a csv string. */
    if (validation->validate == LXW_VALIDATION_TYPE_LIST) {
        copy->value_formula = _validation_list_to_csv(validation->value_list);
        GOTO_LABEL_ON_MEM_ERROR(copy->value_formula, mem_error);
    }

    if (validation->validate == LXW_VALIDATION_TYPE_DATE
        || validation->validate == LXW_VALIDATION_TYPE_TIME) {
        if (is_between) {
            copy->value_number =
                lxw_datetime_to_excel_date_epoch
                (&validation->minimum_datetime, LXW_EPOCH_1900);
            copy->maximum_number =
                lxw_datetime_to_excel_date_epoch
                (&validation->maximum_datetime, LXW_EPOCH_1900);
        }
        else {
            copy->value_number =
                lxw_datetime_to_excel_date_epoch(&validation->value_datetime,
                                                 LXW_EPOCH_1900);
        }
    }

    /* These options are on by default so we can't take plain booleans. */
    copy->ignore_blank = validation->ignore_blank ^ 1;
    copy->show_input = validation->show_input ^ 1;
    copy->show_error = validation->show_error ^ 1;

    STAILQ_INSERT_TAIL(self->data_validations, copy, list_pointers);

    self->num_validations++;

    return LXW_NO_ERROR;

mem_error:
    _free_data_validation(copy);
    return LXW_ERROR_MEMORY_MALLOC_FAILED;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movw %r8w, %ax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movw %dx, -0x16(%rbp)
movl %ecx, -0x1c(%rbp)
movw %ax, -0x1e(%rbp)
movq %r9, -0x28(%rbp)
movb $0x0, -0x31(%rbp)
movb $0x0, -0x32(%rbp)
movb $0x1, -0x33(%rbp)
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x10, %eax
jne 0x55d42
movq -0x28(%rbp), %rax
cmpq $0x0, 0xa0(%rax)
jne 0x55d42
movq -0x28(%rbp), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x55d42
movl $0x0, -0x4(%rbp)
jmp 0x56609
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x4c(%rbp)
subl $0x2, %eax
je 0x55d88
jmp 0x55d53
movl -0x4c(%rbp), %eax
subl $0x4, %eax
je 0x55d88
jmp 0x55d5d
movl -0x4c(%rbp), %eax
subl $0x6, %eax
je 0x55d88
jmp 0x55d67
movl -0x4c(%rbp), %eax
subl $0x8, %eax
je 0x55d88
jmp 0x55d71
movl -0x4c(%rbp), %eax
subl $0xb, %eax
je 0x55d88
jmp 0x55d7b
movl -0x4c(%rbp), %eax
addl $-0xe, %eax
subl $0x1, %eax
ja 0x55d8c
jmp 0x55d88
movb $0x1, -0x32(%rbp)
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x50(%rbp)
addl $-0x5, %eax
subl $0x2, %eax
jb 0x55dad
jmp 0x55da0
movl -0x50(%rbp), %eax
addl $-0xf, %eax
subl $0x1, %eax
ja 0x55db1
jmp 0x55dad
movb $0x0, -0x33(%rbp)
movzbl -0x33(%rbp), %eax
cmpl $0x0, %eax
je 0x55deb
movq -0x28(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x0, %eax
jne 0x55deb
movq 0x2722a(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0x17c40(%rip), %rsi     # 0x6da18
movb $0x0, %al
callq 0xc8f0
movl $0xd, -0x4(%rbp)
jmp 0x56609
movzbl -0x33(%rbp), %eax
cmpl $0x0, %eax
je 0x55e12
movq -0x28(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x1, %eax
je 0x55e0e
movq -0x28(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x2, %eax
jne 0x55e12
movb $0x1, -0x31(%rbp)
cmpb $0x0, -0x32(%rbp)
je 0x55eb5
cmpb $0x0, -0x31(%rbp)
je 0x55e82
movq -0x28(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x55e51
movq 0x271c4(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0x17c37(%rip), %rsi     # 0x6da75
movb $0x0, %al
callq 0xc8f0
movl $0xd, -0x4(%rbp)
jmp 0x56609
movq -0x28(%rbp), %rax
cmpq $0x0, 0x78(%rax)
jne 0x55e80
movq 0x27195(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0x17c69(%rip), %rsi     # 0x6dad6
movb $0x0, %al
callq 0xc8f0
movl $0xd, -0x4(%rbp)
jmp 0x56609
jmp 0x55eb3
movq -0x28(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x55eb1
movq 0x27164(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0x17c99(%rip), %rsi     # 0x6db37
movb $0x0, %al
callq 0xc8f0
movl $0xd, -0x4(%rbp)
jmp 0x56609
jmp 0x55eb3
jmp 0x55eb5
movq -0x28(%rbp), %rax
cmpq $0x0, 0xa0(%rax)
je 0x55f09
movq -0x28(%rbp), %rax
movq 0xa0(%rax), %rdi
callq 0xd180
movq %rax, -0x48(%rbp)
cmpq $0x20, -0x48(%rbp)
jbe 0x55f07
movq 0x27113(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0x17ca1(%rip), %rsi     # 0x6db90
movl $0x20, %edx
movb $0x0, %al
callq 0xc8f0
movl $0x12, -0x4(%rbp)
jmp 0x56609
jmp 0x55f09
movq -0x28(%rbp), %rax
cmpq $0x0, 0xb0(%rax)
je 0x55f5d
movq -0x28(%rbp), %rax
movq 0xb0(%rax), %rdi
callq 0xd180
movq %rax, -0x48(%rbp)
cmpq $0x20, -0x48(%rbp)
jbe 0x55f5b
movq 0x270bf(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0x17cac(%rip), %rsi     # 0x6dbef
movl $0x20, %edx
movb $0x0, %al
callq 0xc8f0
movl $0x12, -0x4(%rbp)
jmp 0x56609
jmp 0x55f5d
movq -0x28(%rbp), %rax
cmpq $0x0, 0xa8(%rax)
je 0x55fb4
movq -0x28(%rbp), %rax
movq 0xa8(%rax), %rdi
callq 0xd180
movq %rax, -0x48(%rbp)
cmpq $0xff, -0x48(%rbp)
jbe 0x55fb2
movq 0x27068(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0x17cb4(%rip), %rsi     # 0x6dc4e
movl $0xff, %edx
movb $0x0, %al
callq 0xc8f0
movl $0x14, -0x4(%rbp)
jmp 0x56609
jmp 0x55fb4
movq -0x28(%rbp), %rax
cmpq $0x0, 0xb8(%rax)
je 0x5600b
movq -0x28(%rbp), %rax
movq 0xb8(%rax), %rdi
callq 0xd180
movq %rax, -0x48(%rbp)
cmpq $0xff, -0x48(%rbp)
jbe 0x56009
movq 0x27011(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0x17cbe(%rip), %rsi     # 0x6dcaf
movl $0xff, %edx
movb $0x0, %al
callq 0xc8f0
movl $0x14, -0x4(%rbp)
jmp 0x56609
jmp 0x5600b
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5, %eax
jne 0x56088
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0xc6b0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x56053
movq 0x26fc2(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0x17cd0(%rip), %rsi     # 0x6dd10
movb $0x0, %al
callq 0xc8f0
movl $0xd, -0x4(%rbp)
jmp 0x56609
cmpq $0xff, -0x48(%rbp)
jbe 0x56086
movq 0x26f94(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0x17cf9(%rip), %rsi     # 0x6dd67
movl $0xff, %edx
movb $0x0, %al
callq 0xc8f0
movl $0x14, -0x4(%rbp)
jmp 0x56609
jmp 0x56088
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jbe 0x560a2
movl -0x1c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, -0x14(%rbp)
movzwl -0x16(%rbp), %eax
movzwl -0x1e(%rbp), %ecx
cmpl %ecx, %eax
jle 0x560c6
movw -0x1e(%rbp), %ax
movw %ax, -0x3e(%rbp)
movw -0x16(%rbp), %ax
movw %ax, -0x1e(%rbp)
movw -0x3e(%rbp), %ax
movw %ax, -0x16(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
movl $0x1, %r8d
movzwl -0x1e(%rbp), %edx
movl %r8d, %ecx
callq 0x4ff90
movl %eax, -0x38(%rbp)
cmpl $0x0, -0x38(%rbp)
je 0x560f3
movl -0x38(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x56609
movl $0x1, %edi
movl $0xc8, %esi
callq 0xc870
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x56136
movq 0x26ee4(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0xffb2(%rip), %rsi      # 0x660d0
leaq 0x162cf(%rip), %rdx     # 0x6c3f4
movl $0x2a65, %ecx           # imm = 0x2A65
movb $0x0, %al
callq 0xc8f0
jmp 0x565f9
jmp 0x56138
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jne 0x56165
movzwl -0x16(%rbp), %eax
movzwl -0x1e(%rbp), %ecx
cmpl %ecx, %eax
jne 0x56165
movq -0x30(%rbp), %rdi
addq $0xa0, %rdi
movl -0x14(%rbp), %esi
movzwl -0x16(%rbp), %edx
callq 0xca90
jmp 0x56187
movq -0x30(%rbp), %rdi
addq $0xa0, %rdi
movl -0x14(%rbp), %esi
movw -0x16(%rbp), %ax
movl -0x1c(%rbp), %ecx
movzwl %ax, %edx
movzwl -0x1e(%rbp), %r8d
callq 0xcdc0
movq -0x28(%rbp), %rax
movb (%rax), %cl
movq -0x30(%rbp), %rax
movb %cl, (%rax)
movq -0x28(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x30(%rbp), %rax
movsd %xmm0, 0x8(%rax)
movq -0x28(%rbp), %rax
movb 0x5(%rax), %cl
movq -0x30(%rbp), %rax
movb %cl, 0x5(%rax)
movq -0x28(%rbp), %rax
movb 0x6(%rax), %cl
movq -0x30(%rbp), %rax
movb %cl, 0x6(%rax)
cmpb $0x0, -0x33(%rbp)
je 0x561d5
movq -0x28(%rbp), %rax
movb 0x1(%rax), %cl
movq -0x30(%rbp), %rax
movb %cl, 0x1(%rax)
cmpb $0x0, -0x31(%rbp)
je 0x561ff
movq -0x28(%rbp), %rax
movsd 0x40(%rax), %xmm0
movq -0x30(%rbp), %rax
movsd %xmm0, 0x8(%rax)
movq -0x28(%rbp), %rax
movsd 0x70(%rax), %xmm0
movq -0x30(%rbp), %rax
movsd %xmm0, 0x50(%rax)
movq -0x28(%rbp), %rax
cmpq $0x0, 0xa0(%rax)
je 0x56266
movq -0x28(%rbp), %rax
movq 0xa0(%rax), %rdi
callq 0xc0f0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x80(%rax)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x80(%rax)
jne 0x56262
movq 0x26db8(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0xfe86(%rip), %rsi      # 0x660d0
leaq 0x161a3(%rip), %rdx     # 0x6c3f4
movl $0x2a7f, %ecx           # imm = 0x2A7F
movb $0x0, %al
callq 0xc8f0
jmp 0x565f9
jmp 0x56264
jmp 0x56266
movq -0x28(%rbp), %rax
cmpq $0x0, 0xa8(%rax)
je 0x562cd
movq -0x28(%rbp), %rax
movq 0xa8(%rax), %rdi
callq 0xc0f0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x88(%rax)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x88(%rax)
jne 0x562c9
movq 0x26d51(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0xfe1f(%rip), %rsi      # 0x660d0
leaq 0x1613c(%rip), %rdx     # 0x6c3f4
movl $0x2a84, %ecx           # imm = 0x2A84
movb $0x0, %al
callq 0xc8f0
jmp 0x565f9
jmp 0x562cb
jmp 0x562cd
movq -0x28(%rbp), %rax
cmpq $0x0, 0xb0(%rax)
je 0x56334
movq -0x28(%rbp), %rax
movq 0xb0(%rax), %rdi
callq 0xc0f0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x90(%rax)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x90(%rax)
jne 0x56330
movq 0x26cea(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0xfdb8(%rip), %rsi      # 0x660d0
leaq 0x160d5(%rip), %rdx     # 0x6c3f4
movl $0x2a89, %ecx           # imm = 0x2A89
movb $0x0, %al
callq 0xc8f0
jmp 0x565f9
jmp 0x56332
jmp 0x56334
movq -0x28(%rbp), %rax
cmpq $0x0, 0xb8(%rax)
je 0x5639b
movq -0x28(%rbp), %rax
movq 0xb8(%rax), %rdi
callq 0xc0f0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x98(%rax)
jne 0x56397
movq 0x26c83(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0xfd51(%rip), %rsi      # 0x660d0
leaq 0x1606e(%rip), %rdx     # 0x6c3f4
movl $0x2a8e, %ecx           # imm = 0x2A8E
movb $0x0, %al
callq 0xc8f0
jmp 0x565f9
jmp 0x56399
jmp 0x5639b
cmpb $0x0, -0x32(%rbp)
je 0x5649f
cmpb $0x0, -0x31(%rbp)
je 0x5644d
movq -0x28(%rbp), %rax
movq 0x48(%rax), %rdi
callq 0xc0f0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x563fb
movq 0x26c1f(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0xfced(%rip), %rsi      # 0x660d0
leaq 0x1600a(%rip), %rdx     # 0x6c3f4
movl $0x2a96, %ecx           # imm = 0x2A96
movb $0x0, %al
callq 0xc8f0
jmp 0x565f9
jmp 0x563fd
movq -0x28(%rbp), %rax
movq 0x78(%rax), %rdi
callq 0xc0f0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x58(%rax)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x58(%rax)
jne 0x56449
movq 0x26bd1(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0xfc9f(%rip), %rsi      # 0x660d0
leaq 0x15fbc(%rip), %rdx     # 0x6c3f4
movl $0x2a99, %ecx           # imm = 0x2A99
movb $0x0, %al
callq 0xc8f0
jmp 0x565f9
jmp 0x5644b
jmp 0x5649d
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xc0f0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x56499
movq 0x26b81(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0xfc4f(%rip), %rsi      # 0x660d0
leaq 0x15f6c(%rip), %rdx     # 0x6c3f4
movl $0x2a9e, %ecx           # imm = 0x2A9E
movb $0x0, %al
callq 0xc8f0
jmp 0x565f9
jmp 0x5649b
jmp 0x5649d
jmp 0x5649f
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5, %eax
jne 0x564fb
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0xc750
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x564f7
movq 0x26b23(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0xfbf1(%rip), %rsi      # 0x660d0
leaq 0x15f0e(%rip), %rdx     # 0x6c3f4
movl $0x2aa5, %ecx           # imm = 0x2AA5
movb $0x0, %al
callq 0xc8f0
jmp 0x565f9
jmp 0x564f9
jmp 0x564fb
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x7, %eax
je 0x56513
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0x56568
cmpb $0x0, -0x31(%rbp)
je 0x5654e
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
xorl %esi, %esi
callq 0xcce0
movq -0x30(%rbp), %rax
movsd %xmm0, 0x8(%rax)
movq -0x28(%rbp), %rdi
addq $0x80, %rdi
xorl %esi, %esi
callq 0xcce0
movq -0x30(%rbp), %rax
movsd %xmm0, 0x50(%rax)
jmp 0x56566
movq -0x28(%rbp), %rdi
addq $0x20, %rdi
xorl %esi, %esi
callq 0xcce0
movq -0x30(%rbp), %rax
movsd %xmm0, 0x8(%rax)
jmp 0x56568
movq -0x28(%rbp), %rax
movzbl 0x2(%rax), %eax
xorl $0x1, %eax
movb %al, %cl
movq -0x30(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x28(%rbp), %rax
movzbl 0x3(%rax), %eax
xorl $0x1, %eax
movb %al, %cl
movq -0x30(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x28(%rbp), %rax
movzbl 0x4(%rax), %eax
xorl $0x1, %eax
movb %al, %cl
movq -0x30(%rbp), %rax
movb %cl, 0x4(%rax)
movq -0x30(%rbp), %rax
movq $0x0, 0xc0(%rax)
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movq 0x8(%rax), %rax
movq %rcx, (%rax)
movq -0x30(%rbp), %rcx
addq $0xc0, %rcx
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movb 0x150(%rax), %cl
addb $0x1, %cl
movb %cl, 0x150(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x56609
movq -0x30(%rbp), %rdi
callq 0x46710
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)