// File: /workspace/github_c_makefile_star2_O0/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_filter_standard
STATIC void
_worksheet_write_filter_standard(lxw_worksheet *self,
                                 lxw_filter_rule_obj *filter)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();

    if (filter->has_blanks) {
        LXW_PUSH_ATTRIBUTES_STR("blank", "1");
    }

    if (filter->type == LXW_FILTER_TYPE_SINGLE && filter->has_blanks) {
        lxw_xml_empty_tag(self->file, "filters", &attributes);

    }
    else {
        lxw_xml_start_tag(self->file, "filters", &attributes);

        /* Write the filter element. */
        if (filter->type == LXW_FILTER_TYPE_SINGLE) {
            _worksheet_write_filter(self, filter->value1_string,
                                    filter->value1, filter->criteria1);
        }
        else if (filter->type == LXW_FILTER_TYPE_AND
                 || filter->type == LXW_FILTER_TYPE_OR) {
            _worksheet_write_filter(self, filter->value1_string,
                                    filter->value1, filter->criteria1);
            _worksheet_write_filter(self, filter->value2_string,
                                    filter->value2, filter->criteria2);
        }

        lxw_xml_end_tag(self->file, "filters");
    }

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x20(%rbp)
leaq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x2(%rax)
je 0x5e53f
jmp 0x5e4fc
leaq 0x1018f(%rip), %rdi     # 0x6e692
leaq 0xcf66(%rip), %rsi      # 0x6b470
callq 0xc030
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x18(%rbp)
jmp 0x5e53d
jmp 0x5e53f
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x5e574
movq -0x10(%rbp), %rax
movzbl 0x2(%rax), %eax
cmpl $0x0, %eax
je 0x5e574
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x10132(%rip), %rsi     # 0x6e698
leaq -0x20(%rbp), %rdx
callq 0xcca0
jmp 0x5e62c
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x10116(%rip), %rsi     # 0x6e698
leaq -0x20(%rbp), %rdx
callq 0xc390
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x5e5bb
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
movq -0x10(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x10(%rbp), %rax
movzbl 0x6(%rax), %edx
callq 0x5e680
jmp 0x5e619
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x5e5d3
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x3, %eax
jne 0x5e617
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
movq -0x10(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x10(%rbp), %rax
movzbl 0x6(%rax), %edx
callq 0x5e680
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
movq -0x10(%rbp), %rax
movsd 0x10(%rax), %xmm0
movq -0x10(%rbp), %rax
movzbl 0x7(%rax), %edx
callq 0x5e680
jmp 0x5e619
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x10071(%rip), %rsi     # 0x6e698
callq 0xc060
jmp 0x5e62e
jmp 0x5e630
cmpq $0x0, -0x20(%rbp)
sete %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x5e640
jmp 0x5e672
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq 0x1040(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x5e665
leaq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x5e667
movq -0x28(%rbp), %rdi
callq 0xc0d0
jmp 0x5e630
jmp 0x5e674
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)