// File: /workspace/github_c_makefile_star2_O1/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 0x1fe19(%rip), %rax     # 0x43344
leaq 0x1dd59(%rip), %r14     # 0x4128b
movq %r14, %rsi
cmoveq %rax, %rsi
xorl %edx, %edx
callq 0xc350
cmpb $0x0, 0x1d7(%r12)
je 0x235c3
xorl %ebx, %ebx
leaq 0x10(%rsp), %r13
movq %rbx, (%r13)
movq %r13, 0x8(%r13)
leaq 0x1def3(%rip), %rdi     # 0x41454
leaq 0x2222e(%rip), %rsi     # 0x45796
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 0x1fde6(%rip), %rsi     # 0x43376
movq %r13, %rdx
callq 0xcc00
movq (%r13), %rdi
testq %rdi, %rdi
je 0x235c3
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x235b7
movq %r13, 0x18(%rsp)
callq 0xc0c0
movq 0x10(%rsp), %rdi
jmp 0x2359c
cmpb $0x0, 0x1d8(%r12)
je 0x23646
xorl %ebx, %ebx
leaq 0x10(%rsp), %r13
movq %rbx, (%r13)
movq %r13, 0x8(%r13)
leaq 0x1de70(%rip), %rdi     # 0x41454
leaq 0x221ab(%rip), %rsi     # 0x45796
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 0x1fd6c(%rip), %rsi     # 0x4337f
movq %r13, %rdx
callq 0xcc00
movq (%r13), %rdi
testq %rdi, %rdi
je 0x23646
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x2363a
movq %r13, 0x18(%rsp)
callq 0xc0c0
movq 0x10(%rsp), %rdi
jmp 0x2361f
cmpb $0x0, 0x1c8(%r12)
je 0x23662
movq (%r15), %rdi
leaq 0x1c9aa(%rip), %rsi     # 0x40005
xorl %edx, %edx
callq 0xcc00
cmpb $0x0, 0x1c9(%r12)
je 0x2367e
movq (%r15), %rdi
leaq 0x2545c(%rip), %rsi     # 0x48ad3
xorl %edx, %edx
callq 0xcc00
cmpb $0x0, 0x1d1(%r12)
je 0x2369a
movq (%r15), %rdi
leaq 0x1fcb6(%rip), %rsi     # 0x43349
xorl %edx, %edx
callq 0xcc00
cmpb $0x0, 0x1d2(%r12)
je 0x236b6
movq (%r15), %rdi
leaq 0x1fca1(%rip), %rsi     # 0x43350
xorl %edx, %edx
callq 0xcc00
cmpb $0x0, 0x1d3(%r12)
je 0x236d2
movq (%r15), %rdi
leaq 0x21f6c(%rip), %rsi     # 0x45637
xorl %edx, %edx
callq 0xcc00
movb 0x1d0(%r12), %al
testb %al, %al
je 0x23776
leaq 0x10(%rsp), %rcx
movq $0x0, (%rcx)
movq %rcx, 0x8(%rcx)
addb $-0x2, %al
cmpb $0x2, %al
ja 0x23734
movzbl %al, %eax
leaq 0x2035e(%rip), %rcx     # 0x43a60
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
leaq 0x1dd44(%rip), %rdi     # 0x41454
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 0x1efba(%rip), %rsi     # 0x426f8
leaq 0x10(%rsp), %r13
movq %r13, %rdx
callq 0xcc00
movq (%r13), %rdi
testq %rdi, %rdi
je 0x23776
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x2376a
movq %r13, 0x18(%rsp)
callq 0xc0c0
movq 0x10(%rsp), %rdi
jmp 0x2374f
cmpb $0x1, 0x1d4(%r12)
jne 0x23790
leaq 0x1fbd0(%rip), %rsi     # 0x43358
movq %r15, %rdi
callq 0x24c81
cmpb $0x2, 0x1d4(%r12)
jne 0x237aa
leaq 0x1fbc2(%rip), %rsi     # 0x43364
movq %r15, %rdi
callq 0x24c81
testb %bpl, %bpl
jne 0x237cb
movsd 0x1c0(%r12), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x237cb
movq %r15, %rdi
callq 0x24d03
movb 0x1d9(%r12), %al
testb %al, %al
je 0x237e4
movzbl %al, %esi
movq %r15, %rdi
callq 0x24d85
jmp 0x237ff
movb 0x22d(%r12), %al
testb %al, %al
je 0x2393f
movzbl %al, %esi
movq %r15, %rdi
callq 0x24e09
testb %bpl, %bpl
je 0x23854
cmpb $0x0, 0x1da(%r12)
je 0x2382a
movb $0x1, 0x30(%r15)
cmpw $0x0, 0x32(%r15)
jne 0x2382a
movzwl 0x1b6(%r12), %eax
movw %ax, 0x32(%r15)
cmpb $0x0, 0xc(%rsp)
movq (%r15), %rdi
leaq 0x1fb0b(%rip), %rax     # 0x43344
cmoveq %rax, %r14
movq %r14, %rsi
callq 0xc060
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb4(%r12), %r13
movzbl 0xc(%rsp), %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x24e8d
movzbl 0x1d5(%r12), %esi
movq %r15, %rdi
callq 0x24f32
cmpb $0x0, 0xb4(%r12)
je 0x2389f
leaq 0x1fadf(%rip), %rdi     # 0x4336e
movq %r13, %rsi
callq 0xc800
testl %eax, %eax
jne 0x23804
cmpb $0x0, 0x1da(%r12)
jne 0x23804
xorl %ebx, %ebx
leaq 0x10(%rsp), %r13
movq %rbx, (%r13)
movq %r13, 0x8(%r13)
cmpb $0x0, 0x134(%r12)
leaq 0x134(%r12), %rax
leaq 0x1faef(%rip), %rsi     # 0x433c4
cmovneq %rax, %rsi
leaq 0x1db74(%rip), %rdi     # 0x41454
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 0x1fac2(%rip), %rsi     # 0x433ca
movq %r13, %rdx
callq 0xcc00
movq (%r13), %rdi
testq %rdi, %rdi
je 0x23804
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x23933
movq %r13, 0x18(%rsp)
callq 0xc0c0
movq 0x10(%rsp), %rdi
jmp 0x23914
movl 0x1cc(%r12), %ecx
testl %ecx, %ecx
je 0x239e7
andl $0xffffff, %ecx         # imm = 0xFFFFFF
leaq 0x1fa5d(%rip), %rdx     # 0x433b9
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 0x1fa3d(%rip), %rdi     # 0x433c0
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 0x21ac0(%rip), %rsi     # 0x45470
movq %r13, %rdx
callq 0xcc00
movq (%r13), %rdi
testq %rdi, %rdi
je 0x237ff
movq 0x1040(%rdi), %rax
movq %rax, 0x38(%rsp)
testq %rax, %rax
jne 0x239db
movq %r13, 0x40(%rsp)
callq 0xc0c0
movq 0x38(%rsp), %rdi
jmp 0x239bc
testb %bpl, %bpl
jne 0x23804
movq %r15, %rdi
movl $0x1, %esi
jmp 0x237dd