// File: /workspace/github_c_makefile_star2_O0/Paxa[P]fast_excel/libxlsxwriter/src/styles.c
// Function: write_font
STATIC void
_write_font(lxw_styles *self, lxw_format *format, uint8_t is_dxf,
            uint8_t is_rich_string)
{
    if (is_rich_string)
        lxw_xml_start_tag(self->file, "rPr", NULL);
    else
        lxw_xml_start_tag(self->file, "font", NULL);

    if (format->font_condense)
        _write_font_condense(self);

    if (format->font_extend)
        _write_font_extend(self);

    if (format->bold)
        lxw_xml_empty_tag(self->file, "b", NULL);

    if (format->italic)
        lxw_xml_empty_tag(self->file, "i", NULL);

    if (format->font_strikeout)
        lxw_xml_empty_tag(self->file, "strike", NULL);

    if (format->font_outline)
        lxw_xml_empty_tag(self->file, "outline", NULL);

    if (format->font_shadow)
        lxw_xml_empty_tag(self->file, "shadow", NULL);

    if (format->underline)
        _write_font_underline(self, format->underline);

    if (format->font_script == LXW_FONT_SUPERSCRIPT)
        _write_font_vert_align(self, "superscript");

    if (format->font_script == LXW_FONT_SUBSCRIPT)
        _write_font_vert_align(self, "subscript");

    if (!is_dxf && format->font_size > 0.0)
        _write_font_size(self, format->font_size);

    if (format->theme)
        _write_font_color_theme(self, format->theme);
    else if (format->color_indexed)
        _write_font_color_indexed(self, format->color_indexed);
    else if (format->font_color != LXW_COLOR_UNSET)
        _write_font_color_rgb(self, format->font_color);
    else if (!is_dxf)
        _write_font_color_theme(self, LXW_DEFAULT_FONT_THEME);

    if (!is_dxf) {
        _write_font_name(self, format->font_name, is_rich_string);
        _write_font_family(self, format->font_family);

        /* Only write the scheme element for the default font type if it
         * is a hyperlink. */
        if ((!*format->font_name
             || strcmp(LXW_DEFAULT_FONT_NAME, format->font_name) == 0)
            && !format->hyperlink) {
            _write_font_scheme(self, format->font_scheme);
        }
    }

    if (format->hyperlink) {
        self->has_hyperlink = LXW_TRUE;

        if (self->hyperlink_font_id == 0)
            self->hyperlink_font_id = format->font_index;
    }

    if (is_rich_string)
        lxw_xml_end_tag(self->file, "rPr");
    else
        lxw_xml_end_tag(self->file, "font");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %cl, %al
movb %dl, %cl
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %cl, -0x11(%rbp)
movb %al, -0x12(%rbp)
cmpb $0x0, -0x12(%rbp)
je 0x31eb9
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x35225(%rip), %rsi     # 0x670d3
xorl %eax, %eax
movl %eax, %edx
callq 0xc390
jmp 0x31ed0
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x372ad(%rip), %rsi     # 0x69174
xorl %eax, %eax
movl %eax, %edx
callq 0xc390
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1d7(%rax)
je 0x31ee6
movq -0x8(%rbp), %rdi
callq 0x32fd0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1d8(%rax)
je 0x31efc
movq -0x8(%rbp), %rdi
callq 0x330a0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1c8(%rax)
je 0x31f20
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x340ee(%rip), %rsi     # 0x66005
xorl %eax, %eax
movl %eax, %edx
callq 0xcca0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1c9(%rax)
je 0x31f44
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x3c68d(%rip), %rsi     # 0x6e5c8
xorl %eax, %eax
movl %eax, %edx
callq 0xcca0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1d1(%rax)
je 0x31f68
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x3721a(%rip), %rsi     # 0x69179
xorl %eax, %eax
movl %eax, %edx
callq 0xcca0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1d2(%rax)
je 0x31f8c
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x371fd(%rip), %rsi     # 0x69180
xorl %eax, %eax
movl %eax, %edx
callq 0xcca0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1d3(%rax)
je 0x31fb0
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x393d4(%rip), %rsi     # 0x6b37b
xorl %eax, %eax
movl %eax, %edx
callq 0xcca0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1d0(%rax)
je 0x31fd1
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl 0x1d0(%rax), %esi
callq 0x33170
movq -0x10(%rbp), %rax
movzbl 0x1d4(%rax), %eax
cmpl $0x1, %eax
jne 0x31ff1
movq -0x8(%rbp), %rdi
leaq 0x3719c(%rip), %rsi     # 0x69188
callq 0x332f0
movq -0x10(%rbp), %rax
movzbl 0x1d4(%rax), %eax
cmpl $0x2, %eax
jne 0x32011
movq -0x8(%rbp), %rdi
leaq 0x37188(%rip), %rsi     # 0x69194
callq 0x332f0
cmpb $0x0, -0x11(%rbp)
jne 0x32041
movq -0x10(%rbp), %rax
movsd 0x1c0(%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x32041
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movsd 0x1c0(%rax), %xmm0
callq 0x333c0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1d9(%rax)
je 0x32064
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl 0x1d9(%rax), %esi
callq 0x33490
jmp 0x320c3
movq -0x10(%rbp), %rax
cmpb $0x0, 0x22d(%rax)
je 0x32087
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl 0x22d(%rax), %esi
callq 0x33560
jmp 0x320c1
movq -0x10(%rbp), %rax
cmpl $0x0, 0x1cc(%rax)
je 0x320a9
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x1cc(%rax), %esi
callq 0x33630
jmp 0x320bf
cmpb $0x0, -0x11(%rbp)
jne 0x320bd
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x33490
jmp 0x320bf
jmp 0x320c1
jmp 0x320c3
cmpb $0x0, -0x11(%rbp)
jne 0x32141
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0xb4, %rsi
movzbl -0x12(%rbp), %edx
callq 0x33720
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl 0x1d5(%rax), %esi
callq 0x33860
movq -0x10(%rbp), %rax
cmpb $0x0, 0xb4(%rax)
je 0x3211e
movq -0x10(%rbp), %rsi
addq $0xb4, %rsi
leaq 0x3708a(%rip), %rdi     # 0x6919e
callq 0xc880
cmpl $0x0, %eax
jne 0x3213f
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1da(%rax)
jne 0x3213f
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x134, %rsi            # imm = 0x134
callq 0x33930
jmp 0x32141
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1da(%rax)
je 0x32178
movq -0x8(%rbp), %rax
movb $0x1, 0x30(%rax)
movq -0x8(%rbp), %rax
movzwl 0x32(%rax), %eax
cmpl $0x0, %eax
jne 0x32176
movq -0x10(%rbp), %rax
movw 0x1b6(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x32(%rax)
jmp 0x32178
cmpb $0x0, -0x12(%rbp)
je 0x32193
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x34f47(%rip), %rsi     # 0x670d3
callq 0xc060
jmp 0x321a6
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x36fd3(%rip), %rsi     # 0x69174
callq 0xc060
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)