// File: /workspace/github_c_makefile_star2_O1/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 0x35212
cmpb $0x0, 0x13a(%rbx)
jne 0x35212
cmpl $0x0, 0x164(%rbx)
jne 0x35212
cmpb $0x0, 0x13e(%rbx)
jne 0x35212
cmpq $0x0, 0x158(%rbx)
jne 0x35212
cmpb $0x0, 0xe8(%rbx)
je 0x35579
movq %rsp, %r12
movq $0x0, (%r12)
movq %r12, 0x8(%r12)
movq 0x158(%rbx), %rsi
testq %rsi, %rsi
je 0x35259
leaq 0x11167(%rip), %rdi     # 0x4639c
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 0x35294
leaq 0x1376e(%rip), %rdi     # 0x489d7
leaq 0x104c8(%rip), %rsi     # 0x45738
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 0x352b3
cmpl $0x0, 0x164(%rbx)
jne 0x352b3
cmpb $0x0, 0x13e(%rbx)
je 0x35542
movq (%rbx), %rdi
leaq 0x13725(%rip), %rsi     # 0x489e2
movq %rsp, %rdx
callq 0xc350
movl 0x164(%rbx), %ecx
testl %ecx, %ecx
je 0x35367
andl $0xffffff, %ecx         # imm = 0xFFFFFF
leaq 0xe0d9(%rip), %rdx      # 0x433b9
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 0xe0b6(%rip), %rdi      # 0x433c0
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 0x136b5(%rip), %rsi     # 0x489ea
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x35367
movq 0x1040(%rdi), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
jne 0x3535b
movq %r14, 0x38(%rsp)
callq 0xc0c0
movq 0x30(%rsp), %rdi
jmp 0x35340
cmpb $0x0, 0x13e(%rbx)
je 0x354b1
leaq 0x10(%rsp), %rax
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
cmpb $0x0, 0x140(%rbx)
je 0x353bf
leaq 0x1365f(%rip), %rdi     # 0x489f3
leaq 0x1039d(%rip), %rsi     # 0x45738
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 0x353fa
leaq 0x13630(%rip), %rdi     # 0x489ff
leaq 0x103c0(%rip), %rsi     # 0x45796
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 0x35435
leaq 0x13602(%rip), %rdi     # 0x48a0c
leaq 0x10385(%rip), %rsi     # 0x45796
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 0x35470
leaq 0x133f8(%rip), %rdi     # 0x4883d
leaq 0x1034a(%rip), %rsi     # 0x45796
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 0x1359f(%rip), %rsi     # 0x48a19
leaq 0x10(%rsp), %r14
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x354b1
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x354a5
movq %r14, 0x18(%rsp)
callq 0xc0c0
movq 0x10(%rsp), %rdi
jmp 0x3548a
cmpb $0x0, 0x13b(%rbx)
je 0x35531
xorl %r15d, %r15d
leaq 0x10(%rsp), %r14
movq %r15, (%r14)
movq %r14, 0x8(%r14)
leaq 0x13553(%rip), %rdi     # 0x48a23
leaq 0x10261(%rip), %rsi     # 0x45738
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 0x1352e(%rip), %rsi     # 0x48a2d
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x35531
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x35525
movq %r14, 0x18(%rsp)
callq 0xc0c0
movq 0x10(%rsp), %rdi
jmp 0x3550a
movq (%rbx), %rdi
leaq 0x134a7(%rip), %rsi     # 0x489e2
callq 0xc060
jmp 0x35570
movq (%rbx), %rdi
leaq 0x13496(%rip), %rsi     # 0x489e2
movq %rsp, %rdx
callq 0xcc00
jmp 0x35570
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3556b
movq %r12, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
testq %rdi, %rdi
jne 0x35556
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq