// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
cmpb $0x0, 0x13b(%rdi)
jne 0x324ca
cmpb $0x0, 0x13a(%rbx)
jne 0x324ca
cmpl $0x0, 0x164(%rbx)
jne 0x324ca
cmpb $0x0, 0x13e(%rbx)
jne 0x324ca
cmpq $0x0, 0x158(%rbx)
jne 0x324ca
cmpb $0x0, 0xe8(%rbx)
je 0x32807
movq %rsp, %r12
andq $0x0, (%r12)
movq %r12, 0x8(%r12)
movq 0x158(%rbx), %rsi
testq %rsi, %rsi
je 0x3250b
leaq 0x10ea2(%rip), %rdi     # 0x4338c
callq 0xc030
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
cmpb $0x0, 0x13a(%rbx)
je 0x32543
leaq 0x13591(%rip), %rdi     # 0x45aac
leaq 0x10226(%rip), %rsi     # 0x42748
callq 0xc030
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
cmpb $0x0, 0x13b(%rbx)
jne 0x32562
cmpl $0x0, 0x164(%rbx)
jne 0x32562
cmpb $0x0, 0x13e(%rbx)
je 0x327d0
movq (%rbx), %rdi
leaq 0x1354b(%rip), %rsi     # 0x45ab7
movq %rsp, %rdx
callq 0xc380
movl 0x164(%rbx), %ecx
testl %ecx, %ecx
je 0x32610
andl $0xffffff, %ecx         # imm = 0xFFFFFF
leaq 0xde3a(%rip), %rdx      # 0x403c9
leaq 0x10(%rsp), %r15
pushq $0x20
popq %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0xc5b0
leaq 0x38(%rsp), %r14
andq $0x0, (%r14)
movq %r14, 0x8(%r14)
leaq 0xde1b(%rip), %rdi      # 0x403d0
movq %r15, %rsi
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%r14), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r14)
movq (%rbx), %rdi
leaq 0x134de(%rip), %rsi     # 0x45abf
movq %r14, %rdx
callq 0xcc70
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x32610
movq 0x1040(%rdi), %rax
movq %rax, 0x38(%rsp)
testq %rax, %rax
jne 0x32609
movq %r14, 0x40(%rsp)
callq 0xc0d0
jmp 0x325e9
cmpb $0x0, 0x13e(%rbx)
je 0x32743
leaq 0x10(%rsp), %r14
andq $0x0, (%r14)
movq %r14, 0x8(%r14)
cmpb $0x0, 0x140(%rbx)
je 0x32662
leaq 0x1348e(%rip), %rdi     # 0x45ac8
leaq 0x10107(%rip), %rsi     # 0x42748
callq 0xc030
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x18(%rsp)
cmpb $0x0, 0x141(%rbx)
jne 0x3269a
leaq 0x13462(%rip), %rdi     # 0x45ad4
leaq 0x1012d(%rip), %rsi     # 0x427a6
callq 0xc030
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x18(%rsp)
cmpb $0x0, 0x142(%rbx)
jne 0x326d2
leaq 0x13437(%rip), %rdi     # 0x45ae1
leaq 0x100f5(%rip), %rsi     # 0x427a6
callq 0xc030
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x18(%rsp)
cmpb $0x0, 0x13f(%rbx)
jne 0x3270a
leaq 0x13230(%rip), %rdi     # 0x45912
leaq 0x100bd(%rip), %rsi     # 0x427a6
callq 0xc030
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x18(%rsp)
movq (%rbx), %rdi
leaq 0x133da(%rip), %rsi     # 0x45aee
movq %r14, %rdx
callq 0xcc70
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x32743
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x3273c
movq %r14, 0x18(%rsp)
callq 0xc0d0
jmp 0x3271c
cmpb $0x0, 0x13b(%rbx)
je 0x327bf
leaq 0x10(%rsp), %r14
andq $0x0, (%r14)
movq %r14, 0x8(%r14)
leaq 0x13398(%rip), %rdi     # 0x45af8
leaq 0xffe1(%rip), %rsi      # 0x42748
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%r14), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r14)
movq (%rbx), %rdi
leaq 0x13372(%rip), %rsi     # 0x45b02
movq %r14, %rdx
callq 0xcc70
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x327bf
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x327b8
movq %r14, 0x18(%rsp)
callq 0xc0d0
jmp 0x32798
movq (%rbx), %rdi
leaq 0x132ee(%rip), %rsi     # 0x45ab7
callq 0xc060
jmp 0x327fe
movq (%rbx), %rdi
leaq 0x132dd(%rip), %rsi     # 0x45ab7
movq %rsp, %rdx
callq 0xcc70
jmp 0x327fe
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x327f9
movq %r12, 0x8(%rsp)
callq 0xc0d0
movq (%rsp), %rdi
testq %rdi, %rdi
jne 0x327e4
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq