// File: /workspace/github_c_makefile_star2_O0/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_ignore_errors
lxw_error
worksheet_ignore_errors(lxw_worksheet *self, uint8_t type, const char *range)
{
    if (!range) {
        LXW_WARN("worksheet_ignore_errors(): " "'range' must be specified.");
        return LXW_ERROR_NULL_PARAMETER_IGNORED;
    }

    if (type <= 0 || type >= LXW_IGNORE_LAST_OPTION) {
        LXW_WARN("worksheet_ignore_errors(): " "unknown option in 'type'.");
        return LXW_ERROR_NULL_PARAMETER_IGNORED;
    }

    /* Set the ranges to be ignored. */
    if (type == LXW_IGNORE_NUMBER_STORED_AS_TEXT) {
        free(self->ignore_number_stored_as_text);
        self->ignore_number_stored_as_text = lxw_strdup(range);
    }
    else if (type == LXW_IGNORE_EVAL_ERROR) {
        free(self->ignore_eval_error);
        self->ignore_eval_error = lxw_strdup(range);
    }
    else if (type == LXW_IGNORE_FORMULA_DIFFERS) {
        free(self->ignore_formula_differs);
        self->ignore_formula_differs = lxw_strdup(range);
    }
    else if (type == LXW_IGNORE_FORMULA_RANGE) {
        free(self->ignore_formula_range);
        self->ignore_formula_range = lxw_strdup(range);
    }
    else if (type == LXW_IGNORE_FORMULA_UNLOCKED) {
        free(self->ignore_formula_unlocked);
        self->ignore_formula_unlocked = lxw_strdup(range);
    }
    else if (type == LXW_IGNORE_EMPTY_CELL_REFERENCE) {
        free(self->ignore_empty_cell_reference);
        self->ignore_empty_cell_reference = lxw_strdup(range);
    }
    else if (type == LXW_IGNORE_LIST_DATA_VALIDATION) {
        free(self->ignore_list_data_validation);
        self->ignore_list_data_validation = lxw_strdup(range);
    }
    else if (type == LXW_IGNORE_CALCULATED_COLUMN) {
        free(self->ignore_calculated_column);
        self->ignore_calculated_column = lxw_strdup(range);
    }
    else if (type == LXW_IGNORE_TWO_DIGIT_TEXT_YEAR) {
        free(self->ignore_two_digit_text_year);
        self->ignore_two_digit_text_year = lxw_strdup(range);
    }

    self->has_ignore_errors = LXW_TRUE;

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movq %rdi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x56e11
movq 0x26204(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0x17162(%rip), %rsi     # 0x6df60
movb $0x0, %al
callq 0xc8f0
movl $0xc, -0x4(%rbp)
jmp 0x5703b
movzbl -0x11(%rbp), %eax
cmpl $0x0, %eax
jle 0x56e23
movzbl -0x11(%rbp), %eax
cmpl $0xa, %eax
jl 0x56e47
movq 0x261ce(%rip), %rax     # 0x7cff8
movq (%rax), %rdi
leaq 0x1716e(%rip), %rsi     # 0x6dfa2
movb $0x0, %al
callq 0xc8f0
movl $0xc, -0x4(%rbp)
jmp 0x5703b
movzbl -0x11(%rbp), %eax
cmpl $0x1, %eax
jne 0x56e7c
movq -0x10(%rbp), %rax
movq 0x2f8(%rax), %rdi
callq 0xc0d0
movq -0x20(%rbp), %rdi
callq 0xcd80
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x2f8(%rax)
jmp 0x57029
movzbl -0x11(%rbp), %eax
cmpl $0x2, %eax
jne 0x56eb1
movq -0x10(%rbp), %rax
movq 0x300(%rax), %rdi
callq 0xc0d0
movq -0x20(%rbp), %rdi
callq 0xcd80
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x300(%rax)
jmp 0x57027
movzbl -0x11(%rbp), %eax
cmpl $0x3, %eax
jne 0x56ee6
movq -0x10(%rbp), %rax
movq 0x308(%rax), %rdi
callq 0xc0d0
movq -0x20(%rbp), %rdi
callq 0xcd80
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x308(%rax)
jmp 0x57025
movzbl -0x11(%rbp), %eax
cmpl $0x4, %eax
jne 0x56f1b
movq -0x10(%rbp), %rax
movq 0x310(%rax), %rdi
callq 0xc0d0
movq -0x20(%rbp), %rdi
callq 0xcd80
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x310(%rax)
jmp 0x57023
movzbl -0x11(%rbp), %eax
cmpl $0x5, %eax
jne 0x56f50
movq -0x10(%rbp), %rax
movq 0x318(%rax), %rdi
callq 0xc0d0
movq -0x20(%rbp), %rdi
callq 0xcd80
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x318(%rax)
jmp 0x57021
movzbl -0x11(%rbp), %eax
cmpl $0x6, %eax
jne 0x56f85
movq -0x10(%rbp), %rax
movq 0x320(%rax), %rdi
callq 0xc0d0
movq -0x20(%rbp), %rdi
callq 0xcd80
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x320(%rax)
jmp 0x5701f
movzbl -0x11(%rbp), %eax
cmpl $0x7, %eax
jne 0x56fb7
movq -0x10(%rbp), %rax
movq 0x328(%rax), %rdi
callq 0xc0d0
movq -0x20(%rbp), %rdi
callq 0xcd80
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x328(%rax)
jmp 0x5701d
movzbl -0x11(%rbp), %eax
cmpl $0x8, %eax
jne 0x56fe9
movq -0x10(%rbp), %rax
movq 0x330(%rax), %rdi
callq 0xc0d0
movq -0x20(%rbp), %rdi
callq 0xcd80
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x330(%rax)
jmp 0x5701b
movzbl -0x11(%rbp), %eax
cmpl $0x9, %eax
jne 0x57019
movq -0x10(%rbp), %rax
movq 0x338(%rax), %rdi
callq 0xc0d0
movq -0x20(%rbp), %rdi
callq 0xcd80
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x338(%rax)
jmp 0x5701b
jmp 0x5701d
jmp 0x5701f
jmp 0x57021
jmp 0x57023
jmp 0x57025
jmp 0x57027
jmp 0x57029
movq -0x10(%rbp), %rax
movb $0x1, 0x2f4(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)