// File: /workspace/github_c_makefile_star2_O0/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_cat_number_format
STATIC void
_chart_write_cat_number_format(lxw_chart *self, lxw_chart_axis *axis)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;
    char *num_format;
    uint8_t source_linked = 1;
    uint8_t default_format = LXW_TRUE;

    /* Set the number format to the axis default if not set. */
    if (axis->num_format)
        num_format = axis->num_format;
    else
        num_format = axis->default_num_format;

    /* Check if a user defined number format has been set. */
    if (strcmp(num_format, axis->default_num_format)) {
        source_linked = 0;
        default_format = LXW_FALSE;
    }

    /* Allow override of sourceLinked. */
    if (axis->source_linked)
        source_linked = 1;

    /* Skip if cat doesn't have a num format (unless it is non-default). */
    if (!self->cat_has_num_fmt && default_format)
        return;

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("formatCode", num_format);
    LXW_PUSH_ATTRIBUTES_INT("sourceLinked", source_linked);

    lxw_xml_empty_tag(self->file, "c:numFmt", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb $0x1, -0x31(%rbp)
movb $0x1, -0x32(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x1df61
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x1df6d
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rsi
callq 0xc880
cmpl $0x0, %eax
je 0x1df8b
movb $0x0, -0x31(%rbp)
movb $0x0, -0x32(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x60(%rax)
je 0x1df99
movb $0x1, -0x31(%rbp)
movq -0x8(%rbp), %rax
cmpb $0x0, 0x96(%rax)
jne 0x1dfb4
movzbl -0x32(%rbp), %eax
cmpl $0x0, %eax
je 0x1dfb4
jmp 0x1e0a5
jmp 0x1dfb6
movq $0x0, -0x20(%rbp)
leaq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x1dfc8
movq -0x30(%rbp), %rsi
leaq 0x492e9(%rip), %rdi     # 0x672bc
callq 0xc030
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x18(%rbp)
jmp 0x1e006
jmp 0x1e008
movzbl -0x31(%rbp), %eax
movl %eax, %esi
leaq 0x490cd(%rip), %rdi     # 0x670e2
callq 0xc1b0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x18(%rbp)
jmp 0x1e048
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x49099(%rip), %rsi     # 0x670ef
leaq -0x20(%rbp), %rdx
callq 0xcca0
jmp 0x1e061
cmpq $0x0, -0x20(%rbp)
sete %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x1e071
jmp 0x1e0a3
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq 0x1040(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x1e096
leaq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x1e098
movq -0x28(%rbp), %rdi
callq 0xc0d0
jmp 0x1e061
jmp 0x1e0a5
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)