// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_sheet_pr
STATIC void
_worksheet_write_sheet_pr(lxw_worksheet *self)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    if (!self->fit_page
        && !self->filter_on
        && self->tab_color == LXW_COLOR_UNSET
        && !self->outline_changed
        && !self->vba_codename && !self->is_chartsheet) {
        return;
    }

    LXW_INIT_ATTRIBUTES();

    if (self->vba_codename)
        LXW_PUSH_ATTRIBUTES_STR("codeName", self->vba_codename);

    if (self->filter_on)
        LXW_PUSH_ATTRIBUTES_STR("filterMode", "1");

    if (self->fit_page || self->tab_color != LXW_COLOR_UNSET
        || self->outline_changed) {
        lxw_xml_start_tag(self->file, "sheetPr", &attributes);
        _worksheet_write_tab_color(self);
        _worksheet_write_outline_pr(self);
        _worksheet_write_page_set_up_pr(self);
        lxw_xml_end_tag(self->file, "sheetPr");
    }
    else {
        lxw_xml_empty_tag(self->file, "sheetPr", &attributes);
    }

    LXW_FREE_ATTRIBUTES();

}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
cmpb $0x0, 0x13b(%rdi)
jne 0x354e6
cmpb $0x0, 0x13a(%rbx)
jne 0x354e6
cmpl $0x0, 0x164(%rbx)
jne 0x354e6
cmpb $0x0, 0x13e(%rbx)
jne 0x354e6
cmpq $0x0, 0x158(%rbx)
jne 0x354e6
cmpb $0x0, 0xe8(%rbx)
je 0x3584d
movq %rsp, %r12
movq $0x0, (%r12)
movq %r12, 0x8(%r12)
movq 0x158(%rbx), %rsi
testq %rsi, %rsi
je 0x3552d
leaq 0x10ea3(%rip), %rdi     # 0x463ac
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
cmpb $0x0, 0x13a(%rbx)
je 0x35568
leaq 0x13583(%rip), %rdi     # 0x48ac0
leaq 0x10204(%rip), %rsi     # 0x45748
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
cmpb $0x0, 0x13b(%rbx)
jne 0x35587
cmpl $0x0, 0x164(%rbx)
jne 0x35587
cmpb $0x0, 0x13e(%rbx)
je 0x35816
movq (%rbx), %rdi
leaq 0x1353a(%rip), %rsi     # 0x48acb
movq %rsp, %rdx
callq 0xc350
movl 0x164(%rbx), %ecx
testl %ecx, %ecx
je 0x3563b
andl $0xffffff, %ecx         # imm = 0xFFFFFF
leaq 0xde15(%rip), %rdx      # 0x433c9
xorl %r13d, %r13d
leaq 0x10(%rsp), %r15
movl $0x20, %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0xc570
leaq 0x30(%rsp), %r14
movq %r13, (%r14)
movq %r14, 0x8(%r14)
leaq 0xddf2(%rip), %rdi      # 0x433d0
movq %r15, %rsi
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r13, 0x1040(%rax)
movq 0x8(%r14), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r14)
movq (%rbx), %rdi
leaq 0x134ca(%rip), %rsi     # 0x48ad3
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x3563b
movq 0x1040(%rdi), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
jne 0x3562f
movq %r14, 0x38(%rsp)
callq 0xc0c0
movq 0x30(%rsp), %rdi
jmp 0x35614
cmpb $0x0, 0x13e(%rbx)
je 0x35785
leaq 0x10(%rsp), %rax
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
cmpb $0x0, 0x140(%rbx)
je 0x35693
leaq 0x13474(%rip), %rdi     # 0x48adc
leaq 0x100d9(%rip), %rsi     # 0x45748
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x18(%rsp)
cmpb $0x0, 0x141(%rbx)
jne 0x356ce
leaq 0x13445(%rip), %rdi     # 0x48ae8
leaq 0x100fc(%rip), %rsi     # 0x457a6
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x18(%rsp)
cmpb $0x0, 0x142(%rbx)
jne 0x35709
leaq 0x13417(%rip), %rdi     # 0x48af5
leaq 0x100c1(%rip), %rsi     # 0x457a6
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x18(%rsp)
cmpb $0x0, 0x13f(%rbx)
jne 0x35744
leaq 0x1320d(%rip), %rdi     # 0x48926
leaq 0x10086(%rip), %rsi     # 0x457a6
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x18(%rsp)
movq (%rbx), %rdi
leaq 0x133b4(%rip), %rsi     # 0x48b02
leaq 0x10(%rsp), %r14
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x35785
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x35779
movq %r14, 0x18(%rsp)
callq 0xc0c0
movq 0x10(%rsp), %rdi
jmp 0x3575e
cmpb $0x0, 0x13b(%rbx)
je 0x35805
xorl %r15d, %r15d
leaq 0x10(%rsp), %r14
movq %r15, (%r14)
movq %r14, 0x8(%r14)
leaq 0x13368(%rip), %rdi     # 0x48b0c
leaq 0xff9d(%rip), %rsi      # 0x45748
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%r14), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r14)
movq (%rbx), %rdi
leaq 0x13343(%rip), %rsi     # 0x48b16
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x35805
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x357f9
movq %r14, 0x18(%rsp)
callq 0xc0c0
movq 0x10(%rsp), %rdi
jmp 0x357de
movq (%rbx), %rdi
leaq 0x132bc(%rip), %rsi     # 0x48acb
callq 0xc060
jmp 0x35844
movq (%rbx), %rdi
leaq 0x132ab(%rip), %rsi     # 0x48acb
movq %rsp, %rdx
callq 0xcc00
jmp 0x35844
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3583f
movq %r12, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
testq %rdi, %rdi
jne 0x3582a
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq