// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, %r15
movl %ecx, 0xc(%rsp)
testl %ecx, %ecx
movq (%rdi), %rdi
leaq 0x1fdd3(%rip), %rax     # 0x43354
leaq 0x1dcfb(%rip), %r14     # 0x41283
movq %r14, %rsi
cmoveq %rax, %rsi
xorl %edx, %edx
callq 0xc350
cmpb $0x0, 0x1d7(%r12)
je 0x23619
xorl %ebx, %ebx
leaq 0x10(%rsp), %r13
movq %rbx, (%r13)
movq %r13, 0x8(%r13)
leaq 0x1de95(%rip), %rdi     # 0x4144c
leaq 0x221e8(%rip), %rsi     # 0x457a6
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %rbx, 0x1040(%rax)
movq 0x8(%r13), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r13)
movq (%r15), %rdi
leaq 0x1fda0(%rip), %rsi     # 0x43386
movq %r13, %rdx
callq 0xcc00
movq (%r13), %rdi
testq %rdi, %rdi
je 0x23619
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x2360d
movq %r13, 0x18(%rsp)
callq 0xc0c0
movq 0x10(%rsp), %rdi
jmp 0x235f2
cmpb $0x0, 0x1d8(%r12)
je 0x2369c
xorl %ebx, %ebx
leaq 0x10(%rsp), %r13
movq %rbx, (%r13)
movq %r13, 0x8(%r13)
leaq 0x1de12(%rip), %rdi     # 0x4144c
leaq 0x22165(%rip), %rsi     # 0x457a6
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %rbx, 0x1040(%rax)
movq 0x8(%r13), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r13)
movq (%r15), %rdi
leaq 0x1fd26(%rip), %rsi     # 0x4338f
movq %r13, %rdx
callq 0xcc00
movq (%r13), %rdi
testq %rdi, %rdi
je 0x2369c
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x23690
movq %r13, 0x18(%rsp)
callq 0xc0c0
movq 0x10(%rsp), %rdi
jmp 0x23675
cmpb $0x0, 0x1c8(%r12)
je 0x236b8
movq (%r15), %rdi
leaq 0x1c954(%rip), %rsi     # 0x40005
xorl %edx, %edx
callq 0xcc00
cmpb $0x0, 0x1c9(%r12)
je 0x236d4
movq (%r15), %rdi
leaq 0x254ef(%rip), %rsi     # 0x48bbc
xorl %edx, %edx
callq 0xcc00
cmpb $0x0, 0x1d1(%r12)
je 0x236f0
movq (%r15), %rdi
leaq 0x1fc70(%rip), %rsi     # 0x43359
xorl %edx, %edx
callq 0xcc00
cmpb $0x0, 0x1d2(%r12)
je 0x2370c
movq (%r15), %rdi
leaq 0x1fc5b(%rip), %rsi     # 0x43360
xorl %edx, %edx
callq 0xcc00
cmpb $0x0, 0x1d3(%r12)
je 0x23728
movq (%r15), %rdi
leaq 0x21f26(%rip), %rsi     # 0x45647
xorl %edx, %edx
callq 0xcc00
movb 0x1d0(%r12), %al
testb %al, %al
je 0x237cc
leaq 0x10(%rsp), %rcx
movq $0x0, (%rcx)
movq %rcx, 0x8(%rcx)
addb $-0x2, %al
cmpb $0x2, %al
ja 0x2378a
movzbl %al, %eax
leaq 0x20318(%rip), %rcx     # 0x43a70
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
leaq 0x1dce6(%rip), %rdi     # 0x4144c
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x18(%rsp)
movq (%r15), %rdi
leaq 0x1ef74(%rip), %rsi     # 0x42708
leaq 0x10(%rsp), %r13
movq %r13, %rdx
callq 0xcc00
movq (%r13), %rdi
testq %rdi, %rdi
je 0x237cc
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x237c0
movq %r13, 0x18(%rsp)
callq 0xc0c0
movq 0x10(%rsp), %rdi
jmp 0x237a5
movb 0x1d4(%r12), %al
cmpb $0x1, %al
jne 0x237ef
leaq 0x1fb89(%rip), %rsi     # 0x43368
movq %r15, %rdi
callq 0x24cb6
movb 0x1d4(%r12), %al
cmpb $0x2, %al
jne 0x23802
leaq 0x1fb7a(%rip), %rsi     # 0x43374
movq %r15, %rdi
callq 0x24cb6
testb %bpl, %bpl
jne 0x23823
movsd 0x1c0(%r12), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x23823
movq %r15, %rdi
callq 0x24d38
movb 0x1d9(%r12), %al
testb %al, %al
je 0x2383c
movzbl %al, %esi
movq %r15, %rdi
callq 0x24dba
jmp 0x23853
movb 0x22d(%r12), %al
testb %al, %al
je 0x238ae
movzbl %al, %esi
movq %r15, %rdi
callq 0x24e3e
testb %bpl, %bpl
movl 0xc(%rsp), %ebp
je 0x23970
cmpb $0x0, 0x1da(%r12)
je 0x23886
movb $0x1, 0x30(%r15)
cmpw $0x0, 0x32(%r15)
jne 0x23886
movzwl 0x1b6(%r12), %eax
movw %ax, 0x32(%r15)
testb %bpl, %bpl
movq (%r15), %rdi
leaq 0x1fac1(%rip), %rax     # 0x43354
cmoveq %rax, %r14
movq %r14, %rsi
callq 0xc060
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x1cc(%r12), %ecx
testl %ecx, %ecx
je 0x23956
andl $0xffffff, %ecx         # imm = 0xFFFFFF
leaq 0x1fafe(%rip), %rdx     # 0x433c9
xorl %ebx, %ebx
leaq 0x10(%rsp), %rdi
movl $0x20, %esi
xorl %eax, %eax
callq 0xc570
leaq 0x38(%rsp), %r13
movq %rbx, (%r13)
movq %r13, 0x8(%r13)
leaq 0x1fade(%rip), %rdi     # 0x433d0
leaq 0x10(%rsp), %rsi
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %rbx, 0x1040(%rax)
movq 0x8(%r13), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r13)
movq (%r15), %rdi
leaq 0x21b61(%rip), %rsi     # 0x45480
movq %r13, %rdx
callq 0xcc00
movq (%r13), %rdi
testq %rdi, %rdi
je 0x23853
movq 0x1040(%rdi), %rax
movq %rax, 0x38(%rsp)
testq %rax, %rax
jne 0x2394a
movq %r13, 0x40(%rsp)
callq 0xc0c0
movq 0x38(%rsp), %rdi
jmp 0x2392b
testb %bpl, %bpl
movl 0xc(%rsp), %ebp
jne 0x23860
movq %r15, %rdi
movl $0x1, %esi
callq 0x24dba
leaq 0xb4(%r12), %r13
movzbl %bpl, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x24ec2
movzbl 0x1d5(%r12), %esi
movq %r15, %rdi
callq 0x24f67
cmpb $0x0, 0xb4(%r12)
je 0x239ba
leaq 0x1f9d4(%rip), %rdi     # 0x4337e
movq %r13, %rsi
callq 0xc800
testl %eax, %eax
jne 0x23860
cmpb $0x0, 0x1da(%r12)
jne 0x23860
xorl %ebx, %ebx
leaq 0x10(%rsp), %r13
movq %rbx, (%r13)
movq %r13, 0x8(%r13)
cmpb $0x0, 0x134(%r12)
leaq 0x134(%r12), %rax
leaq 0x1f9e4(%rip), %rsi     # 0x433d4
cmovneq %rax, %rsi
leaq 0x1da51(%rip), %rdi     # 0x4144c
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %rbx, 0x1040(%rax)
movq 0x8(%r13), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r13)
movq (%r15), %rdi
leaq 0x1f9b7(%rip), %rsi     # 0x433da
movq %r13, %rdx
callq 0xcc00
movq (%r13), %rdi
testq %rdi, %rdi
je 0x23860
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x23a4e
movq %r13, 0x18(%rsp)
callq 0xc0c0
movq 0x10(%rsp), %rdi
jmp 0x23a2f